* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
  font: inherit;
}

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

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

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #f97316;
}

.logo-mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, #f97316, #ec4899);
  box-shadow: 0 14px 28px rgba(249, 115, 22, 0.28);
  font-size: 15px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 15px;
  font-weight: 700;
  color: #4b5563;
}

.nav-link {
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #f97316;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: #fff7ed;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-button span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #f97316;
}

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

.mobile-menu.is-open {
  display: grid;
  gap: 10px;
}

.mobile-link {
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff7ed;
  color: #4b5563;
  font-weight: 700;
}

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

.section {
  padding: 70px 0;
}

.section-head {
  margin-bottom: 28px;
}

.section-head.center {
  text-align: center;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

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

.section-head h2 {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, #f97316, #ec4899);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-head p {
  margin: 0;
  color: #6b7280;
  line-height: 1.8;
}

.hero-slider {
  position: relative;
  height: 70vh;
  min-height: 560px;
  overflow: hidden;
  background: #0f172a;
}

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

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 20%, rgba(236, 72, 153, 0.35), transparent 32%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.1));
}

.hero-content {
  position: absolute;
  left: max(24px, calc((100% - 1180px) / 2));
  top: 50%;
  width: min(640px, calc(100% - 48px));
  transform: translateY(-50%);
  color: #fff;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: #f97316;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(249, 115, 22, 0.35);
}

.hero-content h1,
.hero-content h2 {
  margin: 0 0 18px;
  font-size: clamp(38px, 7vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.06em;
}

.hero-content p {
  margin: 0 0 32px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.75;
}

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

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

.primary-button {
  padding: 14px 28px;
  color: #fff;
  background: linear-gradient(90deg, #f97316, #ec4899);
  box-shadow: 0 16px 36px rgba(236, 72, 153, 0.26);
}

.primary-button:hover,
.white-button:hover,
.movie-card:hover,
.category-card:hover {
  transform: translateY(-4px) scale(1.01);
}

.ghost-button {
  padding: 13px 26px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
}

.white-button {
  padding: 15px 34px;
  color: #f97316;
  background: #fff;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.16);
}

.text-link {
  color: #f97316;
  font-size: 15px;
}

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

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

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

.category-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.category-card {
  min-height: 164px;
  padding: 22px;
  border-radius: 24px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
  transition: transform 0.26s ease, box-shadow 0.26s ease;
  overflow: hidden;
}

.category-card:hover {
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.2);
}

.category-card strong {
  display: block;
  font-size: 20px;
}

.category-card em {
  margin-top: 8px;
  font-style: normal;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  line-height: 1.55;
}

.category-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 22px;
}

.from-pink { background: linear-gradient(135deg, #f472b6, #fb7185); }
.from-blue { background: linear-gradient(135deg, #60a5fa, #a855f7); }
.from-orange { background: linear-gradient(135deg, #fb923c, #ef4444); }
.from-dark { background: linear-gradient(135deg, #4b5563, #111827); }
.from-rose { background: linear-gradient(135deg, #fb7185, #f43f5e); }
.from-yellow { background: linear-gradient(135deg, #facc15, #f97316); }
.from-red { background: linear-gradient(135deg, #ef4444, #b91c1c); }
.from-purple { background: linear-gradient(135deg, #a855f7, #ec4899); }
.from-amber { background: linear-gradient(135deg, #f59e0b, #d97706); }
.from-teal { background: linear-gradient(135deg, #14b8a6, #0f766e); }
.from-green { background: linear-gradient(135deg, #22c55e, #15803d); }
.from-violet { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }

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

.movie-grid.three { grid-template-columns: repeat(3, 1fr); }
.movie-grid.four { grid-template-columns: repeat(4, 1fr); }
.movie-grid.six { grid-template-columns: repeat(6, 1fr); }

.movie-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.movie-cover {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #111827;
}

.movie-card.large .movie-cover {
  aspect-ratio: 1 / 1;
}

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

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

.cover-shade {
  position: absolute;
  inset: auto 0 0;
  height: 58%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.52), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.movie-card:hover .cover-shade {
  opacity: 1;
}

.type-pill,
.rank-badge {
  position: absolute;
  top: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.18);
}

.type-pill {
  right: 12px;
  color: #f97316;
  background: #fff;
}

.rank-badge {
  left: 12px;
  color: #fff;
  background: linear-gradient(135deg, #f97316, #ec4899);
}

.movie-body {
  padding: 18px;
}

.movie-title {
  display: block;
  margin-bottom: 8px;
  color: #1f2937;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.35;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  transition: color 0.2s ease;
}

.movie-card:hover .movie-title {
  color: #f97316;
}

.movie-meta,
.movie-desc,
.horizontal-info p {
  margin: 0;
  color: #6b7280;
  line-height: 1.65;
}

.movie-meta {
  font-size: 13px;
  margin-bottom: 10px;
}

.movie-desc {
  min-height: 54px;
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  color: #9ca3af;
  font-size: 12px;
}

.score {
  color: #f59e0b;
  font-weight: 900;
  white-space: nowrap;
}

.soft-band {
  background: linear-gradient(90deg, rgba(255, 237, 213, 0.86), rgba(252, 231, 243, 0.86));
}

.two-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 34px;
}

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

.horizontal-card {
  display: flex;
  align-items: stretch;
  gap: 16px;
  padding: 14px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.rank-number {
  width: 38px;
  min-width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, #f97316, #ec4899);
  font-weight: 900;
}

.horizontal-cover {
  width: 96px;
  min-width: 96px;
  border-radius: 14px;
  overflow: hidden;
  background: #111827;
}

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

.horizontal-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.horizontal-title {
  color: #1f2937;
  font-size: 18px;
  font-weight: 900;
  margin-bottom: 6px;
}

.horizontal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  color: #6b7280;
  font-size: 13px;
}

.horizontal-meta span,
.horizontal-meta strong {
  padding: 4px 8px;
  border-radius: 999px;
  background: #fff7ed;
}

.cta-section {
  padding: 78px 0;
  color: #fff;
  background: linear-gradient(135deg, #f97316, #ec4899);
}

.cta-inner {
  text-align: center;
}

.cta-inner h2 {
  margin: 0 0 16px;
  font-size: clamp(32px, 5vw, 54px);
}

.cta-inner p {
  margin: 0 auto 28px;
  max-width: 680px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 1.8;
}

.inner-page {
  min-height: 80vh;
}

.page-hero {
  padding: 64px 0;
  color: #fff;
  background:
    radial-gradient(circle at 78% 20%, rgba(236, 72, 153, 0.35), transparent 34%),
    linear-gradient(135deg, #f97316, #ec4899);
}

.page-hero h1 {
  margin: 18px 0 14px;
  font-size: clamp(36px, 6vw, 62px);
  line-height: 1.1;
  letter-spacing: -0.05em;
}

.page-hero p:last-child {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  line-height: 1.8;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
}

.breadcrumb:not(.light) {
  color: rgba(255, 255, 255, 0.88);
}

.catalog-tools {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 220px 180px;
  gap: 14px;
  padding: 18px;
  margin-bottom: 26px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.search-box,
.select-box {
  display: grid;
  gap: 8px;
  color: #4b5563;
  font-size: 13px;
  font-weight: 800;
}

.search-box input,
.select-box select {
  width: 100%;
  height: 46px;
  border: 1px solid #fed7aa;
  border-radius: 14px;
  padding: 0 14px;
  outline: none;
  color: #1f2937;
  background: #fff;
}

.search-box input:focus,
.select-box select:focus {
  border-color: #f97316;
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.14);
}

.category-preview {
  padding: 34px 0;
  border-bottom: 1px solid rgba(249, 115, 22, 0.14);
}

.quick-panel {
  padding: 30px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.quick-panel h2 {
  margin: 0 0 14px;
  color: #1f2937;
  font-size: 28px;
}

.quick-panel p {
  color: #6b7280;
  line-height: 1.8;
}

.detail-hero-section {
  padding: 36px 0 70px;
  color: #fff;
  background:
    radial-gradient(circle at 80% 10%, rgba(236, 72, 153, 0.36), transparent 36%),
    linear-gradient(135deg, #111827, #3b0764 52%, #7c2d12);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.9fr);
  gap: 30px;
  align-items: stretch;
  margin-top: 22px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 26px;
  background: #020617;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.36);
}

.player-shell video,
.player-cover,
.player-cover img {
  width: 100%;
  height: 100%;
}

.player-shell video {
  object-fit: contain;
  background: #000;
}

.player-cover {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  color: #fff;
  cursor: pointer;
  overflow: hidden;
  background: #000;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.player-cover img {
  object-fit: cover;
  opacity: 0.72;
  filter: saturate(1.08);
}

.player-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.64), rgba(0, 0, 0, 0.1));
}

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

.play-circle {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #f97316, #ec4899);
  box-shadow: 0 20px 50px rgba(236, 72, 153, 0.38);
  font-size: 30px;
  padding-left: 5px;
}

.player-cover strong {
  position: absolute;
  left: 50%;
  top: calc(50% + 66px);
  z-index: 2;
  transform: translateX(-50%);
  font-size: 18px;
  letter-spacing: 0.04em;
}

.detail-info-card {
  padding: 30px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.detail-info-card h1 {
  margin: 0 0 16px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.detail-one-line {
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.8;
}

.detail-stats,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-stats span,
.tag-list span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.tag-list {
  margin-top: 18px;
}

.detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}

.content-card {
  padding: 30px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.content-card h2 {
  margin: 0 0 14px;
  color: #1f2937;
  font-size: 26px;
}

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

.site-footer {
  background: linear-gradient(135deg, #fff7ed, #fdf2f8);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 52px 0;
  display: grid;
  grid-template-columns: 1.35fr 0.75fr 1fr;
  gap: 34px;
}

.footer-brand p {
  max-width: 440px;
  color: #6b7280;
  line-height: 1.8;
}

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

.footer-group h2 {
  margin: 0 0 8px;
  font-size: 20px;
  color: #1f2937;
}

.footer-group a {
  color: #6b7280;
  transition: color 0.2s ease;
}

.footer-group a:hover {
  color: #f97316;
}

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

.footer-category-links h2 {
  grid-column: 1 / -1;
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 30px;
  border-top: 1px solid rgba(249, 115, 22, 0.18);
  color: #6b7280;
  text-align: center;
  font-size: 14px;
}

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

@media (max-width: 1120px) {
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

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

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

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

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

  .hero-slider {
    min-height: 610px;
    height: 78vh;
  }

  .hero-content {
    top: 54%;
  }

  .hero-actions,
  .section-head.split {
    align-items: stretch;
    flex-direction: column;
  }

  .category-grid,
  .movie-grid.three,
  .movie-grid.four,
  .movie-grid.six,
  .detail-content,
  .footer-inner,
  .catalog-tools {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 52px 0;
  }

  .horizontal-card {
    gap: 12px;
  }

  .horizontal-cover {
    width: 82px;
    min-width: 82px;
  }

  .rank-number {
    display: none;
  }

  .detail-hero-section {
    padding-top: 24px;
  }

  .detail-info-card,
  .content-card,
  .quick-panel {
    padding: 22px;
  }
}

.link-directory {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 22px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.link-directory a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  color: #4b5563;
  background: #fff7ed;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.link-directory a:hover {
  color: #f97316;
  background: #ffedd5;
}

@media (max-width: 760px) {
  .link-directory {
    grid-template-columns: 1fr;
  }
}
