:root {
  --bg: #fff7fb;
  --bg-soft: #fff1f2;
  --card: rgba(255, 255, 255, 0.9);
  --text: #30202b;
  --muted: #7b6875;
  --line: rgba(244, 63, 94, 0.16);
  --rose: #f43f5e;
  --pink: #ec4899;
  --orange: #fb923c;
  --shadow: 0 22px 60px rgba(190, 18, 60, 0.14);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(236, 72, 153, 0.18), transparent 32rem),
    radial-gradient(circle at top right, rgba(251, 146, 60, 0.18), transparent 28rem),
    linear-gradient(135deg, #fff1f2 0%, #fff7ed 50%, #fff7fb 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

img {
  background: linear-gradient(135deg, #fecdd3, #fed7aa);
}

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

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

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  font-weight: 900;
  letter-spacing: -0.02em;
}

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

.brand-text {
  font-size: 22px;
  background: linear-gradient(90deg, var(--pink), var(--rose), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

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

.desktop-nav a:hover,
.mobile-panel a:hover {
  color: var(--rose);
}

.header-search {
  position: relative;
  flex: 0 0 270px;
}

.header-search input,
.filter-control input,
.filter-control select {
  width: 100%;
  border: 1px solid rgba(244, 63, 94, 0.22);
  border-radius: 999px;
  outline: none;
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search input {
  padding: 12px 18px;
}

.header-search input:focus,
.filter-control input:focus,
.filter-control select:focus {
  border-color: rgba(236, 72, 153, 0.65);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.12);
}

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

.mobile-panel {
  display: none;
  border-top: 1px solid var(--line);
  padding: 16px 0 22px;
}

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

.mobile-links {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 650px;
  color: #fff;
  isolation: isolate;
}

.hero-slide {
  position: relative;
  display: none;
  min-height: 650px;
  background-position: center;
  background-size: cover;
}

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

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(18, 11, 22, 0.88) 0%, rgba(18, 11, 22, 0.58) 44%, rgba(18, 11, 22, 0.15) 100%),
    linear-gradient(180deg, rgba(18, 11, 22, 0.18), rgba(18, 11, 22, 0.72));
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  min-height: 650px;
  max-width: 720px;
  padding: 80px 0 120px;
}

.hero-kicker,
.section-kicker,
.detail-kicker {
  display: inline-flex;
  align-items: center;
  width: max-content;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 8px 14px;
  color: #ffe4e6;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  font-size: 14px;
  font-weight: 800;
}

.section-kicker,
.detail-kicker {
  border-color: rgba(244, 63, 94, 0.2);
  color: var(--rose);
  background: rgba(244, 63, 94, 0.08);
}

.hero h1 {
  margin: 24px 0 16px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.98;
  font-weight: 950;
  letter-spacing: -0.055em;
  text-shadow: 0 22px 60px rgba(0, 0, 0, 0.35);
}

.hero-summary {
  max-width: 660px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.85;
}

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

.hero-tags {
  margin: 22px 0 30px;
}

.tag,
.meta-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 800;
}

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

.card-tags .tag,
.detail-tags .tag,
.meta-pill {
  color: #9f1239;
  background: rgba(244, 63, 94, 0.09);
}

.hero-actions,
.section-head,
.page-head-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  color: #fff;
  background: linear-gradient(90deg, var(--pink), var(--rose), var(--orange));
  box-shadow: 0 18px 35px rgba(244, 63, 94, 0.32);
}

.btn-ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(10px);
}

.btn-light {
  color: var(--rose);
  background: #fff;
  border: 1px solid rgba(244, 63, 94, 0.14);
}

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

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

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

.section {
  padding: 72px 0;
}

.section.compact {
  padding-top: 42px;
}

.section-head {
  justify-content: space-between;
  margin-bottom: 28px;
}

.section-title-block {
  display: grid;
  gap: 10px;
}

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

.section-desc,
.page-desc,
.detail-desc {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.9;
}

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

.category-tile {
  position: relative;
  overflow: hidden;
  min-height: 170px;
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 24px;
  background:
    radial-gradient(circle at 85% 12%, rgba(251, 146, 60, 0.2), transparent 8rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 241, 242, 0.9));
  box-shadow: 0 18px 45px rgba(190, 18, 60, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.category-tile:hover,
.movie-card:hover,
.rank-card:hover {
  transform: translateY(-6px);
  border-color: rgba(236, 72, 153, 0.42);
  box-shadow: var(--shadow);
}

.category-kicker {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--rose);
  font-size: 13px;
  font-weight: 900;
}

.category-tile strong {
  display: block;
  margin-bottom: 10px;
  color: #3c2534;
  font-size: 22px;
  font-weight: 950;
}

.category-tile span:last-child {
  color: var(--muted);
  line-height: 1.7;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
  box-shadow: 0 16px 40px rgba(190, 18, 60, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card-link {
  display: block;
  height: 100%;
}

.cover-frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, #fecdd3, #fed7aa);
}

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

.movie-card:hover .cover-frame img,
.rank-card:hover img {
  transform: scale(1.05);
}

.card-badge,
.rank-number {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  border-radius: 999px;
  padding: 6px 10px;
  color: #fff;
  background: linear-gradient(90deg, var(--pink), var(--rose));
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(190, 18, 60, 0.25);
}

.card-body {
  display: grid;
  gap: 10px;
  padding: 16px;
}

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

.card-summary {
  display: -webkit-box;
  overflow: hidden;
  min-height: 45px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #9f1239;
  font-size: 13px;
  font-weight: 800;
}

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

.rank-card {
  position: relative;
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 16px;
  min-height: 164px;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 40px rgba(190, 18, 60, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.rank-card img {
  width: 112px;
  height: 140px;
  border-radius: 18px;
  object-fit: cover;
}

.rank-body {
  display: grid;
  align-content: center;
  gap: 8px;
}

.rank-body strong {
  display: -webkit-box;
  overflow: hidden;
  color: #2f1f2b;
  font-size: 18px;
  line-height: 1.42;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

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

.page-hero {
  padding: 68px 0 32px;
}

.page-hero-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(28px, 5vw, 54px);
  background:
    radial-gradient(circle at top right, rgba(251, 146, 60, 0.22), transparent 22rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 241, 242, 0.82));
  box-shadow: var(--shadow);
}

.page-title {
  margin: 12px 0 14px;
}

.filters {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 14px;
  margin: 30px 0 24px;
}

.filter-control input,
.filter-control select {
  min-height: 48px;
  padding: 0 16px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.55fr);
  gap: 28px;
  align-items: start;
  padding: 46px 0 72px;
}

.player-card,
.detail-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.player-box {
  position: relative;
  overflow: hidden;
  background: #110a15;
  aspect-ratio: 16 / 9;
}

.movie-video {
  width: 100%;
  height: 100%;
  background: #110a15;
  object-fit: contain;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  background: radial-gradient(circle, rgba(244, 63, 94, 0.18), rgba(17, 10, 21, 0.54));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-overlay span {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--rose), var(--orange));
  box-shadow: 0 20px 42px rgba(244, 63, 94, 0.34);
  font-size: 38px;
  transform: translateX(3px);
}

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

.player-info,
.detail-card {
  padding: clamp(22px, 4vw, 34px);
}

.detail-title {
  margin: 14px 0 16px;
}

.detail-desc {
  margin-bottom: 18px;
}

.detail-poster {
  overflow: hidden;
  margin-bottom: 20px;
  border-radius: 22px;
  background: linear-gradient(135deg, #fecdd3, #fed7aa);
}

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

.prose {
  color: #4c3a46;
  line-height: 2;
}

.prose h2 {
  margin: 28px 0 12px;
  color: #2f1f2b;
  font-size: 24px;
  font-weight: 950;
}

.prose p {
  margin: 0 0 14px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #8d6f80;
  font-size: 14px;
  font-weight: 700;
}

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

.empty-state {
  display: none;
  border: 1px dashed rgba(244, 63, 94, 0.28);
  border-radius: 24px;
  padding: 32px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
  text-align: center;
}

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

.site-footer {
  border-top: 1px solid var(--line);
  padding: 34px 0;
  color: #7a6472;
  background: rgba(255, 255, 255, 0.62);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-weight: 800;
}

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

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

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

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

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

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

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

  .nav-wrap {
    min-height: 66px;
  }

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

  .hero,
  .hero-slide,
  .hero-content {
    min-height: 590px;
  }

  .hero-content {
    padding: 54px 0 100px;
  }

  .hero h1 {
    font-size: clamp(36px, 12vw, 54px);
  }

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

  .section {
    padding: 52px 0;
  }

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

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

  .card-body {
    padding: 13px;
  }

  .card-title {
    min-height: 44px;
    font-size: 15px;
  }

  .rank-card {
    grid-template-columns: 96px 1fr;
  }

  .rank-card img {
    width: 96px;
    height: 126px;
  }

  .footer-inner {
    display: grid;
  }
}
