:root {
  --orange: #f97316;
  --orange-dark: #ea580c;
  --pink: #ec4899;
  --rose: #f43f5e;
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-card: 0 10px 30px rgba(15, 23, 42, 0.12);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--slate-900);
  background: linear-gradient(135deg, #fff7ed 0%, #fdf2f8 50%, #fff1f2 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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

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

button,
input {
  font: inherit;
}

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

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 800;
  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.22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
  transition: transform 0.25s ease, background 0.25s ease;
}

.brand:hover .brand-mark {
  transform: scale(1.08);
  background: rgba(255, 255, 255, 0.32);
}

.brand-text {
  font-size: 24px;
}

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

.nav-link,
.mobile-link {
  color: rgba(255, 255, 255, 0.94);
  border-radius: 12px;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link {
  padding: 9px 14px;
}

.nav-link:hover,
.mobile-link:hover,
.nav-link.active,
.mobile-link.active {
  color: var(--orange);
  background: var(--white);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.16);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--white);
  border-radius: 99px;
}

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

.mobile-nav.open {
  display: grid;
  gap: 8px;
}

.mobile-link {
  display: block;
  padding: 10px 12px;
}

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

.hero-section {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  color: var(--white);
  background: linear-gradient(115deg, var(--orange), var(--pink) 52%, var(--rose));
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.5) 0 2px, transparent 3px),
    radial-gradient(circle at 80% 30%, rgba(255, 255, 255, 0.35) 0 3px, transparent 4px),
    radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.28) 0 2px, transparent 3px);
  background-size: 70px 70px, 110px 110px, 90px 90px;
}

.hero-shell {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  min-height: 620px;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.hero-slide {
  display: none;
  width: 100%;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.56fr);
  gap: 48px;
  align-items: center;
  animation: fadeIn 0.55s ease both;
}

.hero-slide.active {
  display: grid;
}

.hero-copy h1 {
  max-width: 760px;
  margin: 14px 0 18px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-copy p {
  max-width: 700px;
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(18px, 2vw, 24px);
}

.hero-kicker,
.detail-kicker,
.sub-hero span,
.section-heading span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--orange-dark);
  background: rgba(255, 255, 255, 0.86);
  font-weight: 800;
  letter-spacing: 0.04em;
}

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

.hero-tags span,
.tag-row span,
.detail-tags a {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  font-size: 13px;
  font-weight: 700;
}

.tag-row span {
  color: var(--slate-600);
  background: var(--slate-100);
  box-shadow: none;
}

.detail-tags a {
  color: var(--orange-dark);
  background: #fff7ed;
  box-shadow: inset 0 0 0 1px #fed7aa;
}

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

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

.primary-btn {
  padding: 12px 24px;
  color: var(--orange-dark);
  background: var(--white);
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.16);
}

.ghost-btn {
  padding: 12px 22px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(12px);
}

.primary-btn:hover,
.ghost-btn:hover,
.text-link:hover {
  transform: translateY(-2px);
}

.hero-poster {
  position: relative;
  overflow: hidden;
  display: block;
  border-radius: 34px;
  aspect-ratio: 3 / 4;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 30px 90px rgba(15, 23, 42, 0.28);
}

.hero-poster::before {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 26px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
  z-index: 1;
  pointer-events: none;
}

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

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

.hero-controls {
  position: absolute;
  left: 0;
  bottom: 48px;
  display: flex;
  gap: 10px;
}

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

.hero-dot.active {
  width: 54px;
  background: var(--white);
}

.quick-search-section {
  padding: 28px 0 0;
}

.search-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  margin: 18px 0 24px;
  padding: 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(14px);
}

.search-panel input {
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 14px 16px;
  border-radius: 14px;
  color: var(--slate-900);
  background: var(--slate-50);
}

.search-panel button {
  border: 0;
  border-radius: 14px;
  padding: 0 18px;
  color: var(--white);
  background: linear-gradient(90deg, var(--orange), var(--pink));
  cursor: pointer;
  font-weight: 800;
}

.search-empty {
  display: none;
  margin: 20px 0;
  padding: 18px;
  border-radius: 18px;
  color: var(--slate-600);
  background: var(--white);
  text-align: center;
  box-shadow: var(--shadow-card);
}

.search-empty.show {
  display: block;
}

.content-section {
  padding: 64px 0;
}

.soft-bg {
  background: linear-gradient(135deg, rgba(255, 237, 213, 0.75), rgba(252, 231, 243, 0.8), rgba(255, 228, 230, 0.75));
}

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

.section-heading.compact {
  margin-bottom: 10px;
}

.section-heading h2 {
  margin: 12px 0 8px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
}

.section-heading p {
  max-width: 760px;
  margin: 0;
  color: var(--slate-600);
}

.section-heading.with-link {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.text-link {
  color: var(--orange-dark);
  background: var(--white);
  padding: 10px 18px;
  box-shadow: var(--shadow-card);
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.16);
}

.poster-link,
.poster-frame {
  display: block;
}

.poster-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #fed7aa, #fbcfe8);
}

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

.movie-card:hover .poster-frame img {
  transform: scale(1.07);
}

.year-badge,
.type-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--white);
  font-weight: 800;
  font-size: 12px;
  backdrop-filter: blur(12px);
}

.year-badge {
  top: 12px;
  left: 12px;
  background: rgba(249, 115, 22, 0.9);
}

.type-badge {
  right: 12px;
  bottom: 12px;
  background: rgba(15, 23, 42, 0.72);
}

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

.movie-title {
  display: -webkit-box;
  min-height: 56px;
  overflow: hidden;
  color: var(--slate-900);
  font-size: 19px;
  font-weight: 850;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  transition: color 0.2s ease;
}

.movie-title:hover {
  color: var(--orange-dark);
}

.movie-desc {
  display: -webkit-box;
  min-height: 52px;
  margin: 10px 0 12px;
  overflow: hidden;
  color: var(--slate-600);
  font-size: 14px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--slate-500);
  font-size: 13px;
}

.movie-meta span {
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--slate-100);
}

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

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

.rank-item {
  display: grid;
  grid-template-columns: 56px 96px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, background 0.2s ease;
}

.rank-item:hover {
  transform: translateY(-3px);
  background: #fff7ed;
}

.rank-number {
  color: var(--slate-400);
  font-size: 30px;
  font-weight: 900;
  text-align: center;
}

.top-rank .rank-number {
  color: var(--orange);
}

.rank-cover {
  overflow: hidden;
  border-radius: 14px;
  aspect-ratio: 3 / 4;
  background: #fed7aa;
}

.rank-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-title {
  color: var(--slate-900);
  font-size: 18px;
  font-weight: 850;
}

.rank-content p {
  display: -webkit-box;
  margin: 8px 0;
  overflow: hidden;
  color: var(--slate-600);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.rank-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--slate-500);
  font-size: 13px;
}

.rank-meta span {
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--slate-100);
}

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

.category-card,
.category-overview-card,
.detail-text-card {
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-card);
}

.category-card {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.16);
}

.category-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  min-height: 132px;
}

.category-thumbs img {
  width: 100%;
  height: 100%;
  min-height: 132px;
  object-fit: cover;
  border-radius: 14px;
}

.category-card h3,
.category-overview-card h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.category-card p,
.category-overview-card p {
  margin: 0 0 12px;
  color: var(--slate-600);
}

.category-card span {
  color: var(--orange-dark);
  font-weight: 800;
}

.sub-hero {
  padding: 78px 0;
  color: var(--white);
  background: linear-gradient(115deg, var(--orange), var(--pink), var(--rose));
}

.sub-hero h1 {
  margin: 14px 0 12px;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.1;
}

.sub-hero p {
  max-width: 820px;
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 19px;
}

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

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

.category-overview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.category-overview-head a {
  color: var(--white);
  border-radius: 999px;
  padding: 8px 14px;
  background: linear-gradient(90deg, var(--orange), var(--pink));
  font-weight: 800;
}

.mini-link-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.mini-link-list a {
  color: var(--slate-700);
  border-radius: 14px;
  padding: 10px 12px;
  background: var(--slate-50);
}

.mini-link-list a:hover {
  color: var(--orange-dark);
  background: #fff7ed;
}

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

.detail-hero {
  padding: 42px 0 58px;
  color: var(--white);
  background: linear-gradient(135deg, var(--slate-950), var(--slate-900) 48%, #831843);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.72);
}

.breadcrumb a:hover {
  color: var(--white);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(220px, 330px) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: 32px;
  aspect-ratio: 3 / 4;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  background: #111827;
}

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

.detail-info h1 {
  margin: 14px 0 16px;
  font-size: clamp(34px, 6vw, 66px);
  line-height: 1.08;
}

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

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

.detail-meta-grid span {
  padding: 12px 14px;
  border-radius: 16px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.detail-info .primary-btn {
  margin-top: 28px;
}

.player-section {
  padding: 56px 0 0;
  background: #070b15;
}

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #000;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.player-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-shade {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: var(--white);
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.36), rgba(2, 6, 23, 0.68));
  cursor: pointer;
  font-size: clamp(18px, 3vw, 30px);
  font-weight: 850;
  z-index: 3;
}

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

.play-circle {
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--orange-dark);
  background: var(--white);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.3);
}

.detail-text-section {
  background: #070b15;
}

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

.detail-text-card {
  padding: 26px;
}

.detail-text-card h2 {
  margin: 0 0 12px;
  color: var(--slate-900);
}

.detail-text-card p {
  margin: 0;
  color: var(--slate-700);
  font-size: 16px;
}

.site-footer {
  color: var(--white);
  background: linear-gradient(135deg, var(--slate-950), var(--slate-900));
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 36px;
}

.footer-brand h2,
.footer-column h3 {
  margin: 0 0 14px;
}

.footer-brand h2 {
  font-size: 28px;
  background: linear-gradient(90deg, #fdba74, #f9a8d4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.footer-brand p,
.footer-column a {
  color: var(--slate-300);
}

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

.footer-column a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px;
  color: var(--slate-300);
  text-align: center;
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .index-rank-list,
  .category-grid,
  .categories-overview-grid,
  .detail-text-grid {
    grid-template-columns: 1fr;
  }

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

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

  .nav-toggle {
    display: block;
  }

  .hero-shell {
    min-height: auto;
    padding: 54px 0 80px;
  }

  .hero-slide,
  .hero-slide.active {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hero-poster {
    max-width: 330px;
    margin: 0 auto;
  }

  .hero-controls {
    bottom: 32px;
  }

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

  .rank-item {
    grid-template-columns: 46px 82px minmax(0, 1fr);
    gap: 12px;
  }

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

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

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

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

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

  .hero-actions,
  .section-heading.with-link,
  .category-overview-head {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-btn,
  .ghost-btn,
  .text-link {
    width: 100%;
  }

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

  .movie-grid,
  .featured-grid {
    grid-template-columns: 1fr;
  }

  .rank-item {
    grid-template-columns: 38px 74px minmax(0, 1fr);
    padding: 10px;
  }

  .rank-number {
    font-size: 22px;
  }

  .rank-title {
    font-size: 16px;
  }

  .rank-content p {
    -webkit-line-clamp: 1;
  }

  .detail-meta-grid {
    grid-template-columns: 1fr;
  }
}
