:root {
  --rose: #f43f5e;
  --rose-dark: #be123c;
  --pink: #ec4899;
  --amber: #f59e0b;
  --ink: #1f2937;
  --muted: #6b7280;
  --soft: #fff1f2;
  --paper: #ffffff;
  --line: #ffe4e6;
  --shadow: 0 20px 50px rgba(244, 63, 94, 0.15);
}

body {
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(244, 63, 94, 0.14), transparent 32rem),
    linear-gradient(180deg, #fff7f8 0%, #ffffff 36%, #fff7ed 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

img {
  background: linear-gradient(135deg, #fff1f2, #fff7ed);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 30px rgba(244, 63, 94, 0.08);
  backdrop-filter: blur(16px);
}

.nav-wrap {
  width: min(1200px, calc(100% - 32px));
  height: 70px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--rose);
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: 22px;
  font-weight: 800;
  white-space: nowrap;
}

.brand-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #fff;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  box-shadow: 0 10px 24px rgba(244, 63, 94, 0.28);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
  font-size: 15px;
  color: #4b5563;
}

.desktop-nav a,
.mobile-panel a,
.footer-links a,
.text-link,
.section-head > a {
  transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.mobile-panel a:hover,
.footer-links a:hover,
.text-link:hover,
.section-head > a:hover {
  color: var(--rose);
}

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

.nav-search input,
.mobile-panel input,
.hero-search input,
.filter-bar input,
.filter-bar select {
  height: 42px;
  border: 1px solid #fecdd3;
  border-radius: 999px;
  background: #fff;
  padding: 0 16px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-search input:focus,
.mobile-panel input:focus,
.hero-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.12);
}

.nav-search button,
.mobile-panel button,
.hero-search button,
.primary-btn {
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  border-radius: 999px;
  padding: 0 20px;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  box-shadow: 0 12px 28px rgba(244, 63, 94, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-search button:hover,
.mobile-panel button:hover,
.hero-search button:hover,
.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(244, 63, 94, 0.3);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: var(--ink);
  background: #fff1f2;
}

.mobile-panel {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
}

.mobile-panel form {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.mobile-panel input {
  flex: 1;
}

.mobile-panel a {
  display: block;
  padding: 11px 4px;
  border-bottom: 1px solid #ffe4e6;
  color: #4b5563;
}

.hero-carousel {
  width: min(1200px, calc(100% - 32px));
  margin: 30px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.7fr);
  gap: 24px;
}

.hero-stage {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border-radius: 32px;
  background: #111827;
  box-shadow: var(--shadow);
}

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

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

.hero-image {
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.46), rgba(17, 24, 39, 0.18)),
    linear-gradient(0deg, rgba(17, 24, 39, 0.9), transparent 52%);
}

.hero-content {
  position: absolute;
  left: clamp(26px, 5vw, 58px);
  bottom: clamp(32px, 6vw, 70px);
  width: min(620px, calc(100% - 52px));
  color: #fff;
}

.hero-kicker,
.section-eyebrow,
.card-category {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: var(--rose);
  background: #fff1f2;
  border: 1px solid #ffe4e6;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 700;
}

.hero-content .hero-kicker {
  color: #fff;
  background: rgba(244, 63, 94, 0.76);
  border-color: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
}

.hero-content h1 {
  margin-top: 18px;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.hero-content p {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 17px;
  line-height: 1.8;
}

.hero-meta,
.detail-meta,
.mini-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.hero-meta span,
.detail-meta span,
.mini-meta span {
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  padding: 6px 12px;
  font-size: 13px;
  backdrop-filter: blur(10px);
}

.detail-meta span,
.mini-meta span {
  color: #4b5563;
  background: #fff1f2;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.ghost-btn {
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  color: #fff;
  padding: 0 20px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  transition: transform 0.2s ease, background 0.2s ease;
}

.ghost-btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.22);
}

.ghost-btn.light {
  color: var(--rose);
  border-color: #fecdd3;
  background: #fff;
}

.hero-dots {
  position: absolute;
  right: 24px;
  bottom: 24px;
  display: flex;
  gap: 8px;
  z-index: 3;
}

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

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

.hero-panel,
.soft-panel,
.category-overview-card,
.player-section,
.detail-content article {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hero-panel h2,
.section-head h2,
.page-hero h1,
.detail-info h1,
.player-section h2,
.detail-content h2,
.category-overview-card h2 {
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-weight: 900;
  color: #1f2937;
}

.hero-panel h2 {
  font-size: 32px;
}

.hero-panel p,
.page-hero p,
.category-overview-card p,
.detail-info p,
.detail-content p,
.hot-info p,
.card-body p {
  color: var(--muted);
  line-height: 1.75;
}

.hero-search {
  display: flex;
  gap: 8px;
}

.hero-search input {
  flex: 1;
}

.hero-mini-list {
  display: grid;
  gap: 12px;
  max-height: 330px;
  overflow: auto;
  padding-right: 4px;
}

.section-block,
.page-hero,
.filter-bar,
.breadcrumb,
.detail-hero,
.detail-content {
  width: min(1200px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.section-block {
  margin-top: 54px;
}

.soft-panel {
  padding: 28px;
}

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

.section-head h2 {
  margin-top: 10px;
  font-size: clamp(28px, 4vw, 42px);
}

.section-head > a,
.text-link {
  color: var(--rose);
  font-weight: 700;
}

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

.category-tile {
  position: relative;
  min-height: 180px;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 14px 34px rgba(244, 63, 94, 0.12);
  isolation: isolate;
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.76), rgba(17, 24, 39, 0.05));
}

.category-tile img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.category-tile:hover img,
.movie-card:hover img,
.hot-item:hover img {
  transform: scale(1.06);
}

.category-tile span,
.category-tile p {
  position: absolute;
  left: 18px;
  right: 18px;
  color: #fff;
}

.category-tile span {
  bottom: 56px;
  font-size: 21px;
  font-weight: 900;
}

.category-tile p {
  bottom: 18px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 13px;
  line-height: 1.5;
}

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(244, 63, 94, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: #fda4af;
  box-shadow: 0 20px 45px rgba(244, 63, 94, 0.18);
}

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

.poster-link img,
.hot-poster img,
.detail-cover img,
.overview-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.poster-meta,
.rank-badge {
  position: absolute;
  top: 12px;
  border-radius: 999px;
  color: #fff;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 800;
}

.poster-meta {
  right: 12px;
  background: rgba(0, 0, 0, 0.56);
}

.rank-badge {
  left: 12px;
  background: linear-gradient(135deg, var(--amber), var(--rose));
}

.card-body {
  padding: 16px;
}

.card-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.card-rating {
  color: var(--amber);
  font-weight: 800;
  font-size: 14px;
}

.card-body h3 {
  min-height: 48px;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.45;
}

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

.card-body p {
  min-height: 72px;
  margin-top: 9px;
  font-size: 14px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.tag-row span {
  border-radius: 999px;
  color: #be123c;
  background: #fff1f2;
  padding: 4px 9px;
  font-size: 12px;
}

.hot-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

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

.hot-item {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  padding: 12px;
  box-shadow: 0 12px 30px rgba(244, 63, 94, 0.08);
}

.hot-poster {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 16px;
  background: #111827;
}

.hot-info {
  min-width: 0;
}

.hot-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--rose);
  font-size: 13px;
  font-weight: 800;
}

.hot-rank {
  display: inline-grid;
  min-width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--amber), var(--rose));
}

.hot-info h3 {
  margin-top: 8px;
  font-size: 18px;
  font-weight: 900;
}

.hot-info p {
  margin-top: 8px;
  font-size: 14px;
}

.mini-meta {
  margin-top: 10px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  margin-top: 28px;
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(244, 63, 94, 0.12), rgba(236, 72, 153, 0.08)),
    #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: clamp(32px, 6vw, 64px);
}

.small-hero {
  text-align: center;
}

.page-hero h1 {
  margin-top: 12px;
  font-size: clamp(34px, 5vw, 60px);
}

.page-hero p {
  max-width: 760px;
  margin: 18px auto 0;
  font-size: 17px;
}

.category-hero {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}

.category-hero img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 18px 42px rgba(244, 63, 94, 0.2);
}

.compact-actions .ghost-btn {
  color: var(--rose);
  border-color: #fecdd3;
  background: #fff;
}

.filter-bar {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 34px rgba(244, 63, 94, 0.1);
}

.filter-bar input {
  flex: 1;
  min-width: 220px;
}

.filter-bar select {
  min-width: 150px;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 20px;
  padding: 18px;
}

.overview-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.overview-preview a {
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 3 / 4;
}

.category-overview-card h2 {
  font-size: 28px;
}

.category-overview-card p {
  margin: 10px 0 14px;
}

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

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

.detail-hero {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 32px;
  margin-top: 20px;
  border-radius: 32px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, #fff, #fff1f2);
  box-shadow: var(--shadow);
  padding: clamp(22px, 4vw, 34px);
}

.detail-cover {
  overflow: hidden;
  border-radius: 26px;
  aspect-ratio: 3 / 4;
  background: #111827;
  box-shadow: 0 18px 44px rgba(244, 63, 94, 0.2);
}

.detail-info {
  align-self: center;
}

.detail-info h1 {
  margin-top: 14px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.1;
}

.detail-info p {
  margin-top: 18px;
  font-size: 18px;
}

.detail-tags {
  margin-top: 20px;
}

.player-section {
  width: min(1200px, calc(100% - 32px));
  margin: 34px auto 0;
  padding: clamp(18px, 3vw, 28px);
}

.player-section h2 {
  margin-bottom: 16px;
  font-size: clamp(26px, 4vw, 38px);
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #030712;
  aspect-ratio: 16 / 9;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #fff;
  background: linear-gradient(180deg, rgba(3, 7, 18, 0.12), rgba(3, 7, 18, 0.68));
  z-index: 3;
}

.player-overlay[hidden] {
  display: none;
}

.play-circle {
  display: grid;
  width: 74px;
  height: 74px;
  place-items: center;
  border-radius: 999px;
  color: var(--rose);
  background: #fff;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.28);
  font-size: 30px;
  transition: transform 0.2s ease;
}

.player-overlay:hover .play-circle {
  transform: scale(1.08);
}

.detail-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.detail-content article {
  padding: 26px;
}

.detail-content h2 {
  margin-bottom: 12px;
  font-size: 28px;
}

.related-block {
  margin-bottom: 60px;
}

.empty-tip {
  margin-top: 20px;
  color: var(--muted);
  text-align: center;
}

.site-footer {
  margin-top: 70px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.8);
}

.footer-inner {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 30px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #6b7280;
}

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

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

  .menu-toggle {
    display: grid;
    place-items: center;
    margin-left: auto;
  }

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

  .hero-stage,
  .hero-image {
    min-height: 500px;
  }

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

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

@media (max-width: 820px) {
  .nav-wrap {
    height: 64px;
  }

  .brand {
    font-size: 19px;
  }

  .hero-carousel,
  .section-block,
  .page-hero,
  .filter-bar,
  .breadcrumb,
  .detail-hero,
  .detail-content,
  .player-section {
    width: min(100% - 22px, 1200px);
  }

  .hero-stage,
  .hero-image {
    min-height: 460px;
  }

  .hero-panel {
    padding: 20px;
  }

  .hero-search,
  .filter-bar,
  .footer-inner,
  .section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .filter-bar input,
  .filter-bar select {
    width: 100%;
    min-width: 0;
  }

  .category-grid,
  .movie-grid,
  .large-grid,
  .related-grid,
  .hot-list,
  .ranking-list,
  .overview-grid,
  .detail-content {
    grid-template-columns: 1fr;
  }

  .category-hero,
  .detail-hero,
  .category-overview-card {
    grid-template-columns: 1fr;
  }

  .category-hero img,
  .detail-cover {
    max-width: 360px;
    margin: 0 auto;
  }

  .footer-inner,
  .footer-links {
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .hero-content {
    left: 20px;
    bottom: 28px;
    width: calc(100% - 40px);
  }

  .hero-content p {
    font-size: 15px;
  }

  .hero-dots {
    left: 20px;
    right: auto;
  }

  .hot-item {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 12px;
  }

  .card-body h3 {
    min-height: auto;
  }

  .card-body p {
    min-height: auto;
  }
}
