:root {
  --page-bg: #fff7ed;
  --panel: #ffffff;
  --panel-soft: rgba(255, 255, 255, 0.86);
  --text: #111827;
  --muted: #6b7280;
  --line: #fed7aa;
  --orange: #f97316;
  --orange-dark: #ea580c;
  --pink: #ec4899;
  --rose: #fb7185;
  --shadow: 0 24px 60px rgba(251, 113, 133, 0.18);
  --shadow-card: 0 18px 40px rgba(17, 24, 39, 0.08);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(251, 146, 60, 0.24), transparent 34rem),
    radial-gradient(circle at top right, rgba(236, 72, 153, 0.16), transparent 28rem),
    linear-gradient(180deg, #fff7ed 0%, #fff 38%, #fff7ed 100%);
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(254, 215, 170, 0.72);
  background: rgba(255, 247, 237, 0.88);
  backdrop-filter: blur(18px);
}

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

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #111827;
}

.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 900;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  box-shadow: 0 14px 30px rgba(249, 115, 22, 0.32);
}

.logo-text {
  font-size: 1.2rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #4b5563;
  font-weight: 700;
}

.site-nav a {
  padding: 10px 13px;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--orange-dark);
  background: #ffedd5;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: #ffedd5;
  color: var(--orange-dark);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  border-radius: 999px;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 680px;
  padding: 82px 0 68px;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -3;
}

.hero-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 0.8s ease, transform 6s ease;
}

.hero-bg img.is-active {
  opacity: 0.32;
  transform: scale(1);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(255, 247, 237, 0.98) 0%, rgba(255, 247, 237, 0.92) 38%, rgba(255, 247, 237, 0.66) 100%),
    radial-gradient(circle at 78% 18%, rgba(236, 72, 153, 0.28), transparent 26rem),
    radial-gradient(circle at 42% 100%, rgba(249, 115, 22, 0.2), transparent 30rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.72fr);
  gap: 42px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 237, 213, 0.9);
  color: var(--orange-dark);
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(251, 146, 60, 0.28);
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.6rem, 7vw, 5.8rem);
  line-height: 0.94;
  letter-spacing: -0.08em;
  max-width: 820px;
}

.hero-lead {
  margin: 24px 0 0;
  max-width: 720px;
  color: #4b5563;
  font-size: clamp(1.05rem, 2vw, 1.24rem);
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  color: white;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  box-shadow: 0 18px 36px rgba(249, 115, 22, 0.28);
}

.btn-secondary {
  color: var(--orange-dark);
  background: white;
  border-color: #fed7aa;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 42px rgba(249, 115, 22, 0.22);
}

.hero-search {
  margin-top: 34px;
  padding: 14px;
  border-radius: 999px;
  display: flex;
  gap: 12px;
  max-width: 640px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(254, 215, 170, 0.85);
}

.hero-search input,
.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #111827;
}

.hero-search input {
  padding: 0 8px 0 16px;
}

.hero-panel {
  position: relative;
  min-height: 560px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(24px) scale(0.98);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}

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

.hero-card {
  height: 100%;
  padding: 18px;
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.hero-poster {
  position: relative;
  height: 360px;
  overflow: hidden;
  border-radius: 26px;
  background: linear-gradient(135deg, #ffedd5, #fce7f3);
}

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

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 36%, rgba(17, 24, 39, 0.7));
}

.hero-rank {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  padding: 8px 12px;
  border-radius: 999px;
  color: white;
  font-weight: 900;
  background: rgba(17, 24, 39, 0.5);
  backdrop-filter: blur(10px);
}

.hero-card-body {
  padding: 22px 8px 6px;
}

.hero-card-body h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.12;
  letter-spacing: -0.05em;
}

.hero-card-body p {
  margin: 14px 0 0;
  color: #4b5563;
  line-height: 1.8;
}

.meta-row,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.meta-row {
  margin-top: 16px;
}

.meta-pill,
.tag-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
}

.meta-pill {
  color: var(--orange-dark);
  background: #ffedd5;
}

.tag-pill {
  color: #be185d;
  background: #fce7f3;
}

.hero-dots {
  position: absolute;
  left: 26px;
  bottom: 24px;
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: #fdba74;
  opacity: 0.55;
  cursor: pointer;
}

.hero-dot.is-active {
  width: 30px;
  opacity: 1;
  background: linear-gradient(135deg, var(--orange), var(--pink));
}

.section {
  padding: 72px 0;
}

.section-soft {
  background: linear-gradient(90deg, rgba(252, 231, 243, 0.65), rgba(255, 237, 213, 0.76));
}

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

.section-kicker {
  margin: 0 0 8px;
  color: var(--orange-dark);
  font-weight: 900;
}

.section-title {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.section-desc {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.8;
  max-width: 720px;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: var(--panel);
  border: 1px solid rgba(254, 215, 170, 0.72);
  box-shadow: var(--shadow-card);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 60px rgba(249, 115, 22, 0.18);
  border-color: #fdba74;
}

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

.poster-link.wide {
  aspect-ratio: 16 / 9;
}

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

.movie-card:hover .poster-link img {
  transform: scale(1.06);
}

.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  color: white;
  font-size: 0.76rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  box-shadow: 0 10px 20px rgba(236, 72, 153, 0.24);
}

.card-body {
  padding: 18px;
}

.card-title {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.35;
  font-weight: 900;
  letter-spacing: -0.03em;
}

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

.card-line {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.94rem;
}

.card-meta {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.category-card {
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border-radius: 26px;
  color: white;
  background:
    radial-gradient(circle at 80% 12%, rgba(255, 255, 255, 0.36), transparent 9rem),
    linear-gradient(135deg, var(--orange), var(--pink));
  box-shadow: 0 24px 54px rgba(236, 72, 153, 0.24);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-card:nth-child(2n) {
  background:
    radial-gradient(circle at 80% 12%, rgba(255, 255, 255, 0.34), transparent 9rem),
    linear-gradient(135deg, #f43f5e, #fb923c);
}

.category-card:nth-child(3n) {
  background:
    radial-gradient(circle at 80% 12%, rgba(255, 255, 255, 0.32), transparent 9rem),
    linear-gradient(135deg, #f97316, #db2777);
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 70px rgba(249, 115, 22, 0.28);
}

.category-card h2,
.category-card h3 {
  margin: 0;
  font-size: 1.45rem;
  letter-spacing: -0.04em;
}

.category-card p {
  margin: 12px 0 0;
  line-height: 1.72;
  color: rgba(255, 255, 255, 0.86);
}

.category-card ul {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 6px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 62px 120px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border-radius: 24px;
  background: white;
  border: 1px solid rgba(254, 215, 170, 0.72);
  box-shadow: var(--shadow-card);
}

.rank-number {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: white;
  font-weight: 900;
  background: linear-gradient(135deg, var(--orange), var(--pink));
}

.rank-thumb {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 18px;
  background: #ffedd5;
}

.rank-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-info h2,
.rank-info h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 900;
}

.rank-info p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.search-panel {
  padding: 22px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(254, 215, 170, 0.84);
  box-shadow: var(--shadow-card);
  margin-bottom: 28px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 18px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
}

.filter-row {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-chip {
  border: 1px solid #fed7aa;
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--orange-dark);
  background: white;
  font-weight: 800;
  cursor: pointer;
}

.filter-chip:hover,
.filter-chip.is-active {
  color: white;
  background: linear-gradient(135deg, var(--orange), var(--pink));
}

.empty-state {
  display: none;
  padding: 24px;
  border-radius: 20px;
  color: var(--muted);
  background: white;
  border: 1px dashed #fdba74;
  text-align: center;
}

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

.page-hero {
  padding: 64px 0 36px;
}

.page-card {
  padding: clamp(28px, 5vw, 56px);
  border-radius: 34px;
  background:
    radial-gradient(circle at 84% 12%, rgba(236, 72, 153, 0.22), transparent 22rem),
    linear-gradient(135deg, #fff, #fff7ed);
  border: 1px solid rgba(254, 215, 170, 0.86);
  box-shadow: var(--shadow-card);
}

.page-card h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 1;
  letter-spacing: -0.07em;
}

.page-card p {
  max-width: 760px;
  margin: 18px 0 0;
  color: #4b5563;
  line-height: 1.85;
  font-size: 1.08rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 22px 0;
  color: var(--muted);
  font-size: 0.94rem;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 30px;
  align-items: start;
}

.detail-main,
.detail-side {
  border-radius: 30px;
  background: white;
  border: 1px solid rgba(254, 215, 170, 0.76);
  box-shadow: var(--shadow-card);
}

.detail-main {
  overflow: hidden;
}

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

.player-box video {
  width: 100%;
  height: 100%;
  display: block;
  background: #111827;
  cursor: pointer;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  cursor: pointer;
  z-index: 3;
  transition: opacity 0.24s ease, visibility 0.24s ease;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.08), rgba(17, 24, 39, 0.72));
}

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

.play-button {
  width: 92px;
  height: 92px;
  border: 0;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  box-shadow: 0 24px 54px rgba(236, 72, 153, 0.34);
  cursor: pointer;
  font-size: 2rem;
  padding-left: 8px;
}

.detail-content {
  padding: clamp(22px, 4vw, 36px);
}

.detail-content h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.06em;
}

.detail-content h2,
.detail-side h2 {
  margin: 30px 0 12px;
  font-size: 1.35rem;
  letter-spacing: -0.04em;
}

.detail-content p {
  color: #4b5563;
  line-height: 1.9;
  margin: 12px 0 0;
}

.detail-side {
  padding: 20px;
  position: sticky;
  top: 94px;
}

.side-poster {
  overflow: hidden;
  border-radius: 22px;
  aspect-ratio: 3 / 4;
  background: #ffedd5;
}

.side-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-list {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.related-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  padding: 10px;
  border-radius: 16px;
  background: #fff7ed;
  transition: background 0.2s ease, transform 0.2s ease;
}

.related-item:hover {
  transform: translateX(3px);
  background: #ffedd5;
}

.related-item img {
  width: 64px;
  height: 78px;
  border-radius: 12px;
  object-fit: cover;
}

.related-item strong {
  display: block;
  line-height: 1.35;
}

.related-item span {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 6px;
}

.site-footer {
  margin-top: 80px;
  padding: 46px 0;
  color: #e5e7eb;
  background: #111827;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 34px;
}

.footer-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: white;
  font-weight: 900;
  font-size: 1.2rem;
}

.footer-text {
  margin: 14px 0 0;
  color: #9ca3af;
  line-height: 1.8;
}

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

.footer-links a {
  color: #d1d5db;
}

.footer-links a:hover {
  color: #fb923c;
}

.copyright {
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #9ca3af;
  font-size: 0.92rem;
}

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

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

  .hero-panel {
    min-height: 600px;
  }

  .detail-side {
    position: static;
  }
}

@media (max-width: 780px) {
  .container {
    width: min(100% - 22px, 1180px);
  }

  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    left: 11px;
    right: 11px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-card);
  }

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

  .hero {
    min-height: auto;
    padding: 48px 0;
  }

  .hero-search {
    border-radius: 24px;
    flex-direction: column;
  }

  .hero-panel {
    min-height: 560px;
  }

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

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

  .rank-item {
    grid-template-columns: 48px 86px minmax(0, 1fr);
  }

  .rank-item .btn {
    grid-column: 2 / 4;
  }

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

@media (max-width: 520px) {
  .movie-grid,
  .movie-grid.compact,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    min-height: 520px;
  }

  .hero-poster {
    height: 300px;
  }

  .rank-item {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .rank-thumb {
    display: none;
  }

  .rank-item .btn {
    grid-column: 1 / 3;
  }

  .play-button {
    width: 76px;
    height: 76px;
  }
}
