:root {
  --rose: #f43f5e;
  --rose-dark: #e11d48;
  --pink: #ec4899;
  --purple: #8b5cf6;
  --blue: #3b82f6;
  --cyan: #06b6d4;
  --green: #10b981;
  --amber: #f59e0b;
  --dark: #111827;
  --muted: #6b7280;
  --soft: #fff1f2;
  --line: #e5e7eb;
  --panel: rgba(255, 255, 255, 0.92);
  --shadow: 0 22px 60px rgba(15, 23, 42, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--dark);
  background: linear-gradient(180deg, #fff1f2 0%, #ffffff 34%, #eff6ff 100%);
}

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

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

.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.9);
}

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

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--pink), var(--purple));
  box-shadow: 0 10px 24px rgba(244, 63, 94, 0.32);
}

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

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

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

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

.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #ffffff;
}

.nav-search input,
.mobile-nav input,
.filter-panel input,
.filter-panel select {
  border: 0;
  outline: 0;
  color: #111827;
  background: transparent;
}

.nav-search input {
  width: 200px;
  padding: 8px 4px 8px 12px;
}

.nav-search button,
.mobile-nav button {
  border: 0;
  border-radius: 999px;
  padding: 9px 16px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  font-weight: 800;
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: #111827;
  font-size: 28px;
}

.mobile-nav {
  display: none;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px 18px;
  gap: 12px;
  flex-direction: column;
}

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

.mobile-nav a {
  padding: 10px 0;
  font-weight: 800;
  color: #374151;
}

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

.mobile-nav form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.mobile-nav input {
  min-width: 0;
  padding: 12px 16px;
  border-radius: 999px;
  background: #f9fafb;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.55s ease, transform 0.75s ease;
  background-size: cover;
  background-position: center;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

.hero-content {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) 360px;
  gap: 42px;
  align-items: center;
}

.hero-copy {
  max-width: 680px;
}

.eyebrow,
.card-region,
.detail-category,
.player-label {
  display: inline-flex;
  align-items: center;
  width: max-content;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.eyebrow {
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.26);
}

.hero-copy h1 {
  margin: 18px 0 16px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.98;
  font-weight: 950;
  letter-spacing: -0.07em;
}

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

.hero-meta,
.detail-meta,
.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-meta span,
.detail-meta span,
.card-meta span {
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 800;
}

.hero-meta span {
  background: rgba(255, 255, 255, 0.18);
}

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

.btn-primary,
.btn-ghost,
.btn-soft {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  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-primary {
  color: var(--rose);
  background: #ffffff;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.18);
}

.btn-ghost {
  color: #ffffff;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.72);
}

.btn-soft {
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--pink));
}

.btn-primary:hover,
.btn-ghost:hover,
.btn-soft:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 45px rgba(244, 63, 94, 0.26);
}

.hero-poster {
  overflow: hidden;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.36);
  transform: rotate(2deg);
}

.hero-poster img {
  width: 100%;
  height: 440px;
  object-fit: cover;
}

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

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

.hero-controls button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 24px;
}

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

.hero-dot.is-active {
  width: 30px;
  opacity: 1;
}

.section,
.page-section {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto 72px;
}

.section-lift {
  margin-top: -42px;
  position: relative;
  z-index: 6;
}

.feature-card,
.content-panel,
.filter-panel,
.detail-hero,
.player-panel {
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.72);
}

.feature-card {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 34px;
  padding: 34px;
  align-items: center;
}

.feature-copy h2,
.section-title h2,
.page-hero h1,
.detail-copy h1,
.content-panel h2,
.player-panel h2 {
  margin: 0;
  color: #111827;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.feature-copy h2 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
}

.feature-copy p {
  margin: 14px 0 0;
  color: #4b5563;
  line-height: 1.85;
}

.feature-image {
  overflow: hidden;
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}

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

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

.section-title h2 {
  font-size: clamp(28px, 4vw, 40px);
}

.section-title p,
.page-hero p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.section-title a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--rose);
  font-weight: 900;
}

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.1);
  border: 1px solid rgba(229, 231, 235, 0.9);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 70px rgba(244, 63, 94, 0.16);
}

.card-cover {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #ffe4e6, #dbeafe);
}

.card-cover img {
  width: 100%;
  height: 244px;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.card-region {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 7px 11px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  box-shadow: 0 12px 24px rgba(244, 63, 94, 0.28);
}

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #f43f5e);
  font-weight: 950;
  box-shadow: 0 14px 28px rgba(249, 115, 22, 0.28);
}

.card-body {
  padding: 18px;
}

.card-body h2,
.card-body h3 {
  margin: 0 0 9px;
  font-size: 19px;
  line-height: 1.35;
  font-weight: 950;
}

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

.card-body p {
  margin: 0 0 14px;
  min-height: 46px;
  color: #4b5563;
  line-height: 1.65;
}

.card-meta {
  color: #6b7280;
}

.card-meta span {
  background: #f3f4f6;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tag-row span {
  border-radius: 999px;
  padding: 6px 10px;
  color: #be123c;
  background: #ffe4e6;
  font-size: 12px;
  font-weight: 800;
}

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

.movie-card-horizontal .card-cover img {
  height: 100%;
  min-height: 220px;
}

.movie-card-compact .card-cover img {
  height: 190px;
}

.gradient-band {
  padding: 68px 0;
  margin: 0 0 72px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
}

.gradient-band .section-title h2,
.gradient-band .section-title p,
.gradient-band .section-title a {
  color: #ffffff;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 78px 0 54px;
  margin: 0 0 42px;
  background: linear-gradient(135deg, #fff1f2 0%, #ffffff 42%, #dbeafe 100%);
}

.page-hero-inner {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
}

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

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

.category-box {
  display: flex;
  min-height: 260px;
  padding: 26px;
  border-radius: 26px;
  flex-direction: column;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 28px 64px rgba(59, 130, 246, 0.14);
}

.category-icon {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--purple));
  font-size: 26px;
  font-weight: 950;
}

.category-box h2 {
  margin: 20px 0 10px;
  font-size: 24px;
  font-weight: 950;
}

.category-box p {
  color: #4b5563;
  line-height: 1.75;
}

.category-teasers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.category-teasers a {
  border-radius: 999px;
  padding: 7px 11px;
  background: #f3f4f6;
  color: #374151;
  font-size: 13px;
  font-weight: 800;
}

.category-link {
  margin-top: 20px;
  color: var(--rose);
  font-weight: 950;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(140px, 0.4fr));
  gap: 12px;
  padding: 18px;
  margin-bottom: 26px;
}

.filter-panel input,
.filter-panel select {
  min-height: 48px;
  border-radius: 999px;
  padding: 0 16px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
}

.is-hidden-card {
  display: none !important;
}

.detail-hero {
  width: min(1240px, calc(100% - 40px));
  margin: 42px auto;
  padding: 32px;
  display: grid;
  grid-template-columns: 370px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}

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

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

.detail-category {
  padding: 8px 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--pink));
}

.detail-copy h1 {
  margin: 18px 0 16px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
}

.detail-copy p {
  color: #4b5563;
  line-height: 1.85;
  font-size: 18px;
}

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

.breadcrumbs {
  width: min(1240px, calc(100% - 40px));
  margin: 26px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  color: #6b7280;
  font-size: 14px;
}

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

.player-panel {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto 42px;
  padding: 26px;
}

.player-panel h2 {
  margin-bottom: 18px;
  font-size: 30px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #000000;
  aspect-ratio: 16 / 9;
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.4), rgba(244, 63, 94, 0.25));
}

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

.play-button-core {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  border-radius: 999px;
  padding: 18px 26px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  font-size: 20px;
  font-weight: 950;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3), 0 18px 45px rgba(0, 0, 0, 0.22);
}

.play-icon {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--rose);
  background: #ffffff;
}

.content-panel {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto 42px;
  padding: 34px;
}

.content-panel h2 {
  margin: 0 0 14px;
  font-size: 30px;
}

.content-panel p {
  margin: 0 0 24px;
  color: #374151;
  line-height: 1.95;
  font-size: 17px;
}

.related-section {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto 72px;
}

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

.footer-grid {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  padding: 56px 0 34px;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 34px;
}

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

.site-footer h2 {
  margin: 0 0 16px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 950;
}

.site-footer p,
.site-footer li {
  color: #9ca3af;
  line-height: 1.8;
}

.site-footer ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a:hover {
  color: #fb7185;
}

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

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

  .menu-toggle {
    display: block;
  }

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

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

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

@media (max-width: 820px) {
  .nav-shell {
    gap: 12px;
  }

  .nav-search {
    display: none;
  }

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

  .hero-content,
  .feature-card,
  .detail-hero {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    transform: none;
  }

  .hero-poster img {
    height: 320px;
  }

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

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

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

  .detail-cover img {
    height: 420px;
  }
}

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

  .brand-mark {
    width: 38px;
    height: 38px;
  }

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

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

  .section,
  .page-section,
  .related-section,
  .detail-hero,
  .player-panel,
  .content-panel,
  .breadcrumbs {
    width: min(100% - 26px, 1240px);
  }

  .movie-grid,
  .movie-grid-three,
  .movie-grid-six,
  .category-overview-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .card-cover img,
  .movie-card-compact .card-cover img {
    height: 240px;
  }
}
