:root {
  --rose: #f43f5e;
  --rose-dark: #e11d48;
  --pink: #ec4899;
  --text: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #fff1f2;
  --card: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(180deg, #fff7f8 0%, #ffffff 35%, #f9fafb 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.75);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

.logo,
.footer-logo {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, var(--rose), var(--pink), #fb7185);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

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

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

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

.site-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-search input,
.big-search input,
.inline-filter input {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 11px 16px;
  outline: none;
  background: #ffffff;
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-search input:focus,
.big-search input:focus,
.inline-filter input:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.12);
}

.site-search button,
.big-search button {
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--rose), var(--pink));
  color: #ffffff;
  font-weight: 800;
  padding: 11px 18px;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(244, 63, 94, 0.22);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  background: transparent;
  color: #374151;
  font-size: 26px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 430px);
  gap: 48px;
  align-items: center;
  padding: 96px max(32px, calc((100vw - 1180px) / 2)) 88px;
  color: #ffffff;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(9, 9, 11, 0.94), rgba(136, 19, 55, 0.82), rgba(244, 63, 94, 0.58)), var(--hero-image);
  background-size: cover;
  background-position: center;
  filter: saturate(1.05);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.22), transparent 30%), radial-gradient(circle at 80% 12%, rgba(251, 113, 133, 0.24), transparent 36%);
}

.hero-content,
.hero-poster {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 720px;
}

.hero-kicker {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #ffe4e6;
  font-weight: 800;
  backdrop-filter: blur(12px);
}

.hero-content h1 {
  margin: 22px 0 18px;
  font-size: clamp(42px, 7vw, 86px);
  line-height: 0.98;
  letter-spacing: -0.07em;
}

.hero-content p {
  max-width: 650px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 20px;
}

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

.hero-tags span,
.tag-row span,
.detail-tags span {
  display: inline-flex;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: inherit;
  padding: 5px 11px;
  font-size: 13px;
  font-weight: 700;
}

.tag-row span {
  background: #fff1f2;
  color: var(--rose-dark);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  padding: 0 22px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  background: #ffffff;
  color: var(--rose);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.22);
}

.btn.secondary {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(12px);
}

.btn.ghost {
  background: rgba(15, 23, 42, 0.24);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.hero-poster {
  border-radius: 34px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
  transform: rotate(2deg);
}

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

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

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

.hero-prev,
.hero-next {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 34px;
  line-height: 1;
  backdrop-filter: blur(10px);
}

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

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

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

.section {
  padding: 64px 0 20px;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.section-title h2,
.rank-panel h2,
.detail-side h2,
.player-card h2,
.story-card h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.section-title a {
  color: var(--rose);
  font-weight: 800;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: var(--card);
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
}

.poster {
  position: relative;
  display: block;
  overflow: hidden;
  background: #111827;
}

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

.movie-card:hover .poster img,
.category-tile:hover img,
.rank-item:hover img {
  transform: scale(1.06);
}

.play-mark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 34px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.58), transparent 70%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.poster:hover .play-mark {
  opacity: 1;
}

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

.rank-badge {
  left: 12px;
  right: auto;
  top: 12px;
  bottom: auto;
  background: linear-gradient(90deg, var(--rose), var(--pink));
}

.card-body {
  padding: 18px;
}

.card-body h3 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 900;
}

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

.card-meta,
.card-desc {
  margin: 0 0 10px;
  color: var(--muted);
}

.card-desc {
  min-height: 48px;
}

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

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

.category-tile {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  border-radius: 26px;
  background: #111827;
  color: #ffffff;
  box-shadow: var(--shadow);
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.78));
}

.category-tile img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.category-tile span,
.category-tile p {
  position: absolute;
  z-index: 1;
  left: 18px;
  right: 18px;
}

.category-tile span {
  bottom: 72px;
  font-size: 24px;
  font-weight: 900;
}

.category-tile p {
  bottom: 14px;
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 32px;
  align-items: start;
}

.rank-panel,
.detail-side,
.story-card,
.player-card {
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

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

.rank-panel h2,
.detail-side h2 {
  margin-bottom: 18px;
}

.rank-item {
  display: grid;
  grid-template-columns: auto 56px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.rank-item:last-child {
  border-bottom: 0;
}

.rank-item img {
  width: 56px;
  height: 74px;
  border-radius: 12px;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.rank-number {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #fff1f2;
  color: var(--rose-dark);
  font-weight: 900;
}

.rank-item strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-item em {
  display: block;
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

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

.page-heading {
  margin-bottom: 34px;
  padding: 38px;
  border-radius: 32px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  box-shadow: 0 20px 45px rgba(244, 63, 94, 0.2);
}

.page-heading span {
  font-weight: 900;
  color: #ffe4e6;
}

.page-heading h1 {
  margin: 8px 0 12px;
  font-size: clamp(36px, 6vw, 66px);
  line-height: 1;
  letter-spacing: -0.06em;
}

.page-heading p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 19px;
}

.inline-filter,
.big-search {
  margin-top: 24px;
  display: flex;
  gap: 10px;
  max-width: 620px;
}

.inline-filter input,
.big-search input {
  width: 100%;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-weight: 700;
}

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

.breadcrumb.light {
  color: rgba(255, 255, 255, 0.8);
}

.breadcrumb.light a:hover {
  color: #ffffff;
}

.detail-main {
  background: #f9fafb;
}

.detail-hero {
  position: relative;
  min-height: 560px;
  color: #ffffff;
  overflow: hidden;
}

.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(9, 9, 11, 0.94), rgba(136, 19, 55, 0.82), rgba(244, 63, 94, 0.5)), var(--hero-image);
  background-size: cover;
  background-position: center;
}

.detail-hero-inner {
  position: relative;
  z-index: 1;
  padding: 54px 0 64px;
}

.detail-layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 36px;
  align-items: center;
}

.detail-poster {
  display: block;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.42);
}

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

.detail-info h1 {
  margin: 20px 0 16px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.lead {
  max-width: 820px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 20px;
}

.detail-tags span {
  color: #ffffff;
}

.detail-info .btn {
  margin-top: 26px;
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 32px;
  align-items: start;
  padding: 56px 0 76px;
}

.content-main {
  display: grid;
  gap: 24px;
}

.player-card,
.story-card,
.detail-side {
  padding: 24px;
}

.video-box {
  position: relative;
  margin-top: 18px;
  overflow: hidden;
  border-radius: 24px;
  background: #000000;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.62));
  color: #ffffff;
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-overlay span {
  width: 88px;
  height: 88px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding-left: 7px;
  background: linear-gradient(90deg, var(--rose), var(--pink));
  color: #ffffff;
  font-size: 42px;
  box-shadow: 0 18px 40px rgba(244, 63, 94, 0.32);
}

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

.story-card p {
  margin: 14px 0 0;
  color: #374151;
  font-size: 18px;
}

.detail-side {
  position: sticky;
  top: 96px;
}

.search-page .movie-card.is-hidden,
.category-list .movie-card.is-hidden {
  display: none;
}

.site-footer {
  color: #ffffff;
  background: #111827;
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0 28px;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 36px;
}

.footer-inner p {
  max-width: 480px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.72);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  align-content: start;
  justify-content: flex-end;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
}

.footer-links a:hover {
  color: #ffffff;
}

.copyright {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 28px;
  color: rgba(255, 255, 255, 0.58);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

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

  .menu-toggle {
    display: block;
  }

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

  .hero-slide {
    grid-template-columns: 1fr;
    min-height: 740px;
    padding-top: 74px;
  }

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

  .featured-grid,
  .movie-grid,
  .category-grid.large,
  .split-layout,
  .detail-content,
  .footer-inner {
    grid-template-columns: 1fr;
  }

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

  .rank-panel,
  .detail-side {
    position: static;
  }

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

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

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .header-inner {
    min-height: 64px;
  }

  .logo,
  .footer-logo {
    font-size: 24px;
  }

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

  .hero-slide {
    gap: 24px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero-content h1,
  .page-heading h1,
  .detail-info h1 {
    letter-spacing: -0.04em;
  }

  .hero-content p,
  .lead,
  .story-card p {
    font-size: 16px;
  }

  .hero-actions,
  .inline-filter,
  .big-search {
    flex-direction: column;
  }

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

  .page-heading {
    padding: 26px;
  }

  .player-card,
  .story-card,
  .detail-side {
    padding: 18px;
    border-radius: 22px;
  }
}
