:root {
  --bg: #07111f;
  --bg-soft: #0d1729;
  --card: rgba(15, 23, 42, 0.72);
  --card-solid: #101a2d;
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --accent: #f97316;
  --accent-2: #fb7185;
  --accent-3: #38bdf8;
  --radius: 24px;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 0%, rgba(56, 189, 248, 0.16), transparent 26rem),
    radial-gradient(circle at 90% 12%, rgba(249, 115, 22, 0.18), transparent 28rem),
    linear-gradient(180deg, #050a14 0%, var(--bg) 46%, #060b13 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(180deg, black, transparent 72%);
  z-index: -1;
}

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

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

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

.header-inner {
  max-width: 1380px;
  margin: 0 auto;
  padding: 16px 28px;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 22px;
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 16px 44px rgba(249, 115, 22, 0.38);
}

.brand-text {
  white-space: nowrap;
  font-size: 20px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.nav-link,
.mobile-nav-link {
  padding: 10px 15px;
  border-radius: 999px;
  color: #cbd5e1;
  font-size: 15px;
  transition: 0.22s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-nav-link:hover,
.mobile-nav-link.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.header-search,
.mobile-search,
.hero-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px;
}

.header-search input,
.mobile-search input,
.hero-search input,
.filter-bar input,
.filter-bar select {
  min-width: 0;
  color: var(--text);
  background: transparent;
  border: 0;
  outline: 0;
  padding: 10px 12px;
  font: inherit;
}

.header-search input::placeholder,
.mobile-search input::placeholder,
.hero-search input::placeholder,
.filter-bar input::placeholder {
  color: #94a3b8;
}

.header-search button,
.mobile-search button,
.hero-search button,
.btn-primary,
.btn-ghost,
.section-more {
  border: 0;
  border-radius: 999px;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search button,
.mobile-search button,
.hero-search button,
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  padding: 11px 18px;
  box-shadow: 0 12px 28px rgba(249, 115, 22, 0.24);
}

.btn-ghost,
.section-more {
  padding: 11px 18px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--line);
}

.header-search button:hover,
.mobile-search button:hover,
.hero-search button:hover,
.btn-primary:hover,
.btn-ghost:hover,
.section-more:hover {
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: #fff;
  border-radius: 99px;
}

.mobile-nav {
  display: none;
  padding: 0 28px 18px;
  border-top: 1px solid var(--line);
}

.quick-cats {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 28px 14px;
  display: flex;
  gap: 10px;
  overflow-x: auto;
}

.quick-cats a,
.hero-category-row a {
  flex: 0 0 auto;
  padding: 8px 13px;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
}

.hero-slider {
  position: relative;
  max-width: 1480px;
  min-height: 760px;
  margin: 0 auto;
  padding: 32px 28px 60px;
}

.hero-track {
  position: relative;
  min-height: 680px;
  border-radius: 36px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0f172a;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 420px;
  align-items: center;
  gap: 44px;
  padding: 70px;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

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

.kicker {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 8px;
  color: #fdba74;
  font-size: 13px;
  letter-spacing: 0.18em;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
  margin: 18px 0 16px;
  font-size: clamp(38px, 5vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.hero-copy h2 {
  margin: 0 0 18px;
  font-size: clamp(30px, 3.5vw, 56px);
  line-height: 1.06;
}

.hero-copy p,
.page-hero p,
.detail-one-line {
  max-width: 760px;
  color: #dbeafe;
  font-size: 18px;
  line-height: 1.85;
}

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

.hero-tags span,
.tag-row span {
  padding: 7px 11px;
  color: #dbeafe;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
}

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

.hero-poster {
  position: relative;
  display: block;
  border-radius: 28px;
  overflow: hidden;
  transform: rotate(2deg);
  box-shadow: 0 34px 84px rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

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

.hero-poster span,
.detail-poster span {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  text-align: center;
  padding: 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(14px);
  font-weight: 900;
}

.hero-panel {
  position: absolute;
  left: 60px;
  right: 60px;
  bottom: 86px;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(260px, 460px) auto 1fr;
  gap: 16px;
  align-items: center;
}

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

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

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

.hero-category-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  justify-content: flex-end;
}

.content-section {
  max-width: 1380px;
  margin: 0 auto;
  padding: 54px 28px;
}

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

.section-heading h2,
.rank-panel h2,
.story-card h2,
.side-card h2 {
  margin: 10px 0;
  font-size: clamp(26px, 3vw, 42px);
}

.section-heading p,
.category-card p,
.category-overview-card p,
.card-body p,
.story-card p,
.side-card dd,
.footer-inner p {
  color: var(--muted);
  line-height: 1.75;
}

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

.movie-card,
.category-card,
.rank-panel,
.story-card,
.side-card,
.category-overview-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.22);
}

.movie-card {
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(249, 115, 22, 0.45);
}

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

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.82));
}

.play-chip,
.score-chip {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 13px;
  font-weight: 900;
}

.play-chip {
  left: 12px;
  bottom: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.score-chip {
  right: 12px;
  top: 12px;
  color: #fde68a;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(10px);
}

.card-body {
  padding: 17px;
}

.meta-line {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: #a5b4fc;
  font-size: 13px;
}

.card-body h3 {
  margin: 10px 0 8px;
  font-size: 20px;
  line-height: 1.35;
}

.card-body p {
  margin: 0 0 14px;
  min-height: 52px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 24px;
  align-items: start;
}

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

.category-card {
  display: block;
  padding: 22px;
  min-height: 168px;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.45);
}

.category-card span {
  display: block;
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 10px;
}

.category-card strong {
  color: #fdba74;
}

.ranking-list {
  display: grid;
  gap: 12px;
}

.ranking-row,
.rank-table-row {
  display: grid;
  grid-template-columns: 46px 58px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 11px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid transparent;
  transition: 0.2s ease;
}

.ranking-row:hover,
.rank-table-row:hover {
  border-color: rgba(249, 115, 22, 0.42);
  background: rgba(255, 255, 255, 0.1);
}

.ranking-row img,
.rank-table-row img,
.mini-card img {
  width: 58px;
  height: 78px;
  object-fit: cover;
  border-radius: 12px;
}

.rank-no {
  color: #fdba74;
  font-weight: 900;
}

.rank-copy,
.rank-main,
.mini-card span {
  min-width: 0;
}

.rank-copy strong,
.rank-main strong,
.mini-card strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-copy em,
.rank-main em,
.mini-card em {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-more {
  display: inline-flex;
  margin-top: 16px;
}

.page-hero {
  max-width: 1380px;
  margin: 32px auto 0;
  padding: 72px 28px;
  border-radius: 34px;
  background-size: cover;
  background-position: center;
}

.small-hero {
  margin-top: 28px;
  background:
    radial-gradient(circle at 18% 20%, rgba(249, 115, 22, 0.22), transparent 24rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(30, 41, 59, 0.58));
  border: 1px solid var(--line);
}

.category-hero {
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow);
}

.large-tags span {
  padding: 9px 14px;
}

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

.category-overview-card {
  padding: 18px;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

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

.category-cover img {
  aspect-ratio: 2 / 3;
  width: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.filter-bar {
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 180px;
  gap: 12px;
}

.sticky-filter {
  position: sticky;
  top: 102px;
  z-index: 20;
  padding: 12px;
  border-radius: 22px;
  background: rgba(7, 17, 31, 0.82);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line);
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.08);
}

.filter-bar select option {
  background: #0f172a;
}

.rank-table {
  display: grid;
  gap: 10px;
}

.rank-table-row {
  grid-template-columns: 72px 54px minmax(0, 1fr) 110px 80px 60px;
}

.detail-hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
}

.detail-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(1.08);
}

.detail-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, #07111f 96%);
}

.detail-inner {
  position: relative;
  z-index: 2;
  max-width: 1380px;
  margin: 0 auto;
  padding: 42px 28px 70px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: #cbd5e1;
  margin-bottom: 34px;
}

.breadcrumb a {
  color: #fdba74;
}

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

.detail-poster {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

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

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.detail-meta span {
  padding: 9px 13px;
  color: #dbeafe;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid var(--line);
  border-radius: 999px;
}

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

.player-column,
.detail-side {
  display: grid;
  gap: 20px;
}

.player-card {
  border-radius: 28px;
  overflow: hidden;
  background: #020617;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.video-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

.movie-video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: #fff;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.24), rgba(0, 0, 0, 0.76));
  cursor: pointer;
  font: inherit;
}

.player-cover.is-hidden {
  display: none;
}

.big-play {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 20px 46px rgba(249, 115, 22, 0.38);
  font-size: 34px;
}

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

.story-card p {
  font-size: 17px;
}

.side-card dl {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 12px 14px;
  margin: 0;
}

.side-card dt {
  color: #fdba74;
  font-weight: 900;
}

.side-card dd {
  margin: 0;
}

.side-list {
  display: grid;
  gap: 12px;
}

.mini-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(3, 7, 18, 0.72);
}

.footer-inner {
  max-width: 1380px;
  margin: 0 auto;
  padding: 38px 28px;
  display: flex;
  justify-content: space-between;
  gap: 28px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 620px;
  justify-content: flex-end;
}

.footer-links a {
  padding: 8px 12px;
  color: #cbd5e1;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
}

[hidden],
.is-filtered {
  display: none !important;
}

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

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

  .menu-toggle {
    display: block;
  }

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

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

  .hero-poster {
    display: none;
  }

  .hero-panel {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    margin-top: 16px;
    grid-template-columns: 1fr;
  }

  .hero-track {
    min-height: 600px;
  }

  .hero-slider {
    min-height: 0;
  }

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

  .split-section,
  .detail-main,
  .detail-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .header-inner,
  .quick-cats,
  .content-section,
  .detail-inner,
  .page-hero,
  .footer-inner {
    padding-left: 18px;
    padding-right: 18px;
  }

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

  .hero-slider {
    padding: 18px 18px 38px;
  }

  .hero-track {
    min-height: 620px;
    border-radius: 26px;
  }

  .hero-slide {
    padding: 34px 24px;
  }

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

  .section-heading,
  .footer-inner {
    display: grid;
  }

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

  .category-overview-card {
    grid-template-columns: 1fr;
  }

  .filter-bar,
  .rank-table-row {
    grid-template-columns: 1fr;
  }

  .rank-table-row span:nth-of-type(3),
  .rank-table-row span:nth-of-type(4) {
    display: none;
  }

  .detail-hero {
    min-height: auto;
  }

  .detail-inner {
    padding-bottom: 38px;
  }

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

@media (max-width: 520px) {
  .movie-grid {
    gap: 16px;
  }

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

  .hero-copy h2 {
    font-size: 30px;
  }

  .card-body p {
    min-height: auto;
  }
}
