* {
  box-sizing: border-box;
}

:root {
  --red: #ef4444;
  --red-dark: #dc2626;
  --pink: #ec4899;
  --rose: #f43f5e;
  --text: #111827;
  --muted: #6b7280;
  --soft: #fef2f2;
  --line: #fee2e2;
  --dark: #111827;
  --shadow: 0 20px 50px rgba(127, 29, 29, 0.12);
  --radius: 22px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #fff7f7 0%, #ffffff 30%, #fff7fb 100%);
  line-height: 1.65;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(254, 202, 202, 0.7);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: #1f2937;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--red), var(--pink));
  box-shadow: 0 12px 28px rgba(239, 68, 68, 0.34);
}

.brand-text {
  font-size: 1.35rem;
  letter-spacing: 0.02em;
}

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

.nav-link {
  padding: 9px 15px;
  border-radius: 999px;
  color: #4b5563;
  font-weight: 650;
  transition: 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--red), var(--pink));
  box-shadow: 0 12px 24px rgba(236, 72, 153, 0.22);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: #fff1f2;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 2px;
  background: #be123c;
}

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

.hero-stage {
  position: relative;
  height: 600px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
  transform: scale(1.02);
}

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

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

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.9) 0%, rgba(17, 24, 39, 0.72) 45%, rgba(17, 24, 39, 0.15) 100%);
}

.hero-carousel::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 110px;
  background: linear-gradient(0deg, #fff7f7, rgba(255, 247, 247, 0));
  pointer-events: none;
}

.hero-content {
  position: absolute;
  z-index: 2;
  left: max(22px, calc((100vw - 1280px) / 2 + 22px));
  top: 50%;
  width: min(680px, calc(100% - 44px));
  transform: translateY(-50%);
  color: #ffffff;
  animation: slideIn 0.7s ease both;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 7px 12px;
  border-radius: 999px;
  color: #fecdd3;
  background: rgba(248, 113, 113, 0.18);
  border: 1px solid rgba(254, 202, 202, 0.26);
  font-weight: 700;
}

.hero-content h1 {
  margin: 0 0 18px;
  font-size: clamp(2.5rem, 6vw, 5.2rem);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.hero-content p {
  margin: 0 0 22px;
  max-width: 620px;
  color: #f3f4f6;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.hero-tags,
.detail-tags,
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.detail-tags span,
.card-tags span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  color: #be123c;
  background: #ffe4e6;
  font-size: 0.86rem;
  font-weight: 700;
}

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

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

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

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--red), var(--pink));
  box-shadow: 0 18px 34px rgba(236, 72, 153, 0.3);
}

.btn-soft {
  color: #be123c;
  background: rgba(255, 255, 255, 0.9);
}

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

.hero-dots {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

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

.hero-dot.is-active {
  width: 34px;
  background: linear-gradient(135deg, var(--red), var(--pink));
}

.content-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 70px 22px;
}

.content-section.no-pad {
  padding-top: 0;
  padding-bottom: 0;
}

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

.section-heading h2 {
  display: inline-block;
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.45rem);
  letter-spacing: -0.04em;
}

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

.section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: 10px;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--red), var(--pink));
  box-shadow: 0 12px 24px rgba(239, 68, 68, 0.22);
}

.section-more {
  color: #dc2626;
  font-weight: 800;
}

.section-more span {
  display: inline-block;
  transition: transform 0.25s ease;
}

.section-more:hover span {
  transform: translateX(4px);
}

.filter-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 24px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 14px 30px rgba(127, 29, 29, 0.08);
}

.search-box {
  flex: 1;
  min-width: 220px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border-radius: 16px;
  background: #fff7f7;
  border: 1px solid #fecaca;
}

.search-box input {
  width: 100%;
  height: 46px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #7f1d1d;
}

.filter-selects {
  display: flex;
  gap: 10px;
}

.filter-selects select {
  height: 46px;
  min-width: 128px;
  padding: 0 12px;
  border-radius: 16px;
  border: 1px solid #fecaca;
  color: #7f1d1d;
  background: #ffffff;
  outline: 0;
}

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

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

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 70px rgba(127, 29, 29, 0.18);
}

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

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

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

.play-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--red), var(--pink));
  box-shadow: 0 12px 26px rgba(239, 68, 68, 0.26);
}

.play-badge {
  right: 14px;
  bottom: 14px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
}

.rank-badge {
  left: 12px;
  top: 12px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 900;
}

.card-body {
  padding: 18px;
}

.card-meta {
  margin-bottom: 6px;
  color: #ef4444;
  font-size: 0.85rem;
  font-weight: 800;
}

.card-body h3 {
  margin: 0 0 8px;
  font-size: 1.14rem;
  line-height: 1.32;
}

.card-body h3 a:hover {
  color: #dc2626;
}

.card-body p {
  min-height: 54px;
  margin: 0 0 13px;
  color: var(--muted);
  font-size: 0.94rem;
}

.category-band {
  background: linear-gradient(135deg, #fee2e2, #fdf2f8 50%, #ffffff);
  padding: 70px 0;
}

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

.category-tile {
  position: relative;
  min-height: 170px;
  overflow: hidden;
  padding: 20px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 60px rgba(127, 29, 29, 0.16);
}

.category-tile img {
  position: absolute;
  inset: auto -20px -25px auto;
  width: 115px;
  height: 86px;
  object-fit: cover;
  border-radius: 18px;
  opacity: 0.35;
  transform: rotate(-6deg);
}

.category-icon {
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--red), var(--pink));
}

.category-tile strong {
  display: block;
  font-size: 1.15rem;
}

.category-tile em {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.88rem;
  font-style: normal;
}

.page-hero {
  min-height: 330px;
  padding: 92px 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
  background: radial-gradient(circle at top left, rgba(236, 72, 153, 0.78), transparent 36%), linear-gradient(135deg, #7f1d1d, #111827 62%, #831843);
}

.page-hero > div {
  width: min(820px, 100%);
}

.page-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2.1rem, 5vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.page-hero p {
  margin: 0 auto;
  color: #ffe4e6;
  font-size: 1.08rem;
}

.slim-hero,
.library-hero,
.ranking-hero,
.category-hero {
  min-height: 290px;
}

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

.category-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.category-cover {
  position: relative;
  overflow: hidden;
  min-height: 230px;
  background: linear-gradient(135deg, #fee2e2, #fce7f3);
}

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

.category-cover span {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--red), var(--pink));
  font-weight: 800;
}

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

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

.category-card-body p {
  color: var(--muted);
  margin: 0 0 14px;
}

.category-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-preview a {
  padding: 5px 10px;
  border-radius: 999px;
  color: #be123c;
  background: #ffe4e6;
  font-size: 0.86rem;
  font-weight: 700;
}

.detail-hero {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  color: #ffffff;
  background: #111827;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
}

.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
  filter: blur(2px);
}

.detail-backdrop div {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.96), rgba(17, 24, 39, 0.74), rgba(127, 29, 29, 0.48));
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  min-height: 560px;
  margin: 0 auto;
  padding: 72px 22px;
  display: grid;
  grid-template-columns: 330px 1fr;
  align-items: center;
  gap: 42px;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  background: #fee2e2;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
}

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

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: #fecdd3;
  font-weight: 700;
}

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

.detail-info h1 {
  margin: 18px 0 12px;
  font-size: clamp(2.35rem, 5vw, 4.6rem);
  line-height: 1.06;
  letter-spacing: -0.06em;
}

.detail-meta {
  color: #fca5a5;
  font-weight: 800;
}

.detail-one-line {
  max-width: 800px;
  color: #f3f4f6;
  font-size: 1.12rem;
}

.detail-info .btn {
  margin-top: 24px;
}

.player-section {
  max-width: 1280px;
  margin: -72px auto 0;
  padding: 0 22px;
  position: relative;
  z-index: 5;
}

.player-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000000;
  box-shadow: 0 35px 90px rgba(127, 29, 29, 0.25);
}

.movie-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 0;
  color: #ffffff;
  cursor: pointer;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.32), rgba(0, 0, 0, 0.72));
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

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

.player-cover-icon {
  width: 84px;
  height: 84px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 6px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--red), var(--pink));
  box-shadow: 0 25px 50px rgba(236, 72, 153, 0.36);
  font-size: 2.15rem;
}

.player-cover strong {
  max-width: 80%;
  font-size: clamp(1.2rem, 3vw, 2.2rem);
}

.detail-content {
  padding-top: 60px;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
}

.story-panel,
.side-panel {
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.story-panel {
  padding: 30px;
}

.story-panel h2,
.side-panel h2 {
  margin: 0 0 14px;
  font-size: 1.55rem;
}

.story-panel p {
  margin: 0 0 24px;
  color: #374151;
  font-size: 1.04rem;
}

.side-panel {
  padding: 24px;
  align-self: start;
}

.side-panel dl {
  margin: 0;
}

.side-panel dt {
  color: #ef4444;
  font-weight: 900;
}

.side-panel dd {
  margin: 3px 0 15px;
  color: #374151;
}

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

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

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 54px 22px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 36px;
}

.footer-logo {
  color: #ffffff;
}

.footer-brand p {
  max-width: 460px;
  color: #9ca3af;
}

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

.footer-cols h3 {
  margin: 0 0 12px;
  color: #fca5a5;
}

.footer-cols ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer-cols li {
  margin: 8px 0;
}

.footer-cols a {
  color: #9ca3af;
  transition: color 0.2s ease;
}

.footer-cols a:hover {
  color: #fca5a5;
}

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

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

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translate3d(-24px, -47%, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, -50%, 0);
  }
}

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

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

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

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

  .site-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--shadow);
  }

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

  .nav-link {
    text-align: center;
  }

  .hero-carousel,
  .hero-stage {
    min-height: 560px;
    height: 560px;
  }

  .hero-shade {
    background: linear-gradient(0deg, rgba(17, 24, 39, 0.95), rgba(17, 24, 39, 0.45));
  }

  .hero-content {
    left: 22px;
    top: auto;
    bottom: 72px;
    transform: none;
  }

  .hero-content h1 {
    font-size: clamp(2.1rem, 12vw, 3.4rem);
  }

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

  .filter-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .filter-selects {
    flex-direction: column;
  }

  .filter-selects select {
    width: 100%;
  }

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

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

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

  .category-card {
    grid-template-columns: 140px 1fr;
  }

  .detail-hero-inner {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 42px;
    gap: 28px;
  }

  .detail-poster {
    width: min(260px, 72vw);
  }

  .player-section {
    margin-top: -36px;
  }

  .article-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 560px) {
  .brand-text {
    font-size: 1.1rem;
  }

  .content-section {
    padding: 48px 16px;
  }

  .header-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

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

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

  .category-cover {
    min-height: 190px;
  }

  .detail-info h1 {
    font-size: 2.25rem;
  }

  .player-cover-icon {
    width: 68px;
    height: 68px;
    font-size: 1.65rem;
  }
}
