@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;900&display=swap");

:root {
  --primary: #ee7f38;
  --primary-dark: #d45f18;
  --accent: #f6c063;
  --warm: #fff7ed;
  --warm-strong: #ffedd5;
  --text: #1f2933;
  --muted: #6b7280;
  --line: #eadfd1;
  --card: #ffffff;
  --shadow: 0 20px 50px rgba(99, 63, 26, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "Noto Sans SC", "Microsoft YaHei", sans-serif;
  background: linear-gradient(180deg, #fff7ed 0%, #fffaf5 42%, #ffffff 100%);
  color: var(--text);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(234, 223, 209, 0.8);
}

.nav-wrap {
  width: min(1180px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.brand-icon {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  box-shadow: 0 10px 28px rgba(238, 127, 56, 0.28);
}

.brand-text {
  font-size: 22px;
}

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

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

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

.mobile-toggle {
  display: none;
  border: 0;
  border-radius: 12px;
  background: var(--warm-strong);
  color: var(--primary-dark);
  font-size: 22px;
  padding: 8px 12px;
}

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

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

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

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

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

.hero-content {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 96px 0 120px;
  color: #fff;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-content h1 {
  max-width: 780px;
  margin: 18px 0;
  font-size: clamp(38px, 7vw, 76px);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.hero-content p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 20px;
  line-height: 1.8;
}

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

.hero-tags span,
.detail-meta span,
.rank-meta span {
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 900;
  transition: 0.2s ease;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 16px 30px rgba(238, 127, 56, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 38px rgba(238, 127, 56, 0.36);
}

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

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
}

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

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

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

.search-panel,
.section-wrap,
.page-hero,
.detail-content {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.search-panel {
  margin-top: -36px;
  position: relative;
  z-index: 5;
  padding: 18px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  border: 1px solid rgba(234, 223, 209, 0.8);
}

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

.search-box input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0 16px;
  color: var(--text);
  font-size: 16px;
  outline: none;
  transition: 0.2s ease;
}

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

.search-box button,
.filter-chip {
  border: 0;
  border-radius: 999px;
  background: var(--warm-strong);
  color: var(--primary-dark);
  font-weight: 800;
  padding: 0 18px;
  cursor: pointer;
}

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

.filter-chip {
  min-height: 34px;
}

.filter-chip.is-active,
.filter-chip:hover {
  color: #fff;
  background: var(--primary);
}

.section-wrap {
  padding: 58px 0;
}

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

.section-head h2,
.page-hero h1,
.detail-info h1 {
  margin: 6px 0 0;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.section-head a {
  color: var(--primary-dark);
  font-weight: 900;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid rgba(234, 223, 209, 0.8);
  box-shadow: 0 14px 35px rgba(99, 63, 26, 0.08);
  transition: 0.25s ease;
}

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

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

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

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

.play-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #fff;
  background: rgba(20, 13, 8, 0.72);
  backdrop-filter: blur(12px);
  font-weight: 900;
}

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

.movie-meta-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 900;
}

.movie-card h3 {
  margin: 10px 0 8px;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 900;
}

.movie-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.movie-card--compact .movie-card-body {
  padding: 14px;
}

.movie-card--compact h3 {
  font-size: 16px;
}

.movie-card--compact p {
  font-size: 13px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.tag-row span {
  border-radius: 999px;
  padding: 4px 8px;
  background: #fff7ed;
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 800;
}

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

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

.category-card {
  min-height: 178px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #ffffff, #fff3e5);
  border: 1px solid rgba(234, 223, 209, 0.8);
  box-shadow: 0 14px 35px rgba(99, 63, 26, 0.08);
  transition: 0.25s ease;
}

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

.category-card strong {
  font-size: 22px;
  font-weight: 900;
}

.category-card em {
  font-style: normal;
  color: var(--primary-dark);
  font-weight: 900;
}

.category-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.category-card div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-card span {
  padding: 5px 8px;
  border-radius: 999px;
  background: #fff;
  color: #6b7280;
  font-size: 12px;
  font-weight: 800;
}

.page-hero {
  margin-top: 32px;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 44px;
  border-radius: 30px;
  background: linear-gradient(135deg, #1f140d, #8f3f16 52%, #f6a63f);
  background-size: cover;
  background-position: center;
  color: #fff;
  overflow: hidden;
}

.page-hero.compact-hero {
  min-height: 260px;
}

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

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

.rank-item {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 18px;
  padding: 14px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(234, 223, 209, 0.85);
  box-shadow: 0 12px 30px rgba(99, 63, 26, 0.06);
}

.rank-cover {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 14px;
}

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

.rank-cover span {
  position: absolute;
  left: 8px;
  top: 8px;
  min-width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.rank-item h3 {
  margin: 4px 0 8px;
  font-size: 20px;
}

.rank-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.rank-meta span {
  color: var(--primary-dark);
  background: var(--warm-strong);
  border-color: transparent;
}

.detail-hero {
  min-height: 560px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  color: #fff;
}

.detail-hero-wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
  padding: 72px 0;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

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

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

.tag-row--detail span {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

.player-section {
  padding-top: 52px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #111827;
  box-shadow: 0 30px 80px rgba(17, 24, 39, 0.22);
}

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

.player-trigger {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 8px;
  border: 0;
  background: radial-gradient(circle at center, rgba(238, 127, 56, 0.1), rgba(17, 24, 39, 0.66));
  color: #fff;
  cursor: pointer;
}

.player-trigger span {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 20px 45px rgba(238, 127, 56, 0.34);
  font-size: 30px;
}

.player-trigger strong {
  font-size: 20px;
}

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

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

.content-card {
  padding: 24px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(234, 223, 209, 0.85);
  box-shadow: 0 14px 35px rgba(99, 63, 26, 0.07);
}

.content-card:first-child {
  grid-column: 1 / -1;
}

.content-card h2 {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 900;
}

.content-card p {
  margin: 0;
  color: #4b5563;
  line-height: 1.9;
}

.info-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.info-list div {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 12px;
}

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

.info-list dd {
  margin: 0;
  font-weight: 700;
}

.info-list a {
  color: var(--primary-dark);
}

.site-footer {
  margin-top: 36px;
  padding: 42px 0;
  background: #1f140d;
  color: rgba(255, 255, 255, 0.82);
}

.footer-wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
}

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

.footer-wrap p {
  max-width: 520px;
  line-height: 1.8;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 10px 22px;
  font-weight: 800;
}

.footer-links a:hover {
  color: #fff;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.is-hidden-card {
  display: none !important;
}

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

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

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

  .brand-text {
    font-size: 19px;
  }

  .hero-slider {
    min-height: 560px;
  }

  .hero-content {
    padding: 82px 0 100px;
  }

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

  .search-panel {
    margin-top: -24px;
  }

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

  .search-box button {
    min-height: 42px;
  }

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

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

  .page-hero {
    padding: 28px;
    min-height: 300px;
  }

  .detail-hero-wrap {
    grid-template-columns: 1fr;
    gap: 26px;
  }

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

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

  .content-card:first-child {
    grid-column: auto;
  }

  .footer-wrap {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .movie-grid,
  .movie-grid--dense,
  .category-grid,
  .category-grid--wide {
    grid-template-columns: 1fr;
  }

  .rank-item {
    grid-template-columns: 76px 1fr;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }
}
