:root {
  --rose: #e11d48;
  --rose-dark: #be123c;
  --rose-soft: #fff1f2;
  --amber: #f59e0b;
  --slate: #0f172a;
  --ink: #1f2937;
  --muted: #64748b;
  --line: rgba(225, 29, 72, 0.14);
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: linear-gradient(135deg, #f8fafc 0%, #fff1f2 48%, #fffbeb 100%);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(20px);
}

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

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--amber));
  box-shadow: 0 12px 24px rgba(225, 29, 72, 0.25);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-text strong,
.footer-brand {
  font-size: 21px;
  background: linear-gradient(90deg, var(--rose), var(--amber));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text em {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
}

.desktop-nav {
  display: flex;
  gap: 6px;
  margin-left: auto;
}

.nav-link {
  padding: 10px 16px;
  border-radius: 14px;
  color: #475569;
  font-weight: 650;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

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

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

.header-search {
  width: 240px;
}

.header-search input,
.mobile-search input,
.page-search-input,
.filter-panel select,
.global-search-input {
  width: 100%;
  border: 1px solid rgba(225, 29, 72, 0.22);
  border-radius: 999px;
  padding: 12px 18px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  outline: none;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.page-search-input:focus,
.filter-panel select:focus,
.global-search-input:focus {
  border-color: rgba(225, 29, 72, 0.55);
  box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.10);
}

.menu-toggle {
  display: none;
  border: 0;
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--rose);
  background: var(--rose-soft);
  font-size: 22px;
  cursor: pointer;
}

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

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

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

.hero-slider {
  position: relative;
  min-height: 82vh;
  overflow: hidden;
  color: #fff;
  background: #111827;
}

.hero-track,
.hero-slide {
  min-height: 82vh;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  align-items: center;
  gap: 48px;
  padding: 110px max(24px, calc((100vw - 1180px) / 2)) 90px;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

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

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.70), rgba(15, 23, 42, 0.36)), var(--hero-image);
  background-size: cover;
  background-position: center;
  filter: saturate(1.1);
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 22%, rgba(225, 29, 72, 0.38), transparent 32%),
    radial-gradient(circle at 78% 28%, rgba(245, 158, 11, 0.28), transparent 30%);
}

.hero-content {
  position: relative;
  max-width: 720px;
  z-index: 2;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--rose);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-content .eyebrow,
.page-hero .eyebrow,
.detail-info .eyebrow {
  color: #fb7185;
}

.hero-content h1 {
  margin: 0;
  font-size: clamp(40px, 6vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.hero-summary {
  max-width: 620px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.8;
}

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

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

.hero-tags span,
.tag-list span,
.detail-meta span {
  border: 1px solid rgba(225, 29, 72, 0.18);
  border-radius: 999px;
  padding: 6px 12px;
  color: var(--rose-dark);
  background: rgba(255, 241, 242, 0.9);
  font-size: 12px;
  font-weight: 700;
}

.hero-tags span {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.hero-actions,
.detail-info .primary-btn {
  margin-top: 30px;
}

.primary-btn,
.ghost-btn,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.primary-btn {
  padding: 13px 24px;
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--amber));
  box-shadow: 0 18px 35px rgba(225, 29, 72, 0.25);
}

.ghost-btn {
  margin-left: 12px;
  padding: 12px 22px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
}

.text-link {
  color: var(--rose);
}

.primary-btn:hover,
.ghost-btn:hover,
.text-link:hover {
  transform: translateY(-2px);
}

.hero-poster {
  position: relative;
  z-index: 2;
  justify-self: end;
  width: min(380px, 100%);
  border-radius: 34px;
  overflow: hidden;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.44);
  transform: rotate(2deg);
}

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

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

.hero-dots button {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

.hero-dots button.is-active {
  width: 34px;
  background: #fff;
}

.intro-band,
.content-section,
.page-main,
.detail-main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.intro-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: -34px;
  padding: 34px;
  position: relative;
  z-index: 6;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.intro-band h2,
.section-heading h2,
.page-hero h1,
.detail-info h1,
.watch-section h2,
.detail-content h2 {
  margin: 0;
  color: #111827;
  letter-spacing: -0.035em;
}

.intro-band h2 {
  font-size: clamp(26px, 4vw, 44px);
}

.intro-band p:last-child,
.section-heading p,
.page-hero p,
.category-overview-card p,
.detail-one-line,
.detail-content p,
.footer-about p {
  color: var(--muted);
  line-height: 1.85;
}

.content-section {
  padding: 70px 0 0;
}

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(225, 29, 72, 0.10);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  border-color: rgba(225, 29, 72, 0.22);
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.16);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #fff1f2, #fffbeb);
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(15, 23, 42, 0.78));
  transition: opacity 0.25s ease;
}

.movie-card:hover .poster-shade {
  opacity: 1;
}

.play-badge,
.rank-badge {
  position: absolute;
  display: grid;
  place-items: center;
  font-weight: 900;
}

.play-badge {
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  color: var(--rose);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.86);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .play-badge {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.rank-badge {
  top: 12px;
  left: 12px;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  color: #fff;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--rose), var(--amber));
  box-shadow: 0 12px 24px rgba(225, 29, 72, 0.25);
}

.card-body {
  padding: 18px;
}

.meta-line {
  color: #fb7185;
  font-size: 12px;
  font-weight: 800;
}

.card-body h3 {
  margin: 9px 0;
  font-size: 18px;
  line-height: 1.35;
}

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

.card-body p {
  min-height: 50px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.tag-list {
  min-height: 28px;
}

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

.category-tile {
  min-height: 180px;
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  padding: 22px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: #111827;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.12);
}

.category-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(180deg, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0.86)), var(--tile-image);
  background-size: cover;
  background-position: center;
  transition: transform 0.4s ease;
}

.category-tile:hover::before {
  transform: scale(1.08);
}

.category-tile span,
.category-tile strong {
  position: relative;
  z-index: 1;
}

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

.category-tile strong {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  line-height: 1.6;
}

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

.compact-movie {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid rgba(225, 29, 72, 0.12);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.compact-movie:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.12);
}

.compact-movie img {
  width: 74px;
  height: 98px;
  border-radius: 14px;
  object-fit: cover;
}

.compact-movie strong,
.compact-movie em {
  display: block;
}

.compact-movie strong {
  color: #111827;
  line-height: 1.35;
}

.compact-movie em {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.page-main,
.detail-main {
  padding: 48px 0 80px;
}

.page-hero {
  margin-bottom: 32px;
  border-radius: 34px;
  padding: 54px;
  color: #fff;
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.30), transparent 38%),
    linear-gradient(135deg, #0f172a, #3f1230 55%, #7f1d1d);
  box-shadow: var(--shadow);
}

.page-hero h1 {
  color: #fff;
  font-size: clamp(34px, 5vw, 58px);
}

.page-hero p:not(.eyebrow) {
  max-width: 820px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  border: 1px solid rgba(225, 29, 72, 0.12);
  border-radius: 28px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.80);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

.category-cover-stack {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.category-cover-stack img {
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  object-fit: cover;
}

.category-overview-card h2 {
  margin: 0;
  font-size: 26px;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 14px;
  margin-bottom: 28px;
  padding: 18px;
  border: 1px solid rgba(225, 29, 72, 0.10);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.wide-filter {
  grid-template-columns: minmax(0, 1fr) 240px;
}

.detail-main {
  max-width: 1180px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 14px;
}

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

.detail-hero {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 36px;
  align-items: center;
  border-radius: 34px;
  padding: 30px;
  color: #fff;
  background:
    radial-gradient(circle at 82% 18%, rgba(245, 158, 11, 0.24), transparent 38%),
    linear-gradient(135deg, #111827 0%, #3f1230 56%, #7f1d1d 100%);
  box-shadow: var(--shadow);
}

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

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

.detail-info h1 {
  color: #fff;
  font-size: clamp(34px, 5vw, 62px);
}

.detail-one-line {
  margin: 18px 0 18px;
  color: rgba(255, 255, 255, 0.80);
  font-size: 18px;
}

.detail-meta span {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
}

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

.watch-section,
.detail-content,
.related-section {
  margin-top: 42px;
}

.watch-section h2,
.detail-content h2 {
  margin-bottom: 18px;
  font-size: 30px;
}

.video-frame {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #020617;
  box-shadow: var(--shadow);
}

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

.play-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.20), rgba(15, 23, 42, 0.76));
}

.video-frame.is-playing .play-cover {
  opacity: 0;
  pointer-events: none;
}

.play-symbol {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--rose);
  background: rgba(255, 255, 255, 0.94);
  font-size: 34px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.26);
}

.play-cover strong {
  font-size: 20px;
}

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

.detail-content article {
  border: 1px solid rgba(225, 29, 72, 0.10);
  border-radius: 28px;
  padding: 26px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.06);
}

.site-footer {
  margin-top: 80px;
  padding: 50px 0;
  color: #d1d5db;
  background: linear-gradient(135deg, #0f172a, #111827 55%, #3f1230);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-about {
  max-width: 600px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

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

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

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

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

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

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

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

  .hero-poster {
    display: none;
  }
}

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

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

  .brand-text em {
    display: none;
  }

  .hero-slider,
  .hero-track,
  .hero-slide {
    min-height: 76vh;
  }

  .hero-slide {
    padding: 96px 18px 78px;
  }

  .hero-actions {
    display: grid;
    gap: 12px;
  }

  .ghost-btn {
    margin-left: 0;
  }

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

  .movie-grid,
  .category-grid,
  .compact-list,
  .category-overview-grid,
  .detail-content {
    grid-template-columns: 1fr;
  }

  .category-overview-card,
  .detail-hero,
  .filter-panel,
  .wide-filter {
    grid-template-columns: 1fr;
  }

  .category-cover-stack {
    grid-template-columns: repeat(4, 1fr);
  }

  .page-hero,
  .detail-hero,
  .intro-band {
    padding: 28px;
    border-radius: 26px;
  }
}
