* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(244, 63, 94, 0.12);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.header-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #111827;
}

.brand {
  font-size: 22px;
}

.brand-mark,
.footer-logo span {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, #fb7185, #f97316);
  box-shadow: 0 12px 24px rgba(244, 63, 94, 0.3);
}

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

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: #4b5563;
  font-weight: 700;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #e11d48;
  background: #fff1f2;
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #fff1f2;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 99px;
  background: #e11d48;
}

.mobile-nav {
  display: none;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px 18px;
}

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

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

.mobile-category-link {
  padding: 10px 12px;
  border-radius: 14px;
  background: #ffffff;
  color: #9f1239;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.hero {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: linear-gradient(135deg, #f43f5e, #fb923c, #f59e0b);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s 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 {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.08));
}

.hero-copy {
  position: absolute;
  left: 50%;
  bottom: 92px;
  width: min(1280px, calc(100% - 40px));
  transform: translateX(-50%);
  color: #ffffff;
  max-width: 720px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fde68a;
  font-weight: 900;
  margin-bottom: 14px;
}

.hero-copy h1 {
  margin: 0 0 16px;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero-copy p {
  max-width: 640px;
  margin: 0 0 28px;
  color: #e5e7eb;
  font-size: 18px;
  line-height: 1.8;
}

.hero-actions,
.detail-info .primary-button {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 26px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.primary-button {
  color: #e11d48;
  background: #ffffff;
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.18);
}

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

.ghost-button {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  font-size: 40px;
  line-height: 1;
  transition: background 0.25s ease, transform 0.25s ease;
}

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

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

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

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

.hero-categories {
  position: absolute;
  right: max(24px, calc((100vw - 1280px) / 2 + 20px));
  bottom: 92px;
  max-width: 360px;
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-chip,
.filter-chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(12px);
  font-weight: 800;
}

.content-section,
.page-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 56px 20px;
}

.compact-section {
  padding-top: 0;
  padding-bottom: 0;
}

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

.section-heading > div:last-child {
  flex: 1;
}

.section-icon {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #ffffff;
  font-size: 24px;
  background: linear-gradient(135deg, #fb7185, #f97316);
  box-shadow: 0 14px 24px rgba(244, 63, 94, 0.18);
}

.section-heading h2,
.center-title,
.ranking-section h2,
.related-section h2,
.article-section h2,
.player-section h2 {
  margin: 0;
  color: #111827;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.section-heading p {
  margin: 6px 0 0;
  color: #6b7280;
}

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

.grid {
  display: grid;
  gap: 24px;
}

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

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

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

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

.movie-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

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

.card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #fecdd3, #fed7aa);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.movie-card:hover .card-media img {
  transform: scale(1.08);
}

.card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
  transition: opacity 0.28s ease;
}

.movie-card:hover .card-media::after {
  opacity: 1;
}

.type-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(10px);
  font-size: 12px;
  font-weight: 800;
}

.type-badge {
  right: 12px;
  bottom: 12px;
}

.rank-badge {
  left: 12px;
  top: 12px;
  min-width: 34px;
  height: 34px;
  background: linear-gradient(135deg, #f43f5e, #f97316);
  box-shadow: 0 10px 18px rgba(244, 63, 94, 0.25);
}

.card-body {
  padding: 18px;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  margin-bottom: 10px;
  border-radius: 8px;
  color: #e11d48;
  background: #ffe4e6;
  font-size: 12px;
  font-weight: 900;
}

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

.movie-card:hover .card-body h3 {
  color: #e11d48;
}

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

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #6b7280;
  font-size: 13px;
  font-weight: 700;
}

.movie-card-large .card-media {
  aspect-ratio: 16 / 11;
}

.movie-card-horizontal {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
}

.movie-card-horizontal .card-media {
  height: 100%;
  min-height: 168px;
  aspect-ratio: auto;
}

.movie-card-horizontal .card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.movie-card-minimal {
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

.movie-card-minimal:hover {
  transform: none;
  box-shadow: none;
}

.movie-card-minimal .card-media {
  aspect-ratio: 4 / 5;
  border-radius: 16px;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
}

.movie-card-minimal .card-body {
  padding: 12px 0 0;
}

.movie-card-minimal .category-pill,
.movie-card-minimal .card-body p {
  display: none;
}

.movie-card-minimal .card-body h3 {
  min-height: 42px;
  margin-bottom: 8px;
  font-size: 15px;
}

.soft-panel {
  margin: 22px 0;
  padding: 54px 0;
}

.cyan-panel {
  background: linear-gradient(90deg, #ecfeff, #eff6ff);
}

.rose-panel {
  background: linear-gradient(135deg, #fff1f2, #fdf2f8, #fff7ed);
}

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

.category-tile,
.category-overview-card {
  display: block;
  overflow: hidden;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile {
  padding: 24px;
}

.category-tile:hover,
.category-overview-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 44px rgba(15, 23, 42, 0.14);
}

.category-tile span,
.category-overview-body h2 {
  display: block;
  margin: 0 0 8px;
  color: #111827;
  font-size: 22px;
  font-weight: 900;
}

.category-tile small,
.category-overview-body p {
  display: block;
  color: #6b7280;
  line-height: 1.7;
}

.page-banner {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 42px;
  padding: 34px;
  border-radius: 26px;
  color: #ffffff;
  box-shadow: 0 20px 40px rgba(244, 63, 94, 0.16);
}

.page-banner-rose {
  background: linear-gradient(135deg, #f43f5e, #f97316);
}

.page-banner-orange {
  background: linear-gradient(135deg, #fb7185, #f59e0b);
}

.page-banner-cyan {
  background: linear-gradient(135deg, #06b6d4, #3b82f6);
}

.page-banner-icon {
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  font-size: 34px;
}

.page-banner h1 {
  margin: 0 0 8px;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.1;
}

.page-banner p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.8;
}

.category-covers {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  height: 150px;
  background: #ffe4e6;
}

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

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

.category-overview-body span {
  display: inline-flex;
  align-items: center;
  margin-top: 14px;
  color: #e11d48;
  font-weight: 900;
}

.filter-row,
.filter-buttons {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.filter-chip {
  color: #9f1239;
  background: #ffffff;
  border-color: #ffe4e6;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
}

.category-list {
  align-items: start;
}

.ranking-section {
  margin-bottom: 46px;
}

.ranking-section h2 {
  margin-bottom: 24px;
}

.search-panel {
  margin-bottom: 32px;
  padding: 24px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.search-label {
  display: block;
  margin-bottom: 10px;
  color: #111827;
  font-weight: 900;
}

.search-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  margin-bottom: 16px;
}

.search-box input {
  min-height: 52px;
  width: 100%;
  border: 1px solid #fecdd3;
  border-radius: 16px;
  padding: 0 18px;
  outline: none;
  background: #fff7f8;
}

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

.search-box button,
.filter-button {
  border: 0;
  border-radius: 999px;
  color: #9f1239;
  background: #fff1f2;
  font-weight: 900;
  cursor: pointer;
}

.search-box button {
  padding: 0 20px;
}

.filter-button {
  min-height: 40px;
  padding: 0 16px;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.filter-button:hover,
.filter-button.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, #fb7185, #f97316);
  transform: translateY(-1px);
}

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

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

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

.detail-shell {
  padding-top: 34px;
}

.detail-hero {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  margin-bottom: 42px;
  padding: 30px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 241, 242, 0.8));
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.1);
}

.detail-poster {
  overflow: hidden;
  border-radius: 24px;
  aspect-ratio: 4 / 5;
  box-shadow: 0 22px 38px rgba(15, 23, 42, 0.18);
}

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

.detail-info h1 {
  margin: 0 0 16px;
  color: #111827;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.detail-one-line {
  max-width: 760px;
  margin: 0 0 20px;
  color: #4b5563;
  font-size: 18px;
  line-height: 1.8;
}

.detail-meta,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.detail-meta span,
.tag-list span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: #ffffff;
  color: #4b5563;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.tag-list span {
  color: #9f1239;
  background: #ffe4e6;
}

.player-section,
.article-section,
.related-section {
  margin-bottom: 42px;
  padding: 28px;
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.player-section h2,
.article-section h2,
.related-section h2 {
  margin-bottom: 22px;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #111827;
  aspect-ratio: 16 / 9;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 14px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.22));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-overlay.is-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: 50%;
  color: #e11d48;
  background: #ffffff;
  font-size: 34px;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.28);
}

.article-section p {
  margin: 0;
  color: #4b5563;
  font-size: 17px;
  line-height: 1.95;
}

.site-footer {
  margin-top: 30px;
  color: #d1d5db;
  background: #111827;
}

.footer-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 20px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}

.footer-brand p {
  max-width: 420px;
  color: #9ca3af;
  line-height: 1.8;
}

.footer-logo {
  margin-bottom: 14px;
  color: #ffffff;
  font-size: 20px;
}

.footer-links {
  display: grid;
  gap: 10px;
  align-content: start;
}

.footer-links h2 {
  margin: 0 0 4px;
  color: #fb7185;
  font-size: 16px;
}

.footer-links a {
  color: #9ca3af;
  transition: color 0.25s ease;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 20px;
  color: #9ca3af;
  text-align: center;
  font-size: 14px;
}

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

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

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

  .hero-categories {
    display: none;
  }

  .detail-hero {
    grid-template-columns: 280px minmax(0, 1fr);
  }
}

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

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

  .hero {
    height: 540px;
  }

  .hero-copy {
    bottom: 78px;
  }

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

  .hero-arrow {
    width: 44px;
    height: 44px;
    font-size: 32px;
  }

  .hero-prev {
    left: 12px;
  }

  .hero-next {
    right: 12px;
  }

  .grid-two,
  .grid-three,
  .grid-four,
  .grid-six {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .movie-card-horizontal {
    grid-template-columns: 130px minmax(0, 1fr);
  }

  .movie-card-horizontal .card-media {
    min-height: 150px;
  }

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

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

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

@media (max-width: 560px) {
  .header-shell {
    min-height: 64px;
  }

  .brand {
    font-size: 18px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .hero {
    height: 520px;
  }

  .hero-copy {
    width: calc(100% - 32px);
    bottom: 70px;
  }

  .hero-copy h1 {
    font-size: 34px;
  }

  .hero-actions {
    align-items: stretch;
  }

  .primary-button,
  .ghost-button {
    width: 100%;
  }

  .content-section,
  .page-shell {
    padding: 38px 16px;
  }

  .section-heading,
  .page-banner {
    align-items: flex-start;
  }

  .section-heading,
  .page-banner,
  .detail-hero,
  .player-section,
  .article-section,
  .related-section {
    padding: 22px;
  }

  .grid-two,
  .grid-three,
  .grid-four,
  .grid-six,
  .category-grid,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

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

  .movie-card-horizontal .card-media {
    aspect-ratio: 16 / 10;
  }

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