:root {
  color-scheme: light;
  --bg: #fff7ed;
  --surface: #ffffff;
  --surface-soft: rgba(255, 255, 255, 0.78);
  --text: #111827;
  --muted: #6b7280;
  --line: rgba(251, 146, 60, 0.22);
  --orange: #f97316;
  --pink: #ec4899;
  --purple: #9333ea;
  --blue: #06b6d4;
  --shadow: 0 18px 45px rgba(17, 24, 39, 0.12);
  --soft-shadow: 0 12px 30px rgba(249, 115, 22, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: linear-gradient(180deg, #fff7ed 0%, #fdf2f8 38%, #ffffff 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(255, 247, 237, 0.92), rgba(253, 242, 248, 0.92));
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  box-shadow: 0 12px 24px rgba(236, 72, 153, 0.25);
}

.logo-text {
  font-size: 21px;
  font-weight: 900;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #ea580c, #db2777);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  border-radius: 14px;
  color: #374151;
  font-weight: 700;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #ffffff;
  background: linear-gradient(90deg, var(--orange), var(--pink));
  box-shadow: 0 14px 26px rgba(236, 72, 153, 0.18);
  transform: translateY(-1px);
}

.mobile-toggle {
  display: none;
  border: 0;
  color: #374151;
  background: #ffffff;
  border-radius: 14px;
  padding: 10px 12px;
  box-shadow: var(--soft-shadow);
}

.mobile-menu {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.mobile-menu a {
  display: block;
  padding: 13px 14px;
  border-radius: 14px;
  font-weight: 800;
  color: #374151;
}

.mobile-menu a:hover,
.mobile-menu a.is-active {
  color: #ffffff;
  background: linear-gradient(90deg, var(--orange), var(--pink));
}

.page {
  padding-top: 68px;
}

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

.hero {
  position: relative;
  min-height: 650px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #ffffff;
  background: radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.28), transparent 30%), linear-gradient(135deg, #fb923c 0%, #ec4899 46%, #7e22ce 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: 0.5;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 130px;
  background: linear-gradient(0deg, #fff7ed, transparent);
}

.hero-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 42px;
  align-items: center;
  padding: 74px 0 92px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(14px);
  font-weight: 800;
}

.hero h1 {
  margin: 22px 0 18px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.06em;
  font-weight: 950;
}

.hero-lead {
  max-width: 680px;
  font-size: clamp(18px, 2.4vw, 25px);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.9);
}

.hero-actions,
.section-actions,
.detail-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: 12px 20px;
  border-radius: 999px;
  border: 0;
  font-weight: 900;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

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

.btn-primary {
  color: #ea580c;
  background: #ffffff;
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.18);
}

.btn-glass {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(16px);
}

.btn-gradient {
  color: #ffffff;
  background: linear-gradient(90deg, var(--orange), var(--pink));
  box-shadow: 0 14px 28px rgba(236, 72, 153, 0.24);
}

.hero-showcase {
  position: relative;
}

.hero-slider {
  position: relative;
  min-height: 470px;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(88, 28, 135, 0.36);
  background: rgba(17, 24, 39, 0.35);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.55s ease, transform 0.55s ease;
  pointer-events: none;
}

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

.hero-slide img {
  width: 100%;
  height: 100%;
  min-height: 470px;
  object-fit: cover;
}

.hero-slide-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 30px;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.08));
}

.hero-slide h2 {
  margin: 0 0 10px;
  font-size: clamp(24px, 4vw, 38px);
  line-height: 1.15;
  font-weight: 950;
}

.hero-slide p {
  max-width: 520px;
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.7;
}

.hero-tags,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.tag-list span,
.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #ea580c;
  background: #ffedd5;
  font-size: 13px;
  font-weight: 800;
}

.hero-slide .hero-tags span {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.16);
}

.hero-dots {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 3;
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.55);
}

.hero-dot.is-active {
  width: 28px;
  background: #ffffff;
}

.section {
  padding: 70px 0;
}

.section-soft {
  background: linear-gradient(90deg, #fce7f3, #ffedd5);
}

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

.section-title-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.section-icon {
  width: 50px;
  height: 50px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 22px;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  box-shadow: var(--soft-shadow);
}

.section h2,
.page-hero h1,
.detail-title,
.category-title {
  margin: 0;
  color: #111827;
  font-weight: 950;
  letter-spacing: -0.035em;
}

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

.section-subtitle {
  margin: 7px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.grid {
  display: grid;
  gap: 24px;
}

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

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

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

.movie-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(251, 146, 60, 0.16);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  border-color: rgba(236, 72, 153, 0.3);
  box-shadow: 0 26px 55px rgba(236, 72, 153, 0.18);
}

.movie-poster {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #fed7aa, #fbcfe8);
}

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

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

.card-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  background: linear-gradient(90deg, var(--orange), var(--pink));
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  padding: 20px;
}

.movie-card h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.35;
  font-weight: 950;
  color: #111827;
}

.movie-card:hover h3 {
  color: #ea580c;
}

.card-desc {
  margin: 0;
  color: #6b7280;
  line-height: 1.72;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  color: #6b7280;
  font-size: 13px;
}

.movie-card-large {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  min-height: 380px;
}

.movie-card-large .movie-poster {
  aspect-ratio: auto;
  min-height: 380px;
}

.movie-card-large h3 {
  font-size: clamp(28px, 4vw, 42px);
}

.movie-card-horizontal {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 150px;
}

.movie-card-horizontal .movie-poster {
  aspect-ratio: auto;
  height: 100%;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 70px 150px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(251, 146, 60, 0.16);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--soft-shadow);
}

.rank-number {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  color: #ffffff;
  border-radius: 18px;
  font-size: 20px;
  font-weight: 950;
  background: linear-gradient(135deg, var(--orange), var(--pink));
}

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

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

.rank-item h3 {
  margin: 0 0 7px;
  font-size: 20px;
  font-weight: 950;
}

.rank-item p {
  margin: 0;
  color: #6b7280;
  line-height: 1.65;
}

.page-hero {
  padding: 92px 0 46px;
  background: linear-gradient(135deg, #fff7ed, #fdf2f8 58%, #ffffff);
}

.page-hero h1 {
  font-size: clamp(38px, 6vw, 62px);
}

.page-hero p {
  max-width: 780px;
  margin: 16px 0 0;
  color: #6b7280;
  font-size: 18px;
  line-height: 1.8;
}

.filter-panel {
  position: sticky;
  top: 86px;
  z-index: 8;
  display: grid;
  gap: 14px;
  margin-bottom: 28px;
  padding: 16px;
  border: 1px solid rgba(251, 146, 60, 0.22);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(18px);
}

.search-input {
  width: 100%;
  min-height: 50px;
  padding: 0 18px;
  border: 2px solid #fed7aa;
  border-radius: 17px;
  outline: none;
  color: #111827;
  background: #ffffff;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.search-input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 5px rgba(249, 115, 22, 0.14);
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  min-height: 38px;
  padding: 8px 14px;
  border: 0;
  border-radius: 999px;
  color: #374151;
  font-weight: 800;
  background: #fff7ed;
}

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

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

.category-card {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--soft-shadow);
  background: #111827;
}

.category-card img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  opacity: 0.55;
  transition: transform 0.45s ease, opacity 0.45s ease;
}

.category-card:hover img {
  transform: scale(1.06);
  opacity: 0.72;
}

.category-card-body {
  position: absolute;
  inset: auto 0 0 0;
  padding: 24px;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.88), transparent);
}

.category-card h2,
.category-card h3 {
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 950;
}

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

.detail-hero {
  padding: 92px 0 50px;
  background: radial-gradient(circle at 16% 12%, rgba(249, 115, 22, 0.22), transparent 25%), linear-gradient(135deg, #111827, #581c87 48%, #be185d);
  color: #ffffff;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #ffffff;
}

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 390px;
  gap: 36px;
  align-items: start;
}

.player-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 30px;
  background: rgba(17, 24, 39, 0.38);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.32);
}

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

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

.player-box video {
  object-fit: contain;
  z-index: 1;
}

.player-cover {
  z-index: 2;
  display: grid;
  place-items: center;
  border: 0;
  overflow: hidden;
  color: #ffffff;
  background: #111827;
}

.player-cover[hidden] {
  display: none;
}

.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.68;
  filter: saturate(1.08);
}

.play-button {
  position: relative;
  z-index: 3;
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  color: #ffffff;
  font-size: 42px;
  line-height: 1;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.9), rgba(236, 72, 153, 0.9));
  box-shadow: 0 22px 45px rgba(0, 0, 0, 0.35);
}

.player-caption {
  padding: 22px;
}

.detail-title {
  font-size: clamp(34px, 5vw, 58px);
  color: #ffffff;
}

.detail-lead {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.8;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  background: #111827;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.28);
}

.detail-poster img {
  width: 100%;
  height: 520px;
  object-fit: cover;
}

.detail-content {
  padding: 62px 0;
}

.prose-card {
  padding: 30px;
  border: 1px solid rgba(251, 146, 60, 0.16);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.prose-card + .prose-card {
  margin-top: 24px;
}

.prose-card h2 {
  margin: 0 0 16px;
  font-size: 28px;
  font-weight: 950;
  color: #111827;
}

.prose-card p {
  margin: 0;
  color: #4b5563;
  font-size: 17px;
  line-height: 1.9;
}

.info-table {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.info-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #fed7aa;
}

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

.info-row span {
  color: #6b7280;
}

.site-footer {
  color: #d1d5db;
  background: linear-gradient(135deg, #111827, #1f2937 45%, #111827);
}

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

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

.site-footer h3 {
  margin: 0 0 14px;
  color: #ffffff;
  font-weight: 900;
}

.site-footer p,
.site-footer li {
  color: #9ca3af;
  line-height: 1.8;
}

.footer-links {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

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

.footer-bottom {
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #9ca3af;
  text-align: center;
}

[data-search-card].is-hidden {
  display: none;
}

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

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

  .detail-poster img {
    height: 420px;
  }

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

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

  .mobile-toggle {
    display: inline-flex;
  }

  .mobile-menu.is-open {
    display: block;
  }

  .hero {
    min-height: auto;
  }

  .hero-layout {
    padding: 54px 0 82px;
  }

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

  .hero-slide img {
    min-height: 380px;
  }

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

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

  .movie-card-large,
  .movie-card-horizontal,
  .rank-item {
    grid-template-columns: 1fr;
  }

  .movie-card-horizontal .movie-poster {
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .rank-thumb {
    width: 100%;
  }

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

@media (max-width: 560px) {
  .header-inner {
    width: min(100% - 24px, 1180px);
  }

  .container,
  .footer-inner,
  .mobile-menu {
    width: min(100% - 24px, 1180px);
  }

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

  .grid-2,
  .grid-3,
  .grid-4,
  .category-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-slide-panel {
    padding: 22px;
  }

  .hero-dots {
    right: 20px;
    bottom: 18px;
  }

  .section {
    padding: 52px 0;
  }

  .page-hero {
    padding-top: 74px;
  }

  .detail-poster img {
    height: 320px;
  }

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