:root {
  --page-bg: #fff7f9;
  --surface: #ffffff;
  --surface-soft: #fff1f4;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #ffe4e6;
  --rose: #e11d48;
  --rose-dark: #be123c;
  --pink: #db2777;
  --orange: #f97316;
  --blue: #2563eb;
  --green: #16a34a;
  --shadow: 0 20px 45px rgba(190, 18, 60, 0.10);
  --shadow-strong: 0 30px 70px rgba(127, 29, 29, 0.24);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 5% 0%, rgba(255, 228, 230, 0.9), transparent 34rem),
    radial-gradient(circle at 95% 10%, rgba(253, 186, 116, 0.45), transparent 32rem),
    linear-gradient(180deg, #fffafa 0%, #fff7f9 45%, #ffffff 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.no-scroll {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(255, 228, 230, 0.88);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(225, 29, 72, 0.28);
  transition: transform 0.3s ease;
}

.logo:hover .logo-mark {
  transform: rotate(10deg) scale(1.04);
}

.logo-text {
  background: linear-gradient(90deg, var(--rose), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  color: #374151;
  font-size: 15px;
  font-weight: 700;
}

.nav-links a {
  position: relative;
  padding: 8px 0;
}

.nav-links a::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, var(--rose), var(--pink));
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--rose);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-form {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input {
  width: 230px;
  height: 42px;
  padding: 0 48px 0 18px;
  color: #374151;
  background: #ffffff;
  border: 1px solid #fecdd3;
  border-radius: 999px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, width 0.2s ease;
}

.search-input:focus {
  width: 280px;
  border-color: #fb7185;
  box-shadow: 0 0 0 4px rgba(251, 113, 133, 0.14);
}

.search-button {
  position: absolute;
  right: 5px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: #ffffff;
  cursor: pointer;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  border: 0;
  border-radius: 50%;
}

.mobile-toggle {
  display: none;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--rose);
  cursor: pointer;
  background: #fff1f4;
  border: 1px solid #fecdd3;
  border-radius: 14px;
}

.mobile-menu {
  display: none;
  padding: 0 16px 18px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #ffe4e6;
}

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

.mobile-menu a {
  display: block;
  padding: 13px 8px;
  color: #374151;
  font-weight: 700;
  border-bottom: 1px solid #fff1f2;
}

.mobile-menu .search-form {
  margin-top: 14px;
}

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

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

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
  transition: opacity 0.8s ease, transform 1.4s ease;
}

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

.hero-slide::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.94) 0%, rgba(17, 24, 39, 0.70) 40%, rgba(17, 24, 39, 0.22) 78%),
    radial-gradient(circle at 20% 30%, rgba(225, 29, 72, 0.50), transparent 30rem),
    linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(17, 24, 39, 0.68));
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 48px;
  align-items: center;
  padding: 88px 0 72px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  margin-bottom: 20px;
  color: #fecdd3;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  backdrop-filter: blur(12px);
}

.hero h1,
.hero h2 {
  max-width: 780px;
  margin: 0 0 18px;
  font-size: clamp(40px, 6vw, 74px);
  line-height: 0.98;
  font-weight: 950;
  letter-spacing: -0.06em;
}

.hero p {
  max-width: 680px;
  margin: 0 0 26px;
  color: #f9fafb;
  font-size: 18px;
  line-height: 1.85;
}

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

.tag,
.meta-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 12px;
  color: #be123c;
  font-size: 13px;
  font-weight: 800;
  background: #fff1f2;
  border-radius: 999px;
}

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

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  border: 0;
  border-radius: 999px;
  box-shadow: 0 16px 32px rgba(225, 29, 72, 0.24);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.button:hover {
  filter: saturate(1.08);
  transform: translateY(-2px);
  box-shadow: 0 22px 42px rgba(225, 29, 72, 0.32);
}

.button.secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: none;
  backdrop-filter: blur(12px);
}

.hero-poster {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 32px;
  box-shadow: var(--shadow-strong);
  transform: rotate(2deg);
}

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

.hero-poster-caption {
  position: absolute;
  right: 16px;
  bottom: 16px;
  left: 16px;
  padding: 16px;
  color: #ffffff;
  background: rgba(17, 24, 39, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  backdrop-filter: blur(14px);
}

.hero-controls {
  position: absolute;
  z-index: 4;
  right: 0;
  bottom: 34px;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

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

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

.section {
  padding: 72px 0;
}

.section.compact {
  padding: 46px 0;
}

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

.section-kicker {
  margin-bottom: 8px;
  color: var(--rose);
  font-size: 14px;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.section h2,
.page-title {
  margin: 0;
  color: #111827;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.1;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.section-heading p,
.page-intro {
  max-width: 760px;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.soft-panel {
  padding: 30px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid #ffe4e6;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

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

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

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

.movie-card {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #ffe4e6;
  border-radius: 24px;
  box-shadow: 0 14px 35px rgba(190, 18, 60, 0.08);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.movie-card:hover {
  border-color: #fecdd3;
  box-shadow: 0 24px 55px rgba(190, 18, 60, 0.16);
  transform: translateY(-8px);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #fff1f2, #ffe4e6);
}

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

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

.poster-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 5px 10px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  border-radius: 999px;
  box-shadow: 0 10px 22px rgba(225, 29, 72, 0.30);
}

.poster-play {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #ffffff;
  background: rgba(17, 24, 39, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  backdrop-filter: blur(10px);
}

.movie-info {
  padding: 16px;
}

.movie-title {
  display: -webkit-box;
  min-height: 48px;
  overflow: hidden;
  color: #111827;
  font-size: 17px;
  line-height: 1.4;
  font-weight: 950;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-title:hover {
  color: var(--rose);
}

.movie-desc {
  display: -webkit-box;
  min-height: 45px;
  margin: 10px 0 12px;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #6b7280;
  font-size: 12px;
  font-weight: 700;
}

.category-card {
  position: relative;
  min-height: 188px;
  padding: 24px;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, #e11d48, #db2777 55%, #f97316);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.category-card::after {
  position: absolute;
  right: -50px;
  bottom: -60px;
  width: 160px;
  height: 160px;
  content: "";
  background: rgba(255, 255, 255, 0.20);
  border-radius: 50%;
}

.category-card h2,
.category-card h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 950;
}

.category-card p {
  position: relative;
  z-index: 1;
  min-height: 52px;
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.7;
}

.category-card span {
  position: relative;
  z-index: 1;
  display: inline-flex;
  padding: 8px 13px;
  font-size: 13px;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 52px 82px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  background: #ffffff;
  border: 1px solid #ffe4e6;
  border-radius: 22px;
  box-shadow: 0 12px 30px rgba(190, 18, 60, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item:hover {
  box-shadow: 0 20px 42px rgba(190, 18, 60, 0.13);
  transform: translateX(4px);
}

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

.rank-thumb {
  overflow: hidden;
  border-radius: 16px;
}

.rank-thumb img {
  width: 82px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

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

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

.rank-views {
  color: var(--rose);
  font-weight: 950;
  white-space: nowrap;
}

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

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

.breadcrumb a {
  color: var(--rose);
  font-weight: 800;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 180px 180px;
  gap: 12px;
  margin-bottom: 28px;
}

.filter-input,
.filter-select {
  height: 46px;
  padding: 0 16px;
  color: #374151;
  background: #ffffff;
  border: 1px solid #fecdd3;
  border-radius: 16px;
  outline: none;
}

.filter-input:focus,
.filter-select:focus {
  border-color: #fb7185;
  box-shadow: 0 0 0 4px rgba(251, 113, 133, 0.12);
}

.empty-state {
  display: none;
  padding: 44px;
  color: var(--muted);
  text-align: center;
  background: #ffffff;
  border: 1px solid #ffe4e6;
  border-radius: 24px;
}

.empty-state.is-visible {
  display: block;
}

.detail-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.detail-poster {
  overflow: hidden;
  background: #fff1f2;
  border: 1px solid #ffe4e6;
  border-radius: 30px;
  box-shadow: var(--shadow);
}

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

.detail-title {
  margin: 0 0 18px;
  color: #111827;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.06;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.detail-one-line {
  margin: 0 0 24px;
  color: #4b5563;
  font-size: 18px;
  line-height: 1.8;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.player-section {
  padding: 34px 0 72px;
}

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

.player-shell video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 0;
  color: #ffffff;
  cursor: pointer;
  background:
    radial-gradient(circle at 50% 45%, rgba(225, 29, 72, 0.36), transparent 20rem),
    linear-gradient(180deg, rgba(2, 6, 23, 0.12), rgba(2, 6, 23, 0.70));
  border: 0;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-circle {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  margin: 0 auto 16px;
  color: #ffffff;
  font-size: 38px;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  border-radius: 50%;
  box-shadow: 0 28px 55px rgba(225, 29, 72, 0.35);
}

.player-overlay strong {
  display: block;
  font-size: 20px;
  font-weight: 950;
}

.content-card {
  padding: 28px;
  background: #ffffff;
  border: 1px solid #ffe4e6;
  border-radius: 26px;
  box-shadow: var(--shadow);
}

.content-card h2,
.content-card h3 {
  margin: 0 0 16px;
  color: #111827;
  font-size: 24px;
  font-weight: 950;
}

.content-card p {
  margin: 0;
  color: #4b5563;
  line-height: 1.9;
}

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

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

.site-footer {
  margin-top: 40px;
  color: #4b5563;
  background: linear-gradient(180deg, #ffffff, #fff1f2);
  border-top: 1px solid #ffe4e6;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 38px;
  padding: 42px 0;
}

.footer-title {
  margin: 0 0 14px;
  color: #111827;
  font-size: 18px;
  font-weight: 950;
}

.footer-text {
  margin: 0;
  line-height: 1.8;
}

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

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

.footer-bottom {
  padding: 18px 0 26px;
  color: #6b7280;
  font-size: 14px;
  border-top: 1px solid #ffe4e6;
}

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

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

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

  .mobile-toggle {
    display: grid;
  }

  .hero {
    min-height: 720px;
  }

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

  .hero-poster {
    max-width: 300px;
    transform: none;
  }

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

  .filter-bar {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .container {
    width: min(100% - 24px, 1240px);
  }

  .header-inner {
    min-height: 64px;
  }

  .logo {
    font-size: 19px;
  }

  .logo-mark {
    width: 34px;
    height: 34px;
  }

  .hero {
    min-height: 680px;
  }

  .hero-content {
    gap: 24px;
    padding: 62px 0 68px;
  }

  .hero p {
    font-size: 16px;
  }

  .hero-poster {
    max-width: 240px;
  }

  .hero-dot {
    width: 30px;
  }

  .hero-dot.is-active {
    width: 52px;
  }

  .section {
    padding: 48px 0;
  }

  .section-heading {
    display: block;
  }

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

  .movie-info {
    padding: 13px;
  }

  .movie-title {
    font-size: 15px;
  }

  .movie-desc {
    font-size: 13px;
  }

  .rank-item {
    grid-template-columns: 42px 66px minmax(0, 1fr);
    gap: 12px;
  }

  .rank-thumb img {
    width: 66px;
  }

  .rank-views {
    grid-column: 3;
  }

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