* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #1f2937;
  background: linear-gradient(180deg, #fff7ed 0%, #fff1f2 45%, #ffffff 100%);
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  color: #ffffff;
  background: linear-gradient(90deg, #f97316 0%, #fb7185 48%, #f472b6 100%);
  box-shadow: 0 12px 30px rgba(244, 63, 94, 0.22);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  white-space: nowrap;
}

.brand-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
  font-weight: 700;
}

.site-nav a,
.header-search button,
.menu-toggle {
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

.site-nav a:hover,
.header-search button:hover,
.menu-toggle:hover {
  opacity: 0.86;
  transform: translateY(-1px);
}

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

.header-search input {
  width: 210px;
  border: 0;
  outline: none;
  color: #ffffff;
  padding: 8px 12px;
  background: transparent;
}

.header-search input::placeholder {
  color: rgba(255, 255, 255, 0.82);
}

.header-search button {
  border: 0;
  border-radius: 999px;
  padding: 8px 16px;
  color: #f97316;
  font-weight: 800;
  background: #ffffff;
  cursor: pointer;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  border-radius: 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  padding: 9px 12px;
  cursor: pointer;
}

.hero {
  position: relative;
  min-height: 540px;
  height: 72vh;
  overflow: hidden;
  background: #111827;
}

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

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

.hero-slide > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 24%, rgba(251, 113, 133, 0.34), transparent 32%),
    linear-gradient(90deg, rgba(15, 23, 42, 0.86) 0%, rgba(15, 23, 42, 0.64) 47%, rgba(15, 23, 42, 0.12) 100%);
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
}

.hero-copy {
  width: min(680px, 100%);
  color: #ffffff;
}

.hero-labels,
.hero-tags,
.tag-row,
.detail-meta,
.chip-filter {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-labels span,
.hero-tags span,
.tag-row span,
.detail-meta span,
.chip-filter button {
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 700;
}

.hero-labels span:nth-child(1) {
  background: #f97316;
}

.hero-labels span:nth-child(2) {
  background: #fb7185;
}

.hero-labels span:nth-child(3) {
  background: rgba(255, 255, 255, 0.2);
}

.hero h1 {
  margin: 18px 0 16px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero p {
  max-width: 660px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 19px;
  line-height: 1.8;
}

.hero-tags span,
.tag-row span {
  color: #9a3412;
  background: #ffedd5;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 30px;
}

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

.primary-btn {
  color: #ffffff;
  background: linear-gradient(90deg, #f97316, #fb7185);
  box-shadow: 0 16px 28px rgba(249, 115, 22, 0.34);
}

.ghost-btn {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.primary-btn:hover,
.ghost-btn:hover {
  transform: translateY(-2px);
}

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

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

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

.quick-search-section {
  margin-top: -58px;
  position: relative;
  z-index: 8;
}

.quick-search-box {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 520px);
  gap: 28px;
  align-items: center;
  border-radius: 28px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 28px 70px rgba(249, 115, 22, 0.18);
  backdrop-filter: blur(18px);
}

.quick-search-box h2,
.section-heading h2,
.sub-hero h1,
.detail-copy h1 {
  margin: 0;
  color: #111827;
}

.quick-search-box p,
.sub-hero p,
.category-card p,
.movie-desc,
.text-card p,
.footer-grid p {
  color: #6b7280;
  line-height: 1.75;
}

.wide-search {
  display: flex;
  gap: 12px;
}

.wide-search input,
.search-panel input {
  width: 100%;
  border: 1px solid #fed7aa;
  border-radius: 18px;
  outline: none;
  padding: 15px 18px;
  background: #fff7ed;
}

.wide-search button {
  border: 0;
  border-radius: 18px;
  padding: 0 22px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(90deg, #f97316, #fb7185);
  cursor: pointer;
}

.section-block {
  padding: 72px 0;
}

.soft-bg {
  background: linear-gradient(180deg, #fff7ed, #fdf2f8);
}

.rank-section {
  background: linear-gradient(135deg, #eff6ff, #ecfeff);
}

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

.section-heading h2 {
  font-size: 34px;
}

.section-heading a {
  color: #f97316;
  font-weight: 900;
}

.section-kicker {
  margin: 0 0 8px;
  color: #f97316;
  font-weight: 900;
  letter-spacing: 0.12em;
}

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

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

.category-card a {
  position: relative;
  min-height: 220px;
  display: flex;
  align-items: end;
  overflow: hidden;
  border-radius: 24px;
  background: #111827;
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.15);
}

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

.category-card a:hover img {
  opacity: 0.82;
  transform: scale(1.08);
}

.category-card div {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 22px;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.82), transparent);
}

.category-card h2 {
  margin: 8px 0;
  font-size: 22px;
}

.category-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

.category-kicker {
  display: inline-flex;
  border-radius: 999px;
  padding: 5px 10px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  background: rgba(249, 115, 22, 0.84);
}

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

.compact-grid,
.rank-grid {
  grid-template-columns: repeat(5, 1fr);
}

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.10);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #fdba74, #f9a8d4);
}

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

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

.duration,
.rank-badge {
  position: absolute;
  z-index: 3;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.25);
}

.duration {
  right: 10px;
  bottom: 10px;
  padding: 5px 9px;
  font-size: 12px;
  background: rgba(15, 23, 42, 0.74);
}

.rank-badge {
  top: 10px;
  left: 10px;
  min-width: 34px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f59e0b, #f97316);
}

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

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

.movie-card h3 a:hover {
  color: #f97316;
}

.movie-meta {
  margin: 0 0 10px;
  color: #9ca3af;
  font-size: 13px;
}

.movie-desc {
  min-height: 50px;
  margin: 0 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sub-hero {
  padding: 86px 0 72px;
  color: #ffffff;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.18), transparent 28%),
    linear-gradient(110deg, #f97316, #fb7185 55%, #c026d3);
}

.sub-hero h1 {
  color: #ffffff;
  font-size: clamp(36px, 5vw, 58px);
}

.sub-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

.chip-filter {
  margin-top: 24px;
}

.chip-filter button {
  border: 0;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
}

.chip-filter button.is-active,
.chip-filter button:hover {
  color: #f97316;
  background: #ffffff;
}

.search-panel {
  max-width: 760px;
  margin-top: 26px;
}

.search-panel input {
  border-color: rgba(255, 255, 255, 0.42);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
}

.search-panel input::placeholder {
  color: rgba(255, 255, 255, 0.8);
}

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

.detail-backdrop {
  position: absolute;
  inset: 0;
  filter: blur(8px);
  transform: scale(1.04);
}

.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
}

.detail-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.36));
}

.detail-layout {
  position: relative;
  z-index: 2;
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(240px, 330px) 1fr;
  gap: 46px;
  align-items: center;
  padding: 58px 0;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.36);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.76);
}

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

.detail-copy h1 {
  color: #ffffff;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.1;
}

.detail-one-line {
  max-width: 820px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 19px;
  line-height: 1.85;
}

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

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

.detail-tags {
  margin-bottom: 28px;
}

.player-section {
  padding-top: 52px;
  background: #0f172a;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000000;
  box-shadow: 0 34px 80px rgba(15, 23, 42, 0.26);
}

.video-shell video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.16), rgba(15, 23, 42, 0.58));
  cursor: pointer;
}

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

.play-circle {
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 34px;
  background: linear-gradient(135deg, #f97316, #fb7185);
  box-shadow: 0 20px 44px rgba(249, 115, 22, 0.38);
}

.detail-text-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.text-card {
  border-radius: 26px;
  padding: 28px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

.text-card h2 {
  margin: 0 0 14px;
  color: #111827;
}

.site-footer {
  color: #ffffff;
  background: linear-gradient(90deg, #1f2937, #0f172a);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 34px;
  padding: 48px 0;
}

.footer-brand {
  margin-bottom: 14px;
  font-size: 22px;
  font-weight: 900;
}

.footer-grid h2 {
  margin: 0 0 14px;
  font-size: 18px;
}

.footer-grid ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-grid li {
  margin: 8px 0;
  color: rgba(255, 255, 255, 0.7);
}

.footer-grid a:hover {
  color: #fdba74;
}

@media (max-width: 1080px) {
  .category-grid,
  .compact-grid,
  .rank-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .header-search {
    display: none;
  }
}

@media (max-width: 820px) {
  .header-inner {
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    margin-left: 0;
    padding-bottom: 10px;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.16);
  }

  .hero {
    height: 78vh;
  }

  .quick-search-box,
  .detail-layout,
  .detail-text-grid,
  .footer-grid,
  .category-grid.large {
    grid-template-columns: 1fr;
  }

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

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

  .hero h1,
  .detail-copy h1,
  .sub-hero h1 {
    font-size: 36px;
  }

  .hero-actions,
  .wide-search,
  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

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

  .section-block {
    padding: 52px 0;
  }

  .detail-layout {
    gap: 26px;
  }
}
