:root {
  --bg: #fff7ed;
  --paper: #ffffff;
  --paper-soft: #fffaf5;
  --text: #171717;
  --muted: #6b7280;
  --line: rgba(17, 24, 39, 0.1);
  --orange: #fb923c;
  --orange-dark: #ea580c;
  --pink: #ec4899;
  --rose: #f43f5e;
  --shadow: 0 24px 70px rgba(124, 45, 18, 0.14);
  --soft-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(251, 146, 60, 0.16), transparent 34rem),
    linear-gradient(180deg, #fffaf4 0%, #fff7ed 42%, #ffffff 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(251, 146, 60, 0.16);
  backdrop-filter: blur(18px);
}

.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

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

.brand-mark {
  width: 2.6rem;
  height: 2.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  box-shadow: 0 12px 28px rgba(236, 72, 153, 0.28);
}

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

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

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

.nav-link:hover,
.mobile-nav-link:hover,
.nav-link.is-active,
.mobile-nav-link.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 2.7rem;
  height: 2.7rem;
  border: 0;
  border-radius: 0.9rem;
  background: #fff3e7;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 1.25rem;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: #9a3412;
}

.mobile-nav {
  display: none;
  padding: 0 1.25rem 1rem;
  flex-direction: column;
  gap: 0.4rem;
}

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

.hero-slider {
  position: relative;
  min-height: min(760px, calc(100vh - 74px));
  overflow: hidden;
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  padding: clamp(2rem, 5vw, 5rem) max(1.25rem, calc((100vw - 1240px) / 2));
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.72fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.7s ease, transform 1.1s ease;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(17, 24, 39, 0.94), rgba(17, 24, 39, 0.62), rgba(236, 72, 153, 0.2)), var(--hero-bg);
  background-size: cover;
  background-position: center;
  filter: saturate(1.05);
}

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

.hero-overlay {
  position: absolute;
  inset: auto 8% 7% auto;
  width: min(34rem, 55vw);
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(251, 146, 60, 0.35), rgba(236, 72, 153, 0.15), transparent 68%);
  filter: blur(10px);
}

.hero-content,
.hero-poster {
  position: relative;
  z-index: 1;
}

.hero-content {
  color: #fff;
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-content h1,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  font-size: clamp(2.35rem, 6vw, 5.5rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
  font-weight: 950;
}

.hero-text {
  max-width: 660px;
  margin: 1.25rem 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 2.4vw, 1.28rem);
  line-height: 1.9;
}

.hero-tags,
.tag-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.38rem 0.65rem;
  color: #9a3412;
  background: rgba(255, 237, 213, 0.92);
  font-size: 0.78rem;
  font-weight: 800;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 3rem;
  padding: 0.78rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 900;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

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

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  box-shadow: 0 18px 40px rgba(236, 72, 153, 0.28);
}

.btn-ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(12px);
}

.hero-poster {
  min-height: 460px;
  border-radius: 2.2rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.38);
  transform: rotate(2deg);
}

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

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

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

.glass-panel,
.section-wrap,
.filter-bar,
.page-hero,
.detail-hero,
.watch-section {
  max-width: 1240px;
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.quick-search {
  margin-top: -3.2rem;
  position: relative;
  z-index: 8;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.68fr);
  align-items: center;
  gap: 1rem;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.glass-panel {
  max-width: 1180px;
  border-radius: 1.8rem;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  border: 1px solid rgba(251, 146, 60, 0.16);
  backdrop-filter: blur(18px);
}

.quick-search h2,
.section-head h2,
.page-hero h1,
.watch-copy h2,
.detail-content h2 {
  margin: 0;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.search-inline,
.filter-bar {
  display: flex;
  gap: 0.75rem;
}

.search-inline input,
.filter-input,
.filter-select {
  min-height: 3rem;
  border: 1px solid rgba(251, 146, 60, 0.22);
  outline: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.search-inline input,
.filter-input {
  flex: 1;
  padding: 0 1.1rem;
}

.filter-select {
  padding: 0 1rem;
}

.search-inline button {
  border: 0;
  border-radius: 999px;
  padding: 0 1.25rem;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  cursor: pointer;
}

.section-wrap {
  padding-top: 4.5rem;
  padding-bottom: 1rem;
}

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

.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.65rem);
}

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

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

.category-pill,
.category-card {
  border-radius: 1.5rem;
  background: var(--paper);
  border: 1px solid rgba(251, 146, 60, 0.14);
  box-shadow: var(--soft-shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-pill {
  padding: 1.25rem;
  display: grid;
  gap: 0.35rem;
  overflow: hidden;
  position: relative;
}

.category-pill::after,
.category-card::after {
  content: "";
  position: absolute;
  inset: auto -4rem -5rem auto;
  width: 9rem;
  height: 9rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.16), transparent 65%);
}

.category-pill:hover,
.category-card:hover,
.movie-card:hover,
.wide-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.category-pill span {
  font-size: 1.18rem;
  font-weight: 950;
}

.category-pill small {
  color: var(--muted);
  line-height: 1.7;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 1.4rem;
  background: var(--paper);
  box-shadow: var(--soft-shadow);
  border: 1px solid rgba(251, 146, 60, 0.13);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4.05;
  overflow: hidden;
  background: linear-gradient(135deg, #fff3e7, #ffe4e6);
}

.poster-wrap img,
.wide-poster img,
.detail-poster img,
.hero-poster img,
.category-cover img {
  transition: transform 0.45s ease;
}

.movie-card:hover .poster-wrap img,
.wide-card:hover .wide-poster img,
.category-card:hover .category-cover img {
  transform: scale(1.06);
}

.play-chip,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(10px);
}

.play-chip {
  right: 0.75rem;
  bottom: 0.75rem;
  padding: 0.34rem 0.62rem;
  font-size: 0.76rem;
  font-weight: 900;
}

.rank-badge {
  left: 0.75rem;
  top: 0.75rem;
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--orange), var(--pink));
}

.movie-info {
  padding: 1rem;
}

.movie-info h3,
.wide-card h3,
.category-card h2 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.35;
  font-weight: 950;
}

.movie-info h3 a:hover,
.wide-card h3 a:hover,
.category-card h2 a:hover {
  color: var(--orange-dark);
}

.movie-line,
.wide-card p,
.category-card p,
.page-hero p,
.detail-line,
.watch-copy p,
.detail-content p {
  color: var(--muted);
  line-height: 1.85;
}

.movie-line {
  min-height: 3.7em;
  margin: 0.55rem 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  color: #78716c;
  font-size: 0.82rem;
  font-weight: 750;
}

.meta-row span {
  display: inline-flex;
  align-items: center;
}

.meta-row span:not(:last-child)::after {
  content: "";
  width: 4px;
  height: 4px;
  margin-left: 0.55rem;
  border-radius: 50%;
  background: #fdba74;
}

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

.tag-row span {
  color: #c2410c;
  background: #ffedd5;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.8fr);
  gap: 1.2rem;
  align-items: start;
}

.rank-panel {
  position: sticky;
  top: 6rem;
  border-radius: 1.6rem;
  padding: 1.1rem;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(251, 146, 60, 0.14);
  box-shadow: var(--soft-shadow);
}

.compact-head {
  margin-bottom: 1rem;
}

.wide-list {
  display: grid;
  gap: 0.9rem;
}

.wide-card {
  display: grid;
  grid-template-columns: 7.4rem minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  border-radius: 1.2rem;
  padding: 0.75rem;
  background: var(--paper);
  border: 1px solid rgba(251, 146, 60, 0.12);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.wide-poster {
  position: relative;
  height: 9.2rem;
  overflow: hidden;
  border-radius: 1rem;
  background: #fff3e7;
}

.wide-poster strong {
  position: absolute;
  left: 0.55rem;
  top: 0.55rem;
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  font-size: 0.72rem;
  font-weight: 950;
}

.wide-card p {
  margin: 0.45rem 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.page-hero {
  margin-top: 2rem;
  padding-top: clamp(3rem, 7vw, 5.8rem);
  padding-bottom: clamp(3rem, 7vw, 5.8rem);
  border-radius: 2rem;
  color: #fff;
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.22), transparent 20rem),
    linear-gradient(135deg, #111827, #7c2d12 42%, #be185d);
  overflow: hidden;
}

.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 4.6rem);
}

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

.soft-hero {
  background:
    radial-gradient(circle at 70% 18%, rgba(255, 255, 255, 0.2), transparent 22rem),
    linear-gradient(135deg, #431407, #ea580c, #ec4899);
}

.hot-hero {
  background:
    radial-gradient(circle at 75% 20%, rgba(251, 191, 36, 0.25), transparent 22rem),
    linear-gradient(135deg, #0f172a, #831843, #ea580c);
}

.search-hero {
  background:
    radial-gradient(circle at 75% 20%, rgba(255, 255, 255, 0.2), transparent 24rem),
    linear-gradient(135deg, #111827, #9d174d, #fb923c);
}

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

.category-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 12rem minmax(0, 1fr);
  gap: 1rem;
  padding: 1rem;
}

.category-cover {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.35rem;
  min-height: 12rem;
  overflow: hidden;
  border-radius: 1.2rem;
  background: #fff3e7;
}

.category-cover img {
  min-height: 0;
}

.filter-bar {
  margin-top: 1.2rem;
  padding-top: 1.2rem;
  padding-bottom: 0;
}

.filter-bar .filter-input {
  min-width: 0;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(250px, 0.42fr) minmax(0, 1fr);
  gap: clamp(1.4rem, 4vw, 3rem);
  align-items: center;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.detail-poster {
  min-height: 32rem;
  border-radius: 2rem;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #fff3e7;
}

.detail-copy h1 {
  color: #111827;
  font-size: clamp(2.2rem, 5.4vw, 5rem);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.2rem;
  color: #9a3412;
  font-weight: 850;
}

.detail-line {
  max-width: 820px;
  font-size: 1.13rem;
}

.large-tags span {
  padding: 0.46rem 0.8rem;
}

.watch-section {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.6fr);
  gap: 1.2rem;
  align-items: center;
  padding-top: 1rem;
  padding-bottom: 2rem;
}

.watch-player {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 1.6rem;
  background: #0f172a;
  box-shadow: 0 26px 80px rgba(15, 23, 42, 0.25);
}

.movie-video {
  width: 100%;
  height: 100%;
  display: block;
  background: #0f172a;
  object-fit: cover;
  cursor: pointer;
}

.player-start {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #fff;
  cursor: pointer;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.46));
}

.player-start span {
  width: 5rem;
  height: 5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  box-shadow: 0 18px 50px rgba(236, 72, 153, 0.35);
  font-size: 2rem;
  padding-left: 0.2rem;
}

.watch-player.is-playing .player-start {
  opacity: 0;
  pointer-events: none;
}

.watch-copy {
  padding: 1.2rem;
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(251, 146, 60, 0.14);
  box-shadow: var(--soft-shadow);
}

.watch-copy h2 {
  font-size: clamp(1.45rem, 2.6vw, 2.25rem);
}

.narrow-wrap {
  max-width: 980px;
}

.detail-content {
  color: #262626;
}

.detail-content h2 {
  margin-top: 2rem;
  font-size: 1.5rem;
}

.detail-content p {
  font-size: 1.04rem;
}

.info-table {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.info-table div {
  padding: 1rem;
  border-radius: 1rem;
  background: #fff;
  border: 1px solid rgba(251, 146, 60, 0.14);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.04);
}

.info-table span,
.info-table strong {
  display: block;
}

.info-table span {
  color: var(--muted);
  font-size: 0.82rem;
  margin-bottom: 0.3rem;
}

.info-table strong {
  color: #111827;
}

.site-footer {
  margin-top: 5rem;
  color: #d1d5db;
  background: linear-gradient(135deg, #111827, #1f2937 52%, #111827);
}

.footer-grid {
  max-width: 1240px;
  margin: 0 auto;
  padding: 3rem 1.25rem;
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 1.5rem;
}

.footer-grid p {
  color: #9ca3af;
  line-height: 1.8;
}

.footer-grid h2 {
  margin: 0 0 0.9rem;
  color: #fff;
  font-size: 1rem;
}

.footer-grid a:not(.footer-brand) {
  display: block;
  margin: 0.48rem 0;
  color: #d1d5db;
}

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

.footer-brand {
  color: #fff;
}

.footer-bottom {
  max-width: 1240px;
  margin: 0 auto;
  padding: 1rem 1.25rem 2rem;
  color: #9ca3af;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.is-hidden {
  display: none !important;
}

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

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

  .rank-panel {
    position: static;
  }

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

@media (max-width: 820px) {
  .main-nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .hero-slider {
    min-height: 820px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    align-content: center;
    padding-bottom: 5.5rem;
  }

  .hero-poster {
    min-height: 300px;
    transform: none;
  }

  .quick-search,
  .detail-hero,
  .footer-grid,
  .category-card {
    grid-template-columns: 1fr;
  }

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

  .category-cover {
    min-height: 13rem;
  }

  .filter-bar,
  .search-inline {
    flex-direction: column;
  }

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

@media (max-width: 620px) {
  .movie-grid,
  .small-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
  }

  .movie-info {
    padding: 0.78rem;
  }

  .movie-line {
    min-height: auto;
  }

  .wide-card {
    grid-template-columns: 5.6rem minmax(0, 1fr);
  }

  .wide-poster {
    height: 7.4rem;
  }

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

  .detail-poster {
    min-height: 26rem;
  }

  .info-table {
    grid-template-columns: 1fr;
  }
}
