:root {
  --pink: #ec4899;
  --pink-dark: #db2777;
  --orange: #f97316;
  --orange-soft: #fff7ed;
  --blue: #38bdf8;
  --cyan: #22d3ee;
  --green: #22c55e;
  --slate: #0f172a;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --card: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --soft-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

img,
video {
  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: 50;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(229, 231, 235, 0.8);
  backdrop-filter: blur(14px);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  box-shadow: 0 10px 22px rgba(236, 72, 153, 0.28);
}

.brand-mark span {
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 13px solid #fff;
  margin-left: 3px;
}

.brand-text {
  font-size: 28px;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, var(--pink), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  color: #4b5563;
  font-weight: 650;
}

.main-nav a {
  padding: 10px 0;
  transition: color 0.2s ease;
}

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

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: #f3f4f6;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  border-radius: 99px;
  background: #374151;
}

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

.mobile-nav a {
  display: block;
  padding: 12px 16px;
  border-radius: 14px;
  color: #4b5563;
  font-weight: 650;
}

.mobile-nav a:hover {
  color: var(--pink);
  background: #fdf2f8;
}

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

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

.hero-gradient,
.page-hero,
.detail-hero {
  background: linear-gradient(120deg, var(--pink) 0%, var(--orange) 48%, var(--blue) 100%);
}

.hero-gradient {
  position: absolute;
  inset: 0;
}

.hero-gradient::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.24), transparent 26%),
    radial-gradient(circle at 80% 30%, rgba(255, 255, 255, 0.16), transparent 30%),
    rgba(15, 23, 42, 0.22);
}

.hero-inner {
  position: relative;
  z-index: 2;
  min-height: 560px;
  display: grid;
  align-items: center;
  padding: 54px 0 76px;
}

.hero-slides {
  position: relative;
  min-height: 390px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.7fr);
  align-items: center;
  gap: 48px;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 12px;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  color: inherit;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.section-heading .eyebrow,
.detail-section .eyebrow {
  background: #fdf2f8;
  color: var(--pink-dark);
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(38px, 6vw, 74px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.hero-copy p,
.page-hero p,
.detail-copy p {
  margin: 0;
  max-width: 760px;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(17px, 2vw, 22px);
}

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

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

.hero-tags span,
.tag-row span,
.detail-meta span,
.movie-meta span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
}

.hero-tags span {
  padding: 7px 13px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

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

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

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

.button-primary {
  color: var(--pink-dark);
  background: #fff;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.18);
}

.button-ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(10px);
}

.button-soft {
  color: var(--pink-dark);
  background: #fdf2f8;
}

.hero-poster {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  min-height: 380px;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.36);
  background: rgba(255, 255, 255, 0.12);
}

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

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

.hero-poster span {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #111827;
  background: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.hero-search {
  width: min(680px, 100%);
  display: flex;
  margin-top: 22px;
  padding: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 18px;
  color: var(--ink);
  background: transparent;
}

.hero-search button {
  border: 0;
  padding: 11px 20px;
  border-radius: 999px;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(90deg, var(--pink), var(--orange));
}

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

.hero-dot {
  width: 34px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
}

.hero-dot.is-active {
  background: #fff;
}

.hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: 72px;
  fill: #fff7ed;
  opacity: 0.95;
}

.section-block {
  padding: 72px 0;
}

.section-block.tinted {
  background: linear-gradient(180deg, #fff7ed, #ffffff);
}

.section-heading {
  margin-bottom: 30px;
}

.section-heading h2 {
  margin: 0 0 10px;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -0.045em;
  color: #111827;
}

.section-heading p {
  margin: 0;
  max-width: 760px;
  color: var(--muted);
  font-size: 16px;
}

.split-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

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

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

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

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

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.movie-thumb {
  position: relative;
  display: block;
  height: 230px;
  overflow: hidden;
  background: #f3f4f6;
}

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

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

.movie-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(90deg, var(--pink), var(--orange));
  font-size: 12px;
  font-weight: 800;
}

.movie-info {
  padding: 18px;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.movie-meta span {
  padding: 4px 9px;
  color: #6b21a8;
  background: #f5f3ff;
}

.movie-info h3,
.rank-info h3,
.category-body h2 {
  margin: 0 0 8px;
  color: #111827;
  font-size: 19px;
  line-height: 1.28;
  font-weight: 850;
}

.movie-info h3 a,
.rank-info h3 a,
.category-body h2 a {
  transition: color 0.2s ease;
}

.movie-info h3 a:hover,
.rank-info h3 a:hover,
.category-body h2 a:hover {
  color: var(--pink);
}

.movie-info p,
.rank-info p,
.category-body p {
  margin: 0 0 13px;
  color: var(--muted);
  font-size: 14px;
}

.tag-row span {
  padding: 4px 9px;
  color: var(--pink-dark);
  background: #fdf2f8;
}

.movie-card-compact {
  display: grid;
  grid-template-columns: 116px 1fr;
  min-height: 132px;
}

.movie-card-compact .movie-thumb {
  height: 100%;
  min-height: 132px;
}

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

.movie-card-compact .tag-row {
  display: none;
}

.movie-card-wide .movie-thumb {
  height: 310px;
}

.category-card {
  overflow: hidden;
  border-radius: 30px;
  background: linear-gradient(145deg, #ffffff, #fff7ed);
  box-shadow: var(--soft-shadow);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.category-cover {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 0.8fr;
  height: 178px;
  gap: 2px;
  overflow: hidden;
}

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

.category-body {
  padding: 20px;
}

.text-link {
  color: var(--pink-dark);
  font-weight: 850;
}

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

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

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

.rank-card {
  display: grid;
  grid-template-columns: 58px 110px 1fr;
  gap: 16px;
  align-items: center;
  border-radius: 24px;
  padding: 14px;
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.rank-number {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 18px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--pink), var(--orange));
}

.rank-cover {
  width: 110px;
  height: 84px;
  overflow: hidden;
  border-radius: 16px;
  background: #f3f4f6;
}

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

.page-hero {
  color: #fff;
  padding: 82px 0;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.22);
}

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

.small-hero {
  padding: 72px 0;
}

.category-hero-inner {
  display: grid;
  grid-template-columns: 1fr 280px;
  align-items: center;
  gap: 48px;
}

.category-feature {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  min-height: 310px;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.3);
}

.category-feature img {
  width: 100%;
  height: 310px;
  object-fit: cover;
}

.category-feature span {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  padding: 10px 12px;
  border-radius: 18px;
  color: #111827;
  background: rgba(255, 255, 255, 0.88);
  font-weight: 850;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 180px 180px;
  gap: 14px;
  padding: 18px;
  margin-bottom: 26px;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.filter-panel label {
  display: grid;
  gap: 7px;
  color: #4b5563;
  font-size: 13px;
  font-weight: 800;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0 14px;
  color: var(--ink);
  background: #fff;
  outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.12);
}

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

.js-movie-card.is-hidden {
  display: none;
}

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

.detail-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.25;
  filter: blur(2px);
}

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

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.75), rgba(15, 23, 42, 0.28));
}

.detail-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 42px;
  align-items: center;
  padding: 70px 0;
}

.detail-cover {
  overflow: hidden;
  border-radius: 30px;
  box-shadow: 0 24px 72px rgba(15, 23, 42, 0.38);
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #fff;
}

.detail-meta {
  margin-top: 20px;
}

.detail-meta span {
  padding: 7px 12px;
  color: #111827;
  background: rgba(255, 255, 255, 0.88);
}

.detail-tags {
  margin-top: 18px;
}

.detail-main {
  padding-top: 42px;
}

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

.player-card,
.detail-section,
.side-card {
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.player-card {
  overflow: hidden;
  margin-bottom: 24px;
}

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

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.64));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-button {
  width: 82px;
  height: 82px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.35);
  position: relative;
}

.play-button::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 53%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
  border-left: 24px solid #fff;
}

.detail-section {
  padding: 28px;
  margin-bottom: 24px;
}

.detail-section h2,
.side-card h2 {
  margin: 0 0 14px;
  color: #111827;
  font-size: 24px;
  line-height: 1.25;
  font-weight: 900;
}

.detail-section p {
  margin: 0;
  color: #4b5563;
  font-size: 16px;
}

.detail-side {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 20px;
}

.side-card {
  padding: 22px;
}

.side-card dl {
  display: grid;
  gap: 13px;
  margin: 0;
}

.side-card dl div {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 12px;
  align-items: start;
}

.side-card dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.side-card dd {
  margin: 0;
  color: #111827;
  font-weight: 700;
}

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

.side-links a {
  display: block;
  padding: 12px 14px;
  border-radius: 16px;
  color: var(--pink-dark);
  background: #fdf2f8;
  font-weight: 800;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer-inner {
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
}

.footer-brand {
  color: var(--pink-dark);
  font-size: 22px;
}

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

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

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

  .nav-toggle {
    display: inline-flex;
  }

  .hero-section,
  .hero-inner {
    min-height: 760px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-poster {
    min-height: 260px;
  }

  .hero-poster img {
    min-height: 260px;
  }

  .hero-search {
    margin-top: 285px;
  }

  .split-heading,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

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

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

  .detail-cover {
    width: min(280px, 100%);
  }

  .detail-side {
    position: static;
  }

  .ranking-list,
  .big-ranking {
    grid-template-columns: 1fr;
  }
}

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

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

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

  .hero-search {
    border-radius: 24px;
    flex-direction: column;
    gap: 8px;
    margin-top: 300px;
  }

  .hero-search input {
    min-height: 44px;
  }

  .movie-grid,
  .category-grid,
  .compact-grid,
  .feature-grid,
  .list-page-grid,
  .large-category-grid {
    grid-template-columns: 1fr;
  }

  .movie-card-compact {
    grid-template-columns: 104px 1fr;
  }

  .rank-card {
    grid-template-columns: 46px 86px 1fr;
    gap: 12px;
  }

  .rank-number {
    width: 42px;
    height: 42px;
    border-radius: 14px;
  }

  .rank-cover {
    width: 86px;
    height: 76px;
  }

  .section-block {
    padding: 54px 0;
  }
}
