:root {
  --orange: #f97316;
  --pink: #ec4899;
  --rose: #f43f5e;
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --white: #ffffff;
  --soft: #fff7ed;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.14);
  --shadow-soft: 0 14px 38px rgba(15, 23, 42, 0.1);
  --radius-xl: 1.5rem;
  --radius-2xl: 2rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  color: var(--slate-900);
  background:
    radial-gradient(circle at top left, rgba(249, 115, 22, 0.15), transparent 32rem),
    radial-gradient(circle at top right, rgba(236, 72, 153, 0.14), transparent 30rem),
    linear-gradient(135deg, #fff7ed 0%, #fdf2f8 52%, #fff1f2 100%);
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(249, 115, 22, 0.94), rgba(236, 72, 153, 0.94), rgba(244, 63, 94, 0.94));
  box-shadow: 0 10px 30px rgba(190, 18, 60, 0.18);
  backdrop-filter: blur(14px);
}

.nav-shell,
.footer-shell,
.section-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.94);
  color: var(--orange);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.14);
}

.brand-text {
  color: var(--white);
  font-size: 1.18rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.nav-link {
  color: rgba(255, 255, 255, 0.92);
  padding: 0.7rem 1rem;
  border-radius: 0.9rem;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

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

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.18);
  padding: 0.7rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--white);
  border-radius: 999px;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 680px;
  background: linear-gradient(125deg, var(--orange), var(--pink) 54%, var(--rose));
  color: var(--white);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.24) 0, transparent 24%), radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.18) 0, transparent 22%), linear-gradient(120deg, rgba(2, 6, 23, 0.24), transparent 45%);
}

.hero-glow {
  position: absolute;
  width: 30rem;
  height: 30rem;
  right: 4%;
  top: 8%;
  background: rgba(255, 255, 255, 0.18);
  filter: blur(48px);
  border-radius: 999px;
}

.hero-stage {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  min-height: 600px;
  margin: 0 auto;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.68fr);
  align-items: center;
  gap: 3rem;
  opacity: 0;
  transform: translateX(26px) scale(0.985);
  pointer-events: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
  padding: 5.5rem 0 7rem;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.94);
  font-weight: 700;
  margin-bottom: 1rem;
  backdrop-filter: blur(12px);
}

.hero h1,
.hero h2 {
  margin: 0;
  font-size: clamp(2.5rem, 7vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero h2 {
  font-size: clamp(2.25rem, 6vw, 5rem);
}

.hero-copy p {
  max-width: 680px;
  margin: 1.4rem 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.8;
}

.hero-meta,
.detail-meta,
.movie-meta-line,
.tag-row,
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.hero-meta {
  margin: 1.45rem 0;
}

.hero-meta span,
.detail-meta span,
.tag-row span,
.breadcrumb a,
.breadcrumb span {
  display: inline-flex;
  padding: 0.42rem 0.72rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.94);
  font-weight: 700;
  font-size: 0.9rem;
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.btn-primary,
.btn-secondary,
.text-link,
.filter-bar button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn-primary {
  padding: 0.9rem 1.45rem;
  background: var(--white);
  color: var(--orange);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.18);
}

.btn-secondary {
  padding: 0.9rem 1.45rem;
  background: rgba(255, 255, 255, 0.18);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(12px);
}

.btn-primary:hover,
.btn-secondary:hover,
.text-link:hover,
.filter-bar button:hover {
  transform: translateY(-2px) scale(1.02);
}

.hero-poster {
  position: relative;
  display: block;
  border-radius: var(--radius-2xl);
  padding: 0.8rem;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 1.45rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(15, 23, 42, 0.18));
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 1rem;
  border-radius: 1.3rem;
  box-shadow: inset 0 -120px 80px rgba(2, 6, 23, 0.36);
  pointer-events: none;
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 2.2rem;
  transform: translateX(-50%);
  width: min(1180px, calc(100% - 32px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.hero-arrow {
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  font-size: 1.65rem;
  backdrop-filter: blur(12px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.32);
  transform: scale(1.05);
}

.hero-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
}

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

.hero-dot.is-active {
  width: 34px;
  background: var(--white);
}

.section {
  padding: 4.5rem 0;
}

.section-tight {
  padding: 3.2rem 0;
}

.section-title-row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1.5rem;
  margin-bottom: 1.8rem;
}

.section-kicker {
  color: var(--orange);
  font-weight: 900;
  margin: 0 0 0.35rem;
}

.section-title-row h2,
.page-hero h1,
.detail-title h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  letter-spacing: -0.05em;
}

.section-title-row p,
.page-hero p,
.detail-title p {
  margin: 0.75rem 0 0;
  color: var(--slate-600);
  line-height: 1.8;
}

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

.movie-card,
.category-card,
.rank-panel,
.content-card,
.compact-card,
.filter-bar {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}

.movie-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-xl);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #fed7aa, #fbcfe8);
}

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

.movie-card:hover .poster-link img,
.category-card:hover img,
.compact-card:hover img {
  transform: scale(1.05);
}

.poster-badge {
  position: absolute;
  left: 0.85rem;
  top: 0.85rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 800;
}

.movie-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1rem;
  flex: 1;
}

.movie-meta-line {
  color: var(--slate-500);
  font-size: 0.82rem;
  font-weight: 700;
}

.movie-meta-line span + span::before {
  content: "•";
  margin-right: 0.55rem;
  color: #fb7185;
}

.movie-meta-line.small {
  font-size: 0.78rem;
}

.movie-card h3,
.compact-card h3,
.rank-item h3,
.category-card h3 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.35;
}

.movie-card h3 a,
.compact-card h3 a,
.rank-item h3 a,
.category-card h3 a {
  transition: color 0.2s ease;
}

.movie-card h3 a:hover,
.compact-card h3 a:hover,
.rank-item h3 a:hover,
.category-card h3 a:hover {
  color: var(--orange);
}

.movie-card p,
.compact-card p,
.rank-item p,
.category-card p {
  margin: 0;
  color: var(--slate-600);
  line-height: 1.65;
}

.movie-card p,
.compact-card p,
.rank-item p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag-row span {
  background: linear-gradient(135deg, #ffedd5, #fce7f3);
  color: #c2410c;
  font-size: 0.78rem;
}

.text-link {
  margin-top: auto;
  min-height: auto;
  width: max-content;
  color: var(--orange);
  font-weight: 900;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  padding: 4.5rem 0;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.98), rgba(236, 72, 153, 0.96), rgba(244, 63, 94, 0.96));
  color: var(--white);
}

.page-hero::after,
.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 18% 28%, rgba(255, 255, 255, 0.24), transparent 28%), radial-gradient(circle at 88% 22%, rgba(255, 255, 255, 0.18), transparent 26%);
}

.page-hero .section-shell,
.detail-hero .section-shell {
  position: relative;
  z-index: 1;
}

.page-hero p,
.detail-hero p {
  color: rgba(255, 255, 255, 0.9);
}

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

.category-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  padding: 1.25rem;
  min-height: 230px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-card h3 {
  font-size: 1.45rem;
  margin-bottom: 0.6rem;
}

.category-card p {
  min-height: 3.2rem;
}

.category-preview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.45rem;
  margin: 1.2rem 0;
}

.category-preview img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 0.75rem;
  background: #fed7aa;
}

.filter-bar {
  display: grid;
  grid-template-columns: 1fr 180px 180px;
  gap: 0.85rem;
  padding: 1rem;
  border-radius: var(--radius-xl);
  margin-bottom: 1.5rem;
}

.filter-bar label {
  display: grid;
  gap: 0.35rem;
  color: var(--slate-700);
  font-size: 0.85rem;
  font-weight: 800;
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--slate-200);
  border-radius: 0.95rem;
  padding: 0 0.9rem;
  color: var(--slate-800);
  background: var(--white);
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.filter-bar input:focus,
.filter-bar select:focus {
  border-color: #fb923c;
  box-shadow: 0 0 0 4px rgba(251, 146, 60, 0.16);
}

.empty-state {
  display: none;
  padding: 2rem;
  text-align: center;
  color: var(--slate-600);
  background: rgba(255, 255, 255, 0.86);
  border-radius: var(--radius-xl);
}

.empty-state.is-visible {
  display: block;
}

.rank-panel {
  border-radius: var(--radius-2xl);
  padding: 1.25rem;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 58px 86px 1fr;
  gap: 0.9rem;
  align-items: center;
  padding: 0.85rem;
  border-radius: 1.2rem;
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-item:hover {
  background: #fff7ed;
  transform: translateX(4px);
}

.rank-number {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  font-size: 1.75rem;
  font-weight: 900;
}

.rank-poster img {
  width: 86px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 0.8rem;
  background: #fed7aa;
}

.cta-band {
  overflow: hidden;
  border-radius: var(--radius-2xl);
  padding: clamp(2rem, 5vw, 3.5rem);
  color: var(--white);
  text-align: center;
  background: linear-gradient(100deg, var(--orange), var(--pink), var(--rose));
  box-shadow: var(--shadow);
}

.cta-band h2 {
  margin: 0 0 0.8rem;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.cta-band p {
  max-width: 660px;
  margin: 0 auto 1.4rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.8;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(240px, 360px) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
}

.detail-poster {
  border-radius: var(--radius-2xl);
  padding: 0.8rem;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 1.35rem;
  background: #fed7aa;
}

.breadcrumb {
  margin-bottom: 1.2rem;
}

.breadcrumb a:hover {
  background: rgba(255, 255, 255, 0.28);
}

.detail-title h1 {
  color: var(--white);
}

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

.player-section {
  padding: 3.5rem 0 1.5rem;
}

.player-title {
  margin: 0 0 1rem;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  letter-spacing: -0.04em;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-2xl);
  background: #020617;
  box-shadow: var(--shadow);
}

.player-shell video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  border: 0;
  color: var(--white);
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.68));
  cursor: pointer;
  z-index: 2;
}

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

.play-ring {
  width: 84px;
  height: 84px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  background: rgba(255, 255, 255, 0.95);
  font-size: 2rem;
  box-shadow: 0 22px 52px rgba(2, 6, 23, 0.32);
}

.detail-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 1.5rem;
  align-items: start;
}

.content-card {
  border-radius: var(--radius-2xl);
  padding: clamp(1.25rem, 4vw, 2rem);
}

.content-card h2 {
  margin: 0 0 1rem;
  font-size: 1.5rem;
}

.content-card h2 + p,
.content-card p + h2 {
  margin-top: 1.5rem;
}

.content-card p {
  color: var(--slate-700);
  line-height: 1.95;
  text-align: justify;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.25rem;
}

.detail-tags span {
  padding: 0.46rem 0.78rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffedd5, #fce7f3);
  color: #be123c;
  font-weight: 800;
  font-size: 0.86rem;
}

.related-panel {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 0.85rem;
}

.related-panel h2 {
  margin: 0 0 0.35rem;
}

.compact-card {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 0.8rem;
  align-items: center;
  border-radius: 1.1rem;
  padding: 0.65rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.compact-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.compact-poster {
  overflow: hidden;
  border-radius: 0.8rem;
}

.compact-poster img {
  width: 78px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: #fed7aa;
  transition: transform 0.25s ease;
}

.site-footer {
  margin-top: 4rem;
  background: linear-gradient(135deg, var(--slate-950), var(--slate-800));
  color: var(--white);
}

.footer-shell {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.8fr;
  gap: 2rem;
  padding: 3rem 0;
}

.brand-footer .brand-mark {
  color: var(--pink);
}

.footer-brand p,
.footer-links a,
.footer-bottom {
  color: rgba(255, 255, 255, 0.74);
}

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

.footer-links h2 {
  margin: 0 0 1rem;
  font-size: 1.05rem;
}

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

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 1.2rem 0 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

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

  .detail-content-grid {
    grid-template-columns: 1fr;
  }

  .related-panel {
    position: static;
  }
}

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

  .site-nav {
    position: absolute;
    top: 72px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem;
    border-radius: 1.1rem;
    background: rgba(15, 23, 42, 0.92);
    box-shadow: var(--shadow);
  }

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

  .hero {
    min-height: 760px;
  }

  .hero-stage {
    min-height: 710px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 1.4rem;
    padding: 4rem 0 6rem;
  }

  .hero-poster {
    max-width: 280px;
    margin: 0 auto;
  }

  .movie-grid,
  .category-grid,
  .rank-grid,
  .footer-shell,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .filter-bar {
    grid-template-columns: 1fr;
  }

  .rank-item {
    grid-template-columns: 46px 76px 1fr;
  }

  .rank-poster img {
    width: 76px;
  }
}

@media (max-width: 560px) {
  .section {
    padding: 3rem 0;
  }

  .section-title-row {
    display: block;
  }

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

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

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

  .hero-controls {
    bottom: 1.2rem;
  }

  .hero-arrow {
    width: 40px;
    height: 40px;
  }

  .page-hero,
  .detail-hero {
    padding: 3rem 0;
  }
}
