* {
  box-sizing: border-box;
}

:root {
  --orange: #f97316;
  --orange-dark: #ea580c;
  --amber: #f59e0b;
  --yellow: #eab308;
  --text: #1f2937;
  --muted: #6b7280;
  --soft: #fff7ed;
  --line: #e5e7eb;
  --dark: #111827;
  --radius: 20px;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
}

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(--text);
  background: #f8fafc;
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  color: #fff;
  background: linear-gradient(90deg, var(--orange), var(--amber), var(--yellow));
  box-shadow: 0 12px 28px rgba(249, 115, 22, 0.28);
}

.header-inner {
  min-height: 64px;
  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-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.brand-name {
  font-size: clamp(20px, 2.4vw, 26px);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-weight: 700;
}

.nav-link {
  opacity: 0.92;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.16);
  cursor: pointer;
}

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

.mobile-nav {
  display: none;
  padding: 0 16px 14px;
}

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

.mobile-link {
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 700;
}

.mobile-link:hover,
.mobile-link.active {
  background: rgba(255, 255, 255, 0.18);
}

.hero {
  position: relative;
  min-height: clamp(520px, 72vh, 720px);
  overflow: hidden;
  background: #111827;
}

.hero-main-title {
  position: absolute;
  left: -9999px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  background-position: center;
  background-size: cover;
  transition: opacity 900ms ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  text-align: center;
  padding-top: 30px;
}

.eyebrow {
  margin: 0 0 14px;
  color: #fed7aa;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-content h2,
.page-hero h1 {
  margin: 0 auto 18px;
  max-width: 960px;
  font-size: clamp(40px, 7vw, 78px);
  line-height: 1.08;
  font-weight: 900;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.hero-content p:not(.eyebrow) {
  max-width: 760px;
  margin: 0 auto 28px;
  font-size: clamp(18px, 2vw, 24px);
  color: rgba(255, 255, 255, 0.9);
}

.hero-tags,
.detail-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.hero-tags span,
.detail-tags span,
.tag-row b {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
}

.hero-actions,
.page-hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

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

.primary-button {
  color: #fff;
  background: linear-gradient(90deg, var(--orange), var(--amber));
  box-shadow: 0 16px 34px rgba(249, 115, 22, 0.35);
}

.ghost-button {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.ghost-button.light {
  color: #fff;
}

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

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

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

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

.intro-search {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 520px);
  gap: 28px;
  align-items: center;
  padding: 42px 0 24px;
}

.intro-search h2,
.section-heading h2,
.watch-section h2,
.content-card h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.16;
  font-weight: 900;
}

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

.filter-panel {
  padding: 18px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.search-box {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
}

.search-box input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  color: var(--text);
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

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

.filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.filter-chip {
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--text);
  background: #f3f4f6;
  font-weight: 800;
  cursor: pointer;
}

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

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

.section-heading {
  margin-bottom: 28px;
}

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

.section-heading.compact {
  margin-bottom: 18px;
}

.text-link {
  color: var(--orange-dark);
  font-weight: 900;
}

.soft-section {
  background: linear-gradient(135deg, #fff7ed, #fffbeb);
}

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

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

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

.movie-card,
.compact-card,
.category-card,
.panel,
.content-card,
.rank-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.movie-card {
  display: block;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 45px rgba(15, 23, 42, 0.16);
}

.poster,
.compact-cover,
.rank-thumb,
.detail-poster {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, var(--orange), var(--amber));
}

.poster {
  aspect-ratio: 3 / 4;
}

.movie-card-feature .poster {
  aspect-ratio: 16 / 10;
}

.poster img,
.compact-cover img,
.rank-thumb img,
.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.poster > span:last-child,
.compact-cover span,
.rank-thumb span,
.detail-poster span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 24px;
  font-weight: 900;
  text-align: center;
  z-index: 0;
}

.poster img,
.compact-cover img,
.rank-thumb img,
.detail-poster img {
  position: relative;
  z-index: 1;
}

.poster-shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78), transparent 54%);
}

.poster-title {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 3;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
}

.movie-info {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.movie-info strong,
.compact-card strong,
.rank-card strong {
  font-size: 17px;
  line-height: 1.35;
  color: var(--text);
}

.movie-info em,
.compact-card em,
.rank-card em {
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

.movie-info small,
.rank-card small {
  color: var(--muted);
  font-size: 13px;
}

.tag-row {
  justify-content: start;
  gap: 6px;
}

.tag-row b {
  min-height: 24px;
  color: var(--orange-dark);
  background: #ffedd5;
  font-size: 12px;
}

.category-card {
  padding: 22px;
}

.category-card-main {
  display: grid;
  gap: 8px;
}

.category-card-main span {
  width: max-content;
  padding: 6px 12px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(90deg, var(--orange), var(--amber));
  font-weight: 900;
  font-size: 13px;
}

.category-card-main strong {
  font-size: 24px;
}

.category-card-main em {
  color: var(--muted);
  font-style: normal;
}

.category-samples {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.category-samples a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--text);
  font-weight: 800;
}

.category-samples span {
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
}

.two-column-section {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 26px;
  padding: 54px 0;
}

.panel {
  padding: 24px;
}

.rank-list,
.compact-list,
.rank-card-list {
  display: grid;
  gap: 12px;
}

.rank-row {
  display: grid;
  grid-template-columns: 48px 1fr auto auto;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.rank-row:first-child {
  border-top: 0;
}

.rank-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  font-weight: 900;
}

.rank-title {
  font-weight: 900;
}

.rank-meta,
.rank-heat {
  color: var(--muted);
  font-size: 13px;
}

.compact-card {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 14px;
  align-items: center;
  padding: 10px;
}

.compact-cover {
  width: 74px;
  height: 92px;
  border-radius: 14px;
}

.compact-cover span {
  font-size: 13px;
}

.compact-card > span:last-child {
  display: grid;
  gap: 4px;
}

.page-hero,
.detail-hero {
  color: #fff;
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.22), transparent 28%), linear-gradient(115deg, var(--orange), var(--amber), var(--yellow));
}

.page-hero .container {
  padding: 76px 0;
}

.page-hero h1 {
  margin-left: 0;
  text-align: left;
}

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

.detail-hero {
  padding: 46px 0;
}

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

.detail-poster {
  min-height: 420px;
  border-radius: 28px;
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.22);
}

.detail-headline h1 {
  margin: 0 0 16px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.08;
  font-weight: 900;
}

.breadcrumb {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
}

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

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

.detail-meta span {
  padding: 8px 12px;
  border-radius: 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  font-weight: 800;
}

.detail-tags {
  justify-content: start;
}

.watch-section,
.detail-content {
  padding: 54px 0 0;
}

.player-shell {
  position: relative;
  margin-top: 18px;
  overflow: hidden;
  border-radius: 28px;
  background: #000;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  border: 0;
  color: #fff;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.35), rgba(0, 0, 0, 0.58));
  cursor: pointer;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.play-overlay span {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  font-size: 34px;
  box-shadow: 0 18px 45px rgba(249, 115, 22, 0.38);
}

.play-overlay strong {
  font-size: 20px;
}

.play-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

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

.content-card {
  padding: 28px;
}

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

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

.info-list div {
  padding: 14px;
  border-radius: 14px;
  background: #f9fafb;
}

.info-list dt {
  color: var(--muted);
  font-weight: 800;
}

.info-list dd {
  margin: 4px 0 0;
  font-weight: 900;
}

.rank-card {
  display: grid;
  grid-template-columns: 72px 84px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
}

.rank-num.big {
  width: 54px;
  height: 54px;
}

.rank-thumb {
  width: 84px;
  height: 110px;
  border-radius: 16px;
}

.rank-thumb span {
  font-size: 13px;
}

.rank-card-body {
  display: grid;
  gap: 6px;
}

.empty-state {
  display: none;
  margin-top: 24px;
  padding: 28px;
  border-radius: var(--radius);
  color: var(--muted);
  background: #fff;
  text-align: center;
  font-weight: 800;
}

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

.site-footer {
  margin-top: 70px;
  color: #d1d5db;
  background: #111827;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 30px;
  padding: 46px 0;
}

.footer-brand {
  color: #fff;
  font-size: 20px;
}

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

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li + li {
  margin-top: 8px;
}

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

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

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

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

  .menu-button {
    display: block;
  }

  .intro-search,
  .two-column-section,
  .detail-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .rank-row,
  .rank-card {
    grid-template-columns: 48px 1fr;
  }

  .rank-meta,
  .rank-heat,
  .rank-thumb {
    display: none;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 22px, 1180px);
  }

  .hero {
    min-height: 620px;
  }

  .hero-content {
    text-align: left;
  }

  .hero-content h2,
  .hero-content p:not(.eyebrow) {
    margin-left: 0;
  }

  .hero-tags,
  .hero-actions {
    justify-content: flex-start;
  }

  .movie-grid,
  .feature-grid,
  .category-grid,
  .info-list {
    grid-template-columns: 1fr;
  }

  .section-heading.split {
    display: grid;
  }

  .page-hero .container {
    padding: 54px 0;
  }

  .detail-poster {
    min-height: 360px;
  }
}
