:root {
  --pink: #ec4899;
  --blue: #3b82f6;
  --green: #22c55e;
  --orange: #f97316;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #fff7fb;
  --card: rgba(255, 255, 255, 0.86);
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 10%, rgba(236, 72, 153, 0.16), transparent 28rem),
    radial-gradient(circle at 90% 0%, rgba(59, 130, 246, 0.16), transparent 28rem),
    linear-gradient(180deg, #fff7fb 0%, #f8fbff 42%, #f7fff9 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(253, 242, 248, 0.92), rgba(239, 246, 255, 0.92), rgba(240, 253, 244, 0.92));
  border-bottom: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 12px 36px rgba(148, 163, 184, 0.22);
  backdrop-filter: blur(18px);
}

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

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

.brand-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: white;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--pink), var(--blue), var(--green));
  box-shadow: 0 14px 30px rgba(236, 72, 153, 0.28);
}

.brand-text,
.footer-logo {
  font-size: 26px;
  line-height: 1;
  background: linear-gradient(90deg, var(--pink), var(--blue), var(--green));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link,
.mobile-nav-link {
  color: #374151;
  font-weight: 700;
  transition: color 0.2s ease, transform 0.2s ease;
}

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

.nav-link:hover {
  transform: translateY(-1px);
}

.header-search,
.mobile-search,
.wide-search,
.filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-search input,
.mobile-search input,
.wide-search input,
.filter-bar input,
.filter-bar select,
.search-app select {
  width: 100%;
  min-height: 44px;
  border: 2px solid #fbcfe8;
  border-radius: 999px;
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.92);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
  width: 220px;
}

.header-search input:focus,
.mobile-search input:focus,
.wide-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus,
.search-app select:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.12);
}

.header-search button,
.mobile-search button,
.wide-search button,
.filter-bar button,
.primary-button,
.secondary-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 0 22px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.header-search button,
.mobile-search button,
.wide-search button,
.filter-bar button,
.primary-button {
  color: white;
  background: linear-gradient(90deg, var(--pink), var(--blue));
  box-shadow: 0 16px 35px rgba(59, 130, 246, 0.22);
}

.secondary-button {
  color: #1f2937;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.header-search button:hover,
.mobile-search button:hover,
.wide-search button:hover,
.filter-bar button:hover,
.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-2px);
}

.mobile-menu-button {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  font-size: 24px;
}

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

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

.hero-carousel {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-image,
.detail-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay,
.detail-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.86) 0%, rgba(15, 23, 42, 0.58) 44%, rgba(15, 23, 42, 0.18) 100%),
    radial-gradient(circle at 18% 30%, rgba(236, 72, 153, 0.34), transparent 32rem),
    radial-gradient(circle at 82% 22%, rgba(34, 197, 94, 0.22), transparent 26rem);
}

.hero-content {
  position: relative;
  min-height: 680px;
  display: flex;
  align-items: center;
}

.hero-copy {
  width: min(720px, 100%);
  color: white;
  padding: 96px 0 120px;
}

.hero-label,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #db2777;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-kicker {
  color: var(--pink);
  background: rgba(253, 242, 248, 0.92);
  border-color: #fbcfe8;
}

.hero-copy h1,
.page-hero h1,
.detail-info h1 {
  margin: 20px 0 16px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.98;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.hero-copy p,
.page-hero p,
.detail-one-line {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.7;
}

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

.hero-tags {
  margin: 24px 0;
}

.hero-tags span,
.tag-row span {
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 700;
}

.hero-tags span {
  color: white;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.26);
}

.tag-row span {
  color: #be185d;
  background: #fce7f3;
}

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

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

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

.hero-dot.is-active {
  width: 38px;
  background: white;
}

.quick-search-panel,
.content-section {
  margin-top: 48px;
}

.quick-search-panel {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 520px);
  gap: 24px;
  align-items: center;
  padding: 28px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.quick-search-panel h2,
.section-heading h2 {
  margin: 10px 0 0;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.1;
  font-weight: 950;
}

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

.section-more,
.text-link {
  color: var(--pink);
  font-weight: 900;
}

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

.movie-grid--small {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: 0 16px 45px rgba(148, 163, 184, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(148, 163, 184, 0.28);
}

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

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

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

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  color: white;
  background: linear-gradient(90deg, var(--orange), var(--pink));
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 12px 30px rgba(249, 115, 22, 0.32);
}

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

.movie-meta-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.movie-meta-line a {
  color: var(--pink);
}

.movie-card h3 {
  margin: 10px 0 8px;
  font-size: 18px;
  font-weight: 950;
  line-height: 1.25;
}

.movie-card p {
  display: -webkit-box;
  min-height: 48px;
  margin: 0 0 14px;
  overflow: hidden;
  color: var(--muted);
  line-height: 1.6;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-card--compact .movie-card-body {
  padding: 14px;
}

.movie-card--compact h3 {
  font-size: 16px;
}

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

.category-tile,
.category-overview-card {
  display: block;
  overflow: hidden;
  border-radius: 26px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.category-tile span {
  font-size: 22px;
  font-weight: 950;
}

.category-tile strong {
  float: right;
  color: var(--pink);
}

.category-tile p,
.category-overview-card p {
  color: var(--muted);
  line-height: 1.7;
}

.category-thumbs,
.category-overview-thumb {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 16px;
}

.category-thumbs img,
.category-overview-thumb img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 14px;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 22px;
  align-items: center;
}

.category-overview-thumb {
  margin: 0;
}

.highlight-panel {
  padding: 32px;
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(253, 242, 248, 0.82), rgba(239, 246, 255, 0.82), rgba(240, 253, 244, 0.82));
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
}

.compact-hero {
  color: white;
  background:
    radial-gradient(circle at 15% 20%, rgba(236, 72, 153, 0.45), transparent 28rem),
    radial-gradient(circle at 90% 0%, rgba(59, 130, 246, 0.42), transparent 28rem),
    linear-gradient(135deg, #111827, #243b69 58%, #14532d);
}

.compact-hero .container {
  padding: 84px 0;
}

.detail-hero {
  color: white;
  min-height: 580px;
  background: #111827;
}

.detail-hero-inner {
  position: relative;
  min-height: 580px;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 44px;
  align-items: center;
  padding: 54px 0;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
}

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

.detail-info h1 {
  font-size: clamp(40px, 6vw, 72px);
}

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

.detail-meta-grid span {
  border-radius: 16px;
  padding: 12px 14px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.breadcrumb {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 18px 0;
  color: var(--muted);
  font-weight: 800;
}

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

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #030712;
  box-shadow: 0 30px 90px rgba(15, 23, 42, 0.28);
}

.movie-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #030712;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 10px;
  color: white;
  border: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.1), rgba(15, 23, 42, 0.64));
  cursor: pointer;
}

.play-overlay span {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pink), var(--blue));
  box-shadow: 0 20px 60px rgba(236, 72, 153, 0.35);
  font-size: 34px;
}

.play-overlay strong {
  font-size: 22px;
}

.play-overlay.is-hidden {
  display: none;
}

.detail-article {
  padding: 30px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.detail-article p {
  color: #374151;
  font-size: 18px;
  line-height: 1.9;
}

.detail-article h2 {
  margin-top: 26px;
  font-size: 26px;
  font-weight: 950;
}

.filter-bar {
  justify-content: space-between;
  margin-bottom: 24px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 16px 50px rgba(148, 163, 184, 0.16);
}

.filter-bar input {
  max-width: 560px;
}

.filter-bar select {
  max-width: 220px;
}

.filter-bar--multi {
  justify-content: flex-start;
}

.search-stats {
  margin-bottom: 20px;
  color: var(--muted);
  font-weight: 800;
}

.table-wrap {
  overflow-x: auto;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.ranking-table {
  width: 100%;
  border-collapse: collapse;
}

.ranking-table th,
.ranking-table td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.ranking-table th {
  color: #be185d;
  background: #fdf2f8;
}

.ranking-table td:first-child {
  font-weight: 950;
  color: var(--pink);
}

.site-footer {
  margin-top: 80px;
  padding: 56px 0;
  border-top: 1px solid #e5e7eb;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(243, 244, 246, 0.9));
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 34px;
}

.footer-grid h3 {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 950;
}

.footer-grid a {
  display: block;
  margin: 8px 0;
  color: #4b5563;
  font-weight: 700;
}

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

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

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

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

  .mobile-menu-button {
    display: block;
  }

  .hero-carousel,
  .hero-content {
    min-height: 620px;
  }

  .quick-search-panel,
  .detail-hero-inner,
  .category-overview-card,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .detail-poster {
    max-width: 260px;
  }

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

  .filter-bar,
  .filter-bar--multi,
  .wide-search {
    align-items: stretch;
    flex-direction: column;
  }

  .filter-bar input,
  .filter-bar select,
  .header-search input {
    max-width: none;
    width: 100%;
  }
}

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

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

  .hero-carousel,
  .hero-content {
    min-height: 560px;
  }

  .hero-copy {
    padding: 70px 0 110px;
  }

  .hero-copy h1,
  .page-hero h1,
  .detail-info h1 {
    font-size: 40px;
  }

  .hero-copy p,
  .page-hero p,
  .detail-one-line {
    font-size: 16px;
  }

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

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

  .highlight-panel,
  .quick-search-panel,
  .detail-article {
    padding: 20px;
  }
}
