:root {
  --rose-50: #fff1f2;
  --rose-100: #ffe4e6;
  --rose-400: #fb7185;
  --rose-500: #f43f5e;
  --rose-600: #e11d48;
  --orange-50: #fff7ed;
  --orange-400: #fb923c;
  --orange-500: #f97316;
  --amber-300: #fcd34d;
  --cyan-50: #ecfeff;
  --blue-50: #eff6ff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow-soft: 0 18px 45px rgba(244, 63, 94, 0.14);
  --shadow-card: 0 14px 34px rgba(17, 24, 39, 0.10);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--gray-900);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: linear-gradient(135deg, var(--orange-50), #fff7fb 46%, var(--rose-50));
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 30px rgba(17, 24, 39, 0.08);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(100% - 32px, var(--container));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 900;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--rose-400), var(--orange-400));
  box-shadow: 0 14px 30px rgba(244, 63, 94, 0.25);
  transition: transform 0.3s ease;
}

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

.brand-text strong {
  display: block;
  line-height: 1.05;
  font-size: 21px;
  background: linear-gradient(90deg, var(--rose-500), var(--orange-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text small {
  display: block;
  margin-top: 4px;
  color: var(--gray-500);
  font-size: 12px;
}

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

.nav-link,
.mobile-link {
  color: var(--gray-700);
  font-weight: 700;
  border-radius: 12px;
  transition: 0.28s ease;
}

.nav-link {
  padding: 10px 13px;
  font-size: 14px;
}

.nav-link:hover,
.mobile-link:hover {
  color: var(--rose-600);
  background: var(--rose-50);
}

.nav-link.active,
.mobile-link.active {
  color: var(--white);
  background: linear-gradient(90deg, var(--rose-400), var(--orange-400));
  box-shadow: 0 10px 22px rgba(244, 63, 94, 0.2);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-search {
  position: relative;
  width: 230px;
}

.site-search-input,
.card-filter-input {
  width: 100%;
  border: 1px solid rgba(244, 63, 94, 0.18);
  border-radius: 999px;
  outline: 0;
  background: rgba(255, 255, 255, 0.9);
  padding: 11px 16px;
  color: var(--gray-800);
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.05);
}

.site-search-input:focus,
.card-filter-input:focus {
  border-color: rgba(244, 63, 94, 0.5);
  box-shadow: 0 0 0 4px rgba(251, 113, 133, 0.16);
}

.site-search-results {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(410px, 92vw);
  max-height: 460px;
  overflow: auto;
  display: none;
  padding: 10px;
  border: 1px solid rgba(244, 63, 94, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-card);
}

.site-search-results.open {
  display: grid;
  gap: 8px;
}

.search-result-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border-radius: 14px;
  transition: 0.24s ease;
}

.search-result-item:hover {
  background: var(--rose-50);
}

.search-result-item img {
  width: 52px;
  height: 70px;
  object-fit: cover;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--rose-100), var(--orange-50));
}

.search-result-item strong {
  display: block;
  line-height: 1.35;
}

.search-result-item span,
.search-empty {
  color: var(--gray-500);
  font-size: 13px;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--rose-50);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--rose-600);
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
  padding: 0 0 14px;
}

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

.hero-carousel {
  position: relative;
  height: min(600px, calc(100vh - 72px));
  min-height: 500px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--rose-500), var(--orange-400), var(--amber-300));
}

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

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

.hero-slide img,
.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.35) 54%, rgba(0, 0, 0, 0.08));
}

.hero-content {
  position: absolute;
  left: max(24px, calc((100vw - var(--container)) / 2));
  bottom: 76px;
  width: min(690px, calc(100% - 48px));
  color: var(--white);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffe58f;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.hero-content h1,
.page-hero h1,
.detail-copy h1 {
  margin: 14px 0 16px;
  font-size: clamp(36px, 6vw, 62px);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.hero-content p,
.page-hero p,
.detail-one-line {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.75;
}

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

.hero-meta span,
.detail-meta span {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: var(--white);
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.primary-button,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 900;
  transition: 0.28s ease;
}

.primary-button {
  padding: 14px 28px;
  color: var(--rose-600);
  background: var(--white);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.25);
}

.primary-button:hover,
.section-more:hover {
  transform: translateY(-2px);
}

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

.hero-control:hover {
  background: rgba(255, 255, 255, 0.3);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

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

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

.section-block {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
  padding: 60px 0;
}

.compact-block {
  padding: 48px 0;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.section-title h2,
.center-heading {
  margin: 0;
  color: var(--gray-900);
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.12;
}

.section-title p {
  margin: 5px 0 0;
  color: var(--gray-500);
}

.section-icon {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--rose-400), var(--orange-400));
  box-shadow: 0 12px 24px rgba(244, 63, 94, 0.22);
}

.section-more {
  margin-left: auto;
  padding: 10px 18px;
  color: var(--rose-600);
  background: var(--rose-50);
}

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

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

.six-col {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(244, 63, 94, 0.10);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.07);
  transition: 0.28s ease;
}

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

.poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, var(--rose-100), var(--orange-50));
}

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

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

.poster-badge,
.poster-score {
  position: absolute;
  top: 12px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--white);
  font-size: 12px;
  font-weight: 900;
  background: rgba(17, 24, 39, 0.72);
  backdrop-filter: blur(8px);
}

.poster-badge {
  left: 12px;
}

.poster-score {
  right: 12px;
  background: linear-gradient(90deg, var(--rose-500), var(--orange-500));
}

.card-body {
  padding: 16px;
}

.card-title {
  display: block;
  min-height: 46px;
  color: var(--gray-900);
  font-size: 17px;
  font-weight: 900;
  line-height: 1.35;
}

.card-title:hover,
.rank-title:hover,
.category-overview-body a:hover {
  color: var(--rose-600);
}

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

.card-desc {
  color: var(--gray-700);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.tag-row span {
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--rose-600);
  background: var(--rose-50);
  font-size: 12px;
  font-weight: 800;
}

.movie-card-minimal .card-desc,
.movie-card-minimal .tag-row {
  display: none;
}

.movie-card-minimal .card-title {
  min-height: 40px;
  font-size: 15px;
}

.movie-card-large .card-title {
  font-size: 20px;
}

.soft-band {
  margin: 24px 0;
}

.cyan-band {
  background: linear-gradient(90deg, var(--cyan-50), var(--blue-50));
}

.rose-band {
  background: linear-gradient(135deg, var(--rose-50), #fff7fb, var(--orange-50));
}

.center-heading {
  margin-bottom: 28px;
  text-align: center;
}

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

.category-tile {
  position: relative;
  min-height: 238px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  border-radius: var(--radius-xl);
  color: var(--white);
  isolation: isolate;
  box-shadow: var(--shadow-card);
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.9), rgba(17, 24, 39, 0.18));
}

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

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

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

.category-tile strong,
.category-tile small {
  margin-top: 7px;
}

.category-tile small {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(135deg, var(--rose-500), var(--orange-400));
}

.page-hero {
  min-height: 330px;
  display: flex;
  align-items: flex-end;
  padding: 70px max(24px, calc((100vw - var(--container)) / 2));
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: -30% -10% auto auto;
  width: 520px;
  height: 520px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  filter: blur(6px);
}

.small-hero h1,
.ranking-hero h1,
.latest-hero h1 {
  font-size: clamp(34px, 5vw, 56px);
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
  padding: 18px;
  border: 1px solid rgba(244, 63, 94, 0.12);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.06);
}

.toolbar .card-filter-input {
  max-width: 360px;
}

.toolbar span {
  color: var(--rose-600);
  font-weight: 900;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 22px;
  align-items: center;
  padding: 18px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-card);
}

.category-cover-stack {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  overflow: hidden;
  border-radius: 18px;
}

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

.category-overview-body h2 {
  margin: 0 0 10px;
  font-size: 26px;
}

.category-overview-body p {
  color: var(--gray-500);
  line-height: 1.7;
}

.category-overview-body span {
  display: inline-flex;
  margin-top: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--rose-600);
  font-weight: 900;
  background: var(--rose-50);
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 70px 90px 1fr 70px;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.07);
}

.rank-num {
  color: var(--orange-500);
  font-size: 24px;
  font-weight: 950;
  text-align: center;
}

.rank-poster img {
  width: 90px;
  height: 120px;
  object-fit: cover;
  border-radius: 14px;
}

.rank-title {
  font-size: 20px;
  font-weight: 900;
}

.rank-info p {
  margin: 8px 0 0;
  color: var(--gray-500);
  line-height: 1.55;
}

.rank-score {
  color: var(--rose-600);
  font-size: 24px;
  text-align: right;
}

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

.detail-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.55;
  filter: blur(2px);
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.42));
}

.detail-inner {
  position: relative;
  z-index: 2;
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
  padding: 42px 0 70px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 42px;
  color: rgba(255, 255, 255, 0.74);
}

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

.detail-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 36px;
  align-items: end;
}

.detail-poster img {
  width: 300px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 8px solid rgba(255, 255, 255, 0.16);
  border-radius: 26px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
}

.detail-copy h1 {
  font-size: clamp(34px, 5vw, 60px);
}

.detail-tags span {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
}

.detail-section {
  padding-top: 46px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #050505;
  box-shadow: 0 28px 70px rgba(17, 24, 39, 0.28);
  aspect-ratio: 16 / 9;
}

.movie-player {
  width: 100%;
  height: 100%;
  display: block;
  background: #050505;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 0;
  color: var(--white);
  background: radial-gradient(circle at center, rgba(244, 63, 94, 0.28), rgba(0, 0, 0, 0.68));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-circle {
  width: 78px;
  height: 78px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 5px;
  border-radius: 999px;
  color: var(--rose-600);
  background: var(--white);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.25);
}

.player-cover strong {
  font-size: 20px;
}

.article-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 22px;
}

.article-card {
  padding: 28px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-card);
}

.article-card h2 {
  margin: 0 0 14px;
  font-size: 26px;
}

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

.accent-card {
  background: linear-gradient(135deg, #fff, var(--rose-50));
}

.site-footer {
  margin-top: 40px;
  color: var(--white);
  background: linear-gradient(90deg, var(--gray-900), var(--gray-800));
}

.footer-inner {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 30px;
  padding: 42px 0;
}

.footer-brand {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.footer-brand p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.75;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-content: start;
  justify-content: flex-end;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.72);
}

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

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

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

  .nav-toggle {
    display: block;
  }

  .mobile-nav.is-open {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

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

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

@media (max-width: 820px) {
  .header-inner {
    height: auto;
    min-height: 72px;
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .site-search {
    width: min(100%, 420px);
  }

  .header-actions {
    margin-left: auto;
  }

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

  .hero-content {
    bottom: 64px;
  }

  .hero-control {
    top: auto;
    bottom: 20px;
    transform: none;
  }

  .hero-prev {
    left: 20px;
  }

  .hero-next {
    right: 20px;
  }

  .four-col,
  .three-col,
  .six-col,
  .category-overview-grid,
  .article-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .category-overview-card,
  .detail-layout,
  .ranking-row {
    grid-template-columns: 1fr;
  }

  .detail-poster img {
    width: min(100%, 300px);
  }

  .rank-score,
  .rank-num {
    text-align: left;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

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

  .brand-text small {
    display: none;
  }

  .header-actions {
    width: 100%;
  }

  .site-search {
    flex: 1;
  }

  .mobile-nav.is-open,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .hero-content h1,
  .page-hero h1,
  .detail-copy h1 {
    font-size: 34px;
  }

  .hero-content p,
  .page-hero p,
  .detail-one-line {
    font-size: 16px;
  }

  .section-block {
    padding: 42px 0;
  }

  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .toolbar .card-filter-input {
    max-width: none;
  }

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