:root {
  --site-bg: #fff7ed;
  --site-card: #ffffff;
  --site-text: #111827;
  --site-muted: #6b7280;
  --site-rose: #f43f5e;
  --site-pink: #ec4899;
  --site-orange: #f97316;
  --site-dark: #111827;
  --site-soft: rgba(255, 255, 255, 0.76);
  --site-shadow: 0 24px 60px rgba(190, 18, 60, 0.16);
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  color: var(--site-text);
  background: linear-gradient(135deg, #fff1f2 0%, #fdf2f8 48%, #fff7ed 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(244, 63, 94, 0.96), rgba(236, 72, 153, 0.96), rgba(249, 115, 22, 0.96));
  color: #ffffff;
  box-shadow: 0 14px 40px rgba(190, 18, 60, 0.24);
  backdrop-filter: blur(16px);
}

.nav-shell,
.footer-shell,
.section-shell,
.hero-shell,
.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  color: var(--site-rose);
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.24);
}

.brand-name {
  font-size: 1.34rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.nav-link {
  position: relative;
  font-weight: 700;
  opacity: 0.9;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 3px;
  border-radius: 999px;
  background: #fde68a;
}

.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.nav-search input,
.mobile-panel input,
.filter-box input,
.search-hero input {
  width: 220px;
  color: #ffffff;
  outline: none;
  background: transparent;
}

.nav-search input::placeholder,
.mobile-panel input::placeholder,
.search-hero input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.nav-search button,
.mobile-panel button,
.search-hero button,
.filter-box button,
.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-search button,
.mobile-panel button,
.search-hero button,
.primary-button {
  color: var(--site-rose);
  background: #ffffff;
}

.secondary-button {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.66);
  background: rgba(255, 255, 255, 0.16);
}

.nav-search button:hover,
.mobile-panel button:hover,
.search-hero button:hover,
.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 16px 34px rgba(190, 18, 60, 0.18);
}

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.18);
}

.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: #ffffff;
}

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

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

.mobile-panel form {
  display: flex;
  gap: 8px;
  padding: 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.18);
}

.mobile-panel input {
  width: 100%;
}

.mobile-panel nav {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.mobile-link {
  padding: 12px 14px;
  border-radius: 16px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.16);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  color: #ffffff;
  background: #111827;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 15% 20%, rgba(244, 63, 94, 0.5), transparent 34%), radial-gradient(circle at 78% 18%, rgba(249, 115, 22, 0.42), transparent 30%), linear-gradient(120deg, rgba(17, 24, 39, 0.96), rgba(136, 19, 55, 0.86));
  z-index: 1;
}

.hero-shell {
  position: relative;
  z-index: 2;
  display: grid;
  align-items: center;
  min-height: 620px;
  padding: 82px 0;
}

.hero-slide {
  display: none;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.7fr);
  gap: 40px;
  align-items: center;
}

.hero-slide.is-active {
  display: grid;
  animation: fadeIn 0.5s ease both;
}

.hero-kicker,
.page-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 800;
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
}

.hero-title {
  margin-top: 22px;
  font-size: clamp(2.5rem, 8vw, 5.8rem);
  line-height: 0.95;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.hero-text {
  max-width: 780px;
  margin-top: 24px;
  font-size: clamp(1rem, 2vw, 1.26rem);
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.86);
}

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

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-meta span,
.tag-row span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
}

.hero-meta span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
}

.hero-poster {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.38);
  transform: rotate(2deg);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.55), rgba(249, 115, 22, 0.42));
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 34px;
  z-index: 3;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

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

.hero-dot.is-active {
  background: #ffffff;
}

.section {
  padding: 72px 0;
}

.section.alt {
  background: rgba(255, 255, 255, 0.46);
}

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

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.6rem);
  line-height: 1.1;
  font-weight: 950;
  letter-spacing: -0.03em;
}

.section-desc,
.page-desc {
  max-width: 760px;
  margin-top: 10px;
  color: var(--site-muted);
  line-height: 1.8;
}

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

.movie-card,
.category-card,
.rank-card,
.info-card {
  overflow: hidden;
  border: 1px solid rgba(244, 63, 94, 0.09);
  border-radius: 24px;
  background: var(--site-card);
  box-shadow: 0 18px 40px rgba(190, 18, 60, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover,
.category-card:hover,
.rank-card:hover,
.info-card:hover {
  transform: translateY(-6px);
  border-color: rgba(244, 63, 94, 0.28);
  box-shadow: var(--site-shadow);
}

.poster-frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.16), rgba(249, 115, 22, 0.22));
}

.poster-frame img,
.rank-cover img,
.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.poster-frame img {
  transition: transform 0.45s ease;
}

.movie-card:hover .poster-frame img {
  transform: scale(1.06);
}

.poster-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 900;
  background: linear-gradient(90deg, var(--site-rose), var(--site-orange));
  box-shadow: 0 10px 22px rgba(244, 63, 94, 0.28);
}

.movie-card-body {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.movie-card-title {
  display: -webkit-box;
  min-height: 2.9em;
  overflow: hidden;
  color: var(--site-text);
  font-size: 1.04rem;
  line-height: 1.45;
  font-weight: 900;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-card-title:hover,
.rank-title:hover,
.text-link:hover {
  color: var(--site-rose);
}

.movie-card-meta,
.movie-card-genre {
  overflow: hidden;
  color: var(--site-muted);
  font-size: 0.88rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.movie-card-text {
  display: -webkit-box;
  min-height: 4.35em;
  overflow: hidden;
  color: #4b5563;
  font-size: 0.92rem;
  line-height: 1.45;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

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

.tag-row span,
.detail-tags span {
  color: #be123c;
  background: #fff1f2;
}

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

.category-card {
  position: relative;
  min-height: 210px;
  padding: 28px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--site-rose), var(--site-pink) 55%, var(--site-orange));
}

.category-card h3 {
  font-size: 1.55rem;
  font-weight: 950;
}

.category-card p {
  margin-top: 12px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.86);
}

.category-card span {
  display: inline-flex;
  margin-top: 22px;
  font-weight: 900;
}

.page-hero,
.detail-hero,
.search-hero {
  position: relative;
  overflow: hidden;
  padding: 74px 0;
  color: #ffffff;
  background: linear-gradient(120deg, #f43f5e, #ec4899 48%, #f97316);
}

.page-hero::after,
.detail-hero::after,
.search-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.24), transparent 32%);
}

.page-hero .page-shell,
.detail-hero .page-shell,
.search-hero .page-shell {
  position: relative;
  z-index: 1;
}

.page-title,
.detail-title {
  margin-top: 12px;
  font-size: clamp(2.1rem, 5vw, 4rem);
  line-height: 1.1;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.filter-box,
.search-panel {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 30px 0;
  padding: 12px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: var(--site-shadow);
}

.filter-box input,
.search-panel input {
  flex: 1;
  width: 100%;
  min-height: 46px;
  padding: 0 18px;
  color: var(--site-text);
  background: transparent;
  outline: none;
}

.filter-box button,
.search-panel button {
  color: #ffffff;
  background: linear-gradient(90deg, var(--site-rose), var(--site-orange));
}

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

.rank-card {
  position: relative;
  display: grid;
  grid-template-columns: 96px 54px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px;
}

.rank-cover {
  overflow: hidden;
  width: 96px;
  height: 128px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.18), rgba(249, 115, 22, 0.18));
}

.rank-number {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 950;
  background: linear-gradient(135deg, var(--site-rose), var(--site-orange));
}

.rank-title {
  display: block;
  font-size: 1.06rem;
  font-weight: 950;
}

.rank-body p {
  margin-top: 6px;
  color: var(--site-muted);
  font-size: 0.9rem;
}

.rank-body span {
  display: -webkit-box;
  margin-top: 8px;
  overflow: hidden;
  color: #4b5563;
  font-size: 0.92rem;
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.84);
  font-weight: 800;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
}

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

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 850;
  background: rgba(255, 255, 255, 0.16);
}

.detail-intro {
  max-width: 820px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.08rem;
  line-height: 1.9;
}

.content-card {
  padding: 28px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--site-shadow);
}

.content-card h2 {
  margin-bottom: 14px;
  font-size: 1.6rem;
  font-weight: 950;
}

.content-card p {
  color: #374151;
  line-height: 1.95;
}

.detail-content-grid {
  display: grid;
  gap: 22px;
}

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

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000000;
  box-shadow: 0 34px 90px rgba(17, 24, 39, 0.28);
}

.movie-video {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
  pointer-events: auto;
}

.video-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.35), rgba(190, 18, 60, 0.28));
  pointer-events: auto;
  transition: opacity 0.22s ease;
}

.video-shell.is-playing .video-overlay {
  opacity: 0;
  pointer-events: none;
}

.video-overlay-inner {
  display: grid;
  gap: 12px;
  justify-items: center;
}

.video-overlay-icon {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 999px;
  color: var(--site-rose);
  font-size: 2.2rem;
  background: #ffffff;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.video-overlay-text {
  font-size: 1.18rem;
  font-weight: 950;
  text-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.site-footer {
  margin-top: 72px;
  color: #d1d5db;
  background: #111827;
}

.footer-shell {
  display: flex;
  justify-content: space-between;
  gap: 36px;
  padding: 42px 0;
}

.footer-brand p {
  max-width: 520px;
  margin-top: 14px;
  line-height: 1.8;
  color: #9ca3af;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  max-width: 520px;
}

.footer-links a {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.footer-links a:hover {
  color: #ffffff;
  background: rgba(244, 63, 94, 0.5);
}

.empty-state {
  padding: 52px;
  border-radius: 28px;
  text-align: center;
  color: var(--site-muted);
  background: #ffffff;
  box-shadow: var(--site-shadow);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .mobile-toggle {
    display: block;
  }

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

  .hero-poster,
  .detail-poster {
    max-width: 360px;
  }

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

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

@media (max-width: 760px) {
  .nav-shell,
  .footer-shell,
  .section-shell,
  .hero-shell,
  .page-shell {
    width: min(100% - 24px, 1180px);
  }

  .hero,
  .hero-shell {
    min-height: auto;
  }

  .hero-shell,
  .page-hero,
  .detail-hero,
  .search-hero {
    padding: 52px 0;
  }

  .hero-slide.is-active {
    display: block;
  }

  .hero-poster {
    margin-top: 30px;
    transform: none;
  }

  .section {
    padding: 48px 0;
  }

  .section-head,
  .footer-shell {
    display: grid;
  }

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

  .rank-card {
    grid-template-columns: 86px 44px 1fr;
    gap: 12px;
  }

  .rank-cover {
    width: 86px;
    height: 118px;
  }

  .filter-box,
  .search-panel {
    border-radius: 22px;
    flex-direction: column;
    align-items: stretch;
  }

  .detail-layout {
    gap: 24px;
  }

  .footer-links {
    justify-content: flex-start;
  }
}
