:root {
  --color-text: #111827;
  --color-muted: #6b7280;
  --color-soft: #f9fafb;
  --color-border: #e5e7eb;
  --color-rose: #e11d48;
  --color-rose-dark: #be123c;
  --color-orange: #f97316;
  --color-amber: #f59e0b;
  --color-dark: #111827;
  --shadow-soft: 0 12px 32px rgba(15, 23, 42, 0.10);
  --shadow-strong: 0 22px 55px rgba(15, 23, 42, 0.18);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--color-text);
  background: linear-gradient(180deg, #f9fafb 0%, #ffffff 50%, #fff7ed 100%);
  line-height: 1.6;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
}

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: #ffffff;
  border-radius: 999px;
  background: linear-gradient(135deg, #fb7185, #fb923c);
  box-shadow: 0 12px 24px rgba(225, 29, 72, 0.22);
  transition: transform 0.25s ease;
}

.logo:hover .logo-mark,
.footer-logo:hover .logo-mark {
  transform: scale(1.08) rotate(3deg);
}

.logo-text {
  font-size: 24px;
  line-height: 1;
  background: linear-gradient(90deg, var(--color-rose), var(--color-orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 15px;
  font-weight: 650;
  color: #374151;
}

.desktop-nav a,
.mobile-nav a {
  transition: color 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active,
.mobile-nav a:hover,
.mobile-nav a.is-active {
  color: var(--color-rose);
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 0;
  border-radius: 12px;
  background: #f3f4f6;
  cursor: pointer;
}

.mobile-menu-button span {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 999px;
  background: #111827;
}

.mobile-nav {
  display: none;
  padding: 12px 24px 20px;
  border-top: 1px solid var(--color-border);
  background: #ffffff;
}

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

.hero-section {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: linear-gradient(100deg, #ffe4e6 0%, #fff7ed 48%, #fef3c7 100%);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.36;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='grid' width='60' height='60' patternUnits='userSpaceOnUse'%3E%3Cpath d='M 10 0 L 0 0 0 10' fill='none' stroke='rgba(251,113,133,0.35)' stroke-width='1'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100%25' height='100%25' fill='url(%23grid)'/%3E%3C/svg%3E");
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
  gap: 56px;
  align-items: center;
  min-height: 620px;
  padding: 64px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--color-rose-dark);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 25px rgba(225, 29, 72, 0.12);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero-copy h1,
.sub-hero h1,
.detail-copy h1 {
  margin: 0;
  font-size: clamp(40px, 6vw, 70px);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.hero-copy h1 span {
  background: linear-gradient(90deg, var(--color-rose), var(--color-orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy p,
.sub-hero p,
.detail-copy p {
  max-width: 660px;
  margin: 24px 0 0;
  color: #4b5563;
  font-size: 18px;
}

.hero-search,
.filter-panel {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 30px;
}

.hero-search input,
.filter-panel input {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(229, 231, 235, 0.95);
  border-radius: 999px;
  padding: 0 20px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
  color: var(--color-text);
  font-size: 15px;
  outline: none;
}

.hero-search input:focus,
.filter-panel input:focus {
  border-color: #fb7185;
  box-shadow: 0 0 0 4px rgba(251, 113, 133, 0.16);
}

.hero-search button,
.button-primary,
.button-secondary,
.hero-slide-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  white-space: nowrap;
}

.hero-search button,
.button-primary,
.hero-slide-card a {
  color: #ffffff;
  background: linear-gradient(90deg, var(--color-rose), var(--color-orange));
  box-shadow: 0 16px 34px rgba(225, 29, 72, 0.24);
}

.button-secondary {
  color: #111827;
  background: #ffffff;
  border: 2px solid #e5e7eb;
}

.hero-search button:hover,
.button-primary:hover,
.button-secondary:hover,
.hero-slide-card a:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-strong);
}

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

.hero-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-categories a,
.tag,
.filter-button {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(251, 113, 133, 0.22);
  background: rgba(255, 255, 255, 0.78);
  color: #9f1239;
  font-size: 13px;
  font-weight: 750;
}

.hero-categories a,
.tag {
  padding: 8px 12px;
}

.hero-carousel {
  position: relative;
  min-height: 520px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px) scale(0.98);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.hero-poster-link {
  display: block;
  height: 100%;
  overflow: hidden;
  border-radius: 32px;
  background: linear-gradient(135deg, #fecdd3, #fed7aa);
  box-shadow: 0 30px 80px rgba(127, 29, 29, 0.25);
}

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

.poster-image.is-missing {
  opacity: 0;
}

.hero-slide-card {
  position: absolute;
  right: 24px;
  bottom: 24px;
  left: 24px;
  padding: 24px;
  border-radius: 24px;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.35), rgba(17, 24, 39, 0.86));
  backdrop-filter: blur(14px);
}

.hero-slide-card span {
  color: #fed7aa;
  font-size: 13px;
  font-weight: 800;
}

.hero-slide-card h2 {
  margin: 8px 0;
  font-size: 30px;
  line-height: 1.15;
}

.hero-slide-card p {
  display: -webkit-box;
  margin: 0 0 16px;
  overflow: hidden;
  color: #f3f4f6;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.hero-dots {
  position: absolute;
  right: 24px;
  top: 24px;
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
}

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

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

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.03em;
}

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

.section-icon,
.section-link {
  color: var(--color-rose);
  font-weight: 800;
}

.featured-grid,
.rank-grid,
.movie-grid,
.category-grid,
.category-overview-grid {
  display: grid;
  gap: 24px;
}

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

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

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

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

.movie-card {
  min-width: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(229, 231, 235, 0.85);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

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

.movie-card__poster,
.detail-poster,
.category-card,
.category-overview-card__images {
  position: relative;
  background: linear-gradient(135deg, #ffe4e6, #fed7aa);
}

.movie-card__poster {
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.movie-card__poster img,
.detail-poster img,
.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.movie-card:hover .movie-card__poster img,
.category-card:hover img {
  transform: scale(1.08);
}

.movie-card__play {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-rose), var(--color-orange));
  box-shadow: 0 14px 28px rgba(225, 29, 72, 0.28);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.movie-card:hover .movie-card__play {
  opacity: 1;
  transform: translateY(0);
}

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #e11d48);
  font-size: 12px;
  font-weight: 900;
}

.movie-card__body {
  padding: 18px;
}

.movie-card__meta,
.movie-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 700;
}

.movie-card h3 {
  display: -webkit-box;
  min-height: 48px;
  margin: 8px 0;
  overflow: hidden;
  color: #111827;
  font-size: 17px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color 0.2s ease;
}

.movie-card:hover h3 {
  color: var(--color-rose);
}

.movie-card p {
  display: -webkit-box;
  min-height: 44px;
  margin: 0 0 14px;
  overflow: hidden;
  color: #6b7280;
  font-size: 13px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-card__footer span:last-child {
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.movie-card--compact .movie-card__body {
  padding: 14px;
}

.warm-section {
  background: linear-gradient(90deg, #fffbeb, #fff7ed);
}

.dark-section {
  color: #ffffff;
  background: linear-gradient(135deg, #111827, #1f2937);
}

.dark-section .section-heading p,
.dark-section .movie-card p,
.dark-section .movie-card__meta,
.dark-section .movie-card__footer {
  color: #d1d5db;
}

.dark-section .movie-card {
  background: rgba(31, 41, 55, 0.92);
  border-color: rgba(75, 85, 99, 0.7);
}

.dark-section .movie-card h3 {
  color: #ffffff;
}

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

.category-card {
  min-height: 250px;
  overflow: hidden;
  border-radius: var(--radius-xl);
  color: #ffffff;
  box-shadow: var(--shadow-soft);
}

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

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.12), rgba(17, 24, 39, 0.86));
}

.category-card div {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: end;
  min-height: 250px;
  padding: 22px;
}

.category-card span,
.category-overview-card span {
  color: #fed7aa;
  font-size: 13px;
  font-weight: 900;
}

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

.category-card p,
.category-overview-card p {
  margin: 0;
  color: #f3f4f6;
  font-size: 14px;
}

.filter-panel {
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.filter-panel input {
  flex: 1 1 280px;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-button {
  padding: 10px 14px;
  cursor: pointer;
}

.filter-button.is-active {
  color: #ffffff;
  background: linear-gradient(90deg, var(--color-rose), var(--color-orange));
}

.result-count {
  margin: 0 0 24px;
  color: var(--color-muted);
  font-weight: 700;
}

.sub-hero {
  padding: 92px 0 78px;
  background: linear-gradient(100deg, #ffe4e6, #fff7ed 56%, #fef3c7);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  color: #6b7280;
  font-size: 14px;
  font-weight: 700;
}

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

.category-overview-card {
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(229, 231, 235, 0.85);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-overview-card__images {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  height: 180px;
  overflow: hidden;
}

.category-overview-card__images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-overview-card__body {
  padding: 22px;
}

.category-overview-card p {
  color: var(--color-muted);
}

.category-overview-card strong {
  display: inline-flex;
  margin-top: 16px;
  color: var(--color-rose);
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: #111827;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.36;
  filter: blur(8px);
  transform: scale(1.04);
}

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

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

.detail-hero__content {
  position: relative;
  z-index: 1;
  padding: 58px 0 70px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.35);
  aspect-ratio: 3 / 4;
}

.detail-copy h1 {
  color: #ffffff;
}

.detail-copy p {
  color: #e5e7eb;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

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

.video-player {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #030712;
  box-shadow: var(--shadow-strong);
  aspect-ratio: 16 / 9;
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle at center, rgba(225, 29, 72, 0.3), rgba(3, 7, 18, 0.72));
  cursor: pointer;
}

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

.play-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 82px;
  height: 82px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-rose), var(--color-orange));
  box-shadow: 0 22px 44px rgba(225, 29, 72, 0.36);
  font-size: 30px;
}

.play-overlay strong {
  font-size: 24px;
}

.play-overlay small {
  color: #fed7aa;
}

.player-message {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 14px;
  margin: 0;
  color: #fecdd3;
  font-size: 14px;
  text-align: center;
}

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

.content-card {
  padding: 28px;
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(229, 231, 235, 0.85);
}

.content-card h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.content-card p {
  margin: 0;
  color: #4b5563;
}

.meta-card {
  grid-column: 1 / -1;
}

.meta-card dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
}

.meta-card dl div {
  padding: 16px;
  border-radius: 16px;
  background: #f9fafb;
}

.meta-card dt {
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 800;
}

.meta-card dd {
  margin: 6px 0 0;
  color: #111827;
  font-weight: 750;
}

.meta-card a {
  color: var(--color-rose);
}

.site-footer {
  color: #d1d5db;
  background: linear-gradient(135deg, #111827, #1f2937);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding: 56px 0 36px;
}

.footer-logo {
  color: #ffffff;
  font-size: 22px;
}

.site-footer p {
  max-width: 440px;
  color: #9ca3af;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: #ffffff;
}

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

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  border-top: 1px solid rgba(156, 163, 175, 0.22);
  color: #9ca3af;
  font-size: 13px;
}

@media (max-width: 1100px) {
  .movie-grid,
  .ranking-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

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

  .hero-grid,
  .detail-grid,
  .footer-grid,
  .detail-content {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 32px;
    padding: 42px 0 56px;
  }

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

  .featured-grid,
  .movie-grid,
  .ranking-strip,
  .rank-grid,
  .category-grid,
  .category-overview-grid,
  .meta-card dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .header-inner {
    min-height: 64px;
  }

  .logo-mark {
    width: 36px;
    height: 36px;
  }

  .logo-text {
    font-size: 20px;
  }

  .hero-section,
  .hero-grid {
    min-height: auto;
  }

  .hero-search,
  .filter-panel,
  .section-heading,
  .footer-bottom {
    align-items: stretch;
    flex-direction: column;
  }

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

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

  .hero-slide-card {
    right: 14px;
    bottom: 14px;
    left: 14px;
    padding: 18px;
  }

  .hero-slide-card h2 {
    font-size: 24px;
  }

  .featured-grid,
  .movie-grid,
  .ranking-strip,
  .rank-grid,
  .category-grid,
  .category-overview-grid,
  .meta-card dl {
    grid-template-columns: 1fr;
  }

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

  .sub-hero {
    padding: 60px 0 54px;
  }

  .movie-card__body {
    padding: 16px;
  }
}
