:root {
  --page-bg: #fff7ed;
  --panel: #ffffff;
  --panel-soft: rgba(255, 255, 255, 0.82);
  --text: #1f2937;
  --muted: #6b7280;
  --line: rgba(251, 146, 60, 0.24);
  --amber: #d97706;
  --orange: #ea580c;
  --rose: #e11d48;
  --shadow: 0 24px 60px rgba(146, 64, 14, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 4%, rgba(251, 191, 36, 0.26), transparent 36rem),
    radial-gradient(circle at 90% 12%, rgba(244, 63, 94, 0.18), transparent 32rem),
    linear-gradient(180deg, #fff7ed 0%, #fffaf4 46%, #fff 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.7;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(251, 146, 60, 0.22);
  backdrop-filter: blur(16px);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  min-height: 72px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #9a3412;
  white-space: nowrap;
}

.logo-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: white;
  border-radius: 16px;
  background: linear-gradient(135deg, #f59e0b, #f97316 56%, #e11d48);
  box-shadow: 0 12px 30px rgba(234, 88, 12, 0.32);
}

.logo-text {
  font-size: clamp(1.08rem, 2vw, 1.45rem);
  background: linear-gradient(90deg, #b45309, #ea580c, #e11d48);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a,
.menu-toggle {
  border: 0;
  border-radius: 999px;
  padding: 10px 15px;
  color: #7c2d12;
  background: transparent;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.nav-links a:hover,
.nav-links a.is-active,
.menu-toggle:hover {
  color: #c2410c;
  background: #ffedd5;
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  font-size: 1.3rem;
}

main {
  min-height: 72vh;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 22px;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 680px;
  display: grid;
  align-items: center;
  padding: 58px 0 70px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(124, 45, 18, 0.72), rgba(234, 88, 12, 0.35) 46%, rgba(225, 29, 72, 0.26)),
    radial-gradient(circle at 18% 16%, rgba(253, 230, 138, 0.6), transparent 24rem),
    radial-gradient(circle at 82% 20%, rgba(251, 113, 133, 0.3), transparent 28rem);
  z-index: -2;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 180px;
  background: linear-gradient(180deg, transparent, #fff7ed);
  z-index: -1;
}

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

.hero-copy {
  color: white;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(10px);
  font-weight: 800;
}

.hero h1,
.page-hero h1,
.detail-title h1 {
  margin: 20px 0 16px;
  font-size: clamp(2.55rem, 6vw, 5.2rem);
  line-height: 1.04;
  letter-spacing: -0.07em;
}

.hero-desc {
  max-width: 760px;
  font-size: clamp(1.05rem, 2vw, 1.38rem);
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.16);
}

.hero-actions,
.section-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 900;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #9a3412;
  background: white;
  box-shadow: 0 18px 44px rgba(124, 45, 18, 0.24);
}

.btn-primary:hover {
  box-shadow: 0 22px 54px rgba(124, 45, 18, 0.34);
}

.btn-ghost {
  color: white;
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

.btn-soft {
  color: #9a3412;
  background: #ffedd5;
}

.hero-search {
  margin-top: 26px;
  max-width: 620px;
  display: flex;
  gap: 10px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 60px rgba(124, 45, 18, 0.2);
}

.hero-search input,
.filter-bar input,
.filter-bar select {
  width: 100%;
  border: 0;
  outline: 0;
  border-radius: 999px;
  padding: 13px 16px;
  color: #7c2d12;
  background: white;
  font-size: 1rem;
}

.hero-search button {
  border: 0;
  white-space: nowrap;
}

.hero-stage {
  position: relative;
  min-height: 510px;
}

.hero-card {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.36);
  box-shadow: 0 34px 80px rgba(124, 45, 18, 0.34);
  opacity: 0;
  transform: scale(0.95) translateY(18px);
  pointer-events: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
  backdrop-filter: blur(18px);
}

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

.hero-poster {
  min-height: 330px;
  overflow: hidden;
}

.hero-poster img {
  width: 100%;
  height: 100%;
  min-height: 330px;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-info {
  position: relative;
  padding: 26px;
  color: white;
  background: linear-gradient(180deg, rgba(124, 45, 18, 0.2), rgba(124, 45, 18, 0.86));
}

.hero-info h2 {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
}

.hero-meta,
.card-meta,
.detail-meta,
.rank-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: inherit;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #ffedd5;
  color: #9a3412;
  font-size: 0.82rem;
  font-weight: 800;
}

.hero-info .badge {
  background: rgba(255, 255, 255, 0.18);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-dots {
  position: absolute;
  left: 28px;
  bottom: -28px;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 40px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
}

.hero-dot.is-active {
  background: white;
}

.section {
  padding: 54px 0;
}

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

.section-title {
  margin: 0;
  font-size: clamp(1.7rem, 3.6vw, 2.65rem);
  letter-spacing: -0.05em;
  color: #431407;
}

.section-subtitle {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--muted);
}

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 14px 38px rgba(146, 64, 14, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(234, 88, 12, 0.4);
  box-shadow: var(--shadow);
}

.card-poster {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #fed7aa, #fecdd3);
}

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

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

.card-poster::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  background: linear-gradient(180deg, transparent, rgba(67, 20, 7, 0.82));
}

.card-ribbon {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  padding: 5px 10px;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, #f97316, #e11d48);
  font-size: 0.76rem;
  font-weight: 900;
}

.card-body {
  padding: 16px;
}

.card-title {
  margin: 0 0 8px;
  color: #431407;
  font-size: 1.06rem;
  line-height: 1.35;
}

.card-title a:hover {
  color: #ea580c;
}

.card-desc {
  margin: 10px 0 0;
  display: -webkit-box;
  min-height: 3.2em;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.93rem;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.category-tile,
.rank-row,
.info-panel {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 34px rgba(146, 64, 14, 0.08);
  backdrop-filter: blur(14px);
}

.category-tile {
  min-height: 182px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  border-radius: 26px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-tile h3 {
  margin: 0 0 8px;
  color: #7c2d12;
  font-size: 1.28rem;
}

.category-tile p {
  color: var(--muted);
  margin: 0;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0 56px;
  color: white;
  background:
    linear-gradient(135deg, rgba(124, 45, 18, 0.92), rgba(234, 88, 12, 0.78), rgba(225, 29, 72, 0.65)),
    radial-gradient(circle at 82% 12%, rgba(255, 255, 255, 0.24), transparent 22rem);
}

.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 4.35rem);
}

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

.breadcrumb {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
}

.breadcrumb a:hover {
  color: white;
}

.filter-bar {
  margin: -30px auto 34px;
  padding: 14px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 180px 180px;
  gap: 12px;
  position: relative;
  z-index: 3;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 72px 86px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border-radius: 24px;
}

.rank-num {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: white;
  background: linear-gradient(135deg, #f59e0b, #e11d48);
  font-size: 1.25rem;
  font-weight: 900;
}

.rank-cover {
  width: 86px;
  height: 112px;
  object-fit: cover;
  border-radius: 18px;
}

.rank-info h3 {
  margin: 0 0 8px;
  color: #431407;
  font-size: 1.2rem;
}

.rank-info p {
  margin: 8px 0 0;
  color: var(--muted);
}

.hot-value {
  color: #c2410c;
  font-weight: 900;
}

.detail-hero {
  padding: 52px 0;
  background:
    linear-gradient(135deg, rgba(67, 20, 7, 0.92), rgba(154, 52, 18, 0.78), rgba(225, 29, 72, 0.55)),
    radial-gradient(circle at 88% 8%, rgba(251, 191, 36, 0.22), transparent 26rem);
  color: white;
}

.detail-layout {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 34px;
  align-items: end;
}

.detail-cover {
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

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

.detail-title h1 {
  font-size: clamp(2.2rem, 5vw, 4.3rem);
}

.detail-title p {
  max-width: 860px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.08rem;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  background: #111827;
  box-shadow: var(--shadow);
}

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

.play-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.18), rgba(17, 24, 39, 0.52));
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.play-button {
  width: 86px;
  height: 86px;
  border: 0;
  border-radius: 999px;
  color: #9a3412;
  background: white;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
  font-size: 2rem;
  cursor: pointer;
  transition: transform 0.22s ease;
}

.play-button:hover {
  transform: scale(1.06);
}

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

.info-panel {
  padding: 24px;
  border-radius: 28px;
}

.info-panel h2,
.info-panel h3 {
  margin-top: 0;
  color: #431407;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.site-footer {
  margin-top: 54px;
  color: #fed7aa;
  background: linear-gradient(135deg, #431407, #7c2d12 56%, #9f1239);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 38px 22px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
}

.footer-brand {
  color: #fff7ed;
  font-size: 1.25rem;
  font-weight: 900;
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-links a:hover {
  color: white;
}

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

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

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

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

  .detail-cover {
    max-width: 360px;
  }
}

@media (max-width: 780px) {
  .header-inner {
    min-height: 64px;
  }

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

  .nav-links {
    position: absolute;
    left: 14px;
    right: 14px;
    top: 70px;
    display: none;
    padding: 16px;
    border-radius: 24px;
    background: white;
    box-shadow: var(--shadow);
    justify-content: flex-start;
  }

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

  .hero {
    min-height: auto;
    padding-top: 38px;
  }

  .hero-search,
  .section-head,
  .footer-inner {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-search,
  .filter-bar {
    border-radius: 24px;
    grid-template-columns: 1fr;
  }

  .hero-search {
    flex-direction: column;
  }

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

  .rank-row {
    grid-template-columns: 54px 76px minmax(0, 1fr);
  }

  .rank-row .btn {
    grid-column: 2 / -1;
    justify-self: start;
  }

  .rank-cover {
    width: 76px;
    height: 102px;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .container,
  .header-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

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

  .hero-stage {
    min-height: 520px;
  }

  .hero-poster,
  .hero-poster img {
    min-height: 270px;
  }
}
