:root {
  --rose: #e11d48;
  --orange: #f97316;
  --amber: #f59e0b;
  --ink: #111827;
  --muted: #6b7280;
  --soft: #fff7ed;
  --line: rgba(17, 24, 39, 0.10);
  --card: rgba(255, 255, 255, 0.92);
  --shadow: 0 24px 70px rgba(17, 24, 39, 0.14);
  font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(244, 63, 94, 0.14), transparent 32rem),
    radial-gradient(circle at 78% 12%, rgba(251, 146, 60, 0.14), transparent 28rem),
    linear-gradient(180deg, #fff7ed 0%, #fff 42%, #fff7ed 100%);
  min-height: 100vh;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, #e11d48, #f97316, #f59e0b);
  box-shadow: 0 14px 42px rgba(225, 29, 72, 0.28);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.brand-text {
  white-space: nowrap;
  font-size: 20px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.nav-link,
.mobile-link {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 999px;
  transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
}

.top-search,
.mobile-search,
.wide-search,
.inline-filter {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-search input,
.mobile-search input,
.wide-search input,
.inline-filter input {
  border: 0;
  outline: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  padding: 11px 16px;
  min-width: 220px;
  color: var(--ink);
}

.top-search button,
.mobile-search button,
.wide-search button,
.inline-filter button,
.primary-btn,
.ghost-btn {
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.top-search button,
.mobile-search button,
.wide-search button,
.inline-filter button,
.primary-btn {
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  box-shadow: 0 14px 32px rgba(225, 29, 72, 0.28);
}

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

.primary-btn:hover,
.ghost-btn:hover,
.top-search button:hover,
.wide-search button:hover,
.inline-filter button:hover {
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.18);
  padding: 10px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #fff;
  border-radius: 99px;
}

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

.mobile-nav {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.hero-carousel {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  color: #fff;
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: center;
  gap: 54px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  opacity: 0;
  pointer-events: none;
  transform: translateX(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

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

.hero-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.hero-bg img {
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
  filter: blur(6px) saturate(1.15);
  transform: scale(1.08);
}

.hero-carousel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.58), rgba(17, 24, 39, 0.86)),
    radial-gradient(circle at 26% 42%, rgba(225, 29, 72, 0.42), transparent 30rem),
    radial-gradient(circle at 72% 50%, rgba(249, 115, 22, 0.30), transparent 28rem);
}

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

.hero-kicker,
.detail-kicker,
.page-hero span,
.section-heading span {
  display: inline-flex;
  color: #fb923c;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.hero-content h1 {
  max-width: 760px;
  margin: 18px 0 18px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.07em;
}

.hero-content p {
  max-width: 680px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.85;
}

.hero-tags,
.detail-tags,
.tag-row,
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags span,
.detail-tags span,
.tag-row span,
.chip-row a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: inherit;
  font-size: 13px;
  font-weight: 800;
}

.tag-row span {
  background: #fff1f2;
  color: #be123c;
}

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

.hero-poster {
  display: block;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.42);
  transform: rotate(2deg);
}

.hero-poster img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.hero-control {
  position: absolute;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.48);
  backdrop-filter: blur(18px);
}

.hero-prev,
.hero-next,
.hero-dot {
  border: 0;
  cursor: pointer;
}

.hero-prev,
.hero-next {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  font-size: 28px;
  line-height: 1;
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.36);
}

.hero-dot.active {
  width: 28px;
  border-radius: 99px;
  background: #fff;
}

.quick-panel,
.content-section,
.page-hero,
.breadcrumb,
.detail-hero,
.player-section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.quick-panel {
  transform: translateY(-52px);
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding: 28px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.quick-panel h2,
.quick-panel p {
  margin: 0;
}

.quick-panel h2 {
  font-size: 28px;
}

.quick-panel p {
  color: var(--muted);
  line-height: 1.7;
}

.wide-search input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  background: #fff;
}

.chip-row a {
  background: #fff7ed;
  color: #c2410c;
  box-shadow: inset 0 0 0 1px rgba(249, 115, 22, 0.18);
}

.content-section {
  padding: 42px 0;
}

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

.section-heading h2,
.page-hero h1,
.detail-info h1,
.detail-copy h2 {
  margin: 8px 0 0;
  letter-spacing: -0.04em;
}

.section-heading h2 {
  font-size: clamp(28px, 4vw, 44px);
}

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

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

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

.movie-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 26px;
  background: var(--card);
  box-shadow: 0 18px 50px rgba(17, 24, 39, 0.10);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 26px 70px rgba(225, 29, 72, 0.16);
}

.poster-frame {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #ffe4e6, #ffedd5);
}

.poster-frame img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.movie-card:hover .poster-frame img {
  transform: scale(1.05);
}

.poster-play,
.rank-badge {
  position: absolute;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  font-weight: 900;
}

.poster-play {
  right: 14px;
  bottom: 14px;
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  box-shadow: 0 16px 36px rgba(225, 29, 72, 0.34);
}

.rank-badge {
  left: 14px;
  top: 14px;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  background: rgba(17, 24, 39, 0.76);
  backdrop-filter: blur(12px);
}

.movie-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
}

.movie-card h2 {
  margin: 0;
  font-size: 19px;
  line-height: 1.35;
}

.movie-card h2 a:hover {
  color: #e11d48;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.movie-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
}

.compact-card .movie-card-body {
  padding: 14px;
}

.compact-card h2 {
  font-size: 16px;
}

.compact-card p,
.compact-card .tag-row {
  display: none;
}

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

.ranking-panel {
  position: sticky;
  top: 92px;
  border-radius: 30px;
  padding: 22px;
  background: #111827;
  color: #fff;
  box-shadow: var(--shadow);
}

.ranking-panel .section-heading a,
.ranking-panel .section-heading span {
  color: #fb923c;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 30px 58px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-item:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateX(4px);
}

.rank-num {
  color: #fb923c;
  font-weight: 900;
  font-size: 20px;
}

.rank-item img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 12px;
}

.rank-text {
  min-width: 0;
}

.rank-text strong,
.rank-text em {
  display: block;
}

.rank-text strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-text em {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.62);
  font-style: normal;
  font-size: 12px;
}

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

.category-tile,
.category-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #111827;
  color: #fff;
  box-shadow: 0 18px 50px rgba(17, 24, 39, 0.14);
}

.category-tile img {
  height: 260px;
  object-fit: cover;
  opacity: 0.58;
  transition: transform 0.35s ease;
}

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

.category-tile span,
.category-tile em {
  position: absolute;
  left: 20px;
  right: 20px;
}

.category-tile span {
  bottom: 64px;
  font-size: 24px;
  font-weight: 900;
}

.category-tile em {
  bottom: 20px;
  color: rgba(255, 255, 255, 0.78);
  font-style: normal;
  line-height: 1.5;
}

.page-hero {
  margin-top: 34px;
  padding: 58px;
  border-radius: 36px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 247, 237, 0.92)),
    radial-gradient(circle at 80% 0%, rgba(249, 115, 22, 0.24), transparent 22rem);
  box-shadow: var(--shadow);
}

.page-hero h1 {
  font-size: clamp(36px, 5vw, 64px);
}

.page-hero p {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.8;
  font-size: 17px;
}

.inline-filter {
  margin-top: 24px;
  max-width: 640px;
}

.inline-filter input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
}

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

.category-card {
  display: block;
  background: #fff;
  color: var(--ink);
}

.category-posters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 8px;
  background: linear-gradient(135deg, #111827, #7f1d1d);
}

.category-posters img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 14px;
}

.category-card-body {
  padding: 22px;
}

.category-card-body h2 {
  margin: 0 0 10px;
}

.category-card-body p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.7;
}

.category-card-body span {
  color: #e11d48;
  font-weight: 900;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 26px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: #e11d48;
  font-weight: 800;
}

.detail-hero {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  margin-top: 26px;
  padding: 36px;
  border-radius: 36px;
  background: #111827;
  color: #fff;
  box-shadow: var(--shadow);
}

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

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

.detail-info h1 {
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.05;
}

.detail-line {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.8;
}

.detail-tags {
  margin: 24px 0;
}

.player-section {
  padding-top: 42px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  background: #000;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.movie-video,
.player-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.movie-video {
  background: #000;
}

.player-poster {
  display: grid;
  place-items: center;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: #fff;
  background: #000;
}

.player-poster.is-hidden {
  display: none;
}

.player-poster img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  opacity: 0.62;
}

.player-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(225, 29, 72, 0.10), rgba(0, 0, 0, 0.50));
}

.play-orb {
  position: relative;
  z-index: 2;
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  box-shadow: 0 22px 58px rgba(225, 29, 72, 0.42);
  font-size: 34px;
}

.detail-copy article {
  padding: 34px;
  border-radius: 30px;
  background: #fff;
  box-shadow: var(--shadow);
}

.detail-copy p {
  color: #374151;
  line-height: 1.9;
  font-size: 17px;
}

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

.info-grid span {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 18px;
  background: #fff7ed;
  color: #9a3412;
  font-weight: 800;
}

.info-grid strong {
  color: var(--ink);
}

.site-footer {
  margin-top: 48px;
  color: #d1d5db;
  background: #111827;
}

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
  padding: 54px 0 34px;
}

.footer-brand {
  color: #fff;
  font-size: 24px;
}

.site-footer p {
  line-height: 1.8;
}

.site-footer h2 {
  color: #fff;
  margin: 0 0 16px;
  font-size: 18px;
}

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

.footer-links a {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.footer-links a:hover {
  background: rgba(255, 255, 255, 0.14);
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  color: #9ca3af;
  text-align: center;
}

.hidden-by-filter {
  display: none !important;
}

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

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 86px 0 110px;
  }

  .hero-poster {
    display: none;
  }

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

  .split-layout,
  .footer-grid,
  .detail-hero {
    grid-template-columns: 1fr;
  }

  .ranking-panel {
    position: relative;
    top: auto;
  }
}

@media (max-width: 760px) {
  .header-inner {
    height: 62px;
  }

  .brand-text {
    font-size: 18px;
  }

  .hero-carousel {
    min-height: 620px;
  }

  .hero-content h1 {
    font-size: 42px;
  }

  .hero-content p,
  .detail-line {
    font-size: 16px;
  }

  .quick-panel,
  .page-hero,
  .detail-hero,
  .detail-copy article {
    padding: 24px;
    border-radius: 24px;
  }

  .wide-search,
  .inline-filter,
  .mobile-search {
    align-items: stretch;
    flex-direction: column;
  }

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

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .footer-grid {
    gap: 24px;
  }
}

@media (max-width: 480px) {
  .movie-grid,
  .small-grid,
  .category-grid,
  .category-list-grid,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-control {
    bottom: 18px;
  }
}
