@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Noto+Sans+SC:wght@400;500;600;700;800;900&display=swap");

:root {
  --primary: #ee7f38;
  --primary-dark: #e0642d;
  --accent: #eab308;
  --secondary: #433f3c;
  --secondary-soft: #736d5f;
  --warm: #fdf8f6;
  --warm-deep: #f2e8e5;
  --white: #ffffff;
  --line: rgba(67, 63, 60, 0.12);
  --shadow: 0 18px 48px rgba(67, 63, 60, 0.13);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--secondary);
  background: var(--warm);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(253, 248, 246, 0.9);
  backdrop-filter: blur(18px);
}

.nav-shell {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--secondary);
}

.logo-mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  color: var(--white);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 12px 28px rgba(238, 127, 56, 0.28);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.nav-link,
.mobile-link {
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 15px;
  color: var(--secondary-soft);
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: var(--primary-dark);
  background: rgba(238, 127, 56, 0.1);
}

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

.nav-cta,
.primary-button {
  color: var(--white);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 12px 28px rgba(238, 127, 56, 0.25);
}

.nav-cta:hover,
.primary-button:hover,
.ghost-button:hover,
.section-action:hover {
  transform: translateY(-2px);
}

.ghost-button {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.14);
}

.ghost-button.dark {
  color: var(--secondary);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.74);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 16px;
  background: rgba(238, 127, 56, 0.1);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: var(--secondary);
}

.mobile-nav {
  display: none;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 12px;
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow);
}

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

.hero-section {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(135deg, #ee7f38 0%, #f59e0b 48%, #eab308 100%);
}

.hero-shell {
  position: relative;
  z-index: 2;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 82px 0;
  display: grid;
  grid-template-columns: 0.95fr 1.35fr;
  align-items: center;
  gap: 42px;
}

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

.hero-copy p,
.page-hero p,
.lead-text {
  margin: 22px 0 0;
  font-size: 18px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.9);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 16px;
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

.hero-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-feature-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
}

.hero-feature-card {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  border-radius: 26px;
  box-shadow: 0 26px 58px rgba(67, 63, 60, 0.24);
  isolation: isolate;
}

.hero-feature-card.large {
  min-height: 480px;
  grid-row: span 2;
}

.hero-feature-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.hero-feature-card:hover img {
  transform: scale(1.06);
}

.hero-card-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.03), rgba(0, 0, 0, 0.76));
  z-index: 1;
}

.hero-card-content {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  padding: 24px;
  display: grid;
  gap: 10px;
}

.hero-card-meta,
.hero-card-content em {
  color: rgba(255, 255, 255, 0.82);
  font-style: normal;
  font-size: 13px;
}

.hero-card-content strong {
  font-size: 24px;
  line-height: 1.25;
}

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.hero-tags span {
  color: var(--white);
  background: rgba(255, 255, 255, 0.22);
}

.hero-glow {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 999px;
  filter: blur(22px);
  opacity: 0.3;
  background: var(--white);
}

.hero-glow-one {
  top: -130px;
  right: 11%;
}

.hero-glow-two {
  left: -120px;
  bottom: -160px;
}

.content-section,
.page-shell {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

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

.content-section.no-side-padding {
  width: 100%;
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 38px);
  letter-spacing: -0.04em;
  color: var(--secondary);
}

.section-heading p {
  margin: 8px 0 0;
  color: var(--secondary-soft);
  line-height: 1.7;
}

.section-action {
  color: var(--primary-dark);
  background: rgba(238, 127, 56, 0.12);
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 12px 34px rgba(67, 63, 60, 0.09);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--warm-deep);
}

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

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

.poster-badge,
.card-rank {
  position: absolute;
  top: 14px;
  z-index: 2;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  color: var(--white);
  backdrop-filter: blur(10px);
}

.poster-badge {
  right: 14px;
  padding: 0 10px;
  background: rgba(0, 0, 0, 0.5);
}

.card-rank {
  left: 14px;
  min-width: 34px;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

.card-body {
  padding: 18px;
}

.card-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 800;
}

.card-body h3 {
  margin: 10px 0 8px;
  font-size: 18px;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.card-body h3 a:hover {
  color: var(--primary-dark);
}

.card-body p {
  min-height: 48px;
  margin: 0 0 14px;
  color: var(--secondary-soft);
  font-size: 14px;
  line-height: 1.7;
}

.tag-row span {
  color: #8a5b18;
  background: rgba(234, 179, 8, 0.14);
}

.split-section {
  display: grid;
  grid-template-columns: 1fr 360px;
  align-items: start;
  gap: 30px;
}

.rank-panel {
  position: sticky;
  top: 94px;
  padding: 26px;
  border-radius: 28px;
  background: linear-gradient(180deg, var(--secondary), #26231f);
  box-shadow: var(--shadow);
}

.rank-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.rank-panel h2 {
  margin: 0;
  color: var(--white);
}

.rank-panel a {
  color: var(--accent);
}

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

.rank-row {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 2px 12px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.rank-row span {
  grid-row: span 2;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  font-weight: 900;
}

.rank-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-row em {
  color: rgba(255, 255, 255, 0.66);
  font-size: 12px;
  font-style: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.category-tile,
.category-card {
  padding: 16px;
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 12px 28px rgba(67, 63, 60, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-images,
.category-cover-stack {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  margin-bottom: 14px;
}

.category-card .category-cover-stack {
  grid-template-columns: repeat(4, 1fr);
}

.category-images img,
.category-cover-stack img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 14px;
}

.category-tile strong,
.category-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 18px;
}

.category-tile em,
.category-card em {
  color: var(--secondary-soft);
  font-size: 13px;
  font-style: normal;
  line-height: 1.6;
}

.page-shell {
  padding: 34px 0 70px;
}

.page-hero {
  overflow: hidden;
  margin-bottom: 32px;
  padding: 52px;
  border-radius: 34px;
  color: var(--white);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: var(--shadow);
}

.page-hero h1 {
  font-size: clamp(36px, 5vw, 58px);
}

.page-hero p {
  max-width: 780px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--secondary-soft);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: var(--primary-dark);
}

.filter-panel {
  display: grid;
  grid-template-columns: 1.7fr repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 28px;
  padding: 18px;
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 12px 30px rgba(67, 63, 60, 0.08);
}

.filter-panel label {
  display: grid;
  gap: 7px;
  font-size: 12px;
  font-weight: 900;
  color: var(--secondary-soft);
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0 14px;
  color: var(--secondary);
  background: var(--warm);
  outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(238, 127, 56, 0.12);
}

.empty-state {
  display: none;
  padding: 38px;
  border-radius: 24px;
  text-align: center;
  color: var(--secondary-soft);
  background: var(--white);
}

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

.detail-hero {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 34px;
  align-items: center;
  margin-bottom: 34px;
  padding: 28px;
  border-radius: 34px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 18px 38px rgba(67, 63, 60, 0.15);
}

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

.detail-copy .eyebrow {
  color: var(--primary-dark);
  background: rgba(238, 127, 56, 0.12);
}

.detail-copy h1 {
  color: var(--secondary);
}

.lead-text {
  color: var(--secondary-soft);
}

.detail-tags {
  margin-top: 18px;
}

.player-section,
.story-panel {
  margin-bottom: 34px;
  padding: 28px;
  border-radius: 34px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.slim-heading {
  margin-bottom: 18px;
}

.player-frame {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  aspect-ratio: 16 / 9;
  background: #050505;
}

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

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  border: 0;
  color: var(--white);
  cursor: pointer;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.72));
}

.player-cover.hidden {
  display: none;
}

.play-circle {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-size: 30px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 18px 40px rgba(238, 127, 56, 0.32);
}

.story-panel {
  display: grid;
  gap: 26px;
}

.story-panel h2 {
  margin: 0 0 12px;
  font-size: 26px;
}

.story-panel p {
  margin: 0;
  color: var(--secondary-soft);
  font-size: 16px;
  line-height: 1.9;
}

.site-footer {
  padding: 46px 0 30px;
  color: rgba(255, 255, 255, 0.76);
  background: linear-gradient(180deg, #433f3c, #24211e);
}

.footer-shell {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 30px;
}

.footer-logo {
  color: var(--white);
  font-size: 24px;
}

.footer-shell p {
  max-width: 560px;
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-content: start;
}

.footer-links a {
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

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

.copyright {
  width: min(1200px, calc(100% - 32px));
  margin: 24px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  font-size: 14px;
}

@media (max-width: 1024px) {
  .hero-shell,
  .detail-hero,
  .split-section {
    grid-template-columns: 1fr;
  }

  .hero-feature-card.large {
    min-height: 360px;
  }

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

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

  .rank-panel {
    position: static;
  }
}

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

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .hero-shell {
    padding: 56px 0;
  }

  .hero-feature-grid {
    grid-template-columns: 1fr;
  }

  .hero-feature-card,
  .hero-feature-card.large {
    min-height: 280px;
  }

  .content-section {
    padding: 42px 0;
  }

  .section-heading,
  .footer-shell {
    display: grid;
  }

  .movie-grid,
  .compact-grid,
  .category-grid,
  .category-card-grid,
  .filter-panel {
    grid-template-columns: 1fr;
  }

  .page-hero,
  .detail-hero,
  .player-section,
  .story-panel {
    padding: 22px;
    border-radius: 26px;
  }

  .detail-hero {
    gap: 22px;
  }

  .detail-poster {
    max-width: 320px;
    margin: 0 auto;
  }
}

@media (max-width: 520px) {
  .hero-copy h1,
  .page-hero h1,
  .detail-copy h1 {
    font-size: 36px;
  }

  .hero-copy p,
  .page-hero p,
  .lead-text {
    font-size: 16px;
  }
}
