:root {
  --orange: #f97316;
  --orange-deep: #ea580c;
  --pink: #ec4899;
  --rose: #f43f5e;
  --purple: #8b5cf6;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #f3f4f6;
  --paper: #ffffff;
  --soft: #fff7ed;
  --shadow: 0 20px 45px rgba(31, 41, 55, 0.12);
  --shadow-soft: 0 12px 30px rgba(249, 115, 22, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: linear-gradient(135deg, #fff7ed 0%, #fff1f2 52%, #faf5ff 100%);
}

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.nav-wrap {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.logo-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: white;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  box-shadow: 0 12px 22px rgba(236, 72, 153, 0.28);
}

.logo-text {
  font-size: 1.45rem;
  background: linear-gradient(90deg, var(--orange), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-weight: 700;
  color: #4b5563;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--orange);
}

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

.mobile-toggle {
  display: none;
  border: 0;
  background: white;
  color: var(--ink);
  border-radius: 12px;
  width: 42px;
  height: 42px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.mobile-panel {
  display: none;
  padding: 0 16px 18px;
  border-top: 1px solid #f3f4f6;
}

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

.hero-carousel {
  position: relative;
  min-height: 72vh;
  overflow: hidden;
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background-size: cover;
  background-position: center;
  transition: opacity 0.6s ease;
}

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

.hero-content {
  position: relative;
  min-height: 72vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: white;
  max-width: 760px;
}

.hero-kicker,
.page-hero span,
.detail-badge {
  display: inline-flex;
  width: fit-content;
  padding: 8px 15px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--orange), var(--pink));
  color: white;
  font-size: 0.92rem;
  font-weight: 800;
  box-shadow: 0 12px 26px rgba(236, 72, 153, 0.22);
}

.hero-content h1 {
  margin: 0 0 20px;
  font-size: clamp(2.8rem, 7vw, 5.8rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.hero-content p {
  margin: 0 0 28px;
  max-width: 680px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  line-height: 1.8;
}

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

.hero-tags span,
.detail-tags span {
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.16);
  color: white;
  font-size: 0.85rem;
  font-weight: 700;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
}

.btn.primary {
  color: white;
  background: linear-gradient(90deg, var(--orange), var(--pink));
  box-shadow: 0 18px 34px rgba(236, 72, 153, 0.32);
}

.btn.ghost {
  color: white;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.btn.light {
  color: var(--orange);
  background: white;
}

.btn.wide {
  width: 100%;
}

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

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

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

.quick-search {
  margin-top: -34px;
  position: relative;
  z-index: 4;
}

.search-panel,
.tool-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.search-panel span {
  color: var(--orange);
  font-weight: 900;
}

.search-panel a,
.text-link,
.section-more {
  color: var(--orange);
  font-weight: 900;
}

.search-input {
  flex: 1;
  min-width: 180px;
  border: 1px solid #fed7aa;
  border-radius: 16px;
  padding: 14px 16px;
  outline: none;
  background: #fff7ed;
  color: var(--ink);
}

.search-input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.section {
  padding: 70px 0;
}

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

.section-heading h2,
.tool-bar h2,
.category-info h2,
.detail-content h2 {
  margin: 0 0 8px;
  font-size: clamp(1.85rem, 4vw, 2.65rem);
  line-height: 1.1;
  background: linear-gradient(90deg, var(--orange), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-heading p,
.tool-bar p,
.category-info p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.section-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.section-more span {
  transition: transform 0.2s ease;
}

.section-more:hover span {
  transform: translateX(4px);
}

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

.movie-card {
  display: block;
  overflow: hidden;
  border-radius: 24px;
  background: white;
  box-shadow: var(--shadow-soft);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.movie-cover {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.movie-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.75));
  transition: opacity 0.2s ease;
}

.movie-card:hover .movie-cover::after {
  opacity: 1;
}

.cover-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--orange);
  background: white;
  font-size: 0.76rem;
  font-weight: 900;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.12);
}

.cover-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  box-shadow: 0 16px 30px rgba(236, 72, 153, 0.35);
  opacity: 0;
  transform: translate(-50%, -42%) scale(0.9);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.movie-body {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.movie-body strong {
  font-size: 1.08rem;
  line-height: 1.3;
  transition: color 0.2s ease;
}

.movie-card:hover .movie-body strong {
  color: var(--orange);
}

.movie-meta,
.movie-desc {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.movie-desc {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-tags span {
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--orange);
  background: #ffedd5;
  font-size: 0.76rem;
  font-weight: 800;
}

.compact-card {
  border-radius: 18px;
}

.compact-card .movie-body {
  padding: 14px;
}

.compact-card .movie-desc,
.compact-card .movie-tags {
  display: none;
}

.category-band {
  background: linear-gradient(90deg, #ffedd5, #fce7f3);
}

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

.category-tile {
  min-height: 156px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  gap: 8px;
  padding: 20px;
  border-radius: 24px;
  overflow: hidden;
  color: white;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-tile span {
  font-size: 1.15rem;
  font-weight: 900;
}

.category-tile small {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.5;
}

.rank-panel {
  padding: 30px;
  border-radius: 28px;
  background: white;
  box-shadow: var(--shadow);
}

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

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

.rank-row {
  display: grid;
  grid-template-columns: 48px 74px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 20px;
  background: #fff7ed;
  transition: transform 0.2s ease, background 0.2s ease;
}

.rank-row:hover {
  transform: translateX(4px);
  background: #ffedd5;
}

.rank-num {
  color: var(--orange);
  font-size: 1.1rem;
  font-weight: 1000;
}

.rank-thumb {
  width: 74px;
  aspect-ratio: 3 / 4;
  border-radius: 15px;
  background-size: cover;
  background-position: center;
}

.rank-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.rank-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-copy small {
  color: var(--muted);
}

.rank-score {
  color: var(--pink);
  font-weight: 1000;
}

.cta-band,
.page-hero {
  background: linear-gradient(135deg, var(--orange), var(--pink));
  color: white;
}

.cta-content {
  padding: 76px 0;
  text-align: center;
}

.cta-content h2,
.page-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 1.08;
}

.cta-content p,
.page-hero p {
  margin: 0 auto 28px;
  max-width: 760px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.14rem;
  line-height: 1.75;
}

.page-hero {
  padding: 84px 0;
  text-align: center;
}

.slim-hero {
  padding: 62px 0;
}

.category-overview {
  display: grid;
  gap: 28px;
  padding: 70px 0;
}

.category-overview-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 26px;
  padding: 24px;
  border-radius: 30px;
  background: white;
  box-shadow: var(--shadow-soft);
}

.category-cover {
  min-height: 300px;
  display: flex;
  align-items: end;
  padding: 22px;
  border-radius: 24px;
  color: white;
  background-size: cover;
  background-position: center;
}

.category-cover span {
  font-size: 1.6rem;
  font-weight: 1000;
}

.category-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}

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

.tool-bar {
  margin-bottom: 28px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 24px 0;
  color: var(--muted);
  font-size: 0.95rem;
}

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

.breadcrumb strong {
  color: var(--ink);
}

.detail-main {
  background: linear-gradient(135deg, #fff7ed, #fdf2f8 50%, #faf5ff);
}

.watch-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.75fr);
  gap: 28px;
  align-items: stretch;
  padding-bottom: 48px;
}

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

.video-node {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
  object-fit: contain;
}

.play-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: white;
  background: radial-gradient(circle at center, rgba(249, 115, 22, 0.18), rgba(2, 6, 23, 0.56));
  cursor: pointer;
}

.play-layer[hidden] {
  display: none;
}

.play-ring {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  padding-left: 5px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  box-shadow: 0 18px 42px rgba(236, 72, 153, 0.4);
  font-size: 2.1rem;
}

.play-layer strong {
  font-size: 1.15rem;
}

.watch-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 30px;
  border-radius: 30px;
  background: white;
  box-shadow: var(--shadow-soft);
}

.watch-info h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
}

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

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

.detail-meta-grid span {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 18px;
  background: #fff7ed;
  color: var(--muted);
}

.detail-meta-grid strong {
  color: var(--ink);
}

.detail-tags span {
  color: var(--orange);
  background: #ffedd5;
}

.detail-content {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 28px;
  align-items: stretch;
}

.detail-content article,
.detail-content aside,
.poster-card {
  border-radius: 28px;
  background: white;
  box-shadow: var(--shadow-soft);
}

.detail-content article {
  padding: 34px;
}

.detail-content p {
  color: #4b5563;
  line-height: 1.95;
  font-size: 1.03rem;
}

.poster-card {
  min-height: 100%;
  display: flex;
  align-items: end;
  padding: 24px;
  color: white;
  background-size: cover;
  background-position: center;
}

.poster-card span {
  font-size: 1.5rem;
  font-weight: 1000;
}

.related-section {
  padding-bottom: 84px;
}

.site-footer {
  background: #111827;
  color: rgba(255, 255, 255, 0.78);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 34px;
  padding: 48px 0;
}

.footer-logo {
  color: white;
  font-size: 1.4rem;
}

.site-footer p {
  max-width: 540px;
  line-height: 1.8;
}

.site-footer strong {
  display: block;
  margin-bottom: 16px;
  color: white;
}

.site-footer a:not(.footer-logo) {
  display: block;
  margin: 9px 0;
  color: rgba(255, 255, 255, 0.7);
}

.site-footer a:hover {
  color: white;
}

.footer-bottom {
  padding: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  color: rgba(255, 255, 255, 0.58);
}

[data-hidden="true"] {
  display: none !important;
}

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

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

  .watch-layout,
  .detail-content,
  .category-overview-card {
    grid-template-columns: 1fr;
  }

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

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

  .mobile-toggle {
    display: block;
  }

  .hero-carousel,
  .hero-content {
    min-height: 78vh;
  }

  .hero-content {
    padding-top: 28px;
  }

  .hero-content h1 {
    font-size: 2.7rem;
  }

  .search-panel,
  .tool-bar,
  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

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

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

  .rank-row {
    grid-template-columns: 38px 58px 1fr;
  }

  .rank-score {
    grid-column: 3;
  }

  .section {
    padding: 48px 0;
  }

  .watch-info,
  .detail-content article,
  .rank-panel,
  .category-overview-card {
    padding: 20px;
    border-radius: 22px;
  }

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