:root {
  --purple-50: #faf5ff;
  --purple-100: #f3e8ff;
  --purple-200: #e9d5ff;
  --purple-500: #a855f7;
  --purple-600: #9333ea;
  --purple-700: #7e22ce;
  --purple-900: #581c87;
  --purple-950: #3b0764;
  --pink-400: #f472b6;
  --pink-500: #ec4899;
  --pink-600: #db2777;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --white: #ffffff;
  --shadow-lg: 0 14px 32px rgba(76, 29, 149, 0.14);
  --shadow-xl: 0 22px 48px rgba(76, 29, 149, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--gray-800);
  background: linear-gradient(180deg, var(--purple-50), #fff 42%, #fff);
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  color: #fff;
  background: linear-gradient(90deg, var(--purple-600), var(--pink-500), var(--pink-400));
  box-shadow: 0 10px 26px rgba(126, 34, 206, 0.25);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0.02em;
  transition: transform 0.25s ease;
  white-space: nowrap;
}

.brand:hover {
  transform: scale(1.05);
}

.brand-mark {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--pink-500);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: inset 0 0 18px rgba(168, 85, 247, 0.2);
}

.brand-name {
  color: #fff;
  text-shadow: 0 2px 18px rgba(255, 255, 255, 0.35);
}

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

.nav-link {
  font-size: 15px;
  opacity: 0.92;
  transition: color 0.25s ease, opacity 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--purple-100);
  opacity: 1;
  font-weight: 800;
}

.header-search,
.mobile-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
}

.header-search input,
.mobile-search input {
  width: 210px;
  border: 0;
  outline: 0;
  color: #fff;
  border-radius: 999px;
  padding: 9px 74px 9px 16px;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  transition: width 0.25s ease, box-shadow 0.25s ease;
}

.header-search input::placeholder,
.mobile-search input::placeholder {
  color: rgba(255, 255, 255, 0.78);
}

.header-search input:focus {
  width: 280px;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.48);
}

.header-search button,
.mobile-search button {
  position: absolute;
  right: 4px;
  border: 0;
  cursor: pointer;
  color: #fff;
  border-radius: 999px;
  padding: 6px 13px;
  background: rgba(255, 255, 255, 0.18);
}

.mobile-toggle {
  display: none;
  border: 0;
  color: #fff;
  cursor: pointer;
  font-size: 24px;
  background: transparent;
}

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

.mobile-panel.is-open {
  display: grid;
  gap: 12px;
}

.mobile-panel a {
  padding: 10px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-carousel {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  background: var(--purple-950);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-slide > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-shade,
.detail-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.38) 48%, rgba(17, 24, 39, 0.2));
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  color: #fff;
  padding-top: 30px;
}

.hero-badge,
.page-badge,
.poster-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: #fff;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--purple-500), var(--pink-500));
  box-shadow: 0 10px 24px rgba(219, 39, 119, 0.26);
}

.hero-badge,
.page-badge {
  padding: 5px 16px;
  font-size: 14px;
  margin-bottom: 18px;
}

.hero-content h1 {
  max-width: 780px;
  margin: 0 0 18px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.035em;
  text-shadow: 0 20px 50px rgba(0, 0, 0, 0.32);
}

.hero-content p {
  max-width: 760px;
  margin: 0 0 22px;
  font-size: clamp(17px, 2.2vw, 23px);
  color: rgba(255, 255, 255, 0.9);
}

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

.hero-meta span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
}

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

.primary-btn,
.ghost-btn,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.primary-btn {
  color: #fff;
  padding: 12px 28px;
  background: linear-gradient(90deg, var(--purple-600), var(--pink-600));
  box-shadow: 0 16px 30px rgba(219, 39, 119, 0.32);
}

.primary-btn:hover,
.section-more:hover,
.ghost-btn:hover {
  transform: translateY(-2px) scale(1.03);
}

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

.hero-arrow {
  position: absolute;
  top: 50%;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  font-size: 36px;
  line-height: 1;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  transform: translateY(-50%);
  transition: background 0.25s ease, transform 0.25s ease;
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-50%) scale(1.08);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

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

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

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

.intro-band {
  padding: 46px 0 16px;
}

.intro-inner {
  display: grid;
  gap: 18px;
  text-align: center;
}

.intro-inner h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.18;
  font-weight: 900;
  color: var(--gray-800);
}

.intro-inner p {
  max-width: 760px;
  margin: 0 auto;
  color: var(--gray-600);
}

.large-search {
  width: min(760px, 100%);
  margin: 10px auto 0;
  display: flex;
  align-items: center;
  padding: 7px;
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow-lg);
}

.large-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 13px 18px;
  color: var(--gray-800);
  background: transparent;
}

.large-search button {
  border: 0;
  cursor: pointer;
  color: #fff;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 800;
  background: linear-gradient(90deg, var(--purple-600), var(--pink-600));
}

.section {
  padding: 50px 0;
}

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

.section-head.compact {
  margin-bottom: 18px;
}

.section-head h2 {
  margin: 0 0 6px;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.16;
  font-weight: 900;
  color: var(--gray-800);
}

.section-head p {
  margin: 0;
  color: var(--gray-600);
}

.section-more {
  flex-shrink: 0;
  color: #fff;
  padding: 10px 18px;
  background: linear-gradient(90deg, var(--purple-600), var(--pink-600));
  box-shadow: 0 10px 22px rgba(147, 51, 234, 0.18);
}

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

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

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

.movie-card {
  min-width: 0;
}

.movie-card a {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.poster-wrap {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, var(--purple-100), #fff);
}

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

.movie-card.large-card .poster-wrap img {
  height: 340px;
}

.movie-card a:hover .poster-wrap img {
  transform: scale(1.1);
}

.poster-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.62), transparent 64%);
  transition: opacity 0.3s ease;
}

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

.poster-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  padding: 4px 10px;
  font-size: 12px;
}

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--purple-600);
  background: rgba(255, 255, 255, 0.92);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.72);
  transition: opacity 0.3s ease, transform 0.3s ease;
  backdrop-filter: blur(10px);
}

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

.card-body {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.card-body h2 {
  min-height: 44px;
  margin: 0;
  color: var(--gray-800);
  font-size: 16px;
  line-height: 1.38;
  font-weight: 900;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.25s ease;
}

.movie-card a:hover .card-body h2 {
  color: var(--purple-600);
}

.card-meta,
.card-line {
  margin: 0;
  color: var(--gray-500);
  font-size: 13px;
}

.card-line {
  color: var(--gray-600);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.category-tile {
  position: relative;
  min-height: 178px;
  overflow: hidden;
  border-radius: 22px;
  color: #fff;
  background: var(--purple-950);
  box-shadow: var(--shadow-lg);
  isolation: isolate;
}

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
  transition: transform 0.45s ease, opacity 0.45s ease;
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(0deg, rgba(59, 7, 100, 0.92), rgba(219, 39, 119, 0.2));
}

.category-tile span,
.category-tile p {
  position: relative;
  z-index: 2;
  display: block;
}

.category-tile span {
  padding: 70px 18px 6px;
  font-size: 20px;
  font-weight: 900;
}

.category-tile p {
  margin: 0;
  padding: 0 18px 18px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 13px;
}

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

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

.ranking-card,
.article-card,
.side-card,
.filter-panel,
.category-overview-card {
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-lg);
}

.ranking-card {
  position: sticky;
  top: 88px;
  padding: 22px;
}

.ranking-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.ranking-head h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 900;
}

.ranking-head a {
  color: var(--purple-600);
  font-weight: 800;
}

.ranking-card ol,
.ranking-page-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ranking-card li + li {
  margin-top: 12px;
}

.ranking-card li a {
  display: grid;
  grid-template-columns: 34px 56px 1fr;
  gap: 12px;
  align-items: center;
}

.rank-number,
.ranking-index {
  color: var(--pink-600);
  font-size: 20px;
  font-weight: 900;
}

.ranking-card img {
  width: 56px;
  height: 72px;
  object-fit: cover;
  border-radius: 12px;
}

.rank-text {
  min-width: 0;
}

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

.rank-text strong {
  overflow: hidden;
  color: var(--gray-800);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-text em {
  color: var(--gray-500);
  font-size: 12px;
  font-style: normal;
}

.page-hero {
  padding: 70px 0;
  color: #fff;
  background: radial-gradient(circle at 20% 10%, rgba(244, 114, 182, 0.42), transparent 30%), linear-gradient(90deg, var(--purple-700), var(--pink-500), var(--pink-400));
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  font-weight: 900;
}

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

.filter-panel {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 16px;
  padding: 20px;
  margin-bottom: 24px;
}

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

.filter-panel label {
  display: grid;
  gap: 7px;
  color: var(--gray-700);
  font-weight: 800;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid var(--purple-100);
  outline: none;
  border-radius: 14px;
  padding: 12px 13px;
  color: var(--gray-800);
  background: var(--gray-50);
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--purple-500);
  box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.12);
}

.movie-card.is-hidden,
.ranking-row.is-hidden {
  display: none;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  overflow: hidden;
}

.category-cover {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  color: #fff;
  background: var(--purple-950);
}

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

.category-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(59, 7, 100, 0.92), rgba(168, 85, 247, 0.15));
}

.category-cover span {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 24px;
  z-index: 2;
  font-size: 28px;
  font-weight: 900;
}

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

.category-overview-body h2 {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 900;
}

.category-overview-body p {
  margin: 0 0 18px;
  color: var(--gray-600);
}

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

.rank-item {
  display: grid;
  grid-template-columns: 58px 1fr;
  grid-template-rows: auto auto;
  gap: 4px 10px;
  align-items: center;
  border-radius: 14px;
  padding: 8px;
  background: var(--gray-50);
}

.rank-item img {
  grid-row: 1 / 3;
  width: 58px;
  height: 76px;
  border-radius: 10px;
  object-fit: cover;
}

.rank-title {
  align-self: end;
  overflow: hidden;
  color: var(--gray-800);
  font-weight: 900;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-meta {
  align-self: start;
  overflow: hidden;
  color: var(--gray-500);
  font-size: 12px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ranking-page-list {
  display: grid;
  gap: 14px;
  margin-top: 30px;
}

.ranking-row a {
  display: grid;
  grid-template-columns: 58px 78px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  border-radius: 18px;
  padding: 12px 16px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(76, 29, 149, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ranking-row a:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.ranking-row img {
  width: 78px;
  height: 102px;
  border-radius: 14px;
  object-fit: cover;
}

.ranking-info {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.ranking-info strong {
  color: var(--gray-800);
  font-size: 20px;
  font-weight: 900;
}

.ranking-info em,
.ranking-info b {
  color: var(--gray-500);
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
}

.ranking-info b {
  color: var(--gray-600);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.detail-hero {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  color: #fff;
  background: var(--purple-950);
}

.detail-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(12px) saturate(1.1);
  transform: scale(1.05);
  opacity: 0.72;
}

.detail-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 38px;
  align-items: center;
  min-height: 560px;
  padding: 50px 0;
}

.detail-poster img {
  width: 300px;
  height: 420px;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 26px 56px rgba(0, 0, 0, 0.35);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #fff;
}

.detail-info h1 {
  margin: 0 0 18px;
  font-size: clamp(34px, 5.4vw, 62px);
  line-height: 1.08;
  font-weight: 900;
}

.detail-line {
  max-width: 760px;
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 19px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0 0 28px;
}

.tag-list span {
  color: rgba(255, 255, 255, 0.88);
  border-radius: 999px;
  padding: 5px 11px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
}

.detail-player-section {
  padding-top: 42px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #050014;
  box-shadow: var(--shadow-xl);
  aspect-ratio: 16 / 9;
}

.movie-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #050014;
  cursor: pointer;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  background: radial-gradient(circle, rgba(59, 7, 100, 0.2), rgba(5, 0, 20, 0.32));
}

.player-overlay span {
  width: 88px;
  height: 88px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--purple-600);
  font-size: 38px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.26);
  transition: transform 0.25s ease;
}

.player-overlay:hover span {
  transform: scale(1.08);
}

.player-overlay.is-hidden {
  display: none;
}

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

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

.article-card h2,
.side-card h2 {
  margin: 0 0 14px;
  color: var(--gray-800);
  font-size: 26px;
  font-weight: 900;
}

.article-card p {
  margin: 0 0 24px;
  color: var(--gray-700);
  font-size: 17px;
  line-height: 1.9;
}

.side-card {
  position: sticky;
  top: 88px;
}

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

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

.side-card dd {
  margin: -8px 0 0;
  color: var(--gray-800);
}

.site-footer {
  margin-top: 46px;
  color: #fff;
  background: linear-gradient(180deg, var(--purple-900), var(--purple-950));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 34px;
  padding: 48px 0;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 21px;
}

.footer-brand span {
  color: var(--pink-400);
}

.site-footer h2 {
  margin: 0 0 14px;
  font-size: 18px;
}

.site-footer p,
.site-footer a,
.footer-bottom {
  color: rgba(233, 213, 255, 0.86);
  font-size: 14px;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid rgba(233, 213, 255, 0.18);
}

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

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

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

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

  .ranking-card,
  .side-card {
    position: static;
  }
}

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

  .desktop-nav {
    display: none;
  }

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

  .mobile-search input {
    width: 100%;
  }

  .hero-carousel,
  .detail-hero {
    min-height: 560px;
  }

  .hero-content {
    padding: 64px 0 72px;
    justify-content: flex-end;
  }

  .hero-meta,
  .detail-meta {
    gap: 8px;
  }

  .hero-arrow {
    width: 40px;
    height: 40px;
    font-size: 30px;
  }

  .hero-prev {
    left: 10px;
  }

  .hero-next {
    right: 10px;
  }

  .large-search {
    border-radius: 22px;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
  }

  .large-search button {
    width: 100%;
  }

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

  .movie-grid,
  .movie-grid.three-col,
  .movie-grid.all-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .poster-wrap img {
    height: 230px;
  }

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

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

  .category-overview-card {
    grid-template-columns: 1fr;
  }

  .rank-list {
    grid-template-columns: 1fr;
  }

  .ranking-row a {
    grid-template-columns: 44px 62px minmax(0, 1fr);
    padding: 10px;
  }

  .ranking-row img {
    width: 62px;
    height: 82px;
  }

  .ranking-info b {
    display: none;
  }

  .detail-layout {
    grid-template-columns: 1fr;
    gap: 22px;
    min-height: 560px;
  }

  .detail-poster img {
    width: 190px;
    height: 264px;
  }

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

  .player-overlay span {
    width: 70px;
    height: 70px;
    font-size: 30px;
  }

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

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 460px) {
  .movie-grid,
  .movie-grid.three-col,
  .movie-grid.all-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .poster-wrap img {
    height: 320px;
  }
}
