:root {
  --brand: #f59e0b;
  --brand-dark: #92400e;
  --brand-deep: #451a03;
  --orange: #f97316;
  --rose: #f43f5e;
  --ink: #111827;
  --muted: #6b7280;
  --paper: #fff7ed;
  --card: #ffffff;
  --line: rgba(146, 64, 14, 0.16);
  --shadow: 0 24px 60px rgba(120, 53, 15, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: linear-gradient(180deg, #fffbeb 0%, #ffffff 36%, #fff7ed 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

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

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

main {
  min-height: 58vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  color: #fff;
  background: linear-gradient(90deg, #d97706 0%, #f97316 48%, #d97706 100%);
  box-shadow: 0 14px 40px rgba(146, 64, 14, 0.22);
}

.site-header-inner {
  width: min(1180px, calc(100% - 32px));
  height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease;
}

.site-logo:hover {
  transform: scale(1.04);
}

.site-logo-icon {
  font-size: 30px;
}

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

.site-nav a,
.mobile-nav a {
  opacity: 0.92;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover,
.mobile-nav a:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.mobile-menu-button {
  display: none;
  border: 0;
  border-radius: 12px;
  padding: 8px 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  font-size: 22px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
  flex-direction: column;
  gap: 10px;
  font-weight: 700;
}

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

.hero {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b 0%, #f97316 48%, #f43f5e 100%);
}

.hero-track {
  position: relative;
  min-height: 560px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
  background-image: linear-gradient(90deg, rgba(69, 26, 3, 0.92), rgba(146, 64, 14, 0.58), rgba(0, 0, 0, 0.28)), var(--hero-image);
  background-position: center;
  background-size: cover;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 560px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) 360px;
  align-items: center;
  gap: 48px;
  position: relative;
}

.hero-copy {
  padding: 80px 0 96px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  color: #fffbeb;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  font-size: 14px;
  font-weight: 700;
}

.hero h1 {
  margin: 24px 0 18px;
  font-size: clamp(38px, 7vw, 68px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero h1 span {
  color: #fef3c7;
}

.hero p {
  max-width: 720px;
  margin: 0 0 30px;
  color: #fff7ed;
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.7;
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.button-primary,
.button-secondary,
.button-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  padding: 12px 24px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button-primary {
  color: #fff;
  background: linear-gradient(90deg, #f97316, #ef4444);
  box-shadow: 0 16px 30px rgba(239, 68, 68, 0.26);
}

.button-secondary {
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

.button-light {
  color: #ea580c;
  background: #fff;
  box-shadow: 0 16px 30px rgba(69, 26, 3, 0.16);
}

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

.hero-panel {
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 28px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(16px);
}

.hero-panel img {
  width: 100%;
  aspect-ratio: 2 / 2.65;
  border-radius: 22px;
  object-fit: cover;
  background: linear-gradient(135deg, #fbbf24, #f97316);
}

.hero-panel h2 {
  margin: 16px 0 8px;
  font-size: 24px;
}

.hero-panel p {
  margin: 0;
  font-size: 15px;
}

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

.hero-dots button {
  width: 40px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

.hero-dots button.is-active {
  background: #fff;
}

.hero-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 130px;
  background: linear-gradient(0deg, #fffbeb, rgba(255, 251, 235, 0));
  pointer-events: none;
}

.section {
  padding: 66px 0;
}

.section-white {
  background: #fff;
}

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

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

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

.section-heading h1,
.section-heading h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.15;
}

.section-heading p {
  max-width: 660px;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.category-strip {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 18px 0 8px;
  scrollbar-width: none;
}

.category-strip::-webkit-scrollbar {
  display: none;
}

.category-pill,
.category-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(90deg, #f59e0b, #f97316);
  box-shadow: 0 14px 30px rgba(217, 119, 6, 0.22);
  font-weight: 800;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-pill {
  padding: 12px 20px;
}

.category-pill:hover,
.category-card:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 18px 40px rgba(217, 119, 6, 0.28);
}

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

.category-card {
  min-height: 128px;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px;
  border-radius: 24px;
  text-align: left;
}

.category-card strong {
  font-size: 22px;
  margin-bottom: 8px;
}

.category-card span {
  color: #fff7ed;
  font-weight: 500;
  line-height: 1.6;
}

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

.movie-card {
  min-width: 0;
  overflow: hidden;
  border-radius: 22px;
  background: var(--card);
  box-shadow: var(--shadow);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 80px rgba(120, 53, 15, 0.24);
}

.movie-card-link {
  display: block;
  height: 100%;
}

.movie-poster {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #fbbf24, #fb7185);
}

.movie-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.movie-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  color: #fff;
  background: rgba(249, 115, 22, 0.92);
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.play-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #f97316;
  background: rgba(255, 255, 255, 0.92);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.82);
  transition: opacity 0.2s ease, transform 0.2s ease;
  font-weight: 900;
}

.movie-card:hover .play-mark {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

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

.movie-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.movie-meta-row span {
  display: inline-flex;
  align-items: center;
}

.movie-card h3 {
  margin: 10px 0 8px;
  font-size: 18px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card p {
  min-height: 48px;
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-list span {
  border-radius: 999px;
  padding: 5px 9px;
  color: #92400e;
  background: #fef3c7;
  font-size: 12px;
  font-weight: 700;
}

.feature-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 28px;
  align-items: start;
}

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

.rank-item {
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(120, 53, 15, 0.12);
}

.rank-item a {
  display: grid;
  grid-template-columns: 56px 92px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
}

.rank-number {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, #f97316, #ef4444);
  font-weight: 900;
}

.rank-item img {
  width: 92px;
  height: 120px;
  object-fit: cover;
  border-radius: 14px;
  background: linear-gradient(135deg, #fbbf24, #fb7185);
}

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

.rank-item p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.page-hero {
  color: #fff;
  background: linear-gradient(135deg, #f59e0b 0%, #f97316 52%, #c2410c 100%);
  padding: 74px 0;
  position: relative;
  overflow: hidden;
}

.page-hero:after {
  content: "";
  position: absolute;
  inset: auto -10% -45% 40%;
  height: 260px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  filter: blur(8px);
}

.page-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.15;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: #fff7ed;
  font-size: 19px;
  line-height: 1.8;
}

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

.player-card,
.detail-card,
.side-card,
.search-panel {
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}

.player-card {
  overflow: hidden;
  background: #000;
  position: relative;
}

.video-shell {
  position: relative;
  background: #000;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.62));
  transition: opacity 0.2s ease;
}

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

.player-overlay button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 0;
  border-radius: 999px;
  padding: 16px 26px;
  color: #f97316;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.28);
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
}

.detail-card {
  padding: 28px;
  margin-top: 24px;
}

.detail-title-row {
  display: flex;
  gap: 18px;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.detail-card h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.18;
}

.detail-score {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border-radius: 24px;
  color: #fff;
  background: linear-gradient(135deg, #f97316, #ef4444);
  font-size: 26px;
  font-weight: 900;
  box-shadow: 0 14px 32px rgba(239, 68, 68, 0.24);
}

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

.info-box {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  background: #fff7ed;
}

.info-box span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 4px;
}

.info-box strong {
  font-size: 15px;
}

.prose-block {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  margin-top: 24px;
}

.prose-block h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.prose-block p {
  margin: 0 0 14px;
  color: #374151;
  line-height: 1.9;
}

.side-card {
  padding: 18px;
}

.side-card h2 {
  margin: 0 0 16px;
  font-size: 22px;
}

.side-poster {
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #fbbf24, #fb7185);
}

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

.search-panel {
  padding: 22px;
  margin-bottom: 28px;
}

.search-form {
  display: grid;
  grid-template-columns: 1fr 170px 170px;
  gap: 14px;
}

.search-form input,
.search-form select {
  width: 100%;
  border: 1px solid rgba(146, 64, 14, 0.2);
  border-radius: 16px;
  padding: 13px 14px;
  color: #111827;
  background: #fffaf0;
  font-size: 15px;
  outline: none;
}

.search-empty {
  display: none;
  border-radius: 22px;
  padding: 32px;
  color: #92400e;
  background: #fef3c7;
  text-align: center;
  font-weight: 800;
}

.site-footer {
  color: #fde68a;
  background: linear-gradient(180deg, #78350f 0%, #451a03 100%);
}

.site-footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 36px;
  padding: 48px 0 34px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 14px;
}

.site-footer p {
  margin: 0;
  color: #fef3c7;
  line-height: 1.8;
}

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

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links a {
  color: #fef3c7;
}

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

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  border-top: 1px solid rgba(253, 230, 138, 0.18);
  padding: 18px 0 24px;
  color: #fef3c7;
  font-size: 14px;
  text-align: center;
}

@media (max-width: 1024px) {
  .hero-inner,
  .feature-layout,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    display: none;
  }

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

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

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

  .mobile-menu-button {
    display: inline-flex;
  }

  .hero,
  .hero-track,
  .hero-inner {
    min-height: 520px;
  }

  .hero-copy {
    padding: 64px 0 92px;
  }

  .section {
    padding: 48px 0;
  }

  .section-heading {
    display: block;
  }

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

  .rank-item a {
    grid-template-columns: 46px 76px minmax(0, 1fr);
    gap: 12px;
  }

  .rank-item img {
    width: 76px;
    height: 98px;
  }

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

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

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

@media (max-width: 480px) {
  .site-header-inner,
  .container,
  .site-footer-inner,
  .footer-bottom,
  .mobile-nav {
    width: min(100% - 24px, 1180px);
  }

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

  .detail-title-row {
    display: block;
  }

  .detail-score {
    margin-top: 14px;
  }
}
