:root {
  color-scheme: light;
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-soft: #f9fafb;
  --text: #111827;
  --muted: #6b7280;
  --line: rgba(17, 24, 39, 0.08);
  --pink: #ec4899;
  --purple: #7c3aed;
  --blue: #2563eb;
  --cyan: #06b6d4;
  --shadow: 0 18px 55px rgba(31, 41, 55, 0.12);
  --shadow-soft: 0 10px 28px rgba(31, 41, 55, 0.10);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: linear-gradient(135deg, #f8fafc 0%, #fdf2f8 48%, #eff6ff 100%);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.07);
}

.ribbon-decoration {
  height: 4px;
  background: linear-gradient(90deg, var(--pink), var(--purple), var(--blue), var(--cyan));
}

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

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

.brand-icon {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  box-shadow: 0 12px 30px rgba(236, 72, 153, 0.28);
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #4b5563;
  font-size: 15px;
  font-weight: 650;
  flex: 1;
}

.nav-links a,
.mobile-links a,
.footer-links a {
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.mobile-links a:hover,
.footer-links a:hover {
  color: var(--pink);
}

.header-search,
.mobile-search,
.search-panel {
  display: flex;
  align-items: center;
  border-radius: 999px;
  background: #f3f4f6;
  border: 1px solid rgba(229, 231, 235, 0.9);
  overflow: hidden;
}

.header-search input,
.mobile-search input,
.search-panel input {
  width: 220px;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 12px 16px;
  color: #111827;
}

.header-search button,
.mobile-search button,
.search-panel button {
  border: 0;
  color: #ffffff;
  padding: 12px 18px;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  cursor: pointer;
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: #f3f4f6;
  padding: 10px;
}

.mobile-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #111827;
  border-radius: 999px;
}

.mobile-panel {
  display: none;
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
}

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

.mobile-search {
  margin-bottom: 14px;
}

.mobile-search input {
  width: 100%;
  flex: 1;
}

.mobile-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mobile-links a {
  border-radius: 14px;
  background: #f9fafb;
  padding: 12px 14px;
  font-weight: 700;
  color: #374151;
}

main {
  min-height: 70vh;
}

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

.hero-carousel {
  position: relative;
  width: min(1220px, calc(100% - 32px));
  margin: 34px auto 56px;
  overflow: hidden;
  border-radius: 36px;
  min-height: 560px;
  color: #ffffff;
  background: #111827;
  box-shadow: var(--shadow);
}

.hero-slide {
  display: none;
  min-height: 560px;
  position: relative;
  isolation: isolate;
  padding: 64px;
  background-image: linear-gradient(110deg, rgba(15, 23, 42, 0.92) 0%, rgba(88, 28, 135, 0.74) 48%, rgba(15, 23, 42, 0.42) 100%), var(--hero-bg);
  background-size: cover;
  background-position: center;
}

.hero-slide.is-active {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 360px;
  align-items: center;
  gap: 42px;
}

.hero-copy {
  max-width: 680px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  color: #fce7f3;
  font-size: 14px;
  font-weight: 800;
}

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

.hero-copy p {
  max-width: 720px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

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

.hero-tags a,
.tag-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 13px;
  font-weight: 700;
  color: #7c2d12;
  background: #fff7ed;
}

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

.btn-primary,
.btn-ghost,
.card-action,
.more-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border-radius: 999px;
  padding: 0 20px;
  font-weight: 850;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary,
.card-action {
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  box-shadow: 0 14px 30px rgba(236, 72, 153, 0.32);
}

.btn-ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.btn-primary:hover,
.btn-ghost:hover,
.card-action:hover,
.more-link:hover {
  transform: translateY(-2px);
}

.hero-poster {
  position: relative;
  align-self: stretch;
  min-height: 440px;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.38);
}

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

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.02), rgba(15, 23, 42, 0.56));
}

.hero-card-caption {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 20px;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: end;
}

.hero-card-caption strong {
  font-size: 22px;
  line-height: 1.2;
}

.hero-card-caption span {
  display: block;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.hero-controls {
  position: absolute;
  z-index: 3;
  left: 64px;
  bottom: 36px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

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

.section {
  padding: 34px 0;
}

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

.section-title {
  margin: 0;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.section-subtitle {
  margin: 8px 0 0;
  color: var(--muted);
}

.more-link {
  color: var(--pink);
  background: #ffffff;
  border: 1px solid rgba(236, 72, 153, 0.18);
  box-shadow: 0 10px 22px rgba(236, 72, 153, 0.10);
}

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

.category-card {
  min-height: 150px;
  padding: 22px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.72));
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.78);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-card strong {
  display: block;
  font-size: 22px;
  margin-bottom: 8px;
}

.category-card span {
  color: var(--muted);
}

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

.movie-card {
  overflow: hidden;
  border-radius: 26px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

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

.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);
}

.poster-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  border-radius: 999px;
  padding: 5px 9px;
  color: #ffffff;
  background: rgba(17, 24, 39, 0.76);
  backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 800;
}

.movie-card-body {
  padding: 18px;
}

.movie-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 10px;
}

.movie-meta a {
  color: var(--pink);
  font-weight: 800;
}

.movie-card h3 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.28;
}

.movie-card p {
  display: -webkit-box;
  margin: 0 0 14px;
  color: #4b5563;
  font-size: 14px;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-action {
  margin-top: 16px;
  min-height: 40px;
  padding: 0 16px;
  font-size: 14px;
}

.rank-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 58px 72px 1fr;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

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

.rank-item img {
  width: 72px;
  height: 96px;
  border-radius: 14px;
  object-fit: cover;
}

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

.rank-copy strong {
  font-size: 17px;
  line-height: 1.35;
}

.rank-copy em {
  margin-top: 6px;
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

.page-hero {
  padding: 58px 0 34px;
}

.page-hero-card {
  padding: clamp(28px, 5vw, 54px);
  border-radius: 34px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(253, 242, 248, 0.82));
  box-shadow: var(--shadow-soft);
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(36px, 6vw, 64px);
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.filter-bar {
  display: flex;
  gap: 12px;
  margin: 0 0 24px;
  flex-wrap: wrap;
}

.filter-bar input,
.filter-bar select {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  padding: 13px 16px;
  outline: 0;
  min-width: 180px;
}

.detail-hero {
  padding: 38px 0 24px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  margin-bottom: 18px;
  font-size: 14px;
}

.breadcrumbs a {
  color: var(--pink);
  font-weight: 750;
}

.detail-shell {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 34px;
  align-items: center;
  padding: clamp(22px, 4vw, 42px);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.detail-cover {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
}

.detail-cover img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.detail-copy h1 {
  margin: 12px 0 16px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1;
  letter-spacing: -0.06em;
}

.detail-copy p {
  max-width: 760px;
  margin: 0 0 18px;
  color: #4b5563;
  font-size: 18px;
}

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

.info-box {
  border-radius: 18px;
  padding: 14px;
  background: #f9fafb;
}

.info-box span,
.info-box strong {
  display: block;
}

.info-box span {
  color: var(--muted);
  font-size: 12px;
}

.info-box strong {
  margin-top: 4px;
  font-size: 15px;
}

.watch-panel {
  padding: 28px 0;
}

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

.player-shell video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #020617;
}

.play-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle at center, rgba(236, 72, 153, 0.34), rgba(2, 6, 23, 0.64));
  cursor: pointer;
}

.play-layer.is-hidden {
  pointer-events: none;
  opacity: 0;
}

.play-layer span {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
  font-size: 18px;
  font-weight: 900;
}

.play-icon {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  box-shadow: 0 18px 35px rgba(236, 72, 153, 0.35);
}

.content-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
  padding: 24px 0 54px;
}

.content-card,
.aside-card {
  border-radius: 28px;
  padding: 26px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.content-card + .content-card {
  margin-top: 20px;
}

.content-card h2,
.aside-card h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.content-card p {
  margin: 0;
  color: #374151;
  font-size: 17px;
}

.aside-list {
  display: grid;
  gap: 12px;
}

.aside-movie {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 12px;
  align-items: center;
}

.aside-movie img {
  width: 60px;
  height: 80px;
  border-radius: 12px;
  object-fit: cover;
}

.aside-movie strong,
.aside-movie span {
  display: block;
}

.aside-movie strong {
  line-height: 1.25;
}

.aside-movie span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.search-results {
  display: grid;
  gap: 16px;
}

.search-result {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px;
  padding: 14px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.search-result img {
  width: 96px;
  height: 128px;
  border-radius: 16px;
  object-fit: cover;
}

.search-result h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.search-result p {
  margin: 0 0 12px;
  color: var(--muted);
}

.search-empty {
  padding: 38px;
  border-radius: 28px;
  text-align: center;
  background: #ffffff;
  color: var(--muted);
  box-shadow: var(--shadow-soft);
}

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

.footer-inner {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0;
  display: flex;
  justify-content: space-between;
  gap: 28px;
}

.footer-brand {
  color: #ffffff;
  font-size: 22px;
}

.footer-inner p {
  max-width: 560px;
  margin: 10px 0 0;
  color: #9ca3af;
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-content: start;
}

@media (max-width: 1100px) {
  .nav-links,
  .header-search {
    display: none;
  }

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

  .hero-slide.is-active,
  .rank-layout,
  .detail-shell,
  .content-layout {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    min-height: 360px;
  }

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

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

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

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

  .hero-carousel {
    margin-top: 18px;
    border-radius: 24px;
    min-height: auto;
  }

  .hero-slide {
    padding: 34px 22px 88px;
    min-height: auto;
  }

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

  .hero-copy p,
  .detail-copy p,
  .page-hero p {
    font-size: 16px;
  }

  .hero-poster {
    min-height: 300px;
  }

  .hero-controls {
    left: 24px;
    bottom: 26px;
  }

  .section-head,
  .footer-inner {
    display: block;
  }

  .more-link {
    margin-top: 16px;
  }

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

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

  .movie-card h3 {
    font-size: 17px;
  }

  .movie-card p {
    -webkit-line-clamp: 2;
  }

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

  .rank-item img {
    width: 58px;
    height: 78px;
  }

  .detail-shell {
    padding: 18px;
    gap: 22px;
  }

  .detail-copy h1 {
    font-size: 38px;
  }

  .content-card,
  .aside-card {
    padding: 20px;
  }

  .search-result {
    grid-template-columns: 74px 1fr;
  }

  .search-result img {
    width: 74px;
    height: 98px;
  }
}

@media (max-width: 480px) {
  .container,
  .header-inner,
  .mobile-panel,
  .footer-inner,
  .hero-carousel {
    width: min(100% - 22px, 1220px);
  }

  .brand-icon {
    width: 36px;
    height: 36px;
    border-radius: 13px;
  }

  .category-grid,
  .movie-grid {
    grid-template-columns: 1fr;
  }

  .filter-bar input,
  .filter-bar select {
    width: 100%;
  }

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