:root {
  --rose: #f43f5e;
  --rose-dark: #e11d48;
  --orange: #f97316;
  --amber: #f59e0b;
  --pink-soft: #fff1f2;
  --orange-soft: #fff7ed;
  --blue: #3b82f6;
  --cyan: #06b6d4;
  --green: #16a34a;
  --purple: #9333ea;
  --dark: #111827;
  --gray-900: #1f2937;
  --gray-800: #374151;
  --gray-700: #4b5563;
  --gray-600: #6b7280;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.13);
  --shadow-soft: 0 10px 25px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--gray-900);
  background:
    radial-gradient(circle at top left, rgba(244, 63, 94, 0.12), transparent 30rem),
    linear-gradient(180deg, #fff7fb 0%, #f9fafb 32%, #ffffff 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.65;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.08);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-weight: 900;
}

.logo-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  box-shadow: 0 12px 28px rgba(244, 63, 94, 0.34);
}

.logo-text {
  font-size: 1.45rem;
  background: linear-gradient(90deg, var(--rose), var(--orange));
  -webkit-background-clip: text;
  color: transparent;
}

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

.nav-link {
  color: var(--gray-700);
  font-weight: 700;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--rose);
}

.header-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  border: 1px solid var(--gray-200);
  background: var(--white);
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.header-search input {
  width: 250px;
  border: 0;
  outline: 0;
  padding: 10px 14px;
  background: transparent;
}

.header-search button,
.mobile-search button {
  border: 0;
  padding: 10px 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  font-weight: 800;
  cursor: pointer;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--gray-100);
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0 10px;
}

.menu-button span {
  height: 2px;
  background: var(--gray-900);
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  padding: 0 16px 18px;
  border-top: 1px solid var(--gray-200);
}

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

.mobile-nav-link {
  display: block;
  padding: 12px 0;
  color: var(--gray-700);
  font-weight: 800;
}

.mobile-nav-link.active {
  color: var(--rose);
}

.mobile-search {
  display: flex;
  margin-top: 10px;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}

.mobile-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 10px 14px;
}

.hero {
  position: relative;
  min-height: 610px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(125deg, #f43f5e 0%, #ec4899 42%, #f97316 100%);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(10px);
  opacity: 0.36;
}

.hero::before {
  width: 420px;
  height: 420px;
  left: -120px;
  top: -80px;
  background: rgba(255, 255, 255, 0.35);
}

.hero::after {
  width: 520px;
  height: 520px;
  right: -130px;
  bottom: -150px;
  background: rgba(255, 255, 255, 0.2);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.22));
}

.hero-inner {
  position: relative;
  z-index: 2;
  min-height: 610px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  align-items: center;
  gap: 56px;
  padding: 70px 0 120px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  font-weight: 800;
}

.hero h1 {
  margin: 22px 0 18px;
  font-size: clamp(2.5rem, 6vw, 4.8rem);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.hero p {
  margin: 0 0 32px;
  max-width: 690px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 2vw, 1.35rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  background: #fff;
  color: var(--rose);
  font-weight: 900;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.16);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-button.secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  box-shadow: none;
}

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

.hero-search {
  display: flex;
  width: min(100%, 620px);
  margin-top: 30px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.16);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 16px 22px;
  color: var(--gray-900);
  background: transparent;
}

.hero-search button {
  border: 0;
  padding: 0 26px;
  color: #fff;
  background: var(--dark);
  font-weight: 900;
  cursor: pointer;
}

.hero-panel {
  position: relative;
  min-height: 480px;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.28);
  background: rgba(255, 255, 255, 0.12);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide-content {
  position: absolute;
  inset: auto 0 0;
  padding: 28px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0));
}

.hero-slide-content strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.55rem;
}

.hero-slide-content span {
  display: inline-block;
  margin-bottom: 10px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--rose);
  font-size: 0.8rem;
  font-weight: 900;
}

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

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

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

.hero-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 120px;
  background: linear-gradient(0deg, #fff7fb, transparent);
}

.featured-strip {
  position: relative;
  z-index: 4;
  margin-top: -90px;
  margin-bottom: 72px;
}

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

.featured-card {
  position: relative;
  min-height: 250px;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: var(--shadow);
  background: var(--gray-200);
  transform: translateY(0);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.featured-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.2);
}

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

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

.featured-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.15), transparent);
}

.featured-card-body {
  position: absolute;
  z-index: 2;
  left: 20px;
  right: 20px;
  bottom: 18px;
  color: #fff;
}

.featured-card-body span {
  display: inline-block;
  margin-bottom: 9px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--rose);
  font-size: 0.78rem;
  font-weight: 900;
}

.featured-card-body strong {
  display: block;
  margin-bottom: 5px;
  font-size: 1.13rem;
}

.featured-card-body em {
  display: -webkit-box;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.82);
  font-style: normal;
  font-size: 0.9rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.section {
  padding: 44px 0;
}

.section.white {
  background: #fff;
}

.section.soft {
  background: linear-gradient(135deg, var(--pink-soft), var(--orange-soft));
}

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

.section-title-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.section-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  box-shadow: 0 12px 28px rgba(244, 63, 94, 0.24);
  font-weight: 900;
}

.section-head h1,
.section-head h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  line-height: 1.15;
}

.section-head p {
  margin: 6px 0 0;
  color: var(--gray-600);
}

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

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

.category-card {
  padding: 26px 20px;
  min-height: 148px;
  color: #fff;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card:nth-child(2n) {
  background: linear-gradient(135deg, var(--orange), var(--amber));
}

.category-card:nth-child(3n) {
  background: linear-gradient(135deg, var(--purple), var(--rose));
}

.category-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow);
}

.category-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.category-card span {
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.92rem;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  height: 218px;
  overflow: hidden;
  background: var(--gray-200);
}

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

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

.poster-badge,
.poster-time {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 900;
  background: rgba(17, 24, 39, 0.72);
  backdrop-filter: blur(8px);
}

.poster-badge {
  top: 12px;
  right: 12px;
  padding: 5px 10px;
}

.poster-time {
  right: 12px;
  bottom: 12px;
  padding: 4px 8px;
}

.movie-card-body {
  padding: 18px;
}

.movie-card-title {
  display: -webkit-box;
  min-height: 3.2em;
  overflow: hidden;
  color: var(--gray-900);
  font-weight: 900;
  font-size: 1.05rem;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

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

.movie-card-body p {
  display: -webkit-box;
  min-height: 3.2em;
  margin: 8px 0 14px;
  overflow: hidden;
  color: var(--gray-600);
  font-size: 0.92rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--gray-600);
  font-size: 0.82rem;
}

.movie-meta span {
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--gray-100);
}

.rank-list {
  overflow: hidden;
  border-radius: 26px;
  padding: 12px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.rank-row {
  display: grid;
  grid-template-columns: 58px 110px minmax(0, 1fr) 110px;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border-radius: 18px;
  transition: background 0.2s ease;
}

.rank-row:hover {
  background: var(--gray-100);
}

.rank-no {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--gray-100);
  color: var(--gray-700);
  font-size: 1.1rem;
  font-weight: 900;
}

.rank-row:nth-child(1) .rank-no {
  color: #fff;
  background: linear-gradient(135deg, #facc15, var(--orange));
}

.rank-row:nth-child(2) .rank-no {
  color: #fff;
  background: linear-gradient(135deg, #d1d5db, #9ca3af);
}

.rank-row:nth-child(3) .rank-no {
  color: #fff;
  background: linear-gradient(135deg, #fdba74, var(--amber));
}

.rank-thumb {
  width: 110px;
  height: 72px;
  overflow: hidden;
  border-radius: 14px;
  background: var(--gray-200);
}

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

.rank-info strong {
  display: block;
  overflow: hidden;
  font-size: 1rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-info span {
  display: block;
  overflow: hidden;
  color: var(--gray-600);
  font-size: 0.9rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}

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

.page-hero {
  padding: 58px 0;
  color: #fff;
  background: linear-gradient(135deg, var(--dark), var(--gray-800));
}

.page-hero .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.92rem;
}

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

.page-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.1;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.05rem;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px;
  gap: 14px;
  margin-bottom: 24px;
  padding: 18px;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  outline: 0;
  padding: 12px 16px;
  background: #fff;
}

.filter-empty {
  display: none;
  padding: 32px;
  text-align: center;
  color: var(--gray-600);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

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

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #000;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.32);
}

.player-shell video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.24));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-overlay span {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  padding-left: 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  box-shadow: 0 18px 42px rgba(244, 63, 94, 0.38);
  font-size: 2.3rem;
}

.detail-card,
.side-card {
  border-radius: 24px;
  padding: 24px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.detail-card {
  margin-top: 24px;
}

.detail-card h1 {
  margin: 0 0 16px;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.18;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.detail-meta span {
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--gray-700);
  background: var(--gray-100);
  font-weight: 700;
  font-size: 0.9rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.tag-list span {
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--rose-dark);
  background: var(--pink-soft);
  font-size: 0.88rem;
  font-weight: 800;
}

.content-block {
  padding-top: 20px;
  border-top: 1px solid var(--gray-200);
}

.content-block h2 {
  margin: 0 0 10px;
  font-size: 1.35rem;
}

.content-block p {
  margin: 0 0 14px;
  color: var(--gray-700);
}

.side-card h2 {
  margin: 0 0 16px;
  font-size: 1.3rem;
}

.rank-mini-card {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  transition: background 0.2s ease;
}

.rank-mini-card:hover {
  background: var(--gray-100);
}

.mini-poster {
  width: 82px;
  height: 56px;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 12px;
  background: var(--gray-200);
}

.mini-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mini-body {
  min-width: 0;
}

.mini-body strong,
.mini-body em {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.mini-body strong {
  font-size: 0.95rem;
}

.mini-body em {
  color: var(--gray-600);
  font-style: normal;
  font-size: 0.82rem;
}

.site-footer {
  margin-top: 70px;
  color: rgba(255, 255, 255, 0.72);
  background: linear-gradient(135deg, #111827, #1f2937);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 38px;
  padding: 46px 0;
}

.footer-logo {
  margin-bottom: 12px;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 900;
}

.site-footer h2 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 1.05rem;
}

.site-footer a {
  display: block;
  margin: 7px 0;
  color: rgba(255, 255, 255, 0.72);
}

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

.footer-bottom {
  padding: 18px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

@media (max-width: 1080px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .hero-panel {
    min-height: 420px;
  }

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

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

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

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

  .menu-button {
    display: flex;
    margin-left: auto;
  }

  .header-inner {
    min-height: 64px;
  }

  .logo-text {
    font-size: 1.2rem;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    min-height: auto;
    padding: 54px 0 115px;
  }

  .hero-panel {
    min-height: 360px;
  }

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

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

  .rank-row {
    grid-template-columns: 46px 78px minmax(0, 1fr);
  }

  .rank-heat {
    display: none;
  }

  .rank-thumb {
    width: 78px;
    height: 58px;
  }

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

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

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

  .hero h1 {
    letter-spacing: -0.04em;
  }

  .hero-actions,
  .hero-search {
    width: 100%;
  }

  .hero-button {
    flex: 1;
  }

  .hero-search {
    border-radius: 24px;
    flex-direction: column;
  }

  .hero-search button {
    min-height: 46px;
  }

  .hero-panel {
    min-height: 300px;
    border-radius: 24px;
  }

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

  .poster-link {
    height: 230px;
  }

  .page-hero {
    padding: 42px 0;
  }

  .detail-card,
  .side-card {
    padding: 18px;
  }

  .play-overlay span {
    width: 72px;
    height: 72px;
    font-size: 1.9rem;
  }
}
