:root {
  --peach-50: #fff5f2;
  --peach-100: #ffe5e0;
  --peach-300: #ffc9b9;
  --peach-400: #ffb5a7;
  --peach-500: #ffa07a;
  --pink-400: #ff9eb5;
  --pink-500: #ff8fa3;
  --text-main: #333333;
  --text-muted: #6b7280;
  --white-soft: rgba(255, 255, 255, 0.88);
  --shadow-soft: 0 20px 40px rgba(255, 159, 122, 0.24);
  --shadow-card: 0 14px 28px rgba(48, 35, 35, 0.08);
  --radius-lg: 24px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  color: var(--text-main);
  background: linear-gradient(135deg, var(--peach-50), var(--peach-100));
  min-height: 100vh;
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

a:hover {
  color: #ff7777;
}

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 181, 167, 0.26);
}

.nav-wrap {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  font-weight: 800;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--peach-400), var(--pink-400));
  box-shadow: 0 10px 24px rgba(255, 143, 163, 0.34);
}

.brand-text,
.gradient-text {
  background: linear-gradient(135deg, #ff7777, #ff8fa3, #ffb6c1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex: 1 1 auto;
}

.desktop-nav a,
.mobile-panel a {
  font-weight: 650;
  color: #555555;
}

.desktop-nav a.is-active,
.mobile-panel a.is-active {
  color: #ff7777;
}

.top-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-search input,
.filter-bar input {
  width: 230px;
  border: 1px solid rgba(255, 181, 167, 0.62);
  border-radius: 999px;
  padding: 11px 18px;
  color: #555555;
  background: rgba(255, 255, 255, 0.82);
  outline: none;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.top-search input:focus,
.filter-bar input:focus {
  border-color: var(--peach-500);
  box-shadow: 0 0 0 4px rgba(255, 181, 167, 0.22);
}

.top-search button {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  color: #ffffff;
  cursor: pointer;
  background: linear-gradient(135deg, var(--peach-400), var(--pink-400));
}

.menu-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: #ff7777;
  background: rgba(255, 229, 224, 0.8);
  cursor: pointer;
}

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

.mobile-panel nav,
.mobile-cats {
  display: grid;
  gap: 10px;
}

.mobile-cats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
}

.mobile-panel a {
  padding: 11px 14px;
  border-radius: 14px;
  background: rgba(255, 245, 242, 0.86);
}

.page-transition {
  animation: fadeIn 0.36s ease both;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-carousel {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  color: #ffffff;
  background: #171212;
}

.hero-track {
  position: relative;
  min-height: 640px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.65s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  filter: blur(10px) saturate(1.12);
  transform: scale(1.06);
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 181, 167, 0.48), transparent 28%),
    linear-gradient(90deg, rgba(22, 14, 18, 0.92), rgba(22, 14, 18, 0.58), rgba(22, 14, 18, 0.82)),
    linear-gradient(0deg, rgba(22, 14, 18, 0.9), transparent 42%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1240px, calc(100% - 32px));
  min-height: 640px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 420px;
  gap: 56px;
  align-items: center;
  padding: 70px 0 90px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 14px;
  padding: 7px 13px;
  border-radius: 999px;
  color: #ff7777;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  background: rgba(255, 255, 255, 0.86);
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero-copy p,
.page-hero p,
.detail-line {
  max-width: 740px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
}

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

.hero-tags {
  margin-top: 24px;
}

.hero-tags span,
.detail-tags a,
.tag-row span {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 13px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.26);
}

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

.btn-main,
.btn-light,
.section-more,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
}

.btn-main {
  padding: 13px 24px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--peach-400), var(--pink-400));
  box-shadow: var(--shadow-soft);
}

.btn-main:hover {
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 24px 48px rgba(255, 143, 163, 0.36);
}

.btn-light {
  padding: 13px 24px;
  color: #654545;
  background: rgba(255, 255, 255, 0.88);
}

.hero-poster {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 32px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.42);
}

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

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

.hero-dots button {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.46);
}

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

.feature-strip,
.content-section {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
}

.feature-strip {
  position: relative;
  z-index: 8;
  margin-top: -74px;
}

.content-section {
  padding: 72px 0 0;
}

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

.section-head h2,
.article-section h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 36px);
  color: #332525;
}

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

.section-more,
.text-link {
  padding: 10px 17px;
  color: #ff7777;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(255, 181, 167, 0.42);
}

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(255, 255, 255, 0.72);
}

.card-hover {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}

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

.cover-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: #f4ded8;
}

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

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

.cover-gradient {
  position: absolute;
  inset: auto 0 0 0;
  height: 45%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent);
}

.play-corner,
.year-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
}

.play-corner {
  right: 12px;
  bottom: 12px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--peach-400), var(--pink-400));
}

.year-badge {
  left: 12px;
  bottom: 14px;
  padding: 5px 9px;
  background: rgba(0, 0, 0, 0.56);
}

.rank-badge {
  left: 12px;
  top: 12px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #ffb800, #ff7b72);
}

.movie-info {
  padding: 18px;
}

.movie-info h3 {
  min-height: 52px;
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
  color: #2f2424;
}

.movie-desc {
  min-height: 68px;
  margin: 10px 0 12px;
  color: var(--text-muted);
  font-size: 14px;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  color: #8b5f5f;
  font-size: 13px;
}

.movie-meta span {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 229, 224, 0.7);
}

.tag-row span {
  color: #8b5f5f;
  border-color: rgba(255, 181, 167, 0.42);
  background: rgba(255, 245, 242, 0.78);
}

.category-pill {
  display: inline-flex;
  margin-top: 14px;
  color: #ff7777;
  font-size: 13px;
  font-weight: 800;
}

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

.category-card {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  color: #ffffff;
  box-shadow: var(--shadow-card);
}

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

.category-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.16));
}

.category-card strong,
.category-card em {
  position: absolute;
  left: 18px;
  z-index: 2;
}

.category-card strong {
  bottom: 46px;
  font-size: 22px;
}

.category-card em {
  bottom: 18px;
  font-style: normal;
  opacity: 0.9;
}

.filter-bar {
  margin-bottom: 24px;
}

.filter-bar input {
  width: min(520px, 100%);
}

.search-wide input {
  width: min(720px, 100%);
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
}

.small-hero {
  min-height: 330px;
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 18% 30%, rgba(255, 181, 167, 0.52), transparent 28%),
    linear-gradient(135deg, #241517, #6d3c43 54%, #ff9eb5);
}

.small-hero > div {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 70px 0;
}

.category-overview-list {
  display: grid;
  gap: 24px;
}

.category-overview-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: 24px;
  align-items: center;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-card);
}

.category-overview-card h2 {
  margin: 0 0 12px;
  font-size: 30px;
}

.category-overview-card p {
  color: var(--text-muted);
}

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

.mini-posters a {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
}

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

.mini-posters span {
  position: absolute;
  inset: auto 0 0 0;
  padding: 20px 8px 8px;
  color: #ffffff;
  font-size: 12px;
  line-height: 1.25;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), transparent);
}

.detail-hero {
  min-height: 620px;
  background: #211515;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  filter: blur(16px) saturate(1.1);
  transform: scale(1.06);
  opacity: 0.68;
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(22, 14, 18, 0.94), rgba(22, 14, 18, 0.62)),
    linear-gradient(0deg, rgba(22, 14, 18, 0.9), transparent 52%);
}

.detail-layout {
  position: relative;
  z-index: 2;
  width: min(1240px, calc(100% - 32px));
  min-height: 620px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 50px;
  align-items: center;
  padding: 70px 0;
}

.detail-poster {
  overflow: hidden;
  border-radius: 30px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.48);
}

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

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

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0;
}

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.detail-tags {
  margin-bottom: 28px;
}

.player-block {
  padding-top: 52px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #0f0b0b;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.26);
}

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

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  overflow: hidden;
  background: #0f0b0b;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.54);
}

.play-button {
  position: relative;
  z-index: 2;
  width: 92px;
  height: 92px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  font-size: 36px;
  cursor: pointer;
  background: linear-gradient(135deg, var(--peach-400), var(--pink-400));
  box-shadow: 0 18px 46px rgba(255, 143, 163, 0.42);
}

.article-section {
  color: #4d3b3b;
}

.article-section p {
  margin: 14px 0 30px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-card);
  font-size: 17px;
}

.pager-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pager-links a {
  padding: 10px 16px;
  border-radius: 999px;
  color: #ff7777;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(255, 181, 167, 0.42);
  font-weight: 800;
}

.site-footer {
  margin-top: 86px;
  padding: 48px 0;
  background: rgba(255, 255, 255, 0.76);
  border-top: 1px solid rgba(255, 181, 167, 0.24);
}

.footer-grid {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 38px;
}

.footer-logo {
  margin-bottom: 12px;
  font-size: 24px;
  font-weight: 900;
  color: #ff7777;
}

.site-footer h2 {
  margin: 0 0 12px;
  font-size: 18px;
}

.site-footer p {
  margin: 0;
  color: var(--text-muted);
}

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

.footer-links a {
  padding: 7px 11px;
  border-radius: 999px;
  color: #755454;
  background: rgba(255, 245, 242, 0.86);
}

.no-results {
  display: none;
  margin-top: 20px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--text-muted);
}

@media (max-width: 1100px) {
  .desktop-nav {
    gap: 14px;
  }

  .top-search input {
    width: 180px;
  }

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

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

  .hero-content {
    grid-template-columns: minmax(0, 1fr) 330px;
  }
}

@media (max-width: 860px) {
  .desktop-nav,
  .top-search {
    display: none;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

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

  .hero-carousel,
  .hero-track,
  .hero-content {
    min-height: auto;
  }

  .hero-slide {
    position: relative;
    display: none;
  }

  .hero-slide.is-active {
    display: block;
  }

  .hero-content {
    grid-template-columns: 1fr;
    padding: 52px 0 88px;
  }

  .hero-poster {
    width: min(340px, 100%);
  }

  .feature-strip {
    margin-top: 24px;
  }

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

  .detail-layout,
  .category-overview-card,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .detail-poster {
    width: min(320px, 100%);
  }
}

@media (max-width: 560px) {
  .nav-wrap {
    min-height: 66px;
  }

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

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .hero-copy h1,
  .page-hero h1,
  .detail-copy h1 {
    font-size: 34px;
  }

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

  .content-section {
    padding-top: 46px;
  }

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

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

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

  .play-button {
    width: 72px;
    height: 72px;
    font-size: 28px;
  }
}
