* {
  box-sizing: border-box;
}

:root {
  --amber-50: #fffbeb;
  --rose-50: #fff1f2;
  --sky-50: #f0f9ff;
  --amber-500: #f59e0b;
  --rose-500: #f43f5e;
  --rose-600: #e11d48;
  --pink-600: #db2777;
  --sky-700: #0369a1;
  --text: #1f2937;
  --muted: #6b7280;
  --line: rgba(148, 163, 184, 0.28);
  --panel: rgba(255, 255, 255, 0.78);
  --shadow: 0 22px 58px rgba(136, 19, 55, 0.14);
  --radius: 26px;
}

body {
  margin: 0;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: linear-gradient(135deg, var(--amber-50), var(--rose-50) 48%, var(--sky-50));
  min-height: 100vh;
}

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

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

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.62);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.06);
}

.nav-wrap {
  width: min(1180px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, var(--rose-600), var(--amber-500), var(--sky-700));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber-500), var(--rose-500));
  box-shadow: 0 12px 28px rgba(244, 63, 94, 0.35);
  font-size: 15px;
}

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

.nav-link,
.nav-drop > button {
  border: 0;
  background: transparent;
  padding: 10px 14px;
  border-radius: 999px;
  color: #4b5563;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.nav-link:hover,
.nav-link.active,
.nav-drop:hover > button {
  color: #ffffff;
  background: linear-gradient(90deg, var(--amber-500), var(--rose-500));
}

.nav-drop {
  position: relative;
}

.drop-panel {
  position: absolute;
  right: 0;
  top: 44px;
  width: 190px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  display: none;
}

.nav-drop:hover .drop-panel {
  display: grid;
}

.drop-panel a {
  padding: 10px 12px;
  border-radius: 14px;
  color: #4b5563;
  font-weight: 700;
}

.drop-panel a:hover {
  background: rgba(244, 63, 94, 0.1);
  color: var(--rose-600);
}

.menu-toggle {
  display: none;
  border: 0;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber-500), var(--rose-500));
  font-size: 20px;
}

.hero {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: #111827;
}

.hero-stage,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 700ms ease;
}

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(120, 53, 15, 0.92), rgba(136, 19, 55, 0.9) 48%, rgba(12, 74, 110, 0.9));
}

.hero-content {
  position: relative;
  z-index: 3;
  width: min(900px, calc(100% - 32px));
  min-height: 600px;
  margin: 0 auto;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 34px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff7ed;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.section-kicker {
  background: rgba(244, 63, 94, 0.1);
  color: var(--rose-600);
}

.hero h1 {
  margin: 22px 0 0;
  font-size: clamp(36px, 7vw, 72px);
  line-height: 1.04;
  font-weight: 950;
  letter-spacing: -0.05em;
  text-shadow: 0 18px 60px rgba(0, 0, 0, 0.4);
}

.hero h2 {
  margin: 18px 0 0;
  font-size: clamp(25px, 4vw, 44px);
  color: #ffedd5;
}

.hero p {
  width: min(760px, 100%);
  margin: 18px auto 0;
  color: #fff7ed;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.8;
}

.hero-tags,
.tag-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

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

.hero-tags span,
.tag-row span {
  padding: 7px 12px;
  border-radius: 999px;
  color: #9f1239;
  background: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 800;
}

.hero-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.primary-btn,
.ghost-btn,
.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.primary-btn {
  color: #ffffff;
  background: linear-gradient(90deg, var(--amber-500), var(--rose-500));
  box-shadow: 0 18px 38px rgba(244, 63, 94, 0.32);
}

.ghost-btn {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.32);
}

.section-link {
  color: #ffffff;
  background: linear-gradient(90deg, var(--rose-500), var(--pink-600));
}

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

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

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.46);
  cursor: pointer;
  transition: width 200ms ease, background 200ms ease;
}

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

.section-block {
  padding: 64px 0;
}

.home-search {
  margin-top: -38px;
  position: relative;
  z-index: 8;
}

.filter-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.filter-panel label {
  flex: 1;
  display: grid;
  gap: 8px;
  color: #9f1239;
  font-weight: 900;
}

.filter-panel input {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(244, 63, 94, 0.18);
  border-radius: 999px;
  outline: none;
  padding: 0 18px;
  color: #1f2937;
  background: #ffffff;
  font-size: 16px;
}

.filter-panel input:focus {
  border-color: rgba(244, 63, 94, 0.5);
  box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.12);
}

.filter-hints {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-hints span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.1);
  color: var(--sky-700);
  font-size: 13px;
  font-weight: 800;
}

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

.section-head h2 {
  margin: 10px 0 6px;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.15;
  background: linear-gradient(90deg, var(--rose-600), var(--pink-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

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

.category-card {
  position: relative;
  min-height: 220px;
  padding: 18px;
  border-radius: 26px;
  overflow: hidden;
  color: #ffffff;
  background: #111827;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  isolation: isolate;
}

.category-card.wide {
  min-height: 280px;
}

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 250ms ease;
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.08), rgba(136, 19, 55, 0.88));
}

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

.category-card span {
  font-size: 22px;
  font-weight: 950;
}

.category-card p {
  margin: 8px 0 0;
  color: #fff7ed;
  line-height: 1.7;
  font-size: 14px;
}

.mini-title-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.mini-title-row span {
  font-size: 12px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.category-page-grid {
  margin-top: 24px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.movie-card {
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.07);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #fde68a, #fecdd3);
}

.poster-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 250ms ease;
}

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

.score-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 950;
  background: linear-gradient(90deg, var(--amber-500), var(--rose-500));
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
}

.card-body {
  padding: 16px;
}

.card-title {
  display: block;
  color: #111827;
  font-size: 18px;
  font-weight: 950;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-title:hover {
  color: var(--rose-600);
}

.card-body p {
  margin: 9px 0 12px;
  color: var(--muted);
  line-height: 1.7;
  min-height: 72px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  color: #9f1239;
  font-size: 13px;
  font-weight: 800;
}

.tag-row {
  justify-content: flex-start;
}

.tag-row span {
  color: var(--sky-700);
  background: rgba(14, 165, 233, 0.1);
}

.compact-card .card-body p {
  min-height: 0;
  -webkit-line-clamp: 2;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 54px 58px 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.76);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.05);
}

.rank-row:hover {
  background: #ffffff;
  transform: translateY(-2px);
}

.rank-row img {
  width: 58px;
  height: 76px;
  border-radius: 14px;
  object-fit: cover;
}

.rank-num {
  color: var(--rose-600);
  font-size: 18px;
  font-weight: 950;
}

.rank-title {
  font-weight: 950;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-meta {
  color: var(--muted);
  font-size: 13px;
}

.rank-row strong {
  color: #ffffff;
  padding: 6px 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--amber-500), var(--rose-500));
}

.full-list {
  grid-template-columns: 1fr;
}

.page-hero,
.detail-hero {
  position: relative;
  padding: 96px 0 76px;
  color: #ffffff;
  background: linear-gradient(120deg, rgba(120, 53, 15, 0.94), rgba(136, 19, 55, 0.94), rgba(12, 74, 110, 0.94));
  overflow: hidden;
}

.page-hero::before,
.detail-hero::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -120px;
  top: -150px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  filter: blur(3px);
}

.page-hero .container,
.detail-hero .container {
  position: relative;
  z-index: 2;
}

.small-hero h1,
.category-hero h1,
.detail-info h1 {
  margin: 16px 0 14px;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.small-hero p,
.category-hero p,
.lead-text {
  max-width: 760px;
  margin: 0;
  color: #fff7ed;
  font-size: 18px;
  line-height: 1.85;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 34px;
  align-items: center;
}

.detail-poster {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.3);
}

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

.detail-poster span {
  position: absolute;
  right: 14px;
  top: 14px;
  padding: 7px 12px;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 950;
  background: linear-gradient(90deg, var(--amber-500), var(--rose-500));
}

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

.detail-actions {
  justify-content: flex-start;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #020617;
  box-shadow: 0 26px 70px rgba(2, 6, 23, 0.24);
  aspect-ratio: 16 / 9;
}

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

.player-cover {
  position: absolute;
  inset: 0;
  border: 0;
  color: #ffffff;
  cursor: pointer;
  background: linear-gradient(135deg, rgba(120, 53, 15, 0.8), rgba(136, 19, 55, 0.82), rgba(12, 74, 110, 0.8));
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  font-size: 20px;
  transition: opacity 180ms ease;
}

.player-shell.is-playing .player-cover {
  opacity: 0;
  pointer-events: none;
}

.play-circle {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amber-500), var(--rose-500));
  box-shadow: 0 20px 54px rgba(244, 63, 94, 0.4);
  font-size: 32px;
  padding-left: 5px;
}

.detail-content {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  padding: 8px 0 36px;
}

.detail-content article,
.detail-content aside {
  padding: 26px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.74);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

.detail-content h2 {
  margin: 0 0 12px;
  color: #9f1239;
  font-size: 24px;
}

.detail-content p {
  margin: 0 0 22px;
  color: #4b5563;
  font-size: 16px;
  line-height: 1.95;
}

.detail-content dl {
  margin: 0;
  display: grid;
  gap: 12px;
}

.detail-content dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.detail-content dd {
  margin: -8px 0 0;
  color: #111827;
  font-weight: 900;
  line-height: 1.7;
}

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

.prev-next-links {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 22px;
}

.prev-next-links a {
  flex: 1;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  color: #9f1239;
  font-weight: 900;
}

.site-footer {
  margin-top: 36px;
  padding: 42px 0;
  background: rgba(255, 255, 255, 0.62);
  border-top: 1px solid rgba(255, 255, 255, 0.78);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  gap: 16px;
  justify-items: center;
  text-align: center;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #4b5563;
  font-weight: 800;
}

.footer-links a:hover {
  color: var(--rose-600);
}

.footer-inner p {
  margin: 0;
  color: var(--muted);
}

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

@media (max-width: 1080px) {
  .category-grid,
  .movie-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .category-page-grid,
  .rank-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .main-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 76px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
  }

  .main-nav.open {
    display: flex;
  }

  .nav-link,
  .nav-drop > button {
    text-align: left;
    width: 100%;
  }

  .nav-drop:hover .drop-panel,
  .drop-panel {
    position: static;
    width: 100%;
    box-shadow: none;
    border: 0;
    display: grid;
    background: rgba(244, 63, 94, 0.06);
  }

  .hero,
  .hero-content {
    min-height: 620px;
    height: 620px;
  }

  .section-head,
  .filter-panel,
  .detail-actions,
  .prev-next-links {
    align-items: stretch;
    flex-direction: column;
  }

  .filter-hints {
    justify-content: flex-start;
  }

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

  .rank-row {
    grid-template-columns: 42px 52px 1fr auto;
  }

  .rank-meta {
    display: none;
  }

  .detail-layout,
  .detail-content {
    grid-template-columns: 1fr;
  }

  .detail-poster {
    width: min(260px, 78vw);
    margin: 0 auto;
  }
}

@media (max-width: 560px) {
  .container,
  .nav-wrap,
  .footer-inner {
    width: min(100% - 24px, 1180px);
  }

  .brand {
    font-size: 19px;
  }

  .hero-content {
    text-align: left;
    align-items: flex-start;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .hero-tags {
    justify-content: flex-start;
  }

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

  .rank-row.full,
  .rank-row {
    grid-template-columns: 38px 48px 1fr auto;
    gap: 8px;
  }

  .rank-row img {
    width: 48px;
    height: 64px;
  }

  .player-shell {
    border-radius: 20px;
  }

  .play-circle {
    width: 72px;
    height: 72px;
    font-size: 26px;
  }
}
