
:root {
  --orange: #f97316;
  --orange-dark: #ea580c;
  --pink: #ec4899;
  --purple: #7c3aed;
  --ink: #111827;
  --muted: #6b7280;
  --line: #fed7aa;
  --soft: #fff7ed;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(17, 24, 39, 0.14);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #fff7ed 0%, #fdf2f8 38%, #ffffff 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(254, 215, 170, 0.78);
  background: rgba(255, 247, 237, 0.92);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  max-width: 1180px;
  height: 68px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #fb923c, #ec4899);
  box-shadow: 0 10px 26px rgba(249, 115, 22, 0.35);
}

.brand-text {
  font-size: 20px;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, #ea580c, #db2777);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link,
.mobile-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #374151;
  font-weight: 700;
  transition: all 0.25s ease;
}

.nav-link {
  padding: 10px 16px;
}

.nav-link:hover,
.mobile-link:hover {
  color: var(--orange-dark);
  background: rgba(255, 255, 255, 0.62);
}

.nav-link.active,
.mobile-link.active {
  color: #fff;
  background: linear-gradient(90deg, #fb923c, #ec4899);
  box-shadow: 0 10px 24px rgba(236, 72, 153, 0.2);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
}

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

.mobile-nav {
  display: none;
  padding: 10px 18px 18px;
  border-top: 1px solid rgba(254, 215, 170, 0.75);
}

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

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

.page-main {
  min-height: 70vh;
}

.hero {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  background: linear-gradient(135deg, #f97316, #ec4899 55%, #7c3aed);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.28), transparent 24%), radial-gradient(circle at 78% 8%, rgba(255, 255, 255, 0.18), transparent 22%), linear-gradient(0deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.08));
  pointer-events: none;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.32;
  background-image: var(--hero-bg);
  background-size: cover;
  background-position: center;
  filter: saturate(1.08);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.76), rgba(17, 24, 39, 0.18) 54%, rgba(17, 24, 39, 0.72)), linear-gradient(0deg, rgba(255, 247, 237, 0) 70%, rgba(255, 247, 237, 0.08));
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 36px));
  display: grid;
  grid-template-columns: 1.1fr 0.72fr;
  align-items: center;
  gap: 44px;
  padding: 92px 0 82px;
}

.hero-copy {
  color: #fff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  margin-bottom: 22px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(12px);
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  font-weight: 700;
}

.hero h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 1.04;
  letter-spacing: -0.06em;
  font-weight: 900;
}

.hero h2 {
  margin: 18px 0 0;
  color: #fff7ed;
  font-size: clamp(24px, 3vw, 42px);
  line-height: 1.15;
}

.hero p {
  max-width: 680px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 22px;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

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

.btn.primary {
  color: #fff;
  background: linear-gradient(90deg, #fb923c, #ec4899);
  box-shadow: 0 18px 38px rgba(236, 72, 153, 0.3);
}

.btn.light {
  color: #ea580c;
  background: #fff;
  box-shadow: 0 18px 38px rgba(255, 255, 255, 0.2);
}

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

.hero-search {
  display: flex;
  max-width: 560px;
  margin-top: 26px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 18px;
  color: #fff;
  background: transparent;
}

.hero-search input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.hero-search button {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  background: linear-gradient(90deg, #fb923c, #ec4899);
}

.hero-panel {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 70px rgba(17, 24, 39, 0.34);
  backdrop-filter: blur(20px);
}

.hero-panel img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
}

.hero-panel-body {
  padding: 22px;
  color: #fff;
}

.hero-panel-body strong {
  display: block;
  font-size: 22px;
  line-height: 1.25;
}

.hero-panel-body span {
  display: inline-flex;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

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

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

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

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 68px 18px;
}

.section.alt {
  max-width: none;
  background: linear-gradient(90deg, rgba(252, 231, 243, 0.72), rgba(255, 237, 213, 0.74));
}

.section.alt > .section-inner {
  max-width: 1180px;
  margin: 0 auto;
}

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

.section-title {
  margin: 0;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-desc {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.more-link {
  color: var(--orange-dark);
  font-weight: 800;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(254, 215, 170, 0.62);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.08);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  border-color: rgba(251, 146, 60, 0.52);
  box-shadow: var(--shadow);
}

.movie-card.hidden {
  display: none;
}

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

.poster img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.poster-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(90deg, #fb923c, #ec4899);
  font-weight: 800;
  font-size: 12px;
}

.card-body {
  padding: 18px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #6b7280;
  font-size: 13px;
}

.card-body h2 {
  margin: 10px 0 8px;
  min-height: 54px;
  color: #111827;
  font-size: 19px;
  line-height: 1.35;
}

.card-body h2 a:hover {
  color: var(--orange-dark);
}

.card-body p {
  min-height: 48px;
  margin: 0;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.7;
}

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

.tag-row span,
.meta-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  color: #ea580c;
  background: #fff7ed;
  font-size: 12px;
  font-weight: 700;
}

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

.category-tile {
  position: relative;
  overflow: hidden;
  min-height: 180px;
  padding: 24px;
  border-radius: 26px;
  color: #fff;
  background: linear-gradient(135deg, #fb923c, #ec4899 70%, #7c3aed);
  box-shadow: 0 18px 38px rgba(236, 72, 153, 0.16);
}

.category-tile::after {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  right: -48px;
  bottom: -54px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.category-tile h2 {
  position: relative;
  z-index: 1;
  margin: 0 0 12px;
  font-size: 25px;
}

.category-tile p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.7;
}

.category-tile span {
  position: relative;
  z-index: 1;
  display: inline-flex;
  margin-top: 18px;
  font-weight: 800;
}

.filter-bar {
  position: sticky;
  top: 78px;
  z-index: 10;
  display: grid;
  gap: 14px;
  margin-bottom: 28px;
  padding: 16px;
  border: 1px solid rgba(254, 215, 170, 0.7);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.07);
  backdrop-filter: blur(16px);
}

.filter-line {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.filter-input {
  width: 100%;
  min-height: 48px;
  border: 2px solid #fed7aa;
  border-radius: 16px;
  padding: 0 16px;
  outline: 0;
  background: #fff;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.filter-input:focus {
  border-color: #fb923c;
  box-shadow: 0 0 0 4px rgba(251, 146, 60, 0.12);
}

.filter-chip {
  min-height: 38px;
  border: 1px solid rgba(254, 215, 170, 0.9);
  border-radius: 999px;
  padding: 0 14px;
  color: #9a3412;
  background: #fff7ed;
  font-weight: 800;
  cursor: pointer;
}

.filter-chip.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(90deg, #fb923c, #ec4899);
}

.empty-state {
  display: none;
  padding: 34px;
  border-radius: 22px;
  color: #6b7280;
  text-align: center;
  background: #fff;
}

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

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

.rank-item a {
  display: grid;
  grid-template-columns: 58px 92px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(254, 215, 170, 0.7);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rank-item a:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px rgba(17, 24, 39, 0.1);
}

.rank-num {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, #fb923c, #ec4899);
}

.rank-item img {
  width: 92px;
  height: 62px;
  border-radius: 16px;
  object-fit: cover;
}

.rank-text strong {
  display: block;
  font-size: 17px;
  line-height: 1.35;
}

.rank-text em {
  display: block;
  margin-top: 5px;
  color: #6b7280;
  font-size: 13px;
  font-style: normal;
}

.breadcrumb {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 18px 0;
  color: #6b7280;
  font-size: 14px;
}

.breadcrumb a {
  color: #ea580c;
  font-weight: 800;
}

.detail-layout {
  max-width: 1180px;
  margin: 0 auto;
  padding: 26px 18px 70px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
}

.detail-main,
.detail-side,
.content-card {
  border: 1px solid rgba(254, 215, 170, 0.66);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 14px 32px rgba(17, 24, 39, 0.08);
}

.detail-main {
  overflow: hidden;
}

.player-frame {
  position: relative;
  overflow: hidden;
  background: #000;
  aspect-ratio: 16 / 9;
}

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

.player-cover {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  color: #fff;
  background: #111827;
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
}

.player-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.08));
}

.play-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #fb923c, #ec4899);
  box-shadow: 0 20px 44px rgba(236, 72, 153, 0.38);
  transform: translate(-50%, -50%);
}

.play-triangle {
  width: 0;
  height: 0;
  margin-left: 6px;
  border-top: 16px solid transparent;
  border-bottom: 16px solid transparent;
  border-left: 24px solid #fff;
}

.play-title {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 24px;
  font-size: clamp(20px, 4vw, 34px);
  font-weight: 900;
  line-height: 1.2;
  text-align: left;
}

.detail-content {
  padding: 26px;
}

.detail-content h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

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

.lead {
  margin: 0 0 24px;
  color: #374151;
  font-size: 18px;
  line-height: 1.8;
}

.content-card {
  padding: 24px;
  margin-top: 20px;
}

.content-card h2,
.detail-side h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.content-card p {
  margin: 0;
  color: #374151;
  line-height: 1.9;
}

.detail-side {
  padding: 18px;
  align-self: start;
  position: sticky;
  top: 96px;
}

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

.mini-card {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 12px;
  align-items: center;
  padding: 8px;
  border-radius: 18px;
  transition: background 0.25s ease;
}

.mini-card:hover {
  background: #fff7ed;
}

.mini-card img {
  width: 100px;
  height: 66px;
  border-radius: 14px;
  object-fit: cover;
}

.mini-card span {
  font-weight: 800;
  line-height: 1.4;
}

.site-footer {
  color: #d1d5db;
  background: linear-gradient(135deg, #111827, #1f2937 55%, #111827);
}

.footer-grid {
  max-width: 1180px;
  margin: 0 auto;
  padding: 54px 18px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 28px;
}

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

.site-footer h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 18px;
}

.site-footer p {
  margin: 0;
  color: #9ca3af;
  line-height: 1.8;
}

.site-footer a {
  display: block;
  margin: 8px 0;
  color: #d1d5db;
}

.site-footer a:hover {
  color: #fb923c;
}

.footer-bottom {
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 18px 34px;
  border-top: 1px solid rgba(75, 85, 99, 0.8);
  color: #9ca3af;
  text-align: center;
}

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

  .menu-button {
    display: block;
  }

  .hero {
    min-height: 760px;
  }

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

  .hero-panel {
    max-width: 520px;
  }

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

  .detail-side {
    position: static;
  }
}

@media (max-width: 640px) {
  .brand-text {
    font-size: 18px;
  }

  .hero {
    min-height: 800px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero-search {
    border-radius: 24px;
    align-items: stretch;
    flex-direction: column;
  }

  .hero-search input {
    min-height: 46px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .section {
    padding: 50px 14px;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

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

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

  .rank-item img {
    width: 82px;
    height: 58px;
  }

  .detail-content,
  .content-card {
    padding: 18px;
  }

  .mini-card {
    grid-template-columns: 88px 1fr;
  }

  .mini-card img {
    width: 88px;
    height: 58px;
  }
}
