:root {
  --orange: #f97316;
  --orange-dark: #ea580c;
  --pink: #ec4899;
  --rose: #f43f5e;
  --purple: #8b5cf6;
  --slate: #111827;
  --muted: #6b7280;
  --line: rgba(17, 24, 39, 0.1);
  --surface: rgba(255, 255, 255, 0.86);
  --shadow: 0 18px 48px rgba(249, 115, 22, 0.16);
  --shadow-strong: 0 24px 70px rgba(236, 72, 153, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--slate);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: linear-gradient(135deg, #fff7ed 0%, #fdf2f8 48%, #faf5ff 100%);
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.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.86);
  border-bottom: 1px solid rgba(249, 115, 22, 0.12);
  backdrop-filter: blur(18px);
}

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

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 24px;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, var(--orange), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-logo-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  font-size: 15px;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  box-shadow: 0 10px 24px rgba(249, 115, 22, 0.32);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 15px;
  font-weight: 700;
  color: #374151;
}

.nav-link {
  position: relative;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--orange), var(--pink));
  transition: width 0.2s ease;
}

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

.nav-link:hover::after {
  width: 100%;
}

.mobile-menu-button {
  width: 42px;
  height: 42px;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 0;
  border-radius: 12px;
  background: #fff7ed;
}

.mobile-menu-button span {
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: var(--slate);
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 12px;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}

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

.mobile-nav-link {
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 700;
  color: #374151;
}

.mobile-nav-link:hover {
  color: var(--orange);
  background: #fff7ed;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-slide.is-active {
  opacity: 1;
  z-index: 2;
}

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

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.52) 48%, rgba(0, 0, 0, 0.08) 100%);
}

.hero-content {
  position: absolute;
  inset: 0;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  color: #fff;
  z-index: 3;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  margin-bottom: 18px;
  border-radius: 999px;
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  background: linear-gradient(90deg, var(--orange), var(--pink));
  box-shadow: 0 12px 28px rgba(249, 115, 22, 0.34);
}

.hero-content h1 {
  max-width: 760px;
  margin: 0 0 20px;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.hero-content p {
  max-width: 660px;
  margin: 0 0 34px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.8;
}

.hero-actions,
.card-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.primary-action,
.secondary-action,
.light-action,
.card-button,
.rank-watch,
.inline-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-action,
.card-button,
.rank-watch,
.inline-action {
  color: #fff;
  background: linear-gradient(90deg, var(--orange), var(--pink));
  box-shadow: 0 14px 30px rgba(249, 115, 22, 0.25);
}

.secondary-action {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.light-action {
  color: var(--orange-dark);
  background: #fff;
  box-shadow: 0 18px 38px rgba(255, 255, 255, 0.24);
}

.primary-action:hover,
.secondary-action:hover,
.light-action:hover,
.card-button:hover,
.rank-watch:hover,
.inline-action:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow-strong);
}

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

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

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

.search-section {
  margin-top: 34px;
}

.search-panel {
  padding: 22px;
  border: 1px solid rgba(249, 115, 22, 0.14);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.search-label {
  display: block;
  margin-bottom: 10px;
  font-weight: 900;
  color: #374151;
}

.search-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.search-line input {
  width: 100%;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid #fed7aa;
  border-radius: 18px;
  outline: none;
  background: #fff;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

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

.search-line button,
.filter-chip {
  border: 0;
  border-radius: 999px;
  color: #7c2d12;
  font-weight: 800;
  background: #ffedd5;
}

.search-line button {
  padding: 0 20px;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.filter-chip {
  min-height: 36px;
  padding: 0 16px;
}

.filter-chip.is-active,
.filter-chip:hover {
  color: #fff;
  background: linear-gradient(90deg, var(--orange), var(--pink));
}

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

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

.section-heading h2,
.center-block h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, var(--orange), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-heading p,
.center-block p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.section-more {
  color: var(--orange-dark);
  font-weight: 900;
}

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

.category-tile {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: var(--shadow);
  isolation: isolate;
  transform: translateZ(0);
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.1), rgba(17, 24, 39, 0.76));
}

.category-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.category-tile span,
.category-tile strong {
  position: absolute;
  left: 18px;
  right: 18px;
  z-index: 2;
  color: #fff;
}

.category-tile span {
  bottom: 56px;
  font-size: 20px;
  font-weight: 900;
}

.category-tile strong {
  bottom: 18px;
  min-height: 34px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  line-height: 1.45;
}

.category-tile:hover img {
  transform: scale(1.08);
}

.movie-grid {
  display: grid;
  gap: 22px;
}

.movie-grid-four {
  grid-template-columns: repeat(4, 1fr);
}

.movie-grid-five {
  grid-template-columns: repeat(5, 1fr);
}

.movie-grid-six {
  grid-template-columns: repeat(6, 1fr);
}

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(249, 115, 22, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 38px rgba(249, 115, 22, 0.12);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

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

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

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

.card-badge,
.rank-mark {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  background: linear-gradient(90deg, var(--orange), var(--pink));
}

.card-badge {
  left: 12px;
  top: 12px;
  padding: 6px 10px;
}

.rank-mark {
  right: 12px;
  top: 12px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
}

.movie-card-body {
  padding: 18px;
}

.movie-meta-line {
  color: var(--orange-dark);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
}

.movie-card h3,
.rank-content h3,
.collection-body h2 {
  margin: 8px 0 8px;
  color: #111827;
  font-size: 20px;
  line-height: 1.35;
}

.movie-card h3 a:hover,
.rank-content h3 a:hover,
.collection-body h2 a:hover {
  color: var(--orange);
}

.movie-card p,
.rank-content p,
.collection-body p,
.content-card p {
  color: var(--muted);
  line-height: 1.75;
}

.movie-card p {
  min-height: 72px;
  margin: 0 0 14px;
  font-size: 14px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.tag-row span {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  color: #831843;
  font-size: 12px;
  font-weight: 800;
  background: #fce7f3;
}

.score-pill {
  color: #9a3412;
  font-size: 12px;
  font-weight: 900;
}

.wide-band {
  background: linear-gradient(90deg, rgba(255, 237, 213, 0.75), rgba(252, 231, 243, 0.75));
}

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

.compact-rank-list {
  grid-template-columns: repeat(2, 1fr);
}

.rank-card {
  display: grid;
  grid-template-columns: auto 112px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 16px;
  border: 1px solid rgba(249, 115, 22, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 32px rgba(249, 115, 22, 0.1);
}

.list-rank {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--orange), var(--pink));
}

.rank-poster {
  display: block;
  width: 112px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 16px;
}

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

.rank-content h3 {
  font-size: 22px;
}

.rank-content p {
  margin: 0;
}

.cta-band {
  padding: 74px 0;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--pink));
}

.cta-inner {
  text-align: center;
}

.cta-inner h2 {
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 56px);
  letter-spacing: -0.05em;
}

.cta-inner p {
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 20px;
}

.page-hero {
  padding: 70px 0 56px;
}

.gradient-hero {
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--pink));
}

.page-hero h1 {
  margin: 14px 0 14px;
  font-size: clamp(38px, 6vw, 66px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 20px;
  line-height: 1.8;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
}

.breadcrumb a {
  color: inherit;
  opacity: 0.86;
}

.breadcrumb a:hover {
  opacity: 1;
}

.breadcrumb span::before,
.breadcrumb a + a::before {
  content: "/";
  margin-right: 8px;
  opacity: 0.6;
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.collection-card {
  overflow: hidden;
  border-radius: 26px;
  background: #fff;
  box-shadow: var(--shadow);
}

.collection-images {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 0.9fr;
  gap: 6px;
  height: 190px;
  padding: 8px;
  background: #fff7ed;
}

.collection-images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
}

.collection-body {
  padding: 22px;
}

.collection-body p {
  min-height: 64px;
}

.center-block {
  text-align: center;
}

.inline-action {
  margin-top: 18px;
}

.detail-top {
  padding: 52px 0 38px;
  color: #fff;
  background: radial-gradient(circle at 20% 20%, rgba(249, 115, 22, 0.9), transparent 32%), linear-gradient(135deg, #111827, #3b0764 58%, #831843);
}

.detail-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 36px;
  align-items: center;
  margin-top: 28px;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.36);
}

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

.detail-info h1 {
  margin: 0 0 16px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.06em;
}

.detail-one-line {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 20px;
  line-height: 1.8;
}

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

.detail-meta-grid span {
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.detail-tags span {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
}

.watch-section {
  padding-top: 36px;
}

.watch-panel,
.content-card {
  overflow: hidden;
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow);
}

.watch-panel h2 {
  margin: 0;
  padding: 24px 26px;
  color: #111827;
  font-size: 26px;
}

.player-root {
  position: relative;
  overflow: hidden;
  background: #000;
}

.player-root video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  border: 0;
  color: #fff;
  font-weight: 900;
  font-size: 18px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.64));
  z-index: 3;
}

.player-overlay[hidden] {
  display: none;
}

.play-circle {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  padding-left: 5px;
  border-radius: 50%;
  color: #fff;
  font-size: 30px;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  box-shadow: 0 22px 46px rgba(249, 115, 22, 0.35);
}

.player-message {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  padding: 12px 18px;
  border-radius: 999px;
  color: #fff;
  font-weight: 800;
  background: rgba(0, 0, 0, 0.72);
  transform: translate(-50%, -50%);
}

.player-message[hidden] {
  display: none;
}

.detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.content-card {
  padding: 28px;
}

.content-card h2 {
  margin: 0 0 14px;
  font-size: 28px;
}

.content-card p {
  margin: 0;
  font-size: 17px;
}

.site-footer {
  padding: 44px 0;
  border-top: 1px solid rgba(249, 115, 22, 0.14);
  background: rgba(255, 255, 255, 0.72);
}

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

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 20px;
  color: #374151;
  font-weight: 800;
}

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

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

[data-card].is-hidden {
  display: none;
}

@media (max-width: 1120px) {
  .desktop-nav {
    gap: 14px;
    font-size: 14px;
  }

  .category-grid,
  .movie-grid-six,
  .movie-grid-five {
    grid-template-columns: repeat(4, 1fr);
  }

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

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

  .mobile-menu-button {
    display: flex;
  }

  .hero-carousel {
    height: 72vh;
    min-height: 520px;
  }

  .hero-content h1 {
    font-size: 44px;
  }

  .category-grid,
  .movie-grid-four,
  .movie-grid-five,
  .movie-grid-six {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .rank-watch {
    grid-column: 2 / 4;
  }

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

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

@media (max-width: 620px) {
  .container,
  .site-header-inner,
  .site-footer-inner,
  .mobile-nav {
    width: min(100% - 22px, 1180px);
  }

  .site-logo,
  .footer-logo {
    font-size: 21px;
  }

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

  .hero-content {
    justify-content: flex-end;
    padding-bottom: 92px;
  }

  .hero-content h1 {
    font-size: 38px;
  }

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

  .search-line {
    grid-template-columns: 1fr;
  }

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

  .category-grid,
  .movie-grid-four,
  .movie-grid-five,
  .movie-grid-six,
  .collection-grid {
    grid-template-columns: 1fr;
  }

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

  .rank-card {
    grid-template-columns: 64px 1fr;
    align-items: flex-start;
  }

  .list-rank {
    position: absolute;
    margin: 8px;
    z-index: 2;
  }

  .rank-poster {
    width: 100%;
    grid-column: 1 / 3;
  }

  .rank-content,
  .rank-watch {
    grid-column: 1 / 3;
  }

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

  .content-card,
  .watch-panel h2 {
    padding: 22px;
  }
}
