:root {
  --rose: #f43f5e;
  --rose-dark: #e11d48;
  --pink: #ec4899;
  --orange: #f97316;
  --amber: #f59e0b;
  --ink: #1f2937;
  --muted: #6b7280;
  --soft: #fff7ed;
  --line: #ffe4e6;
  --panel: #ffffff;
  --shadow: 0 20px 60px rgba(244, 63, 94, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 15% 8%, rgba(244, 63, 94, 0.12), transparent 34%),
    radial-gradient(circle at 90% 0%, rgba(249, 115, 22, 0.14), transparent 30%),
    linear-gradient(180deg, #fff7ed 0%, #ffffff 30%, #fff1f2 100%);
  min-height: 100vh;
}

body.no-scroll {
  overflow: hidden;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 247, 237, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 228, 230, 0.95);
  box-shadow: 0 8px 28px rgba(244, 63, 94, 0.08);
}

.nav-wrap {
  max-width: 1240px;
  height: 68px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.5px;
  background: linear-gradient(90deg, var(--rose), var(--pink), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.logo-mark {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  box-shadow: 0 12px 26px rgba(244, 63, 94, 0.28);
  -webkit-background-clip: border-box;
  background-clip: border-box;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 26px;
  font-weight: 700;
  color: #374151;
}

.nav-menu a {
  position: relative;
  transition: color 0.2s ease;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--rose), var(--orange));
  transition: width 0.2s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--rose-dark);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

.nav-search {
  position: relative;
  min-width: 220px;
}

.nav-search input,
.nav-search-mobile input,
.search-panel input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid rgba(251, 113, 133, 0.32);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  outline: none;
  padding: 12px 18px;
  font: inherit;
  box-shadow: 0 10px 24px rgba(244, 63, 94, 0.06);
  transition: all 0.2s ease;
}

.nav-search input {
  padding-left: 42px;
}

.nav-search input:focus,
.search-panel input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--rose);
  box-shadow: 0 12px 30px rgba(244, 63, 94, 0.16);
}

.search-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--rose);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: #ffe4e6;
  color: var(--rose-dark);
  font-size: 24px;
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--line);
  padding: 16px 22px 22px;
  background: rgba(255, 255, 255, 0.96);
}

.mobile-panel a {
  display: block;
  padding: 12px 4px;
  font-weight: 800;
  color: #374151;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 22px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 44px 0 34px;
}

.hero-frame {
  position: relative;
  min-height: 540px;
  border-radius: 34px;
  overflow: hidden;
  background: linear-gradient(120deg, #9f1239 0%, #db2777 44%, #f97316 100%);
  box-shadow: 0 30px 90px rgba(159, 18, 57, 0.25);
}

.hero-frame::before,
.hero-frame::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(4px);
  pointer-events: none;
}

.hero-frame::before {
  width: 410px;
  height: 410px;
  left: -130px;
  top: -150px;
  background: rgba(255, 255, 255, 0.18);
}

.hero-frame::after {
  width: 520px;
  height: 520px;
  right: -160px;
  bottom: -220px;
  background: rgba(255, 255, 255, 0.14);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: 36px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(18px);
  transition: opacity 0.55s ease, transform 0.55s ease, visibility 0.55s ease;
  padding: 58px;
  color: #ffffff;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 14px;
  font-weight: 800;
  backdrop-filter: blur(12px);
}

.hero h1,
.hero h2 {
  margin: 22px 0 18px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -1.5px;
}

.hero p {
  max-width: 660px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 1.8;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 13px 22px;
  min-height: 46px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 16px 32px rgba(244, 63, 94, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 42px rgba(244, 63, 94, 0.32);
}

.btn.light {
  color: #9f1239;
  background: rgba(255, 255, 255, 0.92);
}

.btn.ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: none;
}

.hero-tags,
.card-tags,
.meta-list,
.category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags span,
.card-tags span,
.meta-list span,
.category-chips a {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.hero-tags span {
  padding: 8px 12px;
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.16);
}

.hero-poster {
  position: relative;
  min-height: 420px;
  border-radius: 32px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.24);
  transform: rotate(1deg);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  display: block;
  transition: transform 0.55s ease;
}

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

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(15, 23, 42, 0.62));
}

.hero-score {
  position: absolute;
  left: 20px;
  bottom: 20px;
  z-index: 2;
  padding: 10px 14px;
  border-radius: 18px;
  color: #fff;
  font-weight: 900;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(12px);
}

.hero-dots {
  position: absolute;
  left: 58px;
  bottom: 36px;
  z-index: 5;
  display: flex;
  gap: 10px;
}

.hero-dots button {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

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

.section {
  padding: 44px 0;
}

.section.alt {
  background: linear-gradient(90deg, rgba(255, 241, 242, 0.82), rgba(255, 247, 237, 0.9));
}

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

.section-title {
  margin: 0;
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: -0.8px;
}

.section-desc {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.link-more {
  color: var(--rose-dark);
  font-weight: 900;
  white-space: nowrap;
}

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

.movie-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 228, 230, 0.92);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 40px rgba(244, 63, 94, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  border-color: rgba(244, 63, 94, 0.4);
  box-shadow: 0 24px 60px rgba(244, 63, 94, 0.18);
}

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

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

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

.badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 7px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(244, 63, 94, 0.22);
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}

.card-title {
  margin: 0 0 10px;
  color: #111827;
  font-size: 18px;
  line-height: 1.35;
}

.card-title a:hover {
  color: var(--rose-dark);
}

.card-desc {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.68;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-tags {
  margin-top: auto;
}

.card-tags span,
.meta-list span {
  padding: 6px 9px;
  color: #9f1239;
  background: #fff1f2;
}

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

.category-chips a {
  padding: 11px 16px;
  color: #9f1239;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 12px 26px rgba(244, 63, 94, 0.08);
  transition: all 0.2s ease;
}

.category-chips a:hover {
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  transform: translateY(-3px);
}

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

.category-card {
  border-radius: 24px;
  padding: 24px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--pink), var(--orange));
  box-shadow: var(--shadow);
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease;
}

.category-card:hover {
  transform: translateY(-6px);
}

.category-card strong {
  font-size: 24px;
}

.category-card span {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
}

.page-hero {
  padding: 58px 0 34px;
}

.page-hero-box {
  border-radius: 32px;
  padding: 48px;
  color: #ffffff;
  background:
    radial-gradient(circle at 16% 18%, rgba(255, 255, 255, 0.23), transparent 28%),
    linear-gradient(120deg, #9f1239, #db2777 52%, #f97316);
  box-shadow: 0 26px 80px rgba(159, 18, 57, 0.2);
}

.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(32px, 4vw, 52px);
  letter-spacing: -1px;
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
}

.breadcrumb a:hover {
  color: #ffffff;
}

.filter-panel,
.search-panel {
  margin: 0 0 28px;
  padding: 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 228, 230, 0.95);
  box-shadow: 0 18px 45px rgba(244, 63, 94, 0.1);
}

.filter-row {
  display: grid;
  grid-template-columns: 1fr 180px 180px;
  gap: 14px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 72px 126px minmax(0, 1fr) 120px;
  gap: 18px;
  align-items: center;
  border: 1px solid rgba(255, 228, 230, 0.95);
  border-radius: 24px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 36px rgba(244, 63, 94, 0.08);
}

.rank-num {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--rose), var(--orange));
}

.rank-cover {
  aspect-ratio: 16 / 10;
  border-radius: 18px;
  overflow: hidden;
  background: #ffe4e6;
}

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

.rank-title {
  margin: 0 0 8px;
  font-size: 19px;
}

.rank-desc {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rank-side {
  color: var(--rose-dark);
  font-weight: 900;
  text-align: right;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) 360px;
  gap: 28px;
  align-items: start;
}

.player-card,
.detail-card,
.side-card {
  border-radius: 28px;
  border: 1px solid rgba(255, 228, 230, 0.95);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 20px 55px rgba(244, 63, 94, 0.12);
  overflow: hidden;
}

.player-box {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #111827;
}

.player-box video {
  width: 100%;
  height: 100%;
  display: block;
  background: #111827;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.16), rgba(15, 23, 42, 0.72));
}

.player-cover.is-hidden {
  display: none;
}

.play-button {
  width: 86px;
  height: 86px;
  border: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  padding-left: 5px;
  color: #ffffff;
  font-size: 34px;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  box-shadow: 0 18px 44px rgba(244, 63, 94, 0.34);
  cursor: pointer;
}

.player-caption {
  padding: 22px 24px 24px;
}

.player-caption h1 {
  margin: 0 0 14px;
  font-size: clamp(28px, 4vw, 46px);
  letter-spacing: -0.8px;
}

.player-caption p {
  margin: 0;
  color: var(--muted);
  line-height: 1.85;
  font-size: 16px;
}

.detail-card {
  padding: 26px;
}

.detail-card h2,
.side-card h2 {
  margin: 0 0 16px;
  font-size: 26px;
}

.detail-card p {
  color: #4b5563;
  line-height: 1.9;
}

.side-card {
  padding: 22px;
}

.poster-large {
  overflow: hidden;
  border-radius: 22px;
  background: #ffe4e6;
  aspect-ratio: 16 / 10;
  margin-bottom: 18px;
}

.poster-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

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

.related-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.related-item img {
  width: 96px;
  height: 66px;
  object-fit: cover;
  border-radius: 14px;
  background: #ffe4e6;
}

.related-item strong {
  display: block;
  margin-bottom: 5px;
  line-height: 1.35;
}

.related-item span {
  color: var(--muted);
  font-size: 13px;
}

.site-footer {
  margin-top: 56px;
  padding: 34px 0;
  color: #6b7280;
  background: rgba(255, 255, 255, 0.76);
  border-top: 1px solid var(--line);
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 18px;
  font-weight: 800;
}

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

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

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

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

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

@media (max-width: 860px) {
  .nav-menu,
  .nav-search {
    display: none;
  }

  .menu-button {
    display: inline-grid;
    place-items: center;
  }

  .mobile-panel.is-open {
    display: block;
  }

  .hero-frame {
    min-height: 780px;
    border-radius: 26px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    padding: 32px 24px 70px;
  }

  .hero-poster,
  .hero-poster img {
    min-height: 300px;
  }

  .hero-dots {
    left: 26px;
    bottom: 28px;
  }

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

  .filter-row {
    grid-template-columns: 1fr;
  }

  .rank-item {
    grid-template-columns: 48px 94px minmax(0, 1fr);
  }

  .rank-side {
    grid-column: 3;
    text-align: left;
  }

  .page-hero-box {
    padding: 34px 24px;
  }
}

@media (max-width: 560px) {
  .nav-wrap,
  .container,
  .footer-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .logo {
    font-size: 20px;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .hero-frame {
    min-height: 820px;
  }

  .hero h1,
  .hero h2 {
    font-size: 36px;
  }

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

  .rank-item {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .rank-cover {
    display: none;
  }

  .rank-side {
    grid-column: 2;
  }

  .related-item {
    grid-template-columns: 84px minmax(0, 1fr);
  }

  .related-item img {
    width: 84px;
    height: 58px;
  }
}
