:root {
  color-scheme: light;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #fff7ed;
  --pink: #ec4899;
  --orange: #f97316;
  --red: #ef4444;
  --dark: #111827;
  --shadow: 0 18px 45px rgba(17, 24, 39, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background: #ffffff;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
}

.top-strip {
  background: linear-gradient(90deg, var(--orange), var(--pink), var(--red));
  color: #ffffff;
  padding: 8px 16px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
}

.nav-shell {
  max-width: 1240px;
  height: 72px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 26px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #111827;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  box-shadow: 0 10px 25px rgba(236, 72, 153, 0.28);
}

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

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

.nav-link {
  position: relative;
  color: #374151;
  font-size: 15px;
  font-weight: 700;
  padding: 8px 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--pink);
  transition: width 0.25s ease;
}

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

.nav-link:hover::after,
.nav-link.is-active::after {
  width: 100%;
}

.top-search,
.mobile-search,
.search-band-form,
.search-large-form {
  display: flex;
  align-items: center;
  gap: 10px;
}

.top-search input,
.mobile-search input,
.search-band-form input,
.search-large-form input,
.filter-panel input,
.filter-panel select {
  border: 1px solid var(--line);
  outline: none;
  border-radius: 999px;
  background: #ffffff;
  color: var(--text);
}

.top-search input {
  width: 190px;
  padding: 10px 14px;
}

.top-search button,
.mobile-search button,
.search-band-form button,
.search-large-form button {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  color: #ffffff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--pink), var(--orange));
}

.menu-toggle {
  display: none;
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  color: #ffffff;
  font-weight: 800;
  background: #111827;
}

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

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

.mobile-panel nav {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.mobile-link {
  display: block;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f9fafb;
  font-weight: 800;
}

.mobile-link.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink), var(--orange));
}

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

.hero-track,
.hero-slide,
.hero-bg,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

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

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(14px) saturate(1.15) brightness(0.58);
  transform: scale(1.08);
}

.hero-shade {
  background:
    radial-gradient(circle at 12% 25%, rgba(236, 72, 153, 0.5), transparent 32%),
    linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.66), rgba(17, 24, 39, 0.36));
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  min-height: 650px;
  margin: 0 auto;
  padding: 80px 22px 90px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) 360px;
  align-items: center;
  gap: 52px;
}

.hero-copy {
  color: #ffffff;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(14px);
  font-weight: 800;
}

.hero-copy h1,
.hero-copy h2 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(38px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.05em;
  font-weight: 950;
}

.hero-copy p {
  max-width: 720px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 20px;
  line-height: 1.8;
}

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

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

.hero-tags span,
.tag-row span,
.detail-meta span,
.card-badges span {
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 800;
}

.hero-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.20);
}

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

.primary-btn,
.secondary-btn,
.card-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.primary-btn {
  padding: 13px 24px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  box-shadow: 0 16px 30px rgba(236, 72, 153, 0.28);
}

.secondary-btn {
  padding: 13px 24px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.secondary-btn.dark {
  color: var(--dark);
  background: #ffffff;
  border-color: var(--line);
}

.primary-btn:hover,
.secondary-btn:hover,
.card-action:hover {
  transform: translateY(-2px);
}

.hero-poster {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.38);
  transform: rotate(2deg);
}

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

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 4;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-controls button,
.hero-dot {
  border: 0;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.hero-controls > button {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  font-size: 30px;
  line-height: 1;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  padding: 0;
}

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

.search-band,
.section-wrap,
.ranking-preview,
.page-hero,
.detail-hero,
.player-section,
.detail-content,
.breadcrumbs {
  max-width: 1240px;
  margin: 0 auto;
  padding-left: 22px;
  padding-right: 22px;
}

.search-band {
  margin-top: -42px;
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 26px;
  align-items: center;
  padding-top: 26px;
  padding-bottom: 26px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.search-band h2,
.section-heading h2,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  color: #111827;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.search-band h2 {
  font-size: 28px;
}

.search-band p,
.section-heading p,
.page-hero p,
.detail-lead,
.detail-content p,
.category-tile p,
.category-card-large p,
.movie-card-body p,
.ranking-card p,
.site-footer p {
  color: var(--muted);
  line-height: 1.75;
}

.search-band-form input,
.search-large-form input {
  flex: 1;
  min-width: 0;
  padding: 14px 18px;
}

.search-band-form button,
.search-large-form button {
  padding: 14px 22px;
}

.section-wrap,
.ranking-preview {
  padding-top: 72px;
  padding-bottom: 72px;
}

.soft-bg {
  max-width: none;
  background: linear-gradient(135deg, #fff7ed, #fdf2f8);
}

.soft-bg > * {
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 34px;
  text-align: center;
}

.section-heading.left {
  margin-left: 0;
  text-align: left;
}

.section-heading span,
.page-hero span {
  display: inline-flex;
  margin-bottom: 12px;
  border-radius: 999px;
  padding: 6px 12px;
  color: var(--pink);
  background: #fdf2f8;
  font-size: 13px;
  font-weight: 900;
}

.section-heading h2 {
  font-size: clamp(30px, 4vw, 46px);
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 14px 36px rgba(17, 24, 39, 0.09);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 55px rgba(17, 24, 39, 0.16);
}

.poster-link {
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #fff7ed, #fdf2f8);
}

.poster-link img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

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

.card-badges {
  margin-bottom: 10px;
}

.card-badges span {
  color: #9a3412;
  background: #ffedd5;
}

.movie-card-title {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 950;
}

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

.movie-card-body p {
  min-height: 52px;
  margin: 0 0 14px;
  font-size: 14px;
}

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

.tag-row span,
.detail-meta span {
  color: #374151;
  background: #f3f4f6;
}

.card-action {
  width: 100%;
  padding: 10px 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink), var(--orange));
}

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

.category-tile,
.category-card-large {
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 14px 38px rgba(17, 24, 39, 0.08);
  overflow: hidden;
}

.category-tile > a,
.category-card-large > a {
  display: block;
  padding: 24px;
}

.category-name,
.category-card-head h2 {
  display: block;
  margin: 0 0 10px;
  color: #111827;
  font-size: 22px;
  font-weight: 950;
}

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

.mini-card {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.mini-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 12px;
}

.mini-card span {
  overflow: hidden;
  color: #374151;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.category-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.category-card-head span {
  color: var(--pink);
  font-weight: 900;
}

.category-poster-strip {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}

.category-poster-strip img {
  width: 20%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 12px;
}

.category-link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.category-link-list span,
.inline-links a {
  border-radius: 999px;
  padding: 6px 10px;
  color: #374151;
  background: #f3f4f6;
  font-size: 12px;
  font-weight: 800;
}

.ranking-preview {
  color: #ffffff;
  max-width: none;
  background: radial-gradient(circle at top left, rgba(236, 72, 153, 0.45), transparent 35%), #111827;
}

.ranking-preview .section-heading h2,
.ranking-preview .section-heading p {
  color: #ffffff;
}

.rank-list {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.rank-row {
  display: grid;
  grid-template-columns: 52px 52px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.08);
}

.rank-row img {
  width: 52px;
  height: 70px;
  object-fit: cover;
  border-radius: 10px;
}

.rank-index {
  color: #fbbf24;
  font-size: 24px;
  font-weight: 950;
}

.rank-title {
  overflow: hidden;
  font-weight: 900;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-meta {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.section-more {
  margin-top: 34px;
  text-align: center;
}

.page-hero {
  padding-top: 82px;
  padding-bottom: 64px;
}

.page-hero > div {
  border-radius: 34px;
  padding: 54px;
  background: linear-gradient(135deg, #fff7ed, #fdf2f8);
  box-shadow: 0 18px 45px rgba(17, 24, 39, 0.08);
}

.page-hero h1 {
  font-size: clamp(36px, 5vw, 62px);
}

.page-hero p {
  max-width: 820px;
  margin-top: 16px;
  font-size: 18px;
}

.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 28px;
  color: var(--muted);
  font-size: 14px;
}

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

.filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 170px 150px 150px auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 28px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.06);
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  padding: 12px 14px;
}

.filter-count {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

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

.ranking-card a {
  display: grid;
  grid-template-columns: 70px 92px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  border-radius: 22px;
  padding: 16px;
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(17, 24, 39, 0.08);
}

.ranking-number {
  color: var(--orange);
  font-size: 30px;
  font-weight: 950;
}

.ranking-card img {
  width: 92px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 14px;
}

.ranking-card h2 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 950;
}

.ranking-card p {
  margin: 0 0 12px;
}

.search-large-form {
  max-width: 820px;
  margin: 0 auto 18px;
}

.search-status {
  margin-bottom: 24px;
  color: var(--muted);
  text-align: center;
  font-weight: 800;
}

.detail-hero {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
  padding-top: 42px;
  padding-bottom: 54px;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

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

.detail-info h1 {
  margin-top: 12px;
  font-size: clamp(36px, 5vw, 64px);
}

.detail-lead {
  margin: 20px 0;
  font-size: 19px;
}

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

.player-section {
  padding-top: 30px;
  padding-bottom: 56px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000000;
  box-shadow: 0 25px 70px rgba(17, 24, 39, 0.28);
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.18), rgba(17, 24, 39, 0.62));
  font-size: 18px;
  font-weight: 950;
}

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

.play-icon {
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding-left: 5px;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  box-shadow: 0 18px 40px rgba(236, 72, 153, 0.35);
  font-size: 34px;
}

.detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  padding-bottom: 34px;
}

.detail-content article {
  border-radius: 24px;
  padding: 28px;
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(17, 24, 39, 0.08);
}

.detail-content h2 {
  margin: 0 0 14px;
  font-size: 26px;
  font-weight: 950;
}

.detail-content p {
  margin: 0 0 12px;
}

.site-footer {
  margin-top: 32px;
  color: #d1d5db;
  background: #111827;
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 42px 22px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
}

.footer-brand {
  color: #ffffff;
  font-size: 22px;
}

.site-footer p {
  max-width: 620px;
  margin: 14px 0 0;
  color: #9ca3af;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-content: start;
}

.footer-links a {
  border-radius: 999px;
  padding: 8px 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px;
  text-align: center;
  color: #9ca3af;
}

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

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

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

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

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

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .nav-shell {
    height: 66px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    min-height: 720px;
    gap: 28px;
  }

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

  .search-band {
    grid-template-columns: 1fr;
  }

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

  .detail-hero,
  .detail-content,
  .footer-inner {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .brand-text {
    font-size: 18px;
  }

  .hero-copy h1,
  .hero-copy h2 {
    font-size: 40px;
  }

  .hero-copy p {
    font-size: 16px;
  }

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

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

  .movie-card-body p,
  .tag-row {
    display: none;
  }

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

  .rank-row,
  .ranking-card a {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .rank-row img,
  .rank-meta,
  .ranking-card img {
    display: none;
  }

  .page-hero > div {
    padding: 34px 22px;
  }

  .footer-links {
    display: grid;
  }
}
