:root {
  --pink: #ec4899;
  --blue: #3b82f6;
  --green: #22c55e;
  --orange: #f97316;
  --text: #1f2937;
  --muted: #6b7280;
  --line: rgba(148, 163, 184, 0.28);
  --surface: rgba(255, 255, 255, 0.86);
  --shadow: 0 24px 60px rgba(31, 41, 55, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(236, 72, 153, 0.18), transparent 34rem),
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.18), transparent 36rem),
    linear-gradient(135deg, #fdf2f8 0%, #eff6ff 46%, #f0fdf4 100%);
}

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

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

button,
input {
  font: inherit;
}

[hidden] {
  display: none !important;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 28px rgba(148, 163, 184, 0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, var(--pink), var(--blue), var(--green));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 0.95rem;
  background: linear-gradient(135deg, var(--pink), var(--blue));
  box-shadow: 0 12px 26px rgba(236, 72, 153, 0.26);
}

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

.desktop-nav a,
.mobile-panel nav a {
  transition: color 0.2s ease, transform 0.2s ease;
}

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

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.header-search input,
.mobile-panel input,
.list-toolbar input {
  width: 240px;
  border: 2px solid rgba(236, 72, 153, 0.18);
  border-radius: 999px;
  padding: 11px 16px;
  outline: 0;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.mobile-panel input:focus,
.list-toolbar input:focus {
  border-color: rgba(236, 72, 153, 0.7);
  box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.12);
}

.header-search button,
.mobile-panel button,
.primary-button,
.ghost-button {
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  color: #ffffff;
  font-weight: 800;
  background: linear-gradient(90deg, var(--pink), var(--blue));
  box-shadow: 0 14px 26px rgba(59, 130, 246, 0.18);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-search button:hover,
.mobile-panel button:hover,
.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(59, 130, 246, 0.24);
}

.ghost-button {
  color: var(--pink);
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(236, 72, 153, 0.22), 0 14px 26px rgba(236, 72, 153, 0.12);
}

.menu-button {
  display: none;
  margin-left: auto;
  border: 0;
  border-radius: 14px;
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.8);
  color: #111827;
  cursor: pointer;
}

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

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

.mobile-panel form {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.mobile-panel input {
  width: 100%;
}

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

.mobile-panel nav a {
  padding: 11px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  font-weight: 700;
}

.hero-shell {
  padding: 34px 0 20px;
}

.hero-card {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border-radius: 32px;
  padding: 1px;
  background: linear-gradient(135deg, var(--pink), var(--blue), var(--green));
  box-shadow: var(--shadow);
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 31px;
  background:
    radial-gradient(circle at 18% 18%, rgba(236, 72, 153, 0.18), transparent 18rem),
    radial-gradient(circle at 82% 28%, rgba(34, 197, 94, 0.15), transparent 20rem),
    rgba(255, 255, 255, 0.95);
}

.hero-slide {
  position: absolute;
  inset: 1px;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  gap: 42px;
  padding: 54px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-copy {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--pink);
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  line-height: 1.08;
  letter-spacing: -0.06em;
  background: linear-gradient(90deg, var(--pink), var(--blue), var(--green));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy h2 {
  margin: 18px 0 12px;
  font-size: clamp(1.6rem, 3.2vw, 2.7rem);
  line-height: 1.15;
}

.hero-copy p,
.page-hero p {
  margin: 0;
  color: #4b5563;
  font-size: 1.08rem;
  line-height: 1.9;
}

.hero-tags,
.tag-row,
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

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

.hero-tags span,
.tag-row span,
.filter-chips button {
  border: 0;
  border-radius: 999px;
  padding: 7px 12px;
  color: #be185d;
  background: rgba(252, 231, 243, 0.92);
  font-size: 0.84rem;
  font-weight: 800;
}

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

.hero-poster {
  position: relative;
  z-index: 1;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: 28px;
  background: linear-gradient(135deg, #fce7f3, #dbeafe);
  box-shadow: 0 30px 70px rgba(31, 41, 55, 0.24);
  transform: rotate(1deg);
  transition: transform 0.35s ease;
}

.hero-poster:hover {
  transform: rotate(0deg) scale(1.02);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-poster span {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.72));
}

.hero-poster strong {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  color: #ffffff;
  font-size: 1.6rem;
  line-height: 1.2;
}

.hero-dots {
  position: absolute;
  z-index: 2;
  left: 56px;
  bottom: 34px;
  display: flex;
  gap: 8px;
}

.hero-dots button {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(236, 72, 153, 0.3);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.active {
  width: 34px;
  background: linear-gradient(90deg, var(--pink), var(--blue));
}

.category-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 18px 0 28px;
}

.category-strip a {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 11px 16px;
  background: rgba(255, 255, 255, 0.82);
  color: #374151;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(148, 163, 184, 0.12);
  transition: color 0.2s ease, transform 0.2s ease;
}

.category-strip a:hover {
  color: var(--pink);
  transform: translateY(-2px);
}

.page-main {
  padding: 34px 0 54px;
}

.page-hero,
.content-section,
.soft-panel,
.rail-panel,
.detail-content,
.related-section,
.ranking-side,
.category-card,
.rank-card,
.list-toolbar {
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 18px 42px rgba(148, 163, 184, 0.13);
}

.mini-hero {
  padding: 38px;
  margin-bottom: 28px;
}

.mini-hero h1 {
  margin-bottom: 14px;
}

.content-section {
  margin-bottom: 44px;
  padding: 28px;
}

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

.section-heading h2,
.ranking-side h2,
.detail-content h2 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  line-height: 1.15;
}

.section-heading a {
  color: var(--pink);
  font-weight: 900;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 16px 35px rgba(31, 41, 55, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 52px rgba(31, 41, 55, 0.18);
}

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

.poster-link img,
.rank-poster img,
.compact-poster img,
.detail-info-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.movie-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.6));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .movie-gradient {
  opacity: 1;
}

.category-pill,
.duration-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  padding: 6px 10px;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 900;
}

.category-pill {
  top: 12px;
  left: 12px;
  background: rgba(236, 72, 153, 0.92);
}

.duration-badge {
  right: 12px;
  bottom: 12px;
  background: rgba(17, 24, 39, 0.76);
}

.movie-card-body {
  padding: 18px;
}

.movie-card-body h3 {
  margin: 0 0 9px;
  font-size: 1.08rem;
  line-height: 1.35;
}

.movie-card-body h3 a {
  transition: color 0.2s ease;
}

.movie-card:hover h3 a {
  color: var(--pink);
}

.movie-meta,
.movie-desc {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.movie-meta {
  font-size: 0.88rem;
}

.movie-desc {
  display: -webkit-box;
  min-height: 3.4em;
  margin-top: 8px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.tag-row {
  margin-top: 14px;
}

.movie-rail {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding: 6px 4px 18px;
}

.rail-item {
  flex: 0 0 320px;
}

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

.category-card {
  overflow: hidden;
}

.category-card-main {
  display: block;
  padding: 28px;
  min-height: 230px;
  background:
    radial-gradient(circle at 20% 20%, rgba(236, 72, 153, 0.14), transparent 14rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(239, 246, 255, 0.94));
}

.category-card h2 {
  margin: 0 0 14px;
  font-size: 1.7rem;
}

.category-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.category-samples {
  display: grid;
  gap: 8px;
  padding: 0 28px 26px;
}

.category-samples a {
  color: #374151;
  font-weight: 700;
}

.category-samples a:hover {
  color: var(--pink);
}

.list-toolbar {
  display: grid;
  gap: 16px;
  margin-bottom: 26px;
  padding: 20px;
}

.list-toolbar input {
  width: 100%;
}

.filter-chips button {
  cursor: pointer;
}

.filter-chips button.active,
.filter-chips button:hover {
  color: #ffffff;
  background: linear-gradient(90deg, var(--pink), var(--blue));
}

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

.breadcrumb a {
  color: #374151;
  font-weight: 700;
}

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

.ranking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
}

.ranking-main,
.compact-list {
  display: grid;
  gap: 16px;
}

.rank-card {
  display: grid;
  grid-template-columns: 60px 180px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 16px;
}

.rank-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--orange), var(--pink));
}

.rank-poster {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: 16px;
  background: linear-gradient(135deg, #fce7f3, #dbeafe);
}

.rank-card h2 {
  margin: 0 0 8px;
  font-size: 1.22rem;
}

.rank-card p {
  margin: 0 0 7px;
  color: var(--muted);
  line-height: 1.65;
}

.ranking-side {
  position: sticky;
  top: 98px;
  align-self: start;
  padding: 22px;
}

.movie-card-compact {
  display: grid;
  grid-template-columns: 138px minmax(0, 1fr);
  gap: 14px;
  padding: 10px;
}

.compact-poster {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  background: linear-gradient(135deg, #fce7f3, #dbeafe);
}

.compact-body {
  display: grid;
  align-content: center;
  min-width: 0;
}

.compact-body strong {
  overflow: hidden;
  color: #111827;
  font-size: 0.98rem;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-body span,
.compact-body em {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
  font-style: normal;
}

.detail-main {
  display: grid;
  gap: 26px;
}

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

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

.movie-player {
  width: 100%;
  height: 100%;
  background: #020617;
  object-fit: contain;
}

.player-start {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle, rgba(15, 23, 42, 0.2), rgba(15, 23, 42, 0.62));
  cursor: pointer;
}

.player-start span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pink), var(--blue));
  font-size: 2rem;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease;
}

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

.detail-info-card {
  display: grid;
  overflow: hidden;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.detail-info-card img {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #fce7f3, #dbeafe);
}

.detail-info-card div {
  padding: 22px;
}

.detail-info-card h1 {
  margin: 0 0 12px;
  font-size: 1.8rem;
  line-height: 1.2;
}

.detail-info-card p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.detail-content {
  padding: 30px;
}

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

.detail-meta span {
  border-radius: 999px;
  padding: 7px 12px;
  color: #1f2937;
  background: rgba(219, 234, 254, 0.9);
  font-weight: 800;
}

.detail-tags {
  margin-bottom: 24px;
}

.detail-content p {
  color: #374151;
  font-size: 1.02rem;
  line-height: 2;
}

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

.related-section {
  margin-bottom: 10px;
}

.site-footer {
  margin-top: 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.76);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px);
}

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

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

.site-footer p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.site-footer h2 {
  margin: 0 0 14px;
  font-size: 1.05rem;
}

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

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

.footer-links a {
  color: #374151;
  font-weight: 700;
}

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

.footer-bottom {
  padding: 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  color: var(--muted);
  text-align: center;
}

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

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

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

  .hero-card {
    min-height: 780px;
  }

  .ranking-side {
    position: static;
  }
}

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

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

  .brand {
    font-size: 1.2rem;
  }

  .hero-shell {
    padding-top: 18px;
  }

  .hero-card {
    min-height: 830px;
    border-radius: 24px;
  }

  .hero-card::before {
    border-radius: 23px;
  }

  .hero-slide {
    padding: 28px;
    gap: 24px;
  }

  .hero-dots {
    left: 30px;
    bottom: 24px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

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

  .content-section,
  .mini-hero,
  .detail-content {
    padding: 22px;
  }

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

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

  .rank-number {
    width: 38px;
    height: 38px;
    border-radius: 13px;
  }

  .movie-card-compact {
    grid-template-columns: 118px minmax(0, 1fr);
  }
}

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