:root {
  color-scheme: dark;
  --bg: #070716;
  --bg-soft: #101022;
  --panel: rgba(20, 18, 44, 0.78);
  --panel-strong: rgba(24, 20, 57, 0.92);
  --border: rgba(216, 180, 254, 0.18);
  --text: #f8fafc;
  --muted: #c4b5fd;
  --soft: #94a3b8;
  --accent: #facc15;
  --pink: #ec4899;
  --purple: #8b5cf6;
  --indigo: #4f46e5;
  --radius-lg: 28px;
  --radius-md: 18px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 0%, rgba(236, 72, 153, 0.22), transparent 32rem),
    radial-gradient(circle at 88% 10%, rgba(79, 70, 229, 0.28), transparent 30rem),
    linear-gradient(180deg, #080818 0%, #050510 58%, #03030a 100%);
}

body.is-menu-open {
  overflow: hidden;
}

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: linear-gradient(90deg, rgba(49, 46, 129, 0.96), rgba(88, 28, 135, 0.96), rgba(157, 23, 77, 0.96));
  border-bottom: 1px solid var(--border);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-weight: 900;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #fde68a;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(254, 240, 138, 0.34);
  border-radius: 14px;
  box-shadow: 0 0 32px rgba(250, 204, 21, 0.22);
}

.brand-name {
  font-size: 24px;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, #fef08a, #fbcfe8, #ddd6fe);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.desktop-nav a,
.mobile-nav a {
  padding: 9px 12px;
  color: rgba(255, 255, 255, 0.86);
  border-radius: 12px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.header-search {
  position: relative;
  display: flex;
  align-items: center;
  width: 260px;
  border: 1px solid rgba(216, 180, 254, 0.32);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
}

.header-search input,
.big-search input,
.filter-tools input {
  width: 100%;
  border: 0;
  outline: 0;
  color: #fff;
  background: transparent;
}

.header-search input {
  padding: 10px 76px 10px 16px;
}

.header-search input::placeholder,
.big-search input::placeholder,
.filter-tools input::placeholder {
  color: rgba(221, 214, 254, 0.58);
}

.header-search button {
  position: absolute;
  right: 4px;
  top: 4px;
  bottom: 4px;
  border: 0;
  color: #1e1b4b;
  font-weight: 800;
  padding: 0 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fde68a, #f9a8d4);
  cursor: pointer;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
}

.mobile-nav {
  display: none;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 12px 0 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

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

main {
  overflow: hidden;
}

.hero-carousel {
  position: relative;
  min-height: 660px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  background-size: cover;
  background-position: center;
  transition: opacity 0.7s ease, transform 0.9s ease;
  transform: scale(1.03);
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 5, 16, 0.92) 0%, rgba(8, 7, 30, 0.72) 45%, rgba(8, 7, 30, 0.24) 100%),
    radial-gradient(circle at 18% 26%, rgba(236, 72, 153, 0.24), transparent 30rem);
}

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

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 84px 0 96px;
}

.eyebrow,
.section-heading p,
.page-hero p:first-child,
.category-overview-head p {
  margin: 0 0 10px;
  color: #f0abfc;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-content h1,
.hero-content h2 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(44px, 8vw, 94px);
  line-height: 0.96;
  letter-spacing: -0.08em;
  text-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
}

.hero-content h2 + p,
.hero-content h1 + h2 + p,
.hero-content h1 + p {
  max-width: 760px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.75;
}

.hero-tags,
.mini-tags,
.quick-links,
.footer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.hero-tags span,
.mini-tags span,
.quick-links a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  color: #ede9fe;
  border: 1px solid rgba(216, 180, 254, 0.22);
  background: rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  backdrop-filter: blur(10px);
}

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

.primary-button,
.ghost-button,
.category-overview-head a,
.section-heading.with-link a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: #1e1b4b;
  background: linear-gradient(135deg, #fde68a, #f9a8d4 58%, #c4b5fd);
  box-shadow: 0 20px 45px rgba(236, 72, 153, 0.28);
}

.ghost-button,
.category-overview-head a,
.section-heading.with-link a {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
}

.primary-button:hover,
.ghost-button:hover,
.category-overview-head a:hover,
.section-heading.with-link a:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
}

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

.hero-dot {
  width: 11px;
  height: 11px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
  width: 34px;
  background: #fef08a;
}

.section-panel,
.ranking-strip,
.page-main,
.detail-main {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

.section-panel,
.ranking-strip {
  padding: 64px 0;
}

.intro-panel {
  padding-top: 72px;
}

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

.section-heading h2,
.category-overview-head h2,
.detail-article h2,
.footer-inner h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.section-heading.with-link,
.category-overview-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.intro-text,
.category-overview-card p,
.page-hero p,
.detail-article p,
.site-footer p {
  color: rgba(226, 232, 240, 0.78);
  line-height: 1.82;
}

.intro-text {
  max-width: 860px;
  margin: -10px 0 32px;
  font-size: 18px;
}

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

.category-tile,
.category-overview-card,
.movie-card,
.detail-article,
.player-section,
.detail-hero,
.page-hero {
  position: relative;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.category-tile {
  min-height: 178px;
  padding: 20px;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.category-tile::after,
.page-hero::after,
.detail-hero::after {
  content: "";
  position: absolute;
  inset: auto -20% -45% 10%;
  height: 150px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.28), transparent 68%);
  pointer-events: none;
}

.category-tile span {
  display: block;
  color: #fef08a;
  font-weight: 900;
  font-size: 20px;
}

.category-tile strong,
.category-tile em {
  display: block;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.84);
  font-style: normal;
  line-height: 1.6;
}

.category-tile em {
  color: rgba(203, 213, 225, 0.72);
  font-size: 14px;
}

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

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

.movie-card {
  display: grid;
  gap: 12px;
  padding: 12px;
  border-radius: 22px;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(250, 204, 21, 0.42);
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.18), rgba(236, 72, 153, 0.08));
}

.poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 16px;
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 -120px 80px rgba(0, 0, 0, 0.55);
}

.poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.62) 100%);
  opacity: 0.9;
}

.poster-year,
.poster-region,
.rank-badge {
  position: absolute;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  background: rgba(88, 28, 135, 0.78);
  backdrop-filter: blur(10px);
}

.poster-year {
  top: 10px;
  right: 10px;
}

.poster-region {
  left: 10px;
  bottom: 10px;
}

.rank-badge {
  top: 10px;
  left: 10px;
  color: #1e1b4b;
  background: linear-gradient(135deg, #fef08a, #f9a8d4);
}

.card-content {
  display: grid;
  gap: 8px;
}

.card-content strong {
  display: -webkit-box;
  min-height: 48px;
  overflow: hidden;
  color: #fff;
  font-size: 16px;
  line-height: 1.5;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-content em,
.card-text {
  color: rgba(203, 213, 225, 0.74);
  font-style: normal;
  font-size: 13px;
  line-height: 1.55;
}

.card-text {
  display: -webkit-box;
  min-height: 40px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.mini-tags span {
  min-height: 24px;
  padding: 3px 8px;
  font-size: 12px;
}

.page-main,
.detail-main {
  padding: 40px 0 70px;
}

.page-hero {
  min-height: 300px;
  display: grid;
  align-items: center;
  padding: 44px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 18%, rgba(250, 204, 21, 0.18), transparent 18rem),
    linear-gradient(135deg, rgba(79, 70, 229, 0.54), rgba(88, 28, 135, 0.52), rgba(157, 23, 77, 0.36));
}

.page-hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(38px, 6vw, 70px);
  line-height: 1;
  letter-spacing: -0.07em;
}

.page-hero p:last-child {
  max-width: 760px;
  margin: 20px 0 0;
  font-size: 18px;
}

.category-overview-list {
  display: grid;
  gap: 26px;
  margin-top: 34px;
}

.category-overview-card {
  padding: 28px;
  border-radius: var(--radius-lg);
}

.mini-card-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.filter-tools {
  display: grid;
  gap: 22px;
}

.filter-tools input,
.big-search {
  border: 1px solid rgba(216, 180, 254, 0.26);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.filter-tools input {
  max-width: 520px;
  padding: 14px 18px;
}

.big-search {
  display: flex;
  max-width: 680px;
  margin-top: 26px;
  overflow: hidden;
}

.big-search input {
  padding: 17px 20px;
}

.big-search button {
  border: 0;
  padding: 0 26px;
  color: #1e1b4b;
  font-weight: 900;
  background: linear-gradient(135deg, #fde68a, #f9a8d4);
  cursor: pointer;
}

.quick-links {
  gap: 10px;
}

.quick-links a {
  color: rgba(255, 255, 255, 0.78);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 0 0 24px;
  color: rgba(221, 214, 254, 0.72);
}

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

.detail-hero {
  display: grid;
  grid-template-columns: minmax(260px, 390px) 1fr;
  gap: 34px;
  min-height: 520px;
  padding: 32px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0%, rgba(236, 72, 153, 0.18), transparent 22rem),
    linear-gradient(135deg, rgba(22, 20, 54, 0.88), rgba(10, 10, 24, 0.92));
}

.detail-cover {
  position: relative;
  min-height: 460px;
  border-radius: 24px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

.detail-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.detail-info h1 {
  margin: 0;
  font-size: clamp(40px, 6vw, 78px);
  line-height: 1;
  letter-spacing: -0.07em;
}

.detail-info h2 {
  max-width: 820px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.55;
  font-weight: 600;
}

.player-section {
  margin-top: 34px;
  padding: 28px;
  border-radius: var(--radius-lg);
}

.player-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 40%, rgba(139, 92, 246, 0.26), transparent 26rem),
    #03030a;
}

.video-player {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: #fff;
  background:
    radial-gradient(circle at 50% 48%, rgba(236, 72, 153, 0.18), transparent 20rem),
    linear-gradient(180deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.74));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-circle {
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  color: #1e1b4b;
  font-size: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fef08a, #f9a8d4);
  box-shadow: 0 20px 50px rgba(236, 72, 153, 0.35);
}

.player-overlay span:last-child {
  font-size: 18px;
  font-weight: 900;
}

.detail-article {
  display: grid;
  gap: 28px;
  margin-top: 34px;
  padding: 34px;
  border-radius: var(--radius-lg);
}

.detail-article section {
  display: grid;
  gap: 12px;
}

.detail-article p {
  margin: 0;
  font-size: 17px;
}

.info-table dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.info-table div {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(216, 180, 254, 0.14);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
}

.info-table dt {
  color: #f0abfc;
  font-weight: 900;
}

.info-table dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

.related-panel {
  width: 100%;
}

.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.45), rgba(0, 0, 0, 0.72));
}

.footer-inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1.2fr;
  gap: 32px;
  padding: 48px 0;
}

.footer-logo {
  margin-bottom: 12px;
  font-size: 24px;
  font-weight: 900;
  color: #fef08a;
}

.footer-inner h2 {
  font-size: 18px;
  margin-bottom: 14px;
}

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

.footer-links a {
  color: rgba(203, 213, 225, 0.72);
}

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

.footer-bottom {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 28px;
  color: rgba(148, 163, 184, 0.78);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 14px;
  text-align: center;
}

.is-filtered-out {
  display: none;
}

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

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

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

  .category-grid,
  .movie-grid,
  .rank-grid,
  .mini-card-row,
  .large-rank {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .header-inner {
    height: auto;
    min-height: 66px;
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .brand-name {
    font-size: 21px;
  }

  .header-search {
    order: 3;
    width: 100%;
  }

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

  .hero-content {
    padding: 68px 0 88px;
  }

  .hero-content h1,
  .hero-content h2 {
    font-size: clamp(38px, 13vw, 64px);
  }

  .section-heading.with-link,
  .category-overview-head {
    align-items: flex-start;
    flex-direction: column;
  }

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

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

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

  .info-table dl {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .section-panel,
  .ranking-strip,
  .page-main,
  .detail-main,
  .footer-inner,
  .footer-bottom,
  .header-inner,
  .mobile-nav {
    width: min(100% - 22px, 1280px);
  }

  .category-grid,
  .movie-grid,
  .rank-grid,
  .mini-card-row,
  .large-rank {
    grid-template-columns: 1fr;
  }

  .page-hero,
  .detail-hero,
  .detail-article,
  .player-section,
  .category-overview-card {
    padding: 22px;
    border-radius: 22px;
  }

  .detail-cover {
    min-height: 360px;
  }

  .mobile-nav.is-open {
    grid-template-columns: 1fr;
  }
}
