:root {
  --rose-50: #fff1f2;
  --rose-100: #ffe4e6;
  --rose-200: #fecdd3;
  --rose-400: #fb7185;
  --rose-500: #f43f5e;
  --pink-400: #f472b6;
  --pink-500: #ec4899;
  --amber-400: #f59e0b;
  --text: #1f2937;
  --muted: #6b7280;
  --line: rgba(244, 63, 94, 0.16);
  --card: rgba(255, 255, 255, 0.92);
  --shadow: 0 24px 70px rgba(244, 63, 94, 0.14);
  --soft-shadow: 0 14px 36px rgba(31, 41, 55, 0.09);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: linear-gradient(135deg, #fff7f8 0%, #ffffff 45%, #fdf2f8 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 32px rgba(244, 63, 94, 0.08);
  backdrop-filter: blur(18px);
}

.nav-shell {
  width: min(1240px, calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 22px;
  letter-spacing: 0.03em;
  background: linear-gradient(90deg, var(--rose-500), var(--pink-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

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

.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
  overflow: hidden;
}

.main-nav a {
  color: #4b5563;
  font-size: 15px;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.current {
  color: var(--rose-500);
}

.top-search,
.mobile-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-search input,
.mobile-search input,
.filter-bar input,
.filter-bar select {
  border: 1px solid var(--rose-200);
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  outline: none;
  border-radius: 999px;
  padding: 11px 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.top-search input {
  width: 230px;
}

.top-search input:focus,
.mobile-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: var(--rose-400);
  box-shadow: 0 0 0 4px rgba(251, 113, 133, 0.16);
}

.top-search button,
.mobile-search button,
.primary-button,
.ghost-button,
.text-link {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 11px 18px;
  font-weight: 800;
}

.top-search button,
.mobile-search button,
.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
  box-shadow: 0 14px 34px rgba(244, 63, 94, 0.28);
}

.ghost-button {
  color: var(--rose-500);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.78);
}

.text-link {
  display: inline-flex;
  color: var(--rose-500);
  background: var(--rose-50);
  padding: 9px 14px;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: var(--rose-50);
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--rose-500);
  border-radius: 999px;
}

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

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

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

.mobile-panel nav a {
  padding: 11px 12px;
  border-radius: 14px;
  background: var(--rose-50);
  color: #4b5563;
}

.hero-carousel {
  position: relative;
  overflow: hidden;
  min-height: 660px;
  background: radial-gradient(circle at top left, rgba(251, 113, 133, 0.28), transparent 36%), linear-gradient(135deg, #fff1f2 0%, #ffffff 42%, #fdf2f8 100%);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.65s ease, transform 0.65s ease;
  pointer-events: none;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
  align-items: center;
  gap: 46px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 74px 0 92px;
}

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

.hero-bg {
  position: absolute;
  inset: 0 calc(50% - 50vw);
  opacity: 0.14;
  filter: blur(16px);
  overflow: hidden;
}

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

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--rose-500);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--rose-100);
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.05em;
}

.hero-content h1 {
  margin: 22px 0 10px;
  font-size: clamp(36px, 5.6vw, 70px);
  line-height: 1.05;
  letter-spacing: -0.05em;
  background: linear-gradient(90deg, var(--rose-500), var(--pink-500), #f97316);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-content h2 {
  margin: 0 0 16px;
  font-size: clamp(25px, 3.2vw, 40px);
  line-height: 1.18;
}

.hero-content p {
  max-width: 640px;
  margin: 0 0 20px;
  color: #4b5563;
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.hero-poster {
  position: relative;
  z-index: 2;
  overflow: hidden;
  border-radius: 32px;
  box-shadow: var(--shadow);
  transform: rotate(1.2deg);
  aspect-ratio: 4 / 5;
  background: linear-gradient(135deg, var(--rose-100), #ffffff);
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.35));
}

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

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

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 5;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(16px);
}

.hero-arrow,
.hero-dot {
  border: 0;
  cursor: pointer;
}

.hero-arrow {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--rose-500);
  background: var(--rose-50);
  border-radius: 999px;
  font-size: 30px;
  line-height: 1;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--rose-200);
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
  width: 28px;
  background: var(--rose-500);
}

.category-strip {
  padding: 28px 0 6px;
}

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

.category-tile,
.category-card,
.movie-card,
.article-panel,
.side-panel,
.player-card,
.detail-info {
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(12px);
}

.category-tile,
.category-card {
  border-radius: 22px;
  padding: 22px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

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

.category-tile span,
.category-card-title {
  display: block;
  margin-bottom: 8px;
  font-size: 20px;
  font-weight: 900;
}

.category-tile p,
.category-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.category-samples {
  display: grid;
  gap: 8px;
  margin: 16px 0;
}

.category-samples a {
  color: #4b5563;
  font-size: 14px;
}

.content-section {
  padding: 56px 0;
}

.content-section.tinted {
  background: linear-gradient(90deg, rgba(255, 241, 242, 0.75), rgba(253, 242, 248, 0.72));
}

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

.section-title h2 {
  margin: 10px 0 0;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.18;
}

.section-more {
  color: var(--rose-500);
  font-weight: 900;
}

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

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

.movie-card:not(.card-horizontal) .poster-link {
  aspect-ratio: 3 / 4;
}

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

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

.duration,
.rank-badge {
  position: absolute;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.66);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 9px;
}

.duration {
  right: 10px;
  bottom: 10px;
}

.rank-badge {
  left: 10px;
  top: 10px;
  background: linear-gradient(135deg, var(--rose-500), var(--amber-400));
}

.card-body {
  padding: 18px;
}

.card-meta,
.score-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 13px;
}

.card-meta a {
  color: var(--rose-500);
  font-weight: 900;
}

.movie-card h3 {
  margin: 9px 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

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

.movie-card p {
  display: -webkit-box;
  min-height: 46px;
  margin: 0 0 12px;
  overflow: hidden;
  color: #5f6673;
  font-size: 14px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

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

.tag-row span {
  color: var(--rose-500);
  background: var(--rose-50);
  border: 1px solid var(--rose-100);
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 700;
}

.score-row {
  justify-content: space-between;
  margin-top: 14px;
}

.stack-list {
  display: grid;
  gap: 18px;
}

.card-horizontal {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
}

.card-horizontal .poster-link {
  height: 100%;
  min-height: 170px;
}

.card-horizontal .card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.movie-rail {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 6px 0 20px;
  scroll-snap-type: x mandatory;
}

.rail-item {
  width: 280px;
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at top left, rgba(251, 113, 133, 0.24), transparent 36%), linear-gradient(135deg, #fff1f2, #ffffff 52%, #fdf2f8);
}

.small-hero {
  padding: 68px 0 54px;
}

.page-hero h1 {
  margin: 16px 0 12px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.1;
}

.page-hero p {
  max-width: 720px;
  margin: 0;
  color: #4b5563;
  font-size: 18px;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(140px, 190px));
  gap: 12px;
  margin-bottom: 26px;
}

.search-filter {
  grid-template-columns: minmax(240px, 1fr) repeat(4, minmax(120px, 170px));
}

.filter-state {
  min-height: 24px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
}

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

.detail-hero {
  padding: 26px 0 46px;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.13;
  filter: blur(18px);
  transform: scale(1.08);
}

.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-shell {
  position: relative;
  z-index: 2;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: #6b7280;
  font-size: 14px;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(320px, 0.85fr);
  gap: 26px;
  align-items: stretch;
}

.player-card,
.detail-info,
.article-panel,
.side-panel {
  border-radius: var(--radius);
}

.player-card {
  overflow: hidden;
}

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

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.56));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-symbol {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  padding-left: 6px;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35);
  font-size: 36px;
}

.detail-info {
  padding: 28px;
}

.detail-info h1 {
  margin: 16px 0 14px;
  font-size: clamp(28px, 3.8vw, 44px);
  line-height: 1.14;
}

.lead-text {
  color: #4b5563;
  font-size: 17px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0;
}

.info-grid span {
  padding: 10px 12px;
  border-radius: 14px;
  color: #4b5563;
  background: var(--rose-50);
}

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

.article-panel,
.side-panel {
  padding: 28px;
}

.article-panel h2,
.side-panel h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.article-panel p {
  margin: 0 0 22px;
  color: #4b5563;
  font-size: 16px;
}

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

.side-panel a {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  color: #374151;
  font-weight: 800;
}

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

.site-footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(135deg, #fff1f2, #ffffff 50%, #fdf2f8);
  padding: 46px 0 22px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
}

.site-footer p {
  max-width: 520px;
  color: var(--muted);
}

.site-footer h2 {
  margin: 0 0 12px;
  font-size: 18px;
}

.site-footer a:not(.footer-logo) {
  display: block;
  margin: 7px 0;
  color: #4b5563;
}

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

.copyright {
  width: min(1180px, calc(100% - 32px));
  margin: 32px auto 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

[hidden] {
  display: none !important;
}

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

  .top-search {
    margin-left: auto;
  }

  .menu-button {
    display: block;
  }

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

  .hero-poster {
    max-width: 420px;
    margin: 0 auto;
  }

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

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

@media (max-width: 760px) {
  .nav-shell {
    height: 66px;
  }

  .top-search {
    display: none;
  }

  .mobile-search {
    display: grid;
    grid-template-columns: 1fr auto;
  }

  .hero-carousel {
    min-height: 760px;
  }

  .hero-slide {
    gap: 26px;
    padding: 46px 0 110px;
  }

  .hero-content h1 {
    font-size: 38px;
  }

  .hero-content h2 {
    font-size: 27px;
  }

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

  .primary-button,
  .ghost-button {
    text-align: center;
  }

  .movie-grid,
  .compact-grid,
  .category-strip-grid,
  .category-overview,
  .footer-grid,
  .filter-bar,
  .search-filter,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .card-horizontal {
    grid-template-columns: 1fr;
  }

  .card-horizontal .poster-link {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .side-panel a {
    grid-template-columns: 84px minmax(0, 1fr);
  }
}
