:root {
  --page-bg: #fff7ed;
  --page-bg-soft: #fdf2f8;
  --text-main: #1f2937;
  --text-soft: #64748b;
  --line-soft: rgba(251, 146, 60, 0.2);
  --orange: #f97316;
  --pink: #ec4899;
  --blue: #38bdf8;
  --shadow-soft: 0 18px 48px rgba(249, 115, 22, 0.14);
  --shadow-card: 0 18px 40px rgba(15, 23, 42, 0.10);
  --radius-xl: 28px;
  --radius-lg: 20px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at top left, rgba(251, 146, 60, 0.18), transparent 34rem),
    radial-gradient(circle at top right, rgba(236, 72, 153, 0.16), transparent 32rem),
    linear-gradient(135deg, #fff7ed 0%, #fdf2f8 48%, #eff6ff 100%);
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(255, 247, 237, 0.94), rgba(253, 242, 248, 0.94), rgba(239, 246, 255, 0.94));
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(251, 146, 60, 0.22);
  box-shadow: 0 10px 30px rgba(249, 115, 22, 0.08);
}

.site-nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.logo-mark {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #fb923c, #ec4899);
  box-shadow: 0 10px 28px rgba(236, 72, 153, 0.28);
}

.logo-text {
  font-size: clamp(1.15rem, 2vw, 1.65rem);
  background: linear-gradient(90deg, #f97316, #ec4899, #38bdf8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

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

.nav-link:hover,
.nav-link.is-active {
  color: var(--orange);
  transform: translateY(-1px);
}

.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.08);
}

.nav-search input {
  width: 190px;
  border: 0;
  outline: 0;
  padding: 8px 8px 8px 14px;
  background: transparent;
}

.nav-search button,
.search-panel button,
.large-search button,
.primary-button {
  border: 0;
  cursor: pointer;
  color: #fff;
  font-weight: 800;
  border-radius: 999px;
  background: linear-gradient(90deg, #f97316, #ec4899);
  box-shadow: 0 12px 28px rgba(236, 72, 153, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-search button {
  padding: 8px 16px;
}

.nav-search button:hover,
.search-panel button:hover,
.large-search button:hover,
.primary-button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 18px 34px rgba(236, 72, 153, 0.32);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  border-radius: 14px;
  background: rgba(251, 146, 60, 0.12);
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #334155;
  border-radius: 10px;
}

.hero-slider {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  height: clamp(460px, 70vh, 660px);
  margin: 28px auto 34px;
  overflow: hidden;
  border-radius: 34px;
  box-shadow: var(--shadow-card);
  background: linear-gradient(135deg, #fb923c, #ec4899, #38bdf8);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
  transform: scale(1.02);
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.45) 52%, rgba(0, 0, 0, 0.10) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.08));
}

.hero-content {
  position: absolute;
  left: clamp(24px, 6vw, 76px);
  bottom: clamp(34px, 8vw, 88px);
  max-width: 720px;
  color: #fff;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: #fde68a;
  font-weight: 800;
}

.hero-content h1,
.page-hero h1,
.detail-intro h1 {
  margin: 0 0 18px;
  font-size: clamp(2.2rem, 7vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero-content p {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 2vw, 1.24rem);
  line-height: 1.8;
  max-width: 650px;
}

.hero-tags,
.detail-tags,
.meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags span,
.detail-tags span,
.meta-pills span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
}

.hero-tags span {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(10px);
}

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

.primary-button,
.ghost-button,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
}

.ghost-button {
  color: #fff;
  font-weight: 800;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(10px);
}

.hero-control {
  position: absolute;
  top: 50%;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  transform: translateY(-50%);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-control:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-50%) scale(1.06);
}

.hero-prev {
  left: 18px;
}

.hero-next {
  right: 18px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 20px;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.55);
  transition: width 0.2s ease, background 0.2s ease;
}

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

.search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin-bottom: 54px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line-soft);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.search-panel form,
.large-search {
  display: flex;
  gap: 12px;
}

.search-panel input,
.large-search input,
.filter-bar input,
.filter-bar select {
  width: 100%;
  min-height: 50px;
  padding: 0 18px;
  border: 1px solid rgba(251, 146, 60, 0.25);
  border-radius: 999px;
  outline: 0;
  background: #fff;
  color: #334155;
}

.search-panel button,
.large-search button {
  min-width: 120px;
  padding: 0 24px;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.quick-links a {
  padding: 10px 14px;
  border-radius: 999px;
  color: #ea580c;
  font-weight: 800;
  background: rgba(251, 146, 60, 0.13);
}

.content-section,
.category-showcase,
.split-section,
.page-main {
  margin-top: 44px;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.section-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, #fb923c, #ec4899);
  box-shadow: 0 12px 26px rgba(236, 72, 153, 0.2);
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  letter-spacing: -0.04em;
}

.section-heading p {
  margin: 5px 0 0;
  color: var(--text-soft);
}

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

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

.movie-card {
  min-width: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.movie-cover {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #fed7aa, #fbcfe8, #bae6fd);
}

.movie-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.movie-card:hover .movie-cover img {
  transform: scale(1.07);
}

.cover-badge,
.cover-duration,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
}

.cover-badge {
  top: 12px;
  left: 12px;
  background: linear-gradient(90deg, #f97316, #ec4899);
}

.cover-duration {
  right: 12px;
  bottom: 12px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(8px);
}

.rank-badge {
  top: 12px;
  right: 12px;
  min-width: 34px;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.movie-body {
  padding: 16px;
}

.movie-body h3 {
  min-height: 3.1em;
  margin: 0 0 8px;
  font-size: 1.02rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.movie-card:hover h3 {
  color: var(--orange);
}

.movie-body p {
  min-height: 4.8em;
  margin: 0 0 12px;
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 700;
}

.movie-meta span {
  padding: 4px 8px;
  border-radius: 999px;
  background: #fff7ed;
}

.movie-tags {
  margin-top: 10px;
  color: #94a3b8;
  font-size: 0.78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.movie-card-compact {
  box-shadow: none;
  border: 1px solid rgba(251, 146, 60, 0.15);
}

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

.category-tile,
.category-overview-card a {
  position: relative;
  display: block;
  min-height: 220px;
  padding: 20px;
  overflow: hidden;
  border-radius: 24px;
  color: #fff;
  background: linear-gradient(135deg, #fb923c, #ec4899);
  box-shadow: var(--shadow-soft);
}

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

.category-tile:hover img {
  transform: scale(1.08);
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.64), rgba(0, 0, 0, 0.1));
}

.category-tile span,
.category-tile p {
  position: relative;
  z-index: 1;
}

.category-tile span {
  display: block;
  margin-top: 95px;
  font-size: 1.35rem;
  font-weight: 900;
}

.category-tile p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.65;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}

.feature-block,
.rank-panel,
.gradient-section,
.page-hero,
.detail-section,
.player-card,
.search-result-head {
  border: 1px solid rgba(251, 146, 60, 0.16);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}

.feature-block,
.rank-panel,
.gradient-section {
  padding: 28px;
}

.warm-block {
  background: linear-gradient(135deg, rgba(255, 247, 237, 0.92), rgba(253, 242, 248, 0.86));
}

.rank-panel {
  position: sticky;
  top: 96px;
}

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

.section-more {
  width: fit-content;
  margin-top: 22px;
  color: #fff;
  font-weight: 900;
  border-radius: 999px;
  background: linear-gradient(90deg, #38bdf8, #ec4899);
}

.page-main {
  padding-bottom: 70px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin: 22px 0;
  color: #64748b;
  font-size: 0.94rem;
}

.breadcrumb a:hover {
  color: var(--orange);
}

.page-hero {
  padding: clamp(28px, 6vw, 56px);
  margin-bottom: 28px;
  background:
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.18), transparent 28rem),
    linear-gradient(135deg, rgba(255, 247, 237, 0.95), rgba(253, 242, 248, 0.9));
}

.page-hero h1 {
  color: #1e293b;
}

.page-hero p {
  max-width: 780px;
  margin: 0;
  color: #64748b;
  font-size: 1.08rem;
  line-height: 1.85;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 14px;
  margin-bottom: 24px;
}

.ranking-grid {
  counter-reset: ranking;
}

.category-overview-card {
  border-radius: 24px;
  overflow: hidden;
}

.category-thumb-stack {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 130px;
  margin: -20px -20px 18px;
  opacity: 0.75;
}

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

.category-overview-body h2 {
  margin: 0 0 10px;
  font-size: 1.45rem;
}

.category-overview-body p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.7;
}

.category-overview-body span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.2);
}

.detail-main {
  max-width: 1180px;
}

.detail-hero {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  padding: clamp(24px, 5vw, 46px);
  border-radius: 34px;
  color: #fff;
  background:
    radial-gradient(circle at 20% 10%, rgba(251, 191, 36, 0.28), transparent 18rem),
    radial-gradient(circle at 90% 10%, rgba(56, 189, 248, 0.2), transparent 20rem),
    linear-gradient(135deg, #111827, #3b0764 52%, #9d174d);
  box-shadow: var(--shadow-card);
}

.detail-poster {
  overflow: hidden;
  border-radius: 26px;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.32);
  background: linear-gradient(135deg, #fed7aa, #fbcfe8, #bae6fd);
}

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

.detail-intro p {
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.1rem;
  line-height: 1.85;
}

.meta-pills span,
.detail-tags span {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.detail-tags {
  margin: 16px 0 26px;
}

.player-card {
  margin-top: 32px;
  padding: 22px;
}

.player-card h2,
.detail-section h2,
.search-result-head h2 {
  margin: 0 0 16px;
  font-size: 1.5rem;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #020617;
  aspect-ratio: 16 / 9;
}

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

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.18));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-circle {
  width: 74px;
  height: 74px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  font-size: 1.9rem;
  background: linear-gradient(135deg, #f97316, #ec4899);
  box-shadow: 0 18px 36px rgba(236, 72, 153, 0.36);
}

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

.detail-section {
  padding: 26px;
}

.detail-section p {
  margin: 0;
  color: #475569;
  line-height: 1.9;
}

.related-section {
  margin-top: 34px;
}

.large-search {
  margin-top: 24px;
  max-width: 720px;
}

.search-result-head {
  padding: 24px;
  margin-bottom: 24px;
}

.search-result-head p {
  margin: 0;
  color: #64748b;
}

.site-footer {
  margin-top: 72px;
  padding: 52px 0 24px;
  background: rgba(255, 255, 255, 0.62);
  border-top: 1px solid rgba(251, 146, 60, 0.18);
}

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

.footer-grid p {
  max-width: 420px;
  color: #64748b;
  line-height: 1.8;
}

.footer-grid h2 {
  margin: 0 0 16px;
  font-size: 1rem;
}

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

.footer-grid li {
  margin: 9px 0;
}

.footer-grid a:hover {
  color: var(--orange);
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 34px auto 0;
  padding-top: 18px;
  color: #94a3b8;
  border-top: 1px solid rgba(251, 146, 60, 0.16);
  font-size: 0.92rem;
}

.is-filtered-out {
  display: none;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 42px;
  text-align: center;
  color: #64748b;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.8);
}

@media (max-width: 1100px) {
  .movie-grid,
  .category-grid,
  .category-overview-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .split-section {
    grid-template-columns: 1fr;
  }

  .rank-panel {
    position: static;
  }
}

@media (max-width: 820px) {
  .site-nav {
    min-height: 64px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 18px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-card);
  }

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

  .nav-search {
    width: 100%;
  }

  .nav-search input {
    width: 100%;
  }

  .hero-slider {
    width: min(100% - 24px, 1180px);
    height: 540px;
    border-radius: 26px;
  }

  .hero-control {
    display: none;
  }

  .hero-content {
    left: 22px;
    right: 22px;
    bottom: 54px;
  }

  .search-panel,
  .filter-bar,
  .detail-hero,
  .detail-content-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .movie-grid,
  .small-grid,
  .category-grid,
  .category-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .detail-poster {
    max-width: 320px;
  }
}

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

  .hero-slider {
    height: 500px;
    margin-top: 18px;
  }

  .hero-content h1,
  .page-hero h1,
  .detail-intro h1 {
    font-size: 2.1rem;
  }

  .hero-tags span:nth-child(n + 4) {
    display: none;
  }

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

  .search-panel form,
  .large-search {
    flex-direction: column;
  }

  .search-panel button,
  .large-search button {
    min-height: 48px;
  }

  .feature-block,
  .rank-panel,
  .gradient-section,
  .page-hero,
  .detail-section,
  .player-card {
    padding: 20px;
    border-radius: 22px;
  }
}
