:root {
  --rose: #f43f5e;
  --rose-dark: #e11d48;
  --orange: #fb923c;
  --gold: #f59e0b;
  --ink: #111827;
  --muted: #6b7280;
  --soft: #fff1f2;
  --line: #f3f4f6;
  --card: #ffffff;
  --shadow: 0 20px 55px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #fff7f8 0%, #ffffff 30%, #f8fafc 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(244, 63, 94, 0.08);
}

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

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 900;
  letter-spacing: -0.02em;
}

.logo-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  box-shadow: 0 12px 28px rgba(244, 63, 94, 0.28);
}

.logo-text {
  font-size: 21px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 15px;
  color: #374151;
}

.nav-link {
  position: relative;
  padding: 8px 0;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  border-radius: 999px;
  background: var(--rose);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--rose);
}

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

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #fff1f2;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.mobile-menu-button span {
  width: 20px;
  height: 2px;
  background: var(--rose);
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 16px;
  background: #fff;
  border: 1px solid #ffe4e6;
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 14px;
}

.mobile-nav.is-open {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.mobile-nav-link {
  padding: 12px 14px;
  color: #374151;
  border-radius: 12px;
  background: #fff7f8;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 660px;
  background:
    radial-gradient(circle at 75% 20%, rgba(255, 255, 255, 0.38), transparent 28%),
    linear-gradient(135deg, #f43f5e 0%, #ec4899 48%, #fb923c 100%);
  color: #fff;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  filter: blur(4px);
}

.hero::before {
  left: -110px;
  top: 90px;
}

.hero::after {
  right: -90px;
  bottom: -90px;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 660px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
  gap: 48px;
  align-items: center;
  padding: 72px 0;
}

.hero-kicker,
.section-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  border-radius: 999px;
}

.hero-kicker {
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff7ed;
  backdrop-filter: blur(12px);
}

.hero h1 {
  margin: 22px 0 18px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.06;
  letter-spacing: -0.06em;
}

.hero-copy p {
  max-width: 650px;
  margin: 0 0 28px;
  color: #ffe4e6;
  font-size: 19px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.hero-search {
  flex: 1 1 300px;
  max-width: 460px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 999px;
  box-shadow: 0 20px 45px rgba(159, 18, 57, 0.18);
}

.hero-search input {
  min-width: 0;
  flex: 1;
  height: 42px;
  border: 0;
  outline: none;
  color: var(--ink);
  background: transparent;
  padding: 0 8px 0 16px;
}

.hero-search button,
.primary-button,
.secondary-button,
.filter-button,
.video-start,
.search-button {
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 800;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.hero-search button,
.primary-button,
.search-button {
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  box-shadow: 0 14px 30px rgba(244, 63, 94, 0.28);
}

.hero-search button {
  height: 42px;
  padding: 0 20px;
}

.primary-button,
.secondary-button,
.search-button {
  padding: 13px 22px;
}

.secondary-button {
  background: #fff;
  color: var(--rose);
}

.hero-search button:hover,
.primary-button:hover,
.secondary-button:hover,
.filter-button:hover,
.video-start:hover,
.search-button:hover {
  transform: translateY(-2px);
}

.hero-pills,
.category-pills,
.tag-row,
.meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-pills a,
.category-pills a,
.meta-pills span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.hero-pills a {
  color: #fff;
  padding: 8px 13px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

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

.hero-card {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: minmax(260px, 1fr) auto;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateX(30px) scale(0.97);
  background: rgba(17, 24, 39, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 30px;
  box-shadow: 0 32px 80px rgba(127, 29, 29, 0.34);
  backdrop-filter: blur(16px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

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

.hero-card img {
  width: 100%;
  height: 100%;
  min-height: 290px;
  object-fit: cover;
}

.hero-card-copy {
  position: relative;
  padding: 24px;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.3), rgba(17, 24, 39, 0.78));
}

.hero-card-copy strong {
  display: block;
  font-size: 26px;
  margin-bottom: 8px;
}

.hero-card-copy p {
  color: #e5e7eb;
  line-height: 1.7;
  margin: 0 0 18px;
}

.hero-dots {
  position: absolute;
  left: 24px;
  bottom: -34px;
  display: flex;
  gap: 8px;
}

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

.hero-dot.is-active {
  width: 44px;
  background: #fff;
}

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

.section-wrap {
  padding: 76px 0 0;
}

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

.section-header h2,
.page-title h1,
.detail-title h1 {
  margin: 0;
  color: var(--ink);
  letter-spacing: -0.04em;
}

.section-header h2,
.page-title h1 {
  font-size: clamp(30px, 4vw, 42px);
}

.section-header p,
.page-title p {
  color: var(--muted);
  line-height: 1.8;
  margin: 8px 0 0;
}

.section-link {
  color: var(--rose);
  font-weight: 800;
  white-space: nowrap;
}

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

.movie-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border-radius: 22px;
  background: var(--card);
  border: 1px solid rgba(244, 63, 94, 0.08);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(244, 63, 94, 0.35);
  box-shadow: var(--shadow);
}

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

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

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

.poster-badge,
.poster-play,
.card-rank {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  border-radius: 999px;
}

.poster-badge {
  top: 12px;
  right: 12px;
  padding: 6px 10px;
  font-size: 12px;
  background: rgba(244, 63, 94, 0.94);
}

.poster-play {
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  transform: translate(-50%, -50%) scale(0.84);
  opacity: 0;
  background: rgba(255, 255, 255, 0.92);
  color: var(--rose);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.22);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .poster-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.movie-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
}

.movie-title {
  display: block;
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.35;
}

.movie-meta,
.movie-desc {
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}

.tag-row span {
  color: var(--rose);
  background: #fff1f2;
  padding: 5px 9px;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  padding: 26px;
  min-height: 190px;
  border-radius: 26px;
  color: #fff;
  background: linear-gradient(135deg, #f43f5e, #fb923c);
  box-shadow: 0 22px 55px rgba(244, 63, 94, 0.22);
}

.category-card:nth-child(2n) {
  background: linear-gradient(135deg, #ec4899, #f97316);
}

.category-card:nth-child(3n) {
  background: linear-gradient(135deg, #be123c, #f59e0b);
}

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

.category-card strong {
  display: block;
  position: relative;
  z-index: 1;
  font-size: 24px;
  margin-bottom: 12px;
}

.category-card span {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.7;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 44px 112px minmax(0, 1fr) auto;
  align-items: center;
  gap: 15px;
  padding: 14px;
  border: 1px solid rgba(244, 63, 94, 0.08);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.rank-number {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 13px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--rose), var(--orange));
}

.rank-item img {
  width: 112px;
  height: 70px;
  object-fit: cover;
  border-radius: 12px;
}

.rank-copy {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.rank-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-copy span,
.rank-score {
  color: var(--muted);
  font-size: 13px;
}

.page-hero {
  padding: 70px 0 38px;
  background: linear-gradient(180deg, #fff1f2, rgba(255, 255, 255, 0));
}

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

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

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

.listing-controls,
.search-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  padding: 18px;
  margin-bottom: 26px;
  border: 1px solid #ffe4e6;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.listing-controls input,
.listing-controls select,
.search-panel input,
.search-panel select {
  height: 46px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 0 16px;
  color: var(--ink);
  background: #fff;
  outline: none;
}

.listing-controls input,
.search-panel input {
  flex: 1 1 260px;
}

.listing-controls input:focus,
.listing-controls select:focus,
.search-panel input:focus,
.search-panel select:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.1);
}

.filter-button {
  height: 46px;
  padding: 0 20px;
  color: #fff;
  background: var(--rose);
}

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

.player-card,
.detail-card,
.side-card {
  border: 1px solid rgba(244, 63, 94, 0.08);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.player-shell {
  position: relative;
  background: #111827;
  aspect-ratio: 16 / 9;
}

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

.video-start {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  min-width: 150px;
  height: 54px;
  padding: 0 22px;
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
}

.player-shell.is-playing .video-start {
  display: none;
}

.player-status {
  position: absolute;
  left: 18px;
  bottom: 16px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.detail-title {
  padding: 28px 30px 8px;
}

.detail-title h1 {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.15;
}

.meta-pills {
  padding: 10px 30px 26px;
}

.meta-pills span {
  color: #9f1239;
  background: #fff1f2;
  padding: 8px 12px;
}

.detail-card {
  padding: 30px;
  margin-top: 24px;
}

.detail-card h2,
.side-card h2 {
  margin: 0 0 16px;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.detail-card p {
  color: #374151;
  line-height: 1.95;
  margin: 0 0 18px;
}

.side-card {
  padding: 20px;
}

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

.side-link {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.side-link img {
  width: 96px;
  height: 64px;
  object-fit: cover;
  border-radius: 12px;
}

.side-link strong {
  display: block;
  color: var(--ink);
  line-height: 1.35;
}

.side-link span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.next-prev {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.next-prev a {
  padding: 18px;
  border: 1px solid #ffe4e6;
  border-radius: 18px;
  background: #fff;
  color: var(--rose);
  font-weight: 800;
}

.search-results {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  min-height: 220px;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 34px;
  border-radius: 24px;
  background: #fff;
  color: var(--muted);
  text-align: center;
}

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

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 46px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 520px);
  gap: 36px;
}

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

.footer-inner p {
  max-width: 560px;
  line-height: 1.8;
  color: #9ca3af;
}

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

.footer-links a {
  color: #d1d5db;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #fb7185;
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #9ca3af;
  font-size: 14px;
}

@media (max-width: 1024px) {
  .desktop-nav {
    display: none;
  }

  .mobile-menu-button {
    display: inline-flex;
  }

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

  .hero-stage {
    min-height: 430px;
  }

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

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

  .hero,
  .hero-inner {
    min-height: auto;
  }

  .hero-inner {
    padding: 44px 0 72px;
    gap: 34px;
  }

  .hero-stage {
    min-height: 390px;
  }

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

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

  .rank-item {
    grid-template-columns: 38px 86px minmax(0, 1fr);
  }

  .rank-score {
    display: none;
  }

  .rank-item img {
    width: 86px;
    height: 60px;
  }

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

@media (max-width: 520px) {
  .movie-grid,
  .category-grid,
  .search-results,
  .next-prev {
    grid-template-columns: 1fr;
  }

  .hero-card-copy strong {
    font-size: 22px;
  }

  .detail-card,
  .detail-title {
    padding-left: 20px;
    padding-right: 20px;
  }

  .meta-pills {
    padding-left: 20px;
    padding-right: 20px;
  }
}
