:root {
  --page: #fffaf2;
  --surface: #ffffff;
  --surface-soft: #fff4df;
  --ink: #172033;
  --muted: #667085;
  --line: rgba(17, 24, 39, 0.1);
  --brand: #f97316;
  --brand-dark: #c2410c;
  --accent: #f59e0b;
  --rose: #f43f5e;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(251, 146, 60, 0.2), transparent 34rem),
    linear-gradient(180deg, #fff8ed 0%, #ffffff 42%, #fff7ed 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.container-narrow {
  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);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.site-nav {
  width: min(1180px, calc(100% - 32px));
  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;
  color: #111827;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.logo-mark {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand), var(--rose));
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.28);
}

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

.nav-link {
  padding: 10px 14px;
  color: #475467;
  border-radius: 999px;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--brand-dark);
  background: #ffedd5;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  background: #111827;
  border-radius: 999px;
}

.hero-slider {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: #111827;
}

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

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transform: scale(1.01);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.hero-backdrop {
  background-size: cover;
  background-position: center;
  filter: blur(2px) saturate(1.15);
  transform: scale(1.04);
}

.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.72) 46%, rgba(15, 23, 42, 0.32) 100%),
    linear-gradient(0deg, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.1) 45%, rgba(15, 23, 42, 0.45) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 620px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) 360px;
  align-items: center;
  gap: 56px;
  padding: 64px 0;
  color: #fff;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 14px;
  padding: 7px 12px;
  color: #fff7ed;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.22);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero-copy h1,
.subpage-hero h1,
.detail-copy h1 {
  margin: 0;
  font-size: clamp(34px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.hero-copy h2 {
  margin: 18px 0 12px;
  color: #fed7aa;
  font-size: clamp(24px, 4vw, 42px);
  line-height: 1.12;
}

.hero-copy p,
.subpage-hero p,
.detail-one-line {
  margin: 0;
  max-width: 760px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
  line-height: 1.8;
}

.hero-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-meta span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-weight: 700;
}

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

.primary-button,
.ghost-button,
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.primary-button {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--rose));
  box-shadow: 0 18px 32px rgba(249, 115, 22, 0.32);
}

.ghost-button {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.12);
}

.text-button {
  min-height: auto;
  padding: 0;
  color: var(--brand-dark);
  border-radius: 0;
}

.hero-actions .text-button {
  color: #fed7aa;
}

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 44px rgba(15, 23, 42, 0.2);
}

.hero-poster {
  display: block;
  overflow: hidden;
  border-radius: 32px;
  transform: rotate(2deg);
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.42);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: #111827;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 48px;
  height: 48px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.5);
  font-size: 34px;
  line-height: 1;
  transform: translateY(-50%);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

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

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

.section {
  padding: 72px 0;
}

.section-soft {
  background: linear-gradient(180deg, #fff7ed 0%, #fff 100%);
}

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

.section-heading span {
  display: block;
  margin-bottom: 8px;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.section-heading h2 {
  margin: 0;
  color: #111827;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-heading > a {
  color: var(--brand-dark);
  font-weight: 900;
}

.section-heading.compact {
  align-items: center;
  margin-bottom: 22px;
}

.section-heading.compact h2 {
  font-size: clamp(22px, 3vw, 30px);
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(249, 115, 22, 0.35);
  box-shadow: var(--shadow);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #111827, #431407);
}

.poster-link img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.28s ease;
}

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

.card-badge,
.card-year {
  position: absolute;
  top: 12px;
  padding: 5px 9px;
  color: #fff;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.68);
  backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 900;
}

.card-badge {
  left: 12px;
}

.card-year {
  right: 12px;
}

.card-body {
  padding: 16px;
}

.card-title {
  display: -webkit-box;
  overflow: hidden;
  min-height: 50px;
  color: #111827;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-title:hover,
.rank-title:hover,
.category-name:hover {
  color: var(--brand-dark);
}

.card-meta {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.card-body p {
  display: -webkit-box;
  overflow: hidden;
  min-height: 58px;
  margin: 10px 0 0;
  color: #475467;
  font-size: 14px;
  line-height: 1.65;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.tag-row,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tag-row span,
.detail-tags a {
  padding: 5px 9px;
  color: var(--brand-dark);
  border-radius: 999px;
  background: #ffedd5;
  font-size: 12px;
  font-weight: 800;
}

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

.category-tile,
.category-overview-card {
  display: block;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.category-tile:hover,
.category-overview-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.category-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}

.category-thumbs img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 14px;
  background: #111827;
}

.category-tile h3,
.category-name {
  display: block;
  margin: 0 0 8px;
  color: #111827;
  font-size: 22px;
  font-weight: 900;
}

.category-tile p,
.category-overview-card p {
  margin: 0;
  color: #667085;
  line-height: 1.75;
}

.category-samples {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 18px 0;
}

.category-samples a {
  color: #344054;
  font-weight: 800;
}

.home-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}

.ranking-panel,
.content-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.ranking-panel {
  position: sticky;
  top: 96px;
  padding: 22px;
}

.ranking-list {
  display: grid;
  gap: 14px;
}

.ranking-list.mini .ranking-item {
  grid-template-columns: 42px 64px minmax(0, 1fr);
  gap: 12px;
  padding: 10px;
}

.ranking-list.mini .rank-content p {
  display: none;
}

.ranking-item {
  display: grid;
  grid-template-columns: 58px 92px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
}

.rank-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: #fff;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--brand), var(--rose));
  font-weight: 900;
}

.rank-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 14px;
  background: #111827;
}

.rank-title {
  color: #111827;
  font-size: 18px;
  font-weight: 900;
}

.rank-content p {
  margin: 8px 0;
  color: #667085;
  line-height: 1.65;
}

.rank-meta {
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 800;
}

.subpage-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  padding: 78px 0;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(124, 45, 18, 0.86)),
    radial-gradient(circle at 86% 12%, rgba(249, 115, 22, 0.46), transparent 30rem);
}

.subpage-hero p {
  color: rgba(255, 255, 255, 0.82);
}

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

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

.search-panel {
  margin-bottom: 18px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 8px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.search-box span {
  color: var(--brand-dark);
  font-weight: 900;
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  color: #111827;
  background: transparent;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 24px;
}

.filter-button {
  min-height: 38px;
  padding: 8px 14px;
  color: #475467;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-weight: 800;
}

.filter-button:hover,
.filter-button.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--brand), var(--rose));
}

.empty-state {
  margin-bottom: 22px;
  padding: 18px;
  color: #92400e;
  border-radius: 18px;
  background: #ffedd5;
  font-weight: 800;
}

.detail-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 44px;
  align-items: center;
}

.detail-cover {
  display: block;
  overflow: hidden;
  border-radius: 30px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.36);
}

.detail-cover img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: #111827;
}

.detail-copy h1 {
  margin-bottom: 18px;
}

.detail-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  gap: 24px;
}

.content-card {
  padding: 26px;
}

.content-card h2 {
  margin: 0 0 14px;
  color: #111827;
  font-size: 24px;
}

.content-card p {
  margin: 0;
  color: #475467;
  font-size: 17px;
  line-height: 1.9;
}

.wide-card {
  grid-column: 1 / -1;
}

.info-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.info-card li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.info-card li span {
  color: #667085;
}

.info-card li strong {
  color: #111827;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #050505;
  box-shadow: 0 28px 72px rgba(15, 23, 42, 0.24);
}

.movie-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #050505;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #fff;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.48));
  transition: opacity 0.2s ease;
}

.play-overlay span {
  width: 84px;
  height: 84px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--rose));
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
  font-size: 34px;
}

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

.site-footer {
  padding: 52px 0;
  color: rgba(255, 255, 255, 0.72);
  background: #111827;
}

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

.footer-logo {
  color: #fff;
}

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

.footer-inner p {
  margin: 0;
}

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

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

  .hero-poster,
  .detail-cover {
    max-width: 320px;
  }

  .ranking-panel {
    position: static;
  }
}

@media (max-width: 760px) {
  .site-nav {
    height: 64px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: 64px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--shadow);
  }

  body.nav-open .nav-links {
    display: flex;
  }

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

  .hero-content {
    gap: 28px;
    align-content: center;
    padding: 42px 0 70px;
  }

  .hero-arrow {
    display: none;
  }

  .movie-grid,
  .small-grid,
  .category-movie-grid,
  .all-grid,
  .category-grid,
  .category-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .section {
    padding: 48px 0;
  }

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

  .ranking-item {
    grid-template-columns: 44px 72px minmax(0, 1fr);
    gap: 10px;
  }

  .rank-content p {
    display: none;
  }

  .detail-hero,
  .subpage-hero {
    padding: 48px 0;
  }

  .detail-cover,
  .hero-poster {
    max-width: 240px;
  }

  .play-overlay span {
    width: 68px;
    height: 68px;
  }
}

@media (max-width: 460px) {
  .movie-grid,
  .small-grid,
  .category-movie-grid,
  .all-grid {
    grid-template-columns: 1fr 1fr;
  }

  .card-body {
    padding: 12px;
  }

  .card-title {
    min-height: 44px;
    font-size: 15px;
  }

  .card-body p,
  .tag-row {
    display: none;
  }

  .hero-copy h1,
  .detail-copy h1,
  .subpage-hero h1 {
    font-size: 34px;
  }

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