* {
  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(180deg, #fff7ed 0%, #fdf2f8 44%, #fff7ed 100%);
}

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

img {
  display: block;
  width: 100%;
  height: auto;
}

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(253, 242, 248, 0.96), rgba(255, 247, 237, 0.96));
  border-bottom: 1px solid #fbcfe8;
  box-shadow: 0 10px 30px rgba(244, 114, 182, 0.12);
  backdrop-filter: blur(16px);
}

.header-inner {
  max-width: 1280px;
  height: 70px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.logo-icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #f472b6, #fb923c);
  box-shadow: 0 10px 24px rgba(244, 114, 182, 0.32);
}

.logo-text,
.footer-logo span:last-child {
  font-size: 22px;
  background: linear-gradient(90deg, #ec4899, #f97316);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link {
  color: #4b5563;
  font-weight: 700;
  transition: color 0.2s ease, transform 0.2s ease;
}

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

.header-search,
.mobile-search,
.wide-search,
.search-page-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.mobile-search input,
.wide-search input,
.search-page-form input,
.filter-bar input,
.filter-bar select {
  border: 1px solid #fbcfe8;
  background: rgba(255, 255, 255, 0.88);
  color: #374151;
  border-radius: 999px;
  outline: none;
  padding: 10px 16px;
  min-width: 0;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.header-search input {
  width: 190px;
}

.header-search input:focus,
.mobile-search input:focus,
.wide-search input:focus,
.search-page-form input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: #f472b6;
  box-shadow: 0 0 0 4px rgba(244, 114, 182, 0.18);
}

.header-search button,
.mobile-search button,
.wide-search button,
.search-page-form button {
  border: 0;
  color: #ffffff;
  font-weight: 800;
  border-radius: 999px;
  padding: 10px 18px;
  background: linear-gradient(135deg, #ec4899, #fb923c);
  cursor: pointer;
  box-shadow: 0 10px 18px rgba(236, 72, 153, 0.22);
}

.mobile-toggle {
  display: none;
  border: 0;
  border-radius: 12px;
  padding: 8px 12px;
  color: #4b5563;
  background: #fce7f3;
  cursor: pointer;
}

.mobile-panel {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 18px;
}

.mobile-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.mobile-nav a {
  padding: 12px 14px;
  border-radius: 14px;
  color: #4b5563;
  background: rgba(255, 255, 255, 0.68);
}

.hero-section {
  position: relative;
  overflow: hidden;
}

.hero-slider {
  position: relative;
  min-height: 620px;
  background: linear-gradient(120deg, #f472b6, #fb923c, #fde68a);
}

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

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08);
}

.hero-layer {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.32), transparent 28%),
    linear-gradient(90deg, rgba(17, 24, 39, 0.82), rgba(236, 72, 153, 0.42), rgba(251, 146, 60, 0.25));
}

.hero-content {
  position: absolute;
  inset: 0;
  max-width: 1280px;
  margin: 0 auto;
  padding: 96px 24px 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #ffffff;
}

.hero-kicker,
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: #be185d;
  background: #fce7f3;
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.hero-kicker {
  color: #831843;
  background: rgba(252, 231, 243, 0.92);
  margin-bottom: 16px;
}

.hero-content h1 {
  max-width: 840px;
  margin: 0 0 10px;
  font-size: clamp(34px, 6vw, 68px);
  line-height: 1.05;
  text-shadow: 0 18px 42px rgba(0, 0, 0, 0.36);
}

.hero-content h2 {
  margin: 0 0 14px;
  font-size: clamp(24px, 3.8vw, 42px);
  color: #fde68a;
}

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

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

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

.primary-btn {
  color: #ffffff;
  background: linear-gradient(135deg, #ec4899, #fb923c);
  box-shadow: 0 18px 35px rgba(236, 72, 153, 0.32);
}

.ghost-btn {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.primary-btn:hover,
.ghost-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 35px rgba(236, 72, 153, 0.28);
}

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

.hero-prev,
.hero-next,
.hero-dot {
  border: 0;
  cursor: pointer;
}

.hero-prev,
.hero-next {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 30px;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
}

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

.section-block {
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 24px;
}

.intro-strip {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 520px);
  gap: 28px;
  align-items: center;
}

.intro-strip h2,
.section-title-row h2,
.side-panel h2,
.page-hero h1,
.content-page h2,
.detail-intro h1,
.content-card h2 {
  margin: 12px 0;
  color: #1f2937;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.18;
}

.intro-strip p,
.page-hero p,
.content-page p,
.content-card p,
.detail-intro p {
  color: #4b5563;
  line-height: 1.9;
}

.wide-search {
  background: #ffffff;
  border: 1px solid #fbcfe8;
  border-radius: 24px;
  padding: 14px;
  box-shadow: 0 20px 50px rgba(236, 72, 153, 0.14);
}

.wide-search input,
.search-page-form input {
  flex: 1;
}

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

.section-title-row a {
  color: #ec4899;
  font-weight: 900;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(251, 207, 232, 0.85);
  box-shadow: 0 14px 36px rgba(236, 72, 153, 0.12);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 50px rgba(236, 72, 153, 0.2);
}

.movie-poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #fce7f3, #ffedd5);
}

.movie-poster img,
.detail-cover img,
.rank-poster img,
.small-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.movie-card:hover .movie-poster img,
.small-card:hover img,
.rank-item:hover img {
  transform: scale(1.08);
}

.poster-shade {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.58));
  transition: opacity 0.25s ease;
}

.play-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%) scale(0.92);
  opacity: 0;
  color: #ffffff;
  border-radius: 999px;
  background: linear-gradient(135deg, #ec4899, #fb923c);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .poster-shade,
.movie-card:hover .play-badge {
  opacity: 1;
}

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

.movie-info {
  padding: 18px;
}

.movie-meta-line,
.rank-meta,
.detail-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  color: #6b7280;
  font-size: 13px;
}

.pill {
  color: #be185d;
  background: #fce7f3;
  border-radius: 999px;
  padding: 5px 10px;
  font-weight: 800;
}

.movie-info h3 {
  margin: 12px 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

.movie-info h3 a:hover,
.rank-title:hover,
.small-card:hover strong {
  color: #ec4899;
}

.movie-info p {
  min-height: 48px;
  margin: 0 0 14px;
  color: #6b7280;
  line-height: 1.65;
  font-size: 14px;
}

.tag-row,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-row span,
.detail-tags span {
  color: #9d174d;
  background: #fdf2f8;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 12px;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(300px, 0.7fr);
  gap: 28px;
}

.rank-panel,
.side-panel,
.content-card,
.filter-bar,
.player-wrap,
.category-card,
.page-hero,
.content-page article {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(251, 207, 232, 0.82);
  border-radius: 28px;
  box-shadow: 0 18px 50px rgba(236, 72, 153, 0.13);
}

.rank-panel,
.side-panel {
  padding: 28px;
}

.compact-title h2 {
  font-size: 30px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(135deg, #fff, #fff7ed);
  border: 1px solid #fed7aa;
}

.rank-poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 14px;
  background: #fce7f3;
}

.rank-poster span {
  position: absolute;
  left: 8px;
  top: 8px;
  min-width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 900;
  border-radius: 999px;
  background: linear-gradient(135deg, #ec4899, #fb923c);
}

.rank-title {
  color: #1f2937;
  font-weight: 900;
  font-size: 18px;
}

.rank-item p {
  margin: 8px 0;
  color: #6b7280;
  line-height: 1.6;
}

.side-card-list {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.small-card {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 14px;
  align-items: center;
  overflow: hidden;
  border-radius: 18px;
  padding: 10px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
}

.small-card img {
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  background: #fce7f3;
}

.small-card strong,
.small-card em {
  display: block;
}

.small-card em {
  margin-top: 6px;
  color: #6b7280;
  font-style: normal;
  font-size: 13px;
}

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

.category-card {
  padding: 24px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 50px rgba(236, 72, 153, 0.2);
}

.category-main span {
  display: block;
  color: #ec4899;
  font-size: 26px;
  font-weight: 900;
}

.category-main strong {
  display: block;
  margin-top: 10px;
  color: #4b5563;
  line-height: 1.7;
}

.category-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.category-links a {
  color: #9d174d;
  background: #fce7f3;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 13px;
}

.gradient-section {
  max-width: none;
  padding-left: calc((100vw - min(1280px, calc(100vw - 48px))) / 2 + 24px);
  padding-right: calc((100vw - min(1280px, calc(100vw - 48px))) / 2 + 24px);
  background: linear-gradient(135deg, #fce7f3, #ffedd5);
}

.page-hero {
  max-width: 1280px;
  margin: 34px auto 0;
  padding: 54px 24px;
  text-align: center;
  background: linear-gradient(135deg, rgba(252, 231, 243, 0.92), rgba(255, 237, 213, 0.92));
}

.page-hero .section-eyebrow {
  margin: 0 auto;
}

.page-hero p {
  max-width: 820px;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  color: #6b7280;
}

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

.filter-bar {
  display: flex;
  gap: 12px;
  padding: 18px;
  margin-bottom: 28px;
}

.filter-keyword {
  flex: 1;
}

.ranking-page-list .rank-item {
  grid-template-columns: 110px 1fr;
}

.search-page-form {
  max-width: 720px;
  margin: 28px auto 0;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: #111827;
}

.detail-bg {
  position: absolute;
  inset: 0;
  opacity: 0.26;
}

.detail-bg img {
  height: 100%;
  object-fit: cover;
  filter: blur(10px) saturate(1.1);
  transform: scale(1.05);
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.94), rgba(157, 23, 77, 0.68), rgba(249, 115, 22, 0.42));
}

.detail-shell {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}

.detail-shell .breadcrumb {
  justify-content: flex-start;
  color: rgba(255, 255, 255, 0.72);
}

.detail-shell .breadcrumb a {
  color: #fbcfe8;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: 34px;
  align-items: center;
  margin-top: 34px;
}

.detail-cover {
  overflow: hidden;
  border-radius: 28px;
  aspect-ratio: 3 / 4;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
  background: #fce7f3;
}

.detail-intro h1 {
  color: #ffffff;
  font-size: clamp(34px, 5vw, 58px);
}

.detail-intro p {
  max-width: 780px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
}

.detail-tags {
  margin: 22px 0;
}

.detail-facts {
  color: rgba(255, 255, 255, 0.84);
  margin-bottom: 28px;
}

.player-section {
  padding-top: 44px;
}

.player-wrap {
  position: relative;
  overflow: hidden;
  padding: 0;
  background: #020617;
  aspect-ratio: 16 / 9;
}

.movie-player {
  width: 100%;
  height: 100%;
  display: block;
  background: #020617;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.18), rgba(0, 0, 0, 0.46));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-cover span {
  width: 86px;
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 36px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ec4899, #fb923c);
  box-shadow: 0 22px 60px rgba(236, 72, 153, 0.36);
}

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

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

.content-card {
  padding: 30px;
}

.content-card h2 {
  font-size: 26px;
}

.soft-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 237, 213, 0.92));
}

.meta-card {
  grid-column: 1 / -1;
}

.meta-card dl {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px 18px;
  margin: 0;
}

.meta-card dt {
  color: #9d174d;
  font-weight: 900;
}

.meta-card dd {
  margin: 0;
  color: #4b5563;
}

.content-page {
  padding: 34px;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding-left: 24px;
  padding-right: 24px;
}

.support-grid article {
  padding: 24px;
}

.site-footer {
  margin-top: 32px;
  border-top: 1px solid #fbcfe8;
  background: linear-gradient(180deg, #fff7ed, #fce7f3);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer-brand p,
.site-footer li,
.site-footer p {
  color: #6b7280;
  line-height: 1.8;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: #1f2937;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.site-footer a:hover {
  color: #ec4899;
}

.footer-bottom {
  border-top: 1px solid #fbcfe8;
  padding: 18px 24px;
  text-align: center;
}

.back-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  display: none;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #ec4899, #fb923c);
  box-shadow: 0 18px 36px rgba(236, 72, 153, 0.28);
  cursor: pointer;
  z-index: 30;
}

.back-top.visible {
  display: block;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 48px;
  text-align: center;
  color: #6b7280;
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid #fbcfe8;
}

@media (max-width: 1180px) {
  .desktop-nav {
    gap: 12px;
  }

  .header-search input {
    width: 150px;
  }

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

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

  .mobile-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .hero-slider {
    min-height: 560px;
  }

  .intro-strip,
  .split-section,
  .detail-grid,
  .detail-content-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 700px) {
  .header-inner {
    height: 64px;
    padding: 0 16px;
  }

  .logo-text {
    font-size: 18px;
  }

  .hero-slider {
    min-height: 540px;
  }

  .hero-content {
    padding: 72px 18px 110px;
  }

  .hero-actions,
  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .section-block {
    padding: 44px 16px;
  }

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

  .rank-item,
  .ranking-page-list .rank-item,
  .small-card {
    grid-template-columns: 76px 1fr;
  }

  .page-hero {
    margin-top: 18px;
    border-radius: 0;
  }

  .meta-card dl {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    padding: 34px 16px;
  }
}
