* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: #1f2937;
  background: linear-gradient(180deg, rgba(255, 241, 242, 0.45), #ffffff 360px, rgba(255, 241, 242, 0.28));
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #fb7185, #ec4899);
  box-shadow: 0 14px 30px rgba(244, 63, 94, 0.3);
}

.brand-text {
  display: grid;
  gap: 1px;
}

.brand-text strong,
.footer-brand {
  font-size: 20px;
  line-height: 1.1;
  font-weight: 800;
  color: transparent;
  background: linear-gradient(90deg, #f43f5e, #ec4899, #fb7185);
  -webkit-background-clip: text;
  background-clip: text;
}

.brand-text small {
  color: #6b7280;
  font-size: 12px;
}

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

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

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

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

.nav-search input,
.mobile-search input,
.search-panel input,
.filter-panel select {
  border: 1px solid rgba(244, 63, 94, 0.2);
  outline: none;
  border-radius: 999px;
  color: #374151;
  background: #fff7f9;
}

.nav-search input {
  width: 180px;
  padding: 10px 14px;
}

.nav-search button,
.mobile-search button,
.search-panel button,
.primary-button,
.secondary-button {
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  color: #ffffff;
  font-weight: 800;
  background: linear-gradient(135deg, #f43f5e, #ec4899);
  box-shadow: 0 12px 24px rgba(244, 63, 94, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-search button:hover,
.mobile-search button:hover,
.search-panel button:hover,
.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(244, 63, 94, 0.28);
}

.secondary-button {
  color: #f43f5e;
  background: #ffffff;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: #fff1f2;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #f43f5e;
  border-radius: 99px;
}

.mobile-panel {
  display: none;
  padding: 0 16px 18px;
  border-top: 1px solid rgba(244, 63, 94, 0.12);
}

.mobile-panel nav {
  display: grid;
  gap: 14px;
  padding: 16px 0;
}

.mobile-search input {
  flex: 1;
  min-width: 0;
  padding: 12px 16px;
}

.hero-shell {
  position: relative;
  overflow: hidden;
  padding: 70px 0 44px;
  background: linear-gradient(135deg, #fff1f2, #fdf2f8 54%, #fff7ed);
}

.hero-shell::before,
.hero-shell::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  filter: blur(54px);
  opacity: 0.28;
  pointer-events: none;
}

.hero-shell::before {
  top: -120px;
  left: 5%;
  background: #fb7185;
}

.hero-shell::after {
  right: 6%;
  bottom: -140px;
  background: #ec4899;
}

.hero-title {
  position: relative;
  z-index: 1;
  text-align: center;
  margin-bottom: 42px;
}

.hero-title h1 {
  margin: 0;
  color: transparent;
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, #e11d48, #ec4899, #fb7185);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-title p {
  margin: 16px auto 0;
  max-width: 680px;
  color: #6b7280;
  font-size: 18px;
  line-height: 1.8;
}

.hero-card {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  overflow: hidden;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 30px 75px rgba(190, 18, 60, 0.18);
}

.hero-stage {
  position: relative;
  min-height: 488px;
  overflow: hidden;
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: end;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
}

.hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.12) 56%, rgba(17, 24, 39, 0.02));
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 620px;
  padding: 44px;
  color: #ffffff;
}

.hero-copy .eyebrow,
.page-hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  padding: 7px 14px;
  color: #ffffff;
  border-radius: 999px;
  background: rgba(244, 63, 94, 0.92);
  font-size: 13px;
  font-weight: 800;
}

.hero-copy h2 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4.5vw, 48px);
  line-height: 1.08;
  font-weight: 900;
}

.hero-copy p {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 16px;
  line-height: 1.8;
}

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

.hero-side {
  padding: 34px;
  background: linear-gradient(135deg, #fff1f2, #fdf2f8);
}

.hero-side h2,
.hero-side h3,
.side-panel h3 {
  margin: 0 0 22px;
  color: #1f2937;
  font-size: 24px;
  font-weight: 900;
}

.hot-link {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 16px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hot-link:hover {
  background: #ffffff;
  transform: translateX(2px);
}

.hot-index,
.ranking-number {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #fb7185, #ec4899);
  font-weight: 900;
}

.hot-link strong {
  display: block;
  color: #374151;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hot-link small,
.hot-views {
  color: #6b7280;
  font-size: 12px;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
}

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

.section {
  padding: 58px 0;
}

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

.section-head h2 {
  margin: 0;
  color: #1f2937;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 900;
}

.section-head p {
  margin: 8px 0 0;
  color: #6b7280;
}

.section-head a {
  color: #f43f5e;
  font-weight: 800;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(244, 63, 94, 0.1);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(244, 63, 94, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 26px 50px rgba(244, 63, 94, 0.16);
}

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

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

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

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

.poster-chip,
.rank-badge {
  position: absolute;
  z-index: 2;
  left: 12px;
  top: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(244, 63, 94, 0.92);
  font-size: 12px;
  font-weight: 900;
}

.rank-badge {
  left: auto;
  right: 12px;
  background: rgba(17, 24, 39, 0.86);
}

.movie-info {
  padding: 18px;
}

.movie-title {
  display: block;
  min-height: 29px;
  color: #1f2937;
  font-size: 18px;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.movie-title:hover {
  color: #f43f5e;
}

.movie-info p {
  display: -webkit-box;
  min-height: 45px;
  margin: 8px 0 14px;
  color: #6b7280;
  line-height: 1.6;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.meta-row,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.meta-row {
  color: #6b7280;
  font-size: 13px;
}

.tag-row {
  margin-top: 12px;
}

.tag-row span,
.detail-tags span,
.filter-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  color: #be123c;
  background: #fff1f2;
  font-size: 12px;
  font-weight: 800;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  border-radius: 24px;
  background: #111827;
  box-shadow: 0 18px 42px rgba(244, 63, 94, 0.14);
}

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.68;
  transition: transform 0.45s ease;
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.88), rgba(17, 24, 39, 0.1));
}

.category-content {
  position: absolute;
  z-index: 2;
  inset: auto 0 0;
  padding: 24px;
  color: #ffffff;
}

.category-content h2,
.category-content h3 {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 900;
}

.category-content p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 70px 0;
  color: #ffffff;
  background: linear-gradient(135deg, #f43f5e, #ec4899, #fb7185);
}

.page-hero::before,
.cta-panel::before {
  content: "";
  position: absolute;
  inset: -40%;
  opacity: 0.12;
  background: radial-gradient(circle, #ffffff 0 10%, transparent 11% 100%);
  background-size: 90px 90px;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.1;
  font-weight: 900;
}

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

.filter-panel,
.search-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
  padding: 18px;
  border: 1px solid rgba(244, 63, 94, 0.12);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 42px rgba(244, 63, 94, 0.08);
}

.search-panel input {
  flex: 1;
  min-width: 240px;
  padding: 13px 18px;
}

.filter-panel select {
  min-width: 150px;
  padding: 12px 18px;
}

.no-results {
  display: none;
  padding: 28px;
  color: #6b7280;
  text-align: center;
  border: 1px dashed rgba(244, 63, 94, 0.28);
  border-radius: 20px;
  background: #fff7f9;
}

.no-results.show {
  display: block;
}

.ranking-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}

.ranking-column,
.side-panel,
.detail-card {
  border: 1px solid rgba(244, 63, 94, 0.1);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(244, 63, 94, 0.09);
}

.ranking-column {
  padding: 18px;
}

.ranking-item {
  display: grid;
  grid-template-columns: 40px 96px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 18px;
  transition: background 0.2s ease;
}

.ranking-item:hover {
  background: #fff1f2;
}

.ranking-item img {
  width: 96px;
  height: 60px;
  border-radius: 12px;
  object-fit: cover;
}

.ranking-content strong,
.ranking-content small {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ranking-content strong {
  color: #1f2937;
  font-size: 16px;
}

.ranking-content small {
  margin-top: 5px;
  color: #6b7280;
  font-size: 12px;
}

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

.breadcrumb {
  margin-bottom: 20px;
  color: #6b7280;
  font-size: 14px;
}

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

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

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.video-frame video,
.player-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.video-frame video {
  object-fit: contain;
}

.player-cover {
  display: grid;
  place-items: center;
  border: 0;
  overflow: hidden;
  padding: 0;
  color: #ffffff;
  background: #020617;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.58;
}

.player-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.82), rgba(2, 6, 23, 0.22));
}

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

.play-circle {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  color: #f43f5e;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
  font-size: 30px;
  text-indent: 4px;
}

.detail-card {
  margin-top: 22px;
  padding: 26px;
}

.detail-card h1 {
  margin: 0 0 16px;
  color: #111827;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
  font-weight: 900;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(244, 63, 94, 0.12);
}

.detail-meta span {
  color: #4b5563;
  border-radius: 999px;
  padding: 8px 12px;
  background: #f9fafb;
  font-size: 13px;
  font-weight: 700;
}

.detail-card h2,
.detail-card h3 {
  margin: 28px 0 12px;
  color: #1f2937;
  font-size: 22px;
  font-weight: 900;
}

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

.review-box {
  margin-top: 24px;
  padding: 22px;
  border: 1px solid rgba(244, 63, 94, 0.14);
  border-radius: 20px;
  background: linear-gradient(135deg, #fff1f2, #fdf2f8);
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 20px;
}

.side-panel {
  position: sticky;
  top: 100px;
  padding: 18px;
}

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

.related-mini {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  transition: background 0.2s ease;
}

.related-mini:hover {
  background: #fff1f2;
}

.related-mini img {
  width: 112px;
  height: 70px;
  border-radius: 12px;
  object-fit: cover;
}

.related-mini strong {
  display: -webkit-box;
  color: #1f2937;
  font-size: 14px;
  line-height: 1.45;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.related-mini small {
  display: block;
  margin-top: 6px;
  color: #6b7280;
}

.cta-panel {
  position: relative;
  overflow: hidden;
  padding: 48px;
  border-radius: 28px;
  color: #ffffff;
  text-align: center;
  background: linear-gradient(90deg, #f43f5e, #ec4899, #fb7185);
  box-shadow: 0 24px 60px rgba(244, 63, 94, 0.22);
}

.cta-panel h2 {
  position: relative;
  z-index: 1;
  margin: 0 0 12px;
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 900;
}

.cta-panel p {
  position: relative;
  z-index: 1;
  margin: 0 auto 24px;
  max-width: 680px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.8;
}

.site-footer {
  margin-top: 60px;
  padding: 50px 0 24px;
  border-top: 1px solid rgba(244, 63, 94, 0.12);
  background: #fff7f9;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 36px;
}

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

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

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

.footer-links a {
  color: #6b7280;
}

.footer-links a:hover {
  color: #f43f5e;
}

.footer-bottom {
  margin: 34px auto 0;
  padding-top: 20px;
  width: min(1180px, calc(100% - 32px));
  color: #6b7280;
  text-align: center;
  border-top: 1px solid rgba(244, 63, 94, 0.12);
  font-size: 14px;
}

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

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

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

  .side-panel {
    position: static;
  }
}

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

  .menu-toggle {
    display: block;
  }

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

  .hero-shell {
    padding-top: 46px;
  }

  .hero-stage {
    min-height: 430px;
  }

  .hero-copy {
    padding: 32px;
  }

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

@media (max-width: 560px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

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

  .brand-text small {
    display: none;
  }

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

  .hero-stage {
    min-height: 390px;
  }

  .hero-copy {
    padding: 24px;
  }

  .hero-side {
    padding: 24px;
  }

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

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

  .ranking-item {
    grid-template-columns: 34px 82px minmax(0, 1fr);
  }

  .ranking-item img {
    width: 82px;
    height: 54px;
  }

  .detail-card,
  .cta-panel {
    padding: 22px;
  }
}
