
:root {
  --bg: #fff7fb;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-solid: #ffffff;
  --text: #221821;
  --muted: #6f6170;
  --line: rgba(236, 72, 153, 0.14);
  --brand: #ef4444;
  --brand-2: #f97316;
  --brand-3: #db2777;
  --shadow: 0 18px 55px rgba(148, 38, 87, 0.16);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 10% -10%, rgba(244, 114, 182, 0.28), transparent 28rem),
    radial-gradient(circle at 90% 4%, rgba(251, 146, 60, 0.22), transparent 24rem),
    linear-gradient(135deg, #fff1f7 0%, #ffffff 45%, #f7f0ff 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.76);
  border-bottom: 1px solid rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(22px);
  box-shadow: 0 10px 30px rgba(236, 72, 153, 0.08);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 12px 25px rgba(239, 68, 68, 0.28);
}

.brand-text {
  font-size: 22px;
  background: linear-gradient(120deg, #dc2626, #f97316, #db2777);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  color: #5b4d5d;
  border: 0;
  cursor: pointer;
  background: transparent;
  transition: 0.22s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #db2777;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 22px rgba(219, 39, 119, 0.13);
}

.nav-dropdown {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 220px;
  padding: 10px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: 0.2s ease;
}

.nav-dropdown:hover .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-panel a {
  display: block;
  padding: 10px 14px;
  border-radius: 15px;
  color: #5f5062;
}

.dropdown-panel a:hover {
  color: #db2777;
  background: linear-gradient(90deg, #fff1f7, #fff7ed);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 0;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(219, 39, 119, 0.11);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  border-radius: 99px;
  background: #6b5569;
}

.mobile-nav {
  display: none;
  padding: 12px 16px 18px;
  border-top: 1px solid rgba(236, 72, 153, 0.1);
  background: rgba(255, 255, 255, 0.94);
}

.mobile-nav.is-open {
  display: grid;
  gap: 8px;
}

.hero {
  padding: 26px 0 0;
}

.hero-stage {
  position: relative;
  width: min(1280px, calc(100% - 32px));
  height: clamp(520px, 62vw, 680px);
  margin: 0 auto;
  overflow: hidden;
  border-radius: 36px;
  box-shadow: 0 30px 80px rgba(76, 29, 149, 0.22);
  background: #1f1722;
}

.hero-stage::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 40%;
  background: linear-gradient(0deg, rgba(12, 8, 14, 0.82), transparent);
  pointer-events: none;
}

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

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

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 650px;
  padding: clamp(32px, 7vw, 84px);
  color: #ffffff;
}

.eyebrow,
.section-heading span,
.page-hero span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: #db2777;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-copy .eyebrow {
  color: #fed7aa;
}

.hero h1,
.page-hero h1,
.detail-article h1 {
  margin: 0;
  font-size: clamp(34px, 6vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.07em;
}

.hero p {
  max-width: 580px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(16px, 2.1vw, 21px);
  line-height: 1.75;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: #a21caf;
  background: #fdf2f8;
  font-size: 12px;
  font-weight: 700;
}

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

.hero-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

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

.primary-btn,
.ghost-btn,
.search-bar button,
.card-foot a,
.category-card-large em {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: 0.22s ease;
}

.primary-btn,
.search-bar button,
.card-foot a,
.category-card-large em {
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 14px 28px rgba(239, 68, 68, 0.25);
}

.primary-btn:hover,
.search-bar button:hover,
.card-foot a:hover,
.category-card-large:hover em {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(239, 68, 68, 0.32);
}

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

.hero-controls {
  position: absolute;
  right: clamp(22px, 4vw, 60px);
  bottom: clamp(22px, 4vw, 50px);
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-controls button {
  border: 0;
  cursor: pointer;
}

.hero-controls > button {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: #ffffff;
  font-size: 30px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(16px);
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  transition: 0.2s ease;
}

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

.quick-search {
  margin-top: -36px;
  position: relative;
  z-index: 5;
}

.search-bar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.search-bar input {
  width: 100%;
  min-height: 50px;
  padding: 0 22px;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
}

.search-bar button {
  min-width: 124px;
  border: 0;
  cursor: pointer;
}

.hero-link-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.hero-link-row a {
  padding: 10px 16px;
  border-radius: 999px;
  color: #7c3f61;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(236, 72, 153, 0.12);
}

.section-block {
  margin-top: 74px;
}

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

.section-heading h2,
.filter-panel h2,
.site-footer h2,
.detail-article h2,
.detail-ranking h2 {
  margin: 0;
  color: #221821;
  font-size: clamp(24px, 3.6vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.045em;
}

.section-heading a {
  color: #db2777;
  font-weight: 800;
}

.compact-heading h2,
.site-footer h2,
.detail-ranking h2 {
  font-size: 24px;
}

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

.category-chip {
  min-height: 130px;
  padding: 22px;
  border-radius: 28px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 12px 30px rgba(219, 39, 119, 0.08);
  transition: 0.22s ease;
}

.category-chip:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.category-chip span {
  display: block;
  margin-bottom: 10px;
  color: #db2777;
  font-size: 20px;
  font-weight: 900;
}

.category-chip em {
  color: var(--muted);
  font-style: normal;
  line-height: 1.65;
}

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 34px rgba(148, 38, 87, 0.09);
  transition: 0.24s ease;
}

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

.poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #fce7f3, #fff7ed);
}

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

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

.poster::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 40%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.58), transparent);
}

.poster-badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  background: rgba(239, 68, 68, 0.88);
  backdrop-filter: blur(10px);
}

.movie-info {
  padding: 18px;
}

.movie-meta,
.card-foot,
.detail-meta-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: #8a7285;
  font-size: 12px;
  font-weight: 700;
}

.movie-meta span,
.detail-meta-list span {
  padding: 5px 9px;
  border-radius: 999px;
  background: #fff1f2;
}

.movie-info h2 {
  margin: 13px 0 8px;
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: -0.025em;
}

.movie-info h2 a:hover {
  color: #db2777;
}

.movie-info p {
  min-height: 64px;
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-foot {
  justify-content: space-between;
  margin-top: 16px;
}

.card-foot a {
  min-height: 34px;
  padding: 0 13px;
  font-size: 12px;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}

.compact-grid {
  display: grid;
  gap: 16px;
}

.compact-card {
  display: grid;
  grid-template-columns: 110px 1fr;
  min-height: 156px;
}

.compact-card .poster {
  aspect-ratio: auto;
  height: 100%;
}

.compact-card .movie-info p {
  min-height: 0;
  -webkit-line-clamp: 2;
}

.ranking-panel,
.filter-panel,
.detail-article,
.detail-ranking,
.category-card-large a,
.player-card,
.detail-side {
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.84);
  box-shadow: 0 16px 42px rgba(148, 38, 87, 0.1);
}

.ranking-panel {
  padding: 22px;
}

.sticky-panel {
  position: sticky;
  top: 96px;
}

.ranking-list {
  display: grid;
  gap: 10px;
}

.ranking-item {
  display: grid;
  grid-template-columns: 34px 54px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  transition: 0.2s ease;
}

.ranking-item:hover {
  background: #fff1f7;
}

.ranking-item strong {
  color: #ef4444;
  font-size: 18px;
}

.ranking-item img {
  width: 54px;
  height: 74px;
  border-radius: 12px;
  object-fit: cover;
}

.ranking-item b,
.ranking-item em {
  display: block;
}

.ranking-item b {
  margin-bottom: 5px;
  line-height: 1.3;
}

.ranking-item em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.page-main {
  padding-top: 30px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(36px, 8vw, 78px);
  border-radius: 36px;
  color: #ffffff;
  background:
    linear-gradient(120deg, rgba(136, 19, 55, 0.93), rgba(239, 68, 68, 0.76), rgba(249, 115, 22, 0.72)),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.28), transparent 24rem);
  box-shadow: var(--shadow);
}

.page-hero span {
  color: #fed7aa;
}

.page-hero p {
  max-width: 780px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.75;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #fed7aa;
}

.breadcrumb-wrap .breadcrumb {
  color: #7f6579;
  margin-bottom: 18px;
}

.breadcrumb-wrap .breadcrumb a:hover {
  color: #db2777;
}

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

.category-card-large a {
  display: block;
  padding: 18px;
  transition: 0.22s ease;
}

.category-card-large a:hover {
  transform: translateY(-4px);
}

.category-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}

.category-thumbs img {
  height: 130px;
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
}

.category-card-large span {
  color: #db2777;
  font-size: 22px;
  font-weight: 900;
}

.category-card-large h2 {
  min-height: 54px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.65;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 520px);
  gap: 20px;
  align-items: center;
  margin-bottom: 28px;
  padding: 22px;
}

.filter-panel p {
  margin: 8px 0 0;
  color: var(--muted);
}

.filter-controls {
  display: grid;
  grid-template-columns: 1fr 140px 140px;
  gap: 10px;
}

.filter-controls input,
.filter-controls select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(236, 72, 153, 0.16);
  border-radius: 16px;
  color: #4c3f4d;
  background: #ffffff;
  outline: 0;
}

.filter-controls input:focus,
.filter-controls select:focus {
  border-color: rgba(219, 39, 119, 0.42);
  box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.1);
}

.empty-state {
  display: none;
  padding: 34px;
  text-align: center;
  color: var(--muted);
  border-radius: 26px;
  background: #ffffff;
}

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

.detail-main {
  padding-bottom: 40px;
}

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

.player-card {
  position: relative;
  overflow: hidden;
  min-height: clamp(320px, 48vw, 640px);
  background: #08070a;
}

.movie-video,
.play-veil {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.movie-video {
  object-fit: contain;
  background: #07060a;
}

.play-veil {
  border: 0;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  background: #000000;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-veil img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.62;
  filter: saturate(1.08);
}

.play-veil::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.12), transparent 18rem), linear-gradient(0deg, rgba(0, 0, 0, 0.55), transparent);
}

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

.play-circle {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  padding-left: 6px;
  border-radius: 50%;
  color: #ffffff;
  font-size: 34px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 20px 44px rgba(239, 68, 68, 0.38);
  transform: translate(-50%, -50%);
}

.detail-side {
  padding: 16px;
}

.detail-side img {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 22px;
  object-fit: cover;
}

.detail-meta-list {
  margin-top: 16px;
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  margin-top: 28px;
  align-items: start;
}

.detail-article,
.detail-ranking {
  padding: clamp(24px, 4vw, 38px);
}

.detail-article .eyebrow {
  color: #db2777;
}

.detail-article h1 {
  color: #221821;
}

.detail-article .lead {
  color: #7c3f61;
  font-size: 20px;
  line-height: 1.75;
}

.detail-article p {
  color: #554a55;
  font-size: 17px;
  line-height: 1.9;
}

.detail-article h2 {
  margin-top: 32px;
  margin-bottom: 12px;
}

.detail-tags {
  margin-top: 20px;
}

.related-grid .compact-card {
  grid-template-columns: 92px 1fr;
}

.site-footer {
  margin-top: 86px;
  padding: 48px 0;
  color: #6f6170;
  background: rgba(255, 255, 255, 0.72);
  border-top: 1px solid rgba(236, 72, 153, 0.12);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 30px;
}

.footer-brand {
  margin-bottom: 14px;
}

.site-footer p {
  max-width: 420px;
  line-height: 1.75;
}

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

.footer-links a {
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff1f7;
  color: #7c3f61;
}

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

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

  .sticky-panel {
    position: static;
  }

  .detail-side {
    display: grid;
    grid-template-columns: 180px 1fr;
    align-items: center;
    gap: 18px;
  }
}

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

  .menu-toggle {
    display: block;
  }

  .header-inner {
    height: 68px;
  }

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

  .hero-stage {
    height: 600px;
    border-radius: 28px;
  }

  .hero-copy {
    padding: 32px;
  }

  .hero-controls {
    left: 24px;
    right: auto;
  }

  .search-bar {
    grid-template-columns: 1fr;
    border-radius: 28px;
  }

  .search-bar button {
    width: 100%;
  }

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

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

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

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

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

@media (max-width: 560px) {
  .container,
  .hero-stage {
    width: min(100% - 22px, 1180px);
  }

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

  .compact-card,
  .related-grid .compact-card {
    grid-template-columns: 96px 1fr;
  }

  .movie-info {
    padding: 15px;
  }

  .detail-side {
    grid-template-columns: 120px 1fr;
  }

  .play-circle {
    width: 72px;
    height: 72px;
    font-size: 26px;
  }

  .page-hero,
  .detail-article,
  .detail-ranking {
    padding: 24px;
    border-radius: 28px;
  }
}
