:root {
  --rose: #f43f5e;
  --rose-dark: #e11d48;
  --orange: #f97316;
  --pink-soft: #fff1f2;
  --orange-soft: #fff7ed;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #f1d9d9;
  --card: #ffffff;
  --shadow: 0 18px 45px rgba(190, 24, 93, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: linear-gradient(135deg, #fff1f2 0%, #fff7ed 52%, #fdf2f8 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg, rgba(255, 241, 242, 0.96), rgba(255, 247, 237, 0.96));
  border-bottom: 1px solid rgba(244, 63, 94, 0.12);
  box-shadow: 0 8px 28px rgba(244, 63, 94, 0.12);
  backdrop-filter: blur(14px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-weight: 800;
}

.brand-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: white;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  box-shadow: 0 10px 28px rgba(244, 63, 94, 0.35);
}

.brand-name {
  font-size: 24px;
  line-height: 1;
  background: linear-gradient(90deg, var(--rose), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.desktop-nav a,
.mobile-nav a {
  color: #374151;
  font-weight: 700;
  transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
  color: var(--rose);
  transform: translateY(-1px);
}

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

.header-search input,
.mobile-nav input,
.search-page-form input,
.local-filter,
.year-filter {
  border: 1px solid rgba(244, 63, 94, 0.22);
  border-radius: 999px;
  background: white;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
  width: 220px;
  padding: 10px 16px;
}

.header-search input:focus,
.mobile-nav input:focus,
.search-page-form input:focus,
.local-filter:focus,
.year-filter:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.12);
}

.header-search button,
.mobile-nav button,
.search-page-form button,
.primary-btn,
.secondary-btn {
  border: 0;
  border-radius: 999px;
  padding: 10px 20px;
  color: white;
  font-weight: 800;
  background: linear-gradient(90deg, var(--rose), var(--orange));
  box-shadow: 0 12px 30px rgba(244, 63, 94, 0.25);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-search button:hover,
.mobile-nav button:hover,
.search-page-form button:hover,
.primary-btn:hover,
.secondary-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 18px 42px rgba(244, 63, 94, 0.32);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: rgba(244, 63, 94, 0.08);
  color: var(--rose);
  font-size: 24px;
  cursor: pointer;
}

.mobile-nav {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
  display: grid;
  gap: 12px;
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.mobile-nav input {
  min-width: 0;
  padding: 11px 16px;
}

.hero-slider {
  position: relative;
  height: min(72vh, 620px);
  min-height: 500px;
  overflow: hidden;
  background: #111827;
}

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

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

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.88) 0%, rgba(17, 24, 39, 0.52) 45%, rgba(17, 24, 39, 0.16) 100%);
}

.hero-content {
  position: absolute;
  left: max(28px, calc((100vw - 1180px) / 2));
  right: 28px;
  bottom: 72px;
  max-width: 760px;
  color: white;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  border-radius: 999px;
  padding: 6px 16px;
  color: white;
  font-weight: 800;
  font-size: 14px;
  background: linear-gradient(90deg, var(--rose), var(--orange));
}

.hero-content h1 {
  margin: 18px 0 16px;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.hero-content p {
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(17px, 2vw, 22px);
}

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

.ghost-btn {
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  padding: 10px 20px;
  color: white;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  transition: transform 0.2s ease, background 0.2s ease;
}

.ghost-btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.24);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: white;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.32);
  transform: translateY(-50%) scale(1.05);
}

.hero-prev {
  left: 24px;
  transform: translateY(-50%);
}

.hero-next {
  right: 24px;
  transform: translateY(-50%);
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 28px;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.hero-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.is-active {
  width: 32px;
  background: white;
}

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

.section-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.section-heading > span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: white;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  box-shadow: 0 12px 26px rgba(244, 63, 94, 0.2);
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.15;
}

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

.category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.category-chips a {
  display: inline-flex;
  border-radius: 999px;
  padding: 11px 20px;
  color: #374151;
  font-weight: 800;
  background: white;
  box-shadow: 0 10px 28px rgba(244, 63, 94, 0.12);
  transition: color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.category-chips a:hover {
  color: var(--rose);
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow);
}

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: white;
  box-shadow: 0 14px 38px rgba(244, 63, 94, 0.13);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 55px rgba(244, 63, 94, 0.22);
}

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

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

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

.card-cover::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.68), rgba(17, 24, 39, 0));
}

.card-type,
.rank-badge {
  position: absolute;
  z-index: 2;
  top: 10px;
  border-radius: 999px;
  padding: 4px 10px;
  color: white;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  background: linear-gradient(90deg, var(--rose), var(--orange));
}

.card-type {
  right: 10px;
}

.rank-badge {
  left: 10px;
}

.card-body {
  padding: 14px;
}

.card-body h3 {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.3;
}

.card-body h3 a:hover {
  color: var(--rose);
}

.card-body p {
  display: -webkit-box;
  min-height: 48px;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #6b7280;
  font-size: 13px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.tag-row span {
  border-radius: 999px;
  padding: 4px 9px;
  color: #9f1239;
  font-size: 12px;
  background: #ffe4e6;
}

.center-action {
  margin-top: 30px;
  text-align: center;
}

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

.page-hero {
  position: relative;
  overflow: hidden;
  margin: 34px 0 18px;
  padding: clamp(38px, 7vw, 76px);
  border-radius: 32px;
  color: white;
  background: radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.26), transparent 28%), linear-gradient(135deg, var(--rose), var(--orange));
  box-shadow: var(--shadow);
}

.page-hero h1 {
  margin: 16px 0 12px;
  font-size: clamp(34px, 6vw, 60px);
  line-height: 1.08;
}

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

.soft-hero .pill,
.rank-hero .pill {
  background: rgba(255, 255, 255, 0.22);
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  border-radius: 26px;
  color: white;
  box-shadow: var(--shadow);
  background: #111827;
}

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

.category-card:hover img {
  opacity: 0.55;
  transform: scale(1.08);
}

.category-card span,
.category-card p {
  position: absolute;
  z-index: 2;
  left: 20px;
  right: 20px;
}

.category-card span {
  bottom: 82px;
  font-size: 22px;
  font-weight: 900;
}

.category-card p {
  bottom: 20px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.88), rgba(17, 24, 39, 0.08));
}

.filter-panel {
  padding-top: 26px;
}

.filter-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 12px;
  margin-bottom: 24px;
}

.local-filter,
.year-filter {
  padding: 12px 18px;
}

.search-page-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  max-width: 760px;
  margin-top: 24px;
}

.search-page-form input {
  padding: 14px 20px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0;
  color: var(--muted);
  font-size: 14px;
}

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

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.8fr);
  gap: 26px;
  align-items: stretch;
}

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

.player-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #111827;
}

.player-start {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: white;
  background: radial-gradient(circle at center, rgba(244, 63, 94, 0.22), rgba(17, 24, 39, 0.22));
  cursor: pointer;
}

.player-start span {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  padding-left: 4px;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  box-shadow: 0 20px 50px rgba(244, 63, 94, 0.38);
  font-size: 38px;
  transition: transform 0.2s ease;
}

.player-start:hover span {
  transform: scale(1.08);
}

.player-start.is-hidden {
  display: none;
}

.detail-info {
  border-radius: 30px;
  padding: 30px;
  background: white;
  box-shadow: var(--shadow);
}

.detail-info h1 {
  margin: 16px 0 12px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.12;
}

.lead {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 17px;
}

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

.info-grid div {
  border-radius: 18px;
  padding: 12px;
  background: linear-gradient(135deg, #fff1f2, #fff7ed);
}

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

.info-grid dd {
  margin: 2px 0 0;
  font-weight: 800;
}

.detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 26px;
}

.story-card {
  border-radius: 28px;
  padding: 28px;
  background: white;
  box-shadow: var(--shadow);
}

.story-card h2 {
  margin: 0 0 14px;
  font-size: 26px;
}

.story-card p {
  margin: 0;
  color: #4b5563;
  font-size: 16px;
}

.related-wrap {
  width: 100%;
}

.site-footer {
  margin-top: 40px;
  padding: 34px 0;
  background: rgba(255, 255, 255, 0.72);
  border-top: 1px solid rgba(244, 63, 94, 0.12);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  gap: 14px;
  color: var(--muted);
  text-align: center;
}

.footer-logo {
  color: var(--rose);
  font-weight: 900;
  font-size: 22px;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a:hover {
  color: var(--rose);
}

.is-filtered-out {
  display: none;
}

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

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

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

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

  .header-inner {
    height: 64px;
  }

  .brand-name {
    font-size: 20px;
  }

  .hero-slider {
    height: 560px;
  }

  .hero-content {
    left: 22px;
    bottom: 72px;
  }

  .hero-arrow {
    display: none;
  }

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

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

  .filter-controls,
  .detail-hero,
  .detail-content,
  .search-page-form {
    grid-template-columns: 1fr;
  }

  .detail-info {
    padding: 24px;
  }
}

@media (max-width: 560px) {
  .content-wrap,
  .page-shell,
  .detail-shell {
    width: min(100% - 20px, 1180px);
  }

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

  .hero-content p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

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

  .card-body {
    padding: 12px;
  }

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

  .page-hero {
    border-radius: 24px;
    padding: 32px 22px;
  }

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

  .player-start span {
    width: 68px;
    height: 68px;
    font-size: 30px;
  }
}
