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

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

button,
input {
  font: inherit;
}

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

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  height: 70px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border-radius: 999px;
  background: linear-gradient(135deg, #fb923c, #ec4899);
  box-shadow: 0 12px 24px rgba(236, 72, 153, 0.28);
}

.brand-name {
  font-size: 20px;
  background: linear-gradient(90deg, var(--orange-dark), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link {
  padding: 10px 16px;
  border-radius: 14px;
  color: #374151;
  font-weight: 650;
  transition: 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
  background: linear-gradient(90deg, #fb923c, #ec4899);
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.22);
}

.menu-button {
  display: none;
  border: 0;
  border-radius: 14px;
  background: #ffffff;
  color: var(--orange-dark);
  width: 42px;
  height: 42px;
}

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

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

.hero {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  background: linear-gradient(135deg, #fb923c 0%, #ec4899 48%, #7e22ce 100%);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.25;
  background-image: radial-gradient(circle at 10px 10px, rgba(255, 255, 255, 0.45) 2px, transparent 0);
  background-size: 38px 38px;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  background: linear-gradient(0deg, #fff7ed 0%, rgba(255, 247, 237, 0) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  min-height: 650px;
  margin: 0 auto;
  padding: 70px 24px 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-slide {
  display: none;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.72fr);
  gap: 46px;
  align-items: center;
}

.hero-slide.active {
  display: grid;
}

.hero-copy {
  color: #ffffff;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 14px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  color: var(--orange-dark);
  background: rgba(255, 255, 255, 0.88);
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(40px, 6vw, 74px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.hero h2 {
  margin: 0 0 20px;
  font-size: clamp(28px, 3vw, 46px);
}

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

.hero-tags,
.tag-row,
.filter-chips,
.hero-actions,
.hero-categories,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.hero-tags span,
.tag-row span {
  padding: 7px 11px;
  border-radius: 999px;
  color: #9a3412;
  background: #ffedd5;
  font-size: 12px;
  font-weight: 750;
}

.hero-actions {
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 800;
  transition: 0.25s ease;
}

.button-light {
  color: var(--orange-dark);
  background: #ffffff;
  box-shadow: 0 20px 35px rgba(17, 24, 39, 0.18);
}

.button-ghost {
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
}

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

.hero-poster {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 32px;
  border: 8px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 35px 80px rgba(17, 24, 39, 0.38);
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.28), transparent 62%);
}

.hero-bottom {
  margin-top: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.hero-dots {
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 34px;
  height: 9px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
}

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

.hero-categories a {
  padding: 9px 13px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
}

.page-main {
  padding-top: 0;
}

.section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 70px 24px;
}

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

.section-heading.centered {
  justify-content: center;
  text-align: center;
}

.section-heading h2,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: -0.03em;
}

.section-heading p,
.page-hero p {
  color: var(--muted);
}

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

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.08);
  transition: 0.28s ease;
}

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

.movie-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.movie-thumb img {
  transition: transform 0.45s ease;
}

.movie-card:hover .movie-thumb img {
  transform: scale(1.07);
}

.movie-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--orange);
  font-size: 12px;
  font-weight: 800;
}

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

.movie-card h3,
.rank-content h3,
.overview-card h2 {
  margin: 0 0 10px;
  font-size: 19px;
  line-height: 1.35;
}

.movie-line,
.rank-content p,
.overview-card p {
  display: -webkit-box;
  margin: 0 0 14px;
  overflow: hidden;
  color: #4b5563;
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

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

.movie-meta span {
  padding: 5px 8px;
  border-radius: 999px;
  background: #f3f4f6;
}

.rank-section {
  max-width: none;
  background: linear-gradient(90deg, #fce7f3, #ffedd5);
}

.rank-section > .section-heading,
.rank-section > .rank-list,
.rank-section > .filter-panel {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

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

.rank-item {
  display: grid;
  grid-template-columns: auto 128px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.07);
}

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

.rank-cover {
  display: block;
  height: 84px;
  overflow: hidden;
  border-radius: 14px;
}

.category-section,
.latest-section,
.featured-section {
  position: relative;
}

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

.category-card {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  padding: 24px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.08);
}

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

.category-card img {
  position: absolute;
  inset: 0;
}

.category-card > span,
.category-card > strong,
.category-card > p {
  position: relative;
  z-index: 2;
}

.category-icon {
  display: inline-flex;
  margin-bottom: 50px;
  width: 58px;
  height: 58px;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  color: #ffffff;
  background: linear-gradient(135deg, #fb923c, #ec4899);
  font-weight: 900;
}

.category-card strong {
  display: block;
  color: #ffffff;
  font-size: 24px;
}

.category-card p {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
}

.page-hero {
  position: relative;
  overflow: hidden;
  margin: 0 0 18px;
  padding: 96px 24px 70px;
  background: linear-gradient(135deg, #fb923c, #ec4899 55%, #7e22ce);
  color: #ffffff;
}

.page-hero > div {
  max-width: 1180px;
  margin: 0 auto;
}

.page-hero p {
  max-width: 780px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  line-height: 1.75;
}

.filter-panel {
  margin-bottom: 26px;
  padding: 18px;
  border: 1px solid rgba(254, 215, 170, 0.7);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.06);
}

.filter-panel input {
  width: 100%;
  min-height: 48px;
  padding: 0 18px;
  border: 2px solid #fed7aa;
  border-radius: 999px;
  outline: 0;
  background: #ffffff;
}

.filter-panel input:focus {
  border-color: #fb923c;
}

.filter-chips {
  margin-top: 14px;
}

.filter-chips button {
  border: 0;
  padding: 8px 13px;
  border-radius: 999px;
  color: #9a3412;
  background: #ffedd5;
}

.filter-chips button.active,
.filter-chips button:hover {
  color: #ffffff;
  background: linear-gradient(90deg, #fb923c, #ec4899);
}

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

.overview-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 22px;
  padding: 20px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.08);
}

.overview-image {
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 18px;
}

.overview-card ul {
  margin: 0 0 12px;
  padding-left: 18px;
  color: #4b5563;
  line-height: 1.8;
}

.breadcrumb {
  max-width: 1280px;
  margin: 0 auto 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: rgba(255, 255, 255, 0.86);
}

.detail-hero {
  padding: 94px 24px 60px;
  background: radial-gradient(circle at top left, #fb923c, transparent 32%), linear-gradient(135deg, #111827, #3b0764 52%, #9d174d);
  color: #ffffff;
}

.detail-layout {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.58fr);
  gap: 30px;
  align-items: start;
}

.player-frame {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000000;
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.35);
}

.player-frame video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.05));
}

.player-overlay.is-hidden {
  display: none;
}

.player-start {
  width: 86px;
  height: 86px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #fb923c, #ec4899);
  font-size: 32px;
  box-shadow: 0 20px 48px rgba(236, 72, 153, 0.42);
}

.detail-info {
  padding: 28px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.detail-one-line {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.75;
}

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

.detail-meta-grid div {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
}

.detail-meta-grid strong {
  display: block;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
}

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

.detail-text-section {
  padding-top: 52px;
  padding-bottom: 28px;
}

.detail-article {
  padding: 32px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.08);
}

.detail-article h2 {
  margin: 0 0 14px;
  font-size: 28px;
}

.detail-article p {
  margin: 0 0 28px;
  color: #374151;
  line-height: 1.95;
  font-size: 17px;
}

.footer {
  margin-top: 40px;
  color: #d1d5db;
  background: linear-gradient(135deg, #111827, #1f2937);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 44px 24px;
}

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

.footer-links a {
  color: #fbbf24;
  font-weight: 700;
}

.copyright {
  margin-top: 22px;
  font-size: 13px;
}

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

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

  .hero-slide,
  .detail-layout,
  .overview-grid,
  .rank-list {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    max-width: 620px;
  }
}

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

  .menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .brand-name {
    font-size: 18px;
  }

  .hero-inner {
    padding-top: 44px;
    padding-bottom: 58px;
  }

  .hero-slide {
    gap: 28px;
  }

  .hero p {
    font-size: 17px;
  }

  .hero-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .section {
    padding: 48px 16px;
  }

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

  .movie-grid-three,
  .movie-grid-four,
  .category-grid,
  .overview-grid {
    grid-template-columns: 1fr;
  }

  .rank-item,
  .overview-card {
    grid-template-columns: 1fr;
  }

  .rank-cover {
    height: 160px;
  }

  .detail-hero,
  .page-hero {
    padding-left: 16px;
    padding-right: 16px;
  }

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