:root {
  --rose: #e11d48;
  --rose-dark: #be123c;
  --pink: #db2777;
  --amber: #f59e0b;
  --green: #16a34a;
  --blue: #2563eb;
  --ink: #111827;
  --muted: #6b7280;
  --soft: #fff1f2;
  --line: #ffe4e6;
  --white: #ffffff;
  --shadow: 0 20px 50px rgba(136, 19, 55, 0.12);
  --shadow-strong: 0 25px 70px rgba(136, 19, 55, 0.2);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--ink);
  background: linear-gradient(135deg, #fff1f2 0%, #ffffff 45%, #fffbeb 100%);
}

body.nav-open {
  overflow: hidden;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 228, 230, 0.8);
  box-shadow: 0 10px 30px rgba(225, 29, 72, 0.08);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-mark,
.footer-brand span {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, #fb7185, #db2777);
  box-shadow: 0 12px 24px rgba(219, 39, 119, 0.28);
}

.brand-text {
  display: grid;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 20px;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, var(--rose), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text em {
  font-size: 12px;
  color: var(--muted);
  font-style: normal;
  margin-top: 3px;
}

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

.desktop-nav a {
  position: relative;
  padding: 8px 0;
  transition: color 0.25s ease;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--rose), var(--pink));
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

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

.desktop-nav a:hover::after,
.desktop-nav a.is-active::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: #fff5f7;
  cursor: pointer;
  padding: 10px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--rose);
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  padding: 12px 22px 18px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.mobile-nav a {
  display: block;
  padding: 12px 0;
  color: #374151;
  font-weight: 700;
}

.hero {
  position: relative;
  min-height: 610px;
  overflow: hidden;
  background: #881337;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.25), transparent 28%),
    radial-gradient(circle at 80% 78%, rgba(245, 158, 11, 0.25), transparent 32%);
  z-index: 2;
  pointer-events: none;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
  transform: scale(1.02);
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(110deg, rgba(136, 19, 55, 0.96) 0%, rgba(190, 18, 60, 0.88) 38%, rgba(219, 39, 119, 0.68) 63%, rgba(245, 158, 11, 0.5) 100%),
    linear-gradient(0deg, rgba(17, 24, 39, 0.42), rgba(17, 24, 39, 0));
}

.hero-inner {
  position: relative;
  z-index: 3;
  max-width: 1180px;
  min-height: 610px;
  margin: 0 auto;
  padding: 84px 22px 54px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.68fr);
  align-items: center;
  gap: 44px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 18px;
}

.hero-kicker::before {
  content: "";
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.05em;
  text-shadow: 0 16px 46px rgba(0, 0, 0, 0.28);
}

.hero h1 a:hover {
  color: #fff7ed;
}

.hero-text {
  margin: 22px 0 0;
  max-width: 700px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 19px;
  line-height: 1.85;
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 900;
  border: 0;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: #fff;
  color: var(--rose);
  box-shadow: 0 20px 45px rgba(255, 255, 255, 0.25);
}

.btn-primary:hover {
  box-shadow: 0 24px 55px rgba(255, 255, 255, 0.36);
}

.btn-ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

.hero-panel {
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 22px;
  box-shadow: var(--shadow-strong);
}

.hero-panel img {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 22px;
  object-fit: cover;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.26);
}

.hero-panel h2 {
  color: #fff;
  margin: 18px 0 8px;
  font-size: 24px;
}

.hero-panel p {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.65;
  margin: 0;
}

.hero-controls {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-arrow,
.hero-dot {
  border: 0;
  cursor: pointer;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.hero-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 20px;
}

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

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

.hero-search {
  position: relative;
  z-index: 5;
  max-width: 1180px;
  margin: -34px auto 0;
  padding: 0 22px;
}

.search-shell {
  display: grid;
  grid-template-columns: 1fr 180px 150px auto;
  gap: 12px;
  padding: 14px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  border: 1px solid #ffe4e6;
}

.search-shell input,
.search-shell select,
.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid #fecdd3;
  background: #fff;
  color: #374151;
  border-radius: 16px;
  outline: none;
  padding: 13px 14px;
  font-size: 15px;
}

.search-shell input:focus,
.search-shell select:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.1);
}

.section,
.page-hero,
.content-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 70px 22px;
}

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

.section-heading h2,
.page-hero h1,
.content-card h1,
.detail-main h1 {
  margin: 0;
  color: #111827;
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: -0.04em;
}

.section-heading p,
.page-hero p,
.content-card p {
  color: var(--muted);
  line-height: 1.8;
  margin: 12px 0 0;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.08);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #fff1f2, #fffbeb);
}

.poster-link img {
  width: 100%;
  height: 238px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card-large .poster-link img {
  height: 390px;
}

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

.poster-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0) 58%);
}

.card-badge {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(225, 29, 72, 0.28);
}

.play-mark {
  position: absolute;
  z-index: 2;
  inset: 50% auto auto 50%;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--rose);
  background: rgba(255, 255, 255, 0.92);
  transform: translate(-50%, -50%) scale(0.86);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .play-mark {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.card-body {
  padding: 18px;
}

.card-meta,
.detail-meta,
.rank-info em,
.compact-card em {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.card-meta span + span::before,
.detail-meta span + span::before {
  content: "•";
  margin-right: 8px;
  color: #fda4af;
}

.card-body h3 {
  margin: 10px 0 8px;
  font-size: 19px;
  line-height: 1.35;
}

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

.card-body p {
  margin: 0;
  color: #6b7280;
  line-height: 1.65;
  font-size: 14px;
  min-height: 46px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag-row span {
  color: var(--rose);
  background: #fff1f2;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  padding: 26px;
  border-radius: 24px;
  color: #fff;
  background: linear-gradient(135deg, #e11d48, #db2777 58%, #f59e0b);
  box-shadow: var(--shadow);
}

.category-card:nth-child(2n) {
  background: linear-gradient(135deg, #db2777, #fb7185 52%, #f59e0b);
}

.category-card:nth-child(3n) {
  background: linear-gradient(135deg, #be123c, #e11d48 52%, #fb923c);
}

.category-card::after {
  content: "";
  position: absolute;
  right: -54px;
  top: -54px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.category-card h2,
.category-card h3 {
  margin: 0 0 12px;
  font-size: 28px;
}

.category-card p {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.75;
}

.category-card span {
  font-weight: 900;
}

.rank-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.8fr);
  gap: 28px;
}

.rank-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

.rank-item a {
  display: grid;
  grid-template-columns: 48px 72px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rank-item a:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.rank-no {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  font-weight: 900;
}

.rank-item img {
  width: 72px;
  height: 88px;
  border-radius: 14px;
  object-fit: cover;
}

.rank-info {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.rank-info strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-info em {
  font-style: normal;
}

.rank-score {
  color: var(--rose);
  font-size: 20px;
  font-weight: 900;
}

.page-hero {
  padding-top: 74px;
  padding-bottom: 42px;
}

.page-hero-box,
.content-card,
.detail-shell,
.filter-panel {
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid #ffe4e6;
  box-shadow: var(--shadow);
}

.page-hero-box {
  padding: 42px;
  background:
    radial-gradient(circle at 88% 10%, rgba(251, 146, 60, 0.26), transparent 26%),
    linear-gradient(135deg, #fff, #fff1f2);
}

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

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

.breadcrumb strong {
  color: #111827;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(4, minmax(130px, 0.45fr));
  gap: 12px;
  padding: 16px;
  margin-bottom: 26px;
}

.no-result {
  display: none;
  padding: 22px;
  text-align: center;
  color: var(--muted);
  background: #fff;
  border-radius: 20px;
  border: 1px solid #ffe4e6;
}

.no-result.is-show {
  display: block;
}

.detail-shell {
  padding: 22px;
}

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

.player-card {
  overflow: hidden;
  border-radius: 26px;
  background: #0f172a;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
}

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

.player-box video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

.play-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.2));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-layer.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-trigger {
  width: 86px;
  height: 86px;
  border: 0;
  border-radius: 50%;
  color: var(--rose);
  background: rgba(255, 255, 255, 0.94);
  font-size: 32px;
  cursor: pointer;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.26);
  transition: transform 0.2s ease;
}

.play-trigger:hover {
  transform: scale(1.05);
}

.detail-main h1 {
  margin-top: 24px;
}

.detail-meta {
  margin: 14px 0 22px;
}

.detail-main p {
  color: #4b5563;
  font-size: 16px;
  line-height: 1.95;
}

.detail-section {
  margin-top: 28px;
  padding-top: 26px;
  border-top: 1px solid #ffe4e6;
}

.detail-section h2 {
  margin: 0 0 14px;
  font-size: 26px;
}

.side-card {
  padding: 18px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.07);
}

.side-card + .side-card {
  margin-top: 20px;
}

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

.cover-card {
  overflow: hidden;
  border-radius: 22px;
  background: #fff1f2;
}

.cover-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.info-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.info-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #ffe4e6;
  color: #6b7280;
}

.info-list strong {
  color: #111827;
  text-align: right;
}

.compact-grid {
  display: grid;
  gap: 12px;
}

.compact-card a {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: #fff7f8;
  transition: background 0.25s ease, transform 0.25s ease;
}

.compact-card a:hover {
  background: #ffe4e6;
  transform: translateX(3px);
}

.compact-card img {
  width: 70px;
  height: 86px;
  object-fit: cover;
  border-radius: 14px;
}

.compact-card span {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.compact-card strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-card em {
  font-style: normal;
  line-height: 1.45;
}

.site-footer {
  margin-top: 30px;
  border-top: 1px solid #ffe4e6;
  background: linear-gradient(135deg, #fff1f2, #fff7ed);
}

.footer-grid {
  max-width: 1180px;
  margin: 0 auto;
  padding: 46px 22px 26px;
  display: grid;
  grid-template-columns: 1.15fr 0.7fr 1.1fr;
  gap: 32px;
}

.footer-brand strong {
  color: #111827;
  font-size: 20px;
}

.site-footer p {
  color: var(--muted);
  line-height: 1.8;
}

.site-footer h3 {
  margin: 0 0 14px;
  font-size: 16px;
}

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

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

.footer-links a {
  color: #4b5563;
}

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

.footer-bottom {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 22px 28px;
  color: var(--muted);
  border-top: 1px solid rgba(225, 29, 72, 0.12);
  font-size: 14px;
}

@media (max-width: 1024px) {
  .hero-inner,
  .detail-layout,
  .rank-layout {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    display: none;
  }

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

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

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

  .nav-toggle {
    display: block;
  }

  body.nav-open .mobile-nav {
    display: block;
  }

  .brand-text strong {
    font-size: 18px;
  }

  .hero,
  .hero-inner {
    min-height: 560px;
  }

  .hero-inner {
    padding-top: 66px;
  }

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

  .search-shell,
  .filter-panel {
    grid-template-columns: 1fr;
  }

  .section,
  .page-hero,
  .content-wrap {
    padding: 46px 16px;
  }

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

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

  .poster-link img,
  .card-large .poster-link img {
    height: 260px;
  }

  .rank-item a {
    grid-template-columns: 40px 58px 1fr;
  }

  .rank-score {
    display: none;
  }

  .page-hero-box,
  .detail-shell {
    padding: 24px;
  }
}
