:root {
  --orange: #f97316;
  --pink: #ec4899;
  --red: #ef4444;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #fed7aa;
  --soft: #fff7ed;
  --bg: #fffaf5;
  --card: #ffffff;
  --shadow: 0 18px 45px rgba(124, 45, 18, 0.12);
}
* {
  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: var(--ink);
  background: linear-gradient(180deg, #fffaf5 0%, #ffffff 52%, #fff7ed 100%);
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid #ffedd5;
  box-shadow: 0 10px 30px rgba(249, 115, 22, 0.08);
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  min-height: 74px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.brand-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  box-shadow: 0 12px 30px rgba(236, 72, 153, 0.24);
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-text strong {
  font-size: 23px;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand-text em {
  font-size: 12px;
  color: var(--muted);
  font-style: normal;
  margin-top: 4px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
}
.nav-link {
  font-weight: 700;
  color: #4b5563;
  transition: color 0.2s ease;
}
.nav-link:hover {
  color: var(--orange);
}
.top-search {
  display: flex;
  align-items: center;
  gap: 8px;
}
.top-search input,
.wide-search input,
.filter-panel input,
.search-page-panel input {
  border: 1px solid #fed7aa;
  border-radius: 999px;
  padding: 12px 18px;
  outline: 0;
  min-width: 210px;
  background: #fff;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.top-search input:focus,
.wide-search input:focus,
.filter-panel input:focus,
.search-page-panel input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.14);
}
.top-search button,
.wide-search button,
.search-page-panel button {
  border: 0;
  border-radius: 999px;
  padding: 12px 20px;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}
.menu-btn {
  display: none;
  border: 0;
  background: #fff7ed;
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--orange);
  font-size: 22px;
}
.mobile-panel {
  display: none;
  border-top: 1px solid #ffedd5;
  padding: 16px 22px 22px;
}
.mobile-panel.open {
  display: grid;
  gap: 12px;
}
.mobile-panel a {
  font-weight: 800;
  color: #4b5563;
}
.mobile-panel form {
  display: flex;
  gap: 8px;
}
.mobile-panel input {
  flex: 1;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  padding: 11px 14px;
}
.mobile-panel button {
  border: 0;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  padding: 0 16px;
  font-weight: 800;
}
.hero {
  position: relative;
  height: 610px;
  overflow: hidden;
  background: #111827;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}
.hero-slide.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 75% 20%, rgba(236, 72, 153, 0.32), transparent 30%), linear-gradient(90deg, rgba(0, 0, 0, 0.86) 0%, rgba(0, 0, 0, 0.62) 40%, rgba(0, 0, 0, 0.24) 100%), linear-gradient(0deg, rgba(0, 0, 0, 0.78), transparent 60%);
}
.hero-content {
  position: absolute;
  left: max(24px, calc((100vw - 1280px) / 2 + 24px));
  top: 50%;
  transform: translateY(-45%);
  max-width: 720px;
  color: #fff;
}
.eyebrow,
.detail-label,
.page-hero span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(249, 115, 22, 0.16);
  color: #fdba74;
  font-weight: 900;
  letter-spacing: 0.04em;
}
.hero h1 {
  margin: 18px 0 16px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}
.hero p {
  margin: 0 0 24px;
  color: #f3f4f6;
  font-size: 20px;
  line-height: 1.75;
}
.hero-meta,
.detail-meta,
.card-meta,
.rank-info div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.hero-meta span,
.detail-meta span,
.card-meta span,
.rank-info div span {
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-weight: 700;
}
.card-meta span,
.rank-info div span,
.detail-meta span {
  color: #6b7280;
  background: #fff7ed;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}
.primary-btn,
.ghost-btn,
.more-link,
.rank-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.primary-btn {
  padding: 15px 28px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  box-shadow: 0 16px 36px rgba(236, 72, 153, 0.32);
}
.ghost-btn {
  padding: 14px 24px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.28);
}
.primary-btn:hover,
.ghost-btn:hover,
.rank-play:hover {
  transform: translateY(-2px);
}
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 38px;
  cursor: pointer;
  backdrop-filter: blur(12px);
}
.hero-arrow.prev {
  left: 22px;
}
.hero-arrow.next {
  right: 22px;
}
.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}
.hero-dot {
  width: 13px;
  height: 13px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}
.hero-dot.active {
  width: 38px;
  background: #fff;
}
.home-search-band {
  max-width: 1180px;
  margin: -54px auto 42px;
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 28px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  border: 1px solid #ffedd5;
}
.home-search-band h2 {
  margin: 0 0 8px;
  font-size: 28px;
}
.home-search-band p {
  margin: 0;
  color: var(--muted);
}
.wide-search {
  display: flex;
  align-items: center;
  gap: 10px;
}
.wide-search input {
  min-width: min(480px, 52vw);
}
.content-wrap,
.page-main,
.detail-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 44px 24px;
}
.content-wrap.no-top {
  padding-top: 22px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin-bottom: 28px;
}
.section-head h2 {
  margin: 0;
  font-size: 34px;
}
.section-head p {
  margin: 8px 0 0;
  color: var(--muted);
}
.more-link {
  color: var(--orange);
}
.movie-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.hot-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: var(--card);
  box-shadow: 0 12px 32px rgba(31, 41, 55, 0.08);
  border: 1px solid #ffedd5;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}
.card-poster {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5.4;
  background: linear-gradient(135deg, #fb923c, #ec4899);
  overflow: hidden;
}
.card-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.movie-card:hover .card-poster img {
  transform: scale(1.08);
}
.card-year,
.card-cat {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  padding: 6px 10px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(8px);
}
.card-year {
  right: 12px;
  bottom: 12px;
}
.card-cat {
  left: 12px;
  top: 12px;
  background: linear-gradient(135deg, var(--orange), var(--pink));
}
.card-body {
  padding: 18px;
}
.card-body h3 {
  margin: 0 0 10px;
  line-height: 1.35;
  font-size: 18px;
}
.card-body h3 a:hover,
.rank-info h2 a:hover,
.related-card:hover strong {
  color: var(--orange);
}
.card-body p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
}
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.tag-row span {
  border-radius: 999px;
  padding: 6px 10px;
  color: #ea580c;
  background: #ffedd5;
  font-size: 12px;
  font-weight: 800;
}
.large-card {
  grid-column: span 2;
}
.highlight-wrap {
  border-radius: 34px;
  background: linear-gradient(135deg, #fff7ed, #fdf2f8);
  box-shadow: inset 0 0 0 1px #ffedd5;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}
.category-tile {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 26px;
  padding: 22px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  box-shadow: 0 14px 32px rgba(236, 72, 153, 0.22);
}
.category-tile span {
  font-size: 24px;
  font-weight: 900;
}
.category-tile p {
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.55;
}
.category-tile div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.category-tile div a {
  font-size: 12px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}
.page-hero {
  margin-top: 26px;
  border-radius: 34px;
  padding: 64px;
  color: #fff;
  background: radial-gradient(circle at top right, rgba(236, 72, 153, 0.45), transparent 36%), linear-gradient(135deg, #111827, #7c2d12 62%, #be185d);
  box-shadow: var(--shadow);
}
.page-hero h1 {
  margin: 18px 0 16px;
  font-size: clamp(34px, 5vw, 58px);
}
.page-hero p {
  margin: 0;
  max-width: 780px;
  color: #f3f4f6;
  line-height: 1.75;
  font-size: 18px;
}
.overview-list {
  display: grid;
  gap: 28px;
  margin-top: 36px;
}
.category-overview-card {
  padding: 26px;
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(31, 41, 55, 0.08);
  border: 1px solid #ffedd5;
}
.category-overview-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.category-overview-head h2 {
  margin: 0 0 8px;
  font-size: 30px;
}
.category-overview-head p {
  margin: 0;
  color: var(--muted);
}
.category-overview-head a {
  color: var(--orange);
  font-weight: 900;
}
.mini-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}
.mini-grid .card-body p,
.mini-grid .tag-row {
  display: none;
}
.filter-panel,
.search-page-panel {
  margin: 28px auto 0;
  padding: 24px;
  border: 1px solid #ffedd5;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(31, 41, 55, 0.08);
}
.filter-panel input {
  width: 100%;
  margin-bottom: 14px;
}
.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.filter-buttons button {
  border: 0;
  border-radius: 999px;
  padding: 9px 14px;
  background: #fff7ed;
  color: #ea580c;
  font-weight: 900;
  cursor: pointer;
}
.filter-buttons button.active {
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--pink));
}
.rank-list {
  display: grid;
  gap: 16px;
  padding: 28px 24px 60px;
  max-width: 1280px;
  margin: 0 auto;
}
.rank-row {
  display: grid;
  grid-template-columns: 72px 118px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid #ffedd5;
  box-shadow: 0 8px 24px rgba(31, 41, 55, 0.06);
}
.rank-num {
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  color: #fff;
  font-size: 24px;
  font-weight: 950;
  background: linear-gradient(135deg, var(--orange), var(--pink));
}
.rank-poster {
  width: 118px;
  aspect-ratio: 4 / 5.4;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, #fb923c, #ec4899);
}
.rank-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.rank-info h2 {
  margin: 0 0 10px;
  font-size: 22px;
}
.rank-info p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.65;
}
.rank-play {
  padding: 12px 20px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--pink));
}
.search-results {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}
.search-item {
  display: grid;
  grid-template-columns: 86px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid #ffedd5;
  border-radius: 20px;
  background: #fff;
}
.search-item img {
  width: 86px;
  aspect-ratio: 4 / 5.4;
  object-fit: cover;
  border-radius: 14px;
  background: linear-gradient(135deg, #fb923c, #ec4899);
}
.search-item h2 {
  margin: 0 0 8px;
  font-size: 20px;
}
.search-item p,
.search-summary {
  color: var(--muted);
}
.detail-main {
  padding-top: 28px;
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  color: var(--muted);
  margin-bottom: 22px;
}
.breadcrumb a {
  color: var(--orange);
  font-weight: 800;
}
.detail-hero {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 34px;
  padding: 34px;
  border-radius: 34px;
  color: #fff;
  background: radial-gradient(circle at 82% 12%, rgba(236, 72, 153, 0.35), transparent 34%), linear-gradient(135deg, #111827, #7c2d12 58%, #be185d);
  box-shadow: var(--shadow);
}
.detail-poster {
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.28);
  background: linear-gradient(135deg, #fb923c, #ec4899);
}
.detail-poster img {
  width: 100%;
  aspect-ratio: 4 / 5.4;
  object-fit: cover;
}
.detail-info {
  align-self: center;
}
.detail-info h1 {
  margin: 18px 0 16px;
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.05;
}
.detail-one {
  color: #f3f4f6;
  font-size: 20px;
  line-height: 1.75;
}
.detail-tags span {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}
.detail-info .primary-btn {
  margin-top: 28px;
}
.player-panel {
  margin-top: 32px;
  border-radius: 34px;
  padding: 18px;
  background: #111827;
  box-shadow: var(--shadow);
}
.player-stage {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  aspect-ratio: 16 / 9;
  background: #000;
}
.player-stage video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
}
.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  color: #fff;
  cursor: pointer;
  background: radial-gradient(circle at center, rgba(236, 72, 153, 0.26), rgba(0, 0, 0, 0.58));
}
.player-overlay span {
  width: 78px;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  font-size: 32px;
  box-shadow: 0 18px 45px rgba(236, 72, 153, 0.35);
}
.player-overlay strong {
  font-size: 22px;
}
.player-overlay.hide {
  display: none;
}
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  margin-top: 32px;
}
.detail-article,
.related-box {
  border-radius: 30px;
  padding: 30px;
  background: #fff;
  border: 1px solid #ffedd5;
  box-shadow: 0 12px 32px rgba(31, 41, 55, 0.08);
}
.detail-article h2,
.related-box h2 {
  margin: 0 0 18px;
  font-size: 26px;
}
.detail-article p {
  margin: 0 0 28px;
  color: #4b5563;
  line-height: 1.9;
  font-size: 17px;
}
.related-list {
  display: grid;
  gap: 14px;
}
.related-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  transition: background 0.2s ease;
}
.related-card:hover {
  background: #fff7ed;
}
.related-card img {
  width: 96px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 14px;
  background: linear-gradient(135deg, #fb923c, #ec4899);
  grid-row: span 2;
}
.related-card strong {
  align-self: end;
}
.related-card span {
  align-self: start;
  color: var(--muted);
  font-size: 13px;
}
.site-footer {
  margin-top: 48px;
  padding: 42px 24px;
  background: #111827;
  color: #e5e7eb;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 30px;
  align-items: start;
}
.footer-inner strong {
  font-size: 24px;
}
.footer-inner p {
  color: #9ca3af;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-links a {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}
.hidden-by-filter {
  display: none !important;
}
@media (max-width: 1120px) {
  .main-nav {
    display: none;
  }
  .menu-btn {
    display: block;
  }
  .header-inner {
    justify-content: space-between;
  }
  .movie-grid,
  .hot-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .mini-grid,
  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .detail-layout {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 820px) {
  .top-search {
    display: none;
  }
  .hero {
    height: 620px;
  }
  .hero-content {
    left: 22px;
    right: 22px;
  }
  .hero-arrow {
    display: none;
  }
  .home-search-band {
    margin: -34px 18px 22px;
    grid-template-columns: 1fr;
  }
  .wide-search {
    flex-direction: column;
    align-items: stretch;
  }
  .wide-search input {
    min-width: 0;
    width: 100%;
  }
  .section-head,
  .category-overview-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .movie-grid,
  .hot-grid,
  .mini-grid,
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .large-card {
    grid-column: span 1;
  }
  .page-hero {
    padding: 38px 24px;
  }
  .rank-row,
  .search-item {
    grid-template-columns: 64px 1fr;
  }
  .rank-poster,
  .rank-play,
  .search-item > a:last-child {
    display: none;
  }
  .detail-hero {
    grid-template-columns: 1fr;
    padding: 22px;
  }
  .detail-poster {
    max-width: 330px;
  }
  .footer-inner {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 520px) {
  .brand-text strong {
    font-size: 19px;
  }
  .brand-text em {
    display: none;
  }
  .movie-grid,
  .hot-grid,
  .mini-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 42px;
  }
  .hero p {
    font-size: 17px;
  }
  .content-wrap,
  .page-main,
  .detail-main {
    padding-left: 16px;
    padding-right: 16px;
  }
  .rank-list {
    padding-left: 16px;
    padding-right: 16px;
  }
  .related-card {
    grid-template-columns: 78px 1fr;
  }
  .related-card img {
    width: 78px;
  }
}
