:root {
  --orange: #f97316;
  --orange-dark: #ea580c;
  --pink: #ec4899;
  --blue: #3b82f6;
  --text: #1f2937;
  --muted: #6b7280;
  --soft: #fff7ed;
  --line: #fed7aa;
  --card: rgba(255, 255, 255, 0.92);
  --shadow: 0 20px 45px rgba(249, 115, 22, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 247, 237, 0.9);
  border-bottom: 1px solid rgba(251, 146, 60, 0.26);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(251, 146, 60, 0.12);
}

.site-nav {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 900;
}

.brand-mark {
  width: 2.45rem;
  height: 2.45rem;
  display: inline-grid;
  place-items: center;
  color: white;
  border-radius: 999px;
  background: linear-gradient(135deg, #fb923c, #f472b6);
  box-shadow: 0 14px 26px rgba(236, 72, 153, 0.3);
}

.brand-text,
.footer-brand {
  font-size: clamp(1.15rem, 2vw, 1.65rem);
  background: linear-gradient(90deg, var(--orange), var(--pink), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}

.nav-link,
.mobile-link {
  padding: 0.62rem 0.88rem;
  border-radius: 999px;
  color: #374151;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover {
  color: var(--orange-dark);
  background: rgba(255, 237, 213, 0.88);
  transform: translateY(-1px);
}

.nav-search,
.mobile-search,
.search-page-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-search input,
.mobile-search input,
.quick-search input,
.search-page-form input,
.local-filter input {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  border-radius: 999px;
  outline: none;
  padding: 0.78rem 1rem;
  min-width: 0;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.nav-search input:focus,
.mobile-search input:focus,
.quick-search input:focus,
.search-page-form input:focus,
.local-filter input:focus {
  border-color: #fdba74;
  box-shadow: 0 0 0 4px rgba(251, 146, 60, 0.16);
}

.nav-search button,
.mobile-search button,
.quick-search button,
.search-page-form button,
.btn-primary {
  border: 0;
  color: white;
  border-radius: 999px;
  padding: 0.82rem 1.18rem;
  font-weight: 800;
  cursor: pointer;
  background: linear-gradient(90deg, var(--orange), var(--pink));
  box-shadow: 0 16px 30px rgba(249, 115, 22, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-search button:hover,
.mobile-search button:hover,
.quick-search button:hover,
.search-page-form button:hover,
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 36px rgba(236, 72, 153, 0.28);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.9rem;
  background: #ffedd5;
  color: #9a3412;
  font-weight: 900;
}

.mobile-menu {
  display: none;
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 0 0 1rem;
  border-top: 1px solid rgba(251, 146, 60, 0.22);
}

.mobile-menu.is-open {
  display: grid;
  gap: 0.55rem;
}

main {
  width: 100%;
}

.hero-slider {
  position: relative;
  min-height: min(76vh, 720px);
  overflow: hidden;
  background: #111827;
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  filter: saturate(1.05);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.62), rgba(17, 24, 39, 0.1)),
    linear-gradient(0deg, rgba(255, 247, 237, 0.95), transparent 30%, transparent 76%, rgba(0, 0, 0, 0.2));
}

.hero-content {
  position: relative;
  width: min(1180px, calc(100% - 2rem));
  min-height: min(76vh, 720px);
  margin: 0 auto;
  padding: 5rem 0 6rem;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.48fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}

.hero-copy {
  color: white;
  max-width: 760px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  color: #c2410c;
  background: rgba(255, 237, 213, 0.92);
  font-weight: 900;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.hero-copy .eyebrow {
  color: #fff7ed;
  background: rgba(249, 115, 22, 0.28);
  border: 1px solid rgba(255, 237, 213, 0.34);
}

.hero-copy h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(2.1rem, 5vw, 4.8rem);
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -0.06em;
}

.hero-copy h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.45rem, 3vw, 2.65rem);
  line-height: 1.12;
  font-weight: 900;
  color: #fed7aa;
}

.hero-copy p,
.quick-search p,
.page-hero p,
.feature-panel p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.9;
}

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.hero-tags {
  margin-top: 1.25rem;
}

.hero-tags span,
.tag-row span {
  display: inline-flex;
  padding: 0.35rem 0.66rem;
  border-radius: 999px;
  color: #9a3412;
  background: #ffedd5;
  font-size: 0.78rem;
  font-weight: 800;
}

.hero-tags span {
  color: white;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1.45rem;
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.34);
  color: white;
  border-radius: 999px;
  padding: 0.82rem 1.18rem;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn-ghost:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.22);
}

.hero-poster {
  position: relative;
  border-radius: 1.6rem;
  overflow: hidden;
  min-height: 440px;
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.35);
  transform: rotate(1deg);
  transition: transform 0.3s ease;
}

.hero-poster:hover {
  transform: rotate(0deg) scale(1.02);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  min-height: 440px;
  object-fit: cover;
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  transform: translateX(-50%);
  display: flex;
  gap: 0.55rem;
  z-index: 4;
}

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

.hero-dot.is-active {
  width: 2rem;
  background: white;
}

.quick-search,
.section-block,
.page-hero,
.detail-layout {
  width: min(1180px, calc(100% - 2rem));
  margin-left: auto;
  margin-right: auto;
}

.quick-search {
  margin-top: -3.4rem;
  position: relative;
  z-index: 6;
  padding: 1.4rem;
  border: 1px solid rgba(251, 146, 60, 0.2);
  border-radius: 1.6rem;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.quick-search-inner {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 440px);
  gap: 1.2rem;
  align-items: center;
}

.quick-search h2,
.section-head h2,
.page-hero h1,
.feature-panel h2,
.side-card h2,
.text-panel h2 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.45rem);
  line-height: 1.15;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.quick-search p,
.page-hero p,
.feature-panel p {
  color: var(--muted);
}

.quick-search form,
.search-page-form {
  display: flex;
}

.quick-search input,
.search-page-form input {
  flex: 1;
}

.category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.category-chips a {
  padding: 0.58rem 0.82rem;
  border-radius: 999px;
  background: #fff7ed;
  color: #9a3412;
  border: 1px solid #fed7aa;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease;
}

.category-chips a:hover {
  transform: translateY(-2px);
  background: #ffedd5;
}

.section-block {
  margin-top: 3.2rem;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1.2rem;
}

.single-head {
  align-items: center;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 1.25rem;
  background: var(--card);
  border: 1px solid rgba(254, 215, 170, 0.82);
  box-shadow: 0 14px 34px rgba(251, 146, 60, 0.12);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px rgba(236, 72, 153, 0.18);
  border-color: #fdba74;
}

.movie-cover {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #ffedd5, #fce7f3);
}

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

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

.score,
.rank-badge {
  position: absolute;
  top: 0.7rem;
  padding: 0.28rem 0.52rem;
  border-radius: 999px;
  color: white;
  font-size: 0.78rem;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.score {
  right: 0.7rem;
  background: linear-gradient(90deg, var(--orange), var(--pink));
}

.rank-badge {
  left: 0.7rem;
  background: rgba(17, 24, 39, 0.72);
}

.movie-card-body {
  padding: 0.95rem;
}

.movie-title {
  display: -webkit-box;
  min-height: 2.8em;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 1.02rem;
  line-height: 1.4;
  font-weight: 950;
}

.movie-title:hover {
  color: var(--orange-dark);
}

.movie-line {
  display: -webkit-box;
  min-height: 3.9em;
  margin: 0.58rem 0;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  color: #6b7280;
  font-size: 0.82rem;
}

.movie-meta span:not(:last-child)::after {
  content: "·";
  padding-left: 0.35rem;
}

.tag-row {
  margin-top: 0.72rem;
}

.two-column-zone {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 1.25rem;
  align-items: stretch;
}

.feature-panel,
.side-card,
.detail-card,
.player-card,
.page-hero {
  border-radius: 1.6rem;
  border: 1px solid rgba(254, 215, 170, 0.78);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.feature-panel {
  padding: clamp(1.4rem, 4vw, 2.5rem);
  background: linear-gradient(135deg, rgba(255, 237, 213, 0.9), rgba(252, 231, 243, 0.88), rgba(219, 234, 254, 0.78));
}

.feature-panel p {
  margin: 1rem 0 1.4rem;
}

.ranking-list,
.side-list {
  display: grid;
  gap: 0.75rem;
}

.mini-card {
  position: relative;
  display: grid;
  grid-template-columns: 74px 1fr auto;
  gap: 0.85rem;
  align-items: center;
  padding: 0.62rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(254, 215, 170, 0.72);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.mini-card:hover {
  transform: translateX(4px);
  border-color: #fdba74;
}

.mini-card img {
  width: 74px;
  height: 92px;
  object-fit: cover;
  border-radius: 0.8rem;
}

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

.mini-body strong,
.mini-body em {
  display: block;
}

.mini-body strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-weight: 950;
}

.mini-body em {
  margin-top: 0.24rem;
  color: var(--muted);
  font-style: normal;
  font-size: 0.84rem;
}

.mini-rank {
  width: 2rem;
  height: 2rem;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #fb923c, #ec4899);
  color: white;
  font-weight: 950;
}

.page-hero {
  margin-top: 2rem;
  padding: clamp(1.6rem, 4vw, 3rem);
  background:
    linear-gradient(135deg, rgba(255, 237, 213, 0.96), rgba(252, 231, 243, 0.86), rgba(219, 234, 254, 0.76));
}

.page-hero p {
  max-width: 760px;
  margin-top: 0.75rem;
}

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

.category-tile {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  border-radius: 1.4rem;
  background: #111827;
  box-shadow: 0 18px 42px rgba(249, 115, 22, 0.16);
}

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

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

.category-tile span {
  position: absolute;
  inset: auto 0 0;
  padding: 1rem;
  color: white;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0));
}

.category-tile strong,
.category-tile em {
  display: block;
}

.category-tile strong {
  font-size: 1.18rem;
  font-weight: 950;
}

.category-tile em {
  margin-top: 0.35rem;
  font-style: normal;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.86rem;
  line-height: 1.55;
}

.local-filter {
  margin-bottom: 1rem;
}

.local-filter input {
  width: min(520px, 100%);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 1.3rem;
  margin-top: 2rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

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

.player-card {
  overflow: hidden;
  background: #111827;
}

.player-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #111827;
}

.video-player {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #111827;
}

.player-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 0.8rem;
  border: 0;
  color: white;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.78), rgba(17, 24, 39, 0.28));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-circle {
  width: 5rem;
  height: 5rem;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  box-shadow: 0 22px 45px rgba(236, 72, 153, 0.36);
  font-size: 2rem;
  padding-left: 0.18rem;
}

.player-layer strong {
  font-size: 1.12rem;
}

.detail-card {
  margin-top: 1.2rem;
  padding: clamp(1.2rem, 3vw, 2rem);
}

.detail-heading {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 1.25rem;
  align-items: start;
}

.detail-heading h1 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.12;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.detail-heading p {
  color: var(--muted);
  margin: 0.8rem 0 0;
}

.detail-heading img {
  border-radius: 1rem;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  box-shadow: 0 18px 40px rgba(249, 115, 22, 0.18);
}

.detail-tags {
  margin: 1.2rem 0;
}

.text-panel {
  margin-top: 1.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(254, 215, 170, 0.76);
}

.text-panel p {
  margin: 0.8rem 0 0;
  color: #4b5563;
  line-height: 1.9;
}

.review-panel {
  padding: 1.2rem;
  border: 0;
  border-radius: 1.1rem;
  background: linear-gradient(135deg, #fff7ed, #fdf2f8);
}

.detail-side {
  min-width: 0;
}

.side-card {
  padding: 1rem;
}

.sticky-card {
  position: sticky;
  top: 92px;
}

.side-card h2 {
  margin-bottom: 1rem;
  font-size: 1.45rem;
}

.movie-card-compact {
  display: grid;
  grid-template-columns: 96px 1fr;
}

.movie-card-compact .movie-cover {
  aspect-ratio: auto;
  height: 100%;
  min-height: 132px;
}

.movie-card-compact .movie-title {
  min-height: auto;
}

.site-footer {
  margin-top: 4rem;
  background: linear-gradient(90deg, #ffedd5, #fce7f3, #dbeafe);
  border-top: 1px solid rgba(251, 146, 60, 0.22);
}

.footer-inner {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2.5rem 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.7fr);
  gap: 2rem;
}

.footer-inner p {
  max-width: 650px;
  color: var(--muted);
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-content: start;
}

.footer-links a {
  padding: 0.48rem 0.7rem;
  border-radius: 999px;
  color: #9a3412;
  background: rgba(255, 255, 255, 0.58);
  font-weight: 800;
}

.footer-links a:hover {
  background: white;
}

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

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

  .hero-content,
  .detail-layout,
  .two-column-zone,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .detail-side {
    order: 2;
  }

  .sticky-card {
    position: static;
  }
}

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

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .hero-content {
    padding-top: 3.5rem;
  }

  .hero-poster {
    display: none;
  }

  .quick-search-inner,
  .detail-heading {
    grid-template-columns: 1fr;
  }

  .detail-heading img {
    width: 160px;
  }

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

@media (max-width: 560px) {
  .site-nav,
  .mobile-menu,
  .quick-search,
  .section-block,
  .page-hero,
  .detail-layout {
    width: min(100% - 1rem, 1180px);
  }

  .brand-text {
    font-size: 1.08rem;
  }

  .hero-slider,
  .hero-content {
    min-height: 680px;
  }

  .hero-copy h1 {
    font-size: 2.15rem;
  }

  .quick-search form,
  .search-page-form,
  .mobile-search {
    flex-direction: column;
    align-items: stretch;
  }

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

  .movie-card-compact {
    grid-template-columns: 86px 1fr;
  }
}
