:root {
  color-scheme: dark;
  --bg: #0f172a;
  --bg-soft: #111827;
  --bg-panel: rgba(15, 23, 42, 0.78);
  --card: rgba(30, 41, 59, 0.72);
  --card-strong: rgba(15, 23, 42, 0.92);
  --border: rgba(148, 163, 184, 0.16);
  --text: #f8fafc;
  --muted: #cbd5e1;
  --subtle: #94a3b8;
  --rose: #fb7185;
  --rose-strong: #f43f5e;
  --orange: #fb923c;
  --amber: #f59e0b;
  --green: #34d399;
  --shadow: 0 24px 70px rgba(2, 6, 23, 0.42);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(251, 113, 133, 0.2), transparent 30rem),
    radial-gradient(circle at 80% 10%, rgba(251, 146, 60, 0.16), transparent 26rem),
    linear-gradient(180deg, #0f172a 0%, #111827 45%, #0b1120 100%);
  color: var(--text);
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.86);
  backdrop-filter: blur(18px);
}

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

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  color: #fff;
  font-weight: 900;
  box-shadow: 0 16px 36px rgba(244, 63, 94, 0.28);
}

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

.brand-text strong,
.footer-brand strong {
  font-size: 1.18rem;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, #fecdd3, #fed7aa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text em {
  margin-top: 3px;
  font-size: 0.78rem;
  color: var(--subtle);
  font-style: normal;
}

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

.nav-link,
.mobile-link {
  color: var(--muted);
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link {
  padding: 10px 14px;
  font-size: 0.95rem;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover {
  color: #fff;
  background: rgba(251, 113, 133, 0.16);
}

.nav-search,
.mobile-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-search input,
.mobile-search input,
.filter-form input {
  color: #fff;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid var(--border);
  outline: none;
  border-radius: 999px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-search input {
  width: 210px;
  padding: 10px 14px;
}

.mobile-search input,
.filter-form input {
  width: 100%;
  padding: 13px 16px;
}

.nav-search input:focus,
.mobile-search input:focus,
.filter-form input:focus {
  border-color: rgba(251, 113, 133, 0.82);
  box-shadow: 0 0 0 4px rgba(251, 113, 133, 0.12);
  background: rgba(15, 23, 42, 0.95);
}

.nav-search button,
.mobile-search button,
.filter-form button,
.primary-button,
.ghost-button,
.play-overlay,
.section-more,
.category-entry,
.rank-more {
  cursor: pointer;
}

.nav-search button,
.mobile-search button,
.filter-form button,
.primary-button {
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--rose-strong), var(--orange));
  box-shadow: 0 14px 30px rgba(244, 63, 94, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-search button {
  padding: 10px 15px;
}

.mobile-search button,
.filter-form button,
.primary-button {
  padding: 13px 20px;
}

.nav-search button:hover,
.mobile-search button:hover,
.filter-form button:hover,
.primary-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(244, 63, 94, 0.32);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.78);
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: #fff;
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--border);
  padding: 16px;
  background: rgba(15, 23, 42, 0.96);
}

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

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

.mobile-link {
  display: block;
  padding: 12px 14px;
}

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

.hero {
  position: relative;
  margin: 32px auto 42px;
  border: 1px solid var(--border);
  border-radius: 34px;
  overflow: hidden;
  min-height: 580px;
  background: #111827;
  box-shadow: var(--shadow);
}

.hero-track {
  position: relative;
  min-height: 580px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  gap: 36px;
  align-items: center;
  padding: 60px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.55s ease;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.9)),
    radial-gradient(circle at 72% 32%, rgba(251, 113, 133, 0.26), transparent 24rem);
  z-index: 0;
}

.hero-copy,
.hero-poster {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 8px 13px;
  border: 1px solid rgba(251, 113, 133, 0.28);
  border-radius: 999px;
  color: #fecdd3;
  background: rgba(251, 113, 133, 0.1);
  font-size: 0.92rem;
}

.hero h1,
.hero h2 {
  margin: 0;
  max-width: 860px;
  font-size: clamp(2.25rem, 5vw, 5.4rem);
  line-height: 1.03;
  letter-spacing: -0.06em;
}

.gradient-title {
  background: linear-gradient(100deg, #fff 0%, #fecdd3 45%, #fed7aa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-desc {
  max-width: 700px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.22rem);
  line-height: 1.86;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 0;
}

.hero-meta span,
.detail-meta span,
.tag-row span,
.poster-badge,
.rank-label {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
}

.hero-meta span,
.detail-meta span {
  padding: 7px 11px;
  color: #fef3c7;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.22);
}

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

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  font-weight: 800;
}

.ghost-button {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  transition: background 0.2s ease, transform 0.2s ease;
}

.ghost-button:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.14);
}

.hero-poster {
  justify-self: center;
  width: min(380px, 90%);
  aspect-ratio: 2 / 3;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 38px 100px rgba(2, 6, 23, 0.52);
  transform: rotate(2deg);
}

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

.hero-dots {
  position: absolute;
  left: 60px;
  bottom: 34px;
  z-index: 3;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.26);
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.active {
  width: 34px;
  background: linear-gradient(90deg, var(--rose), var(--orange));
}

.section {
  margin: 46px 0;
}

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

.section-head h2,
.page-title h1,
.detail-copy h1,
.category-card h2,
.player-section h2,
.text-block h2,
.related-section h2 {
  margin: 0;
  letter-spacing: -0.035em;
}

.section-head h2,
.page-title h1,
.detail-copy h1 {
  font-size: clamp(1.85rem, 3.4vw, 3.2rem);
}

.section-head p,
.page-title p,
.category-card p,
.footer-brand p,
.text-block p,
.detail-copy p {
  color: var(--muted);
}

.section-head p,
.page-title p {
  margin: 8px 0 0;
  line-height: 1.75;
}

.section-more,
.rank-more {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  color: #fecdd3;
  background: rgba(251, 113, 133, 0.1);
  border: 1px solid rgba(251, 113, 133, 0.22);
}

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.88));
  box-shadow: 0 18px 50px rgba(2, 6, 23, 0.2);
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(251, 113, 133, 0.35);
  box-shadow: 0 26px 80px rgba(2, 6, 23, 0.36);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #1e293b;
}

.poster-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.movie-card:hover .poster-link img {
  transform: scale(1.055);
  filter: saturate(1.08) contrast(1.05);
}

.poster-link::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.9));
}

.poster-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  padding: 6px 10px;
  color: #fff;
  font-weight: 800;
  background: rgba(15, 23, 42, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
}

.card-body {
  padding: 18px;
}

.card-title {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.38;
}

.card-title a:hover,
.rank-title a:hover,
.footer-links a:hover,
.breadcrumb a:hover {
  color: #fecdd3;
}

.card-meta {
  margin: 8px 0 0;
  color: var(--subtle);
  font-size: 0.92rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-desc {
  min-height: 50px;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.62;
  font-size: 0.95rem;
}

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

.tag-row span {
  padding: 5px 9px;
  color: #fed7aa;
  font-size: 0.8rem;
  background: rgba(251, 146, 60, 0.1);
  border: 1px solid rgba(251, 146, 60, 0.18);
}

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

.category-entry,
.category-card,
.info-panel,
.text-block,
.player-section,
.related-section,
.search-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 18px 60px rgba(2, 6, 23, 0.18);
}

.category-entry {
  display: block;
  padding: 22px;
  min-height: 170px;
  background:
    radial-gradient(circle at top right, rgba(251, 113, 133, 0.18), transparent 10rem),
    linear-gradient(180deg, rgba(30, 41, 59, 0.88), rgba(15, 23, 42, 0.84));
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.category-entry:hover {
  transform: translateY(-4px);
  border-color: rgba(251, 113, 133, 0.32);
}

.category-entry span {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(251, 113, 133, 0.3), rgba(251, 146, 60, 0.24));
  color: #fff;
  font-weight: 900;
}

.category-entry h3 {
  margin: 18px 0 8px;
  font-size: 1.15rem;
}

.category-entry p,
.category-card p {
  margin: 0;
  line-height: 1.7;
}

.rank-list {
  display: grid;
  gap: 14px;
}

.rank-item {
  display: grid;
  grid-template-columns: 72px 88px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(30, 41, 59, 0.62);
}

.rank-num {
  font-size: 1.7rem;
  font-weight: 900;
  color: #fecdd3;
  text-align: center;
}

.rank-thumb {
  width: 88px;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 14px;
  background: #1e293b;
}

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

.rank-title {
  margin: 0;
  font-size: 1.1rem;
}

.rank-desc {
  margin: 7px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.rank-label {
  justify-content: center;
  padding: 8px 12px;
  color: #fed7aa;
  background: rgba(251, 146, 60, 0.1);
  border: 1px solid rgba(251, 146, 60, 0.18);
}

.page-title {
  padding: 52px 0 28px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--subtle);
}

.breadcrumb span {
  color: var(--muted);
}

.category-card,
.search-panel {
  padding: 28px;
  margin-bottom: 28px;
}

.category-card h1,
.search-panel h1 {
  margin: 0;
  font-size: clamp(2rem, 3.2vw, 3.4rem);
}

.category-card p,
.search-panel p {
  margin: 12px 0 0;
  max-width: 780px;
}

.filter-form {
  display: flex;
  gap: 12px;
  margin-top: 22px;
}

.empty-state {
  display: none;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--muted);
  background: rgba(15, 23, 42, 0.65);
}

.empty-state.show {
  display: block;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  padding: 34px;
  border: 1px solid var(--border);
  border-radius: 32px;
  background:
    radial-gradient(circle at 12% 20%, rgba(251, 113, 133, 0.16), transparent 18rem),
    linear-gradient(135deg, rgba(30, 41, 59, 0.86), rgba(15, 23, 42, 0.9));
  box-shadow: var(--shadow);
}

.detail-poster {
  overflow: hidden;
  border-radius: 26px;
  aspect-ratio: 2 / 3;
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

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

.detail-copy h1 {
  max-width: 820px;
}

.detail-copy p {
  line-height: 1.85;
  font-size: 1.06rem;
}

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

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

.player-section,
.related-section,
.text-block {
  padding: 28px;
  margin-top: 34px;
}

.video-shell {
  position: relative;
  margin-top: 18px;
  border-radius: 24px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 16 / 9;
  box-shadow: 0 24px 70px rgba(2, 6, 23, 0.4);
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.04), rgba(2, 6, 23, 0.48));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-overlay span {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  padding-left: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rose-strong), var(--orange));
  box-shadow: 0 20px 50px rgba(244, 63, 94, 0.34);
  font-size: 2.35rem;
}

.video-shell.is-playing .play-overlay {
  opacity: 0;
  visibility: hidden;
}

.text-block p {
  margin: 16px 0 0;
  line-height: 1.9;
  color: var(--muted);
  font-size: 1.02rem;
}

.related-section .movie-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 22px;
}

.site-footer {
  margin-top: 70px;
  border-top: 1px solid var(--border);
  background: rgba(2, 6, 23, 0.32);
}

.footer-inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0;
}

.footer-brand {
  align-items: flex-start;
}

.footer-brand p {
  max-width: 560px;
  margin: 8px 0 0;
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin: 24px 0;
  color: var(--muted);
}

.copyright {
  margin: 0;
  color: var(--subtle);
}

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

  .menu-button {
    display: block;
  }

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

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

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

@media (max-width: 860px) {
  .header-inner {
    min-height: 68px;
  }

  .brand-text em,
  .nav-search {
    display: none;
  }

  .hero,
  .hero-track {
    min-height: 720px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    padding: 32px 24px 76px;
  }

  .hero-poster {
    width: min(260px, 76%);
    order: -1;
    transform: rotate(0deg);
  }

  .hero-dots {
    left: 24px;
    bottom: 24px;
  }

  .section-head,
  .filter-form {
    align-items: stretch;
    flex-direction: column;
  }

  .movie-grid,
  .related-section .movie-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

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

  .rank-item {
    grid-template-columns: 48px 72px 1fr;
  }

  .rank-label,
  .rank-more {
    display: none;
  }

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

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

@media (max-width: 560px) {
  .page-main,
  .header-inner,
  .footer-inner {
    width: min(100% - 22px, 1280px);
  }

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

  .brand-text strong {
    font-size: 1rem;
  }

  .hero {
    margin-top: 18px;
    border-radius: 24px;
  }

  .hero h1,
  .hero h2 {
    font-size: clamp(2rem, 13vw, 3.4rem);
  }

  .hero-desc {
    font-size: 0.98rem;
  }

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

  .card-desc {
    min-height: auto;
  }

  .category-card,
  .search-panel,
  .detail-hero,
  .player-section,
  .related-section,
  .text-block {
    padding: 20px;
    border-radius: 22px;
  }

  .play-overlay span {
    width: 68px;
    height: 68px;
    font-size: 1.9rem;
  }
}
