:root {
  color-scheme: light;
  --amber-50: #fff7ed;
  --amber-100: #ffedd5;
  --amber-200: #fed7aa;
  --amber-300: #fdba74;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --orange-500: #f97316;
  --orange-600: #ea580c;
  --yellow-500: #eab308;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow: 0 20px 45px rgba(146, 64, 14, 0.12);
  --shadow-soft: 0 10px 25px rgba(146, 64, 14, 0.10);
}

* {
  box-sizing: border-box;
}

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(--gray-900);
  background: linear-gradient(135deg, #ffffff 0%, rgba(255, 247, 237, 0.7) 45%, rgba(255, 237, 213, 0.8) 100%);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: linear-gradient(90deg, rgba(255, 247, 237, 0.95), rgba(255, 237, 213, 0.95));
  border-bottom: 1px solid rgba(251, 191, 36, 0.35);
  backdrop-filter: blur(16px);
}

.nav-wrap {
  max-width: 1180px;
  height: 66px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, var(--amber-600), var(--orange-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: #ffffff;
  font-size: 15px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
  box-shadow: 0 10px 25px rgba(249, 115, 22, 0.32);
}

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

.nav-links a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--gray-700);
  font-weight: 600;
  transition: all 0.22s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--amber-600);
  background: rgba(251, 191, 36, 0.16);
}

.nav-toggle {
  display: none;
  border: 0;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(251, 191, 36, 0.14);
  color: var(--gray-800);
  font-size: 22px;
}

main {
  min-height: 72vh;
}

.hero {
  position: relative;
  min-height: 92vh;
  padding: 106px 22px 72px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 20%, rgba(245, 158, 11, 0.22), transparent 32%),
    radial-gradient(circle at 82% 12%, rgba(249, 115, 22, 0.16), transparent 30%),
    linear-gradient(135deg, #fff7ed 0%, #fff 46%, #ffedd5 100%);
}

.float-dot {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  opacity: 0.32;
  background: linear-gradient(135deg, var(--amber-300), var(--orange-500));
  animation: float 13s ease-in-out infinite;
}

.float-dot:nth-child(2) {
  left: 8%;
  top: 26%;
}

.float-dot:nth-child(3) {
  right: 14%;
  top: 22%;
  width: 18px;
  height: 18px;
  animation-delay: 1.6s;
}

.float-dot:nth-child(4) {
  left: 15%;
  bottom: 20%;
  width: 22px;
  height: 22px;
  animation-delay: 3.2s;
}

.float-dot:nth-child(5) {
  right: 24%;
  bottom: 15%;
  animation-delay: 4.7s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-32px) rotate(18deg);
  }
}

.hero-inner {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 36px;
  align-items: center;
  z-index: 2;
}

.hero-copy {
  padding: 14px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  margin-bottom: 18px;
  color: var(--amber-600);
  font-weight: 800;
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-soft);
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 1.02;
  letter-spacing: -0.06em;
  background: linear-gradient(90deg, var(--amber-600), var(--orange-600), var(--yellow-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy p {
  margin: 0 0 28px;
  max-width: 680px;
  color: var(--gray-700);
  font-size: clamp(18px, 2vw, 22px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-bottom: 26px;
}

.btn,
button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 22px;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.24s ease;
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(90deg, var(--amber-500), var(--orange-500));
  box-shadow: 0 16px 28px rgba(249, 115, 22, 0.28);
}

.btn-light {
  color: var(--amber-600);
  background: #ffffff;
  border: 2px solid rgba(245, 158, 11, 0.6);
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 18px 36px rgba(249, 115, 22, 0.24);
}

.hero-search {
  display: flex;
  max-width: 600px;
  padding: 7px;
  gap: 8px;
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
}

.hero-search input,
.search-panel input,
.search-panel select {
  width: 100%;
  border: 0;
  outline: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--gray-800);
  font-size: 16px;
}

.hero-search input {
  padding: 0 16px;
}

.hero-media {
  position: relative;
  min-height: 520px;
}

.hero-slider {
  position: relative;
  height: 520px;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(124, 45, 18, 0.26);
  background: var(--gray-900);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.12) 58%, rgba(0, 0, 0, 0.02));
}

.hero-info {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  color: #ffffff;
}

.hero-info h2 {
  margin: 0 0 8px;
  font-size: 30px;
  line-height: 1.15;
}

.hero-info p {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.85);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.hero-tags span,
.tag-row span {
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.hero-tags span {
  color: #ffffff;
  background: rgba(245, 158, 11, 0.9);
}

.hero-controls {
  position: absolute;
  right: 20px;
  top: 20px;
  display: flex;
  gap: 8px;
  z-index: 4;
}

.hero-controls button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(8px);
  cursor: pointer;
}

.hero-mini-list {
  position: absolute;
  left: -34px;
  bottom: -30px;
  width: 270px;
  padding: 14px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.hero-mini-list h2 {
  margin: 0 0 10px;
  color: var(--gray-900);
  font-size: 18px;
}

.hero-mini-list a {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border-radius: 14px;
  color: var(--gray-700);
}

.hero-mini-list a:hover {
  background: rgba(251, 191, 36, 0.16);
  color: var(--amber-600);
}

.hero-mini-list b {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
}

.section,
.page-hero,
.detail-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 64px 22px;
}

.page-hero {
  padding-top: 118px;
  padding-bottom: 40px;
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, var(--amber-600), var(--orange-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--gray-600);
  font-size: 18px;
}

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

.section-title h2 {
  margin: 0 0 6px;
  font-size: 32px;
  line-height: 1.15;
}

.section-title p {
  margin: 0;
  color: var(--gray-600);
}

.section-link {
  color: var(--amber-600);
  font-weight: 800;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
  transition: all 0.28s ease;
}

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

.poster {
  position: relative;
  display: block;
  height: 278px;
  overflow: hidden;
  background: linear-gradient(135deg, #fed7aa, #f97316);
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.52), transparent 52%);
  opacity: 0.85;
}

.year-badge,
.rank-badge,
.play-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  font-weight: 800;
}

.year-badge {
  left: 12px;
  bottom: 12px;
  padding: 5px 10px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(8px);
}

.rank-badge {
  left: 12px;
  top: 12px;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
  box-shadow: 0 8px 18px rgba(249, 115, 22, 0.35);
}

.play-badge {
  right: 12px;
  bottom: 12px;
  padding: 6px 12px;
  color: var(--amber-600);
  background: rgba(255, 255, 255, 0.92);
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.25s ease;
}

.movie-card:hover .play-badge {
  opacity: 1;
  transform: translateY(0);
}

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

.movie-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.25;
}

.movie-card h3 a:hover {
  color: var(--amber-600);
}

.movie-card p {
  margin: 0 0 12px;
  min-height: 46px;
  color: var(--gray-600);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag-row {
  margin-bottom: 12px;
}

.tag-row span {
  color: var(--amber-600);
  background: var(--amber-50);
}

.meta-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--gray-500);
  font-size: 13px;
}

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

.category-card {
  padding: 22px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  transition: all 0.25s ease;
}

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

.category-card b {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
}

.category-card h2,
.category-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.category-card p {
  margin: 0;
  color: var(--gray-600);
  font-size: 14px;
}

.hot-band {
  background: linear-gradient(90deg, var(--amber-500), var(--orange-500));
  color: #ffffff;
}

.hot-band .section-title p,
.hot-band .section-link {
  color: rgba(255, 255, 255, 0.86);
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 54px 84px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

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

.ranking-row img {
  width: 84px;
  height: 62px;
  object-fit: cover;
  border-radius: 14px;
  background: var(--amber-100);
}

.ranking-row h2,
.ranking-row h3 {
  margin: 0 0 4px;
  font-size: 18px;
}

.ranking-row p {
  margin: 0;
  color: var(--gray-600);
  font-size: 14px;
}

.search-panel {
  padding: 18px;
  margin-bottom: 28px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.search-controls {
  display: grid;
  grid-template-columns: 1fr 180px 160px 130px;
  gap: 12px;
}

.search-panel input,
.search-panel select {
  padding: 13px 16px;
  border: 2px solid rgba(245, 158, 11, 0.22);
  background: #ffffff;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 34px;
}

.pagination a,
.pagination span {
  min-width: 42px;
  height: 42px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #ffffff;
  color: var(--gray-700);
  font-weight: 800;
  box-shadow: var(--shadow-soft);
}

.pagination .current {
  color: #ffffff;
  background: linear-gradient(90deg, var(--amber-500), var(--orange-500));
}

.detail-wrap {
  padding-top: 104px;
}

.breadcrumb {
  color: var(--gray-500);
  font-size: 14px;
  margin-bottom: 18px;
}

.breadcrumb a:hover {
  color: var(--amber-600);
}

.detail-head {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: stretch;
  margin-bottom: 34px;
}

.player-card,
.detail-info,
.content-card {
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.player-card {
  background: #111827;
}

.video-box {
  position: relative;
  background: #000000;
}

.video-box video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
  cursor: pointer;
}

.video-note {
  padding: 12px 16px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(17, 24, 39, 0.92);
  font-size: 13px;
}

.detail-info {
  padding: 28px;
}

.detail-info h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
}

.detail-one-line {
  margin: 0 0 20px;
  color: var(--gray-700);
  font-size: 18px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 18px;
}

.detail-meta span {
  padding: 7px 11px;
  border-radius: 999px;
  color: var(--amber-600);
  background: var(--amber-50);
  font-weight: 700;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.content-card {
  padding: 28px;
  margin-bottom: 26px;
}

.content-card h2 {
  margin: 0 0 14px;
  font-size: 26px;
}

.content-card p {
  margin: 0;
  color: var(--gray-700);
}

.site-footer {
  color: #ffffff;
  background: linear-gradient(135deg, #78350f, #9a3412);
  margin-top: 60px;
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 46px 22px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
}

.footer-inner p,
.footer-inner a,
.footer-inner li {
  color: rgba(255, 255, 255, 0.82);
}

.footer-inner h2 {
  margin: 0 0 12px;
  color: #fdba74;
  font-size: 18px;
}

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

.footer-inner li {
  margin-bottom: 8px;
}

.footer-tags {
  line-height: 2;
}

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

  .hero-media {
    min-height: auto;
  }

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

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

  .footer-inner {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    position: absolute;
    left: 14px;
    right: 14px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
  }

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

  .hero {
    padding-top: 96px;
  }

  .hero-search {
    border-radius: 22px;
    flex-direction: column;
  }

  .hero-search input {
    min-height: 46px;
  }

  .hero-slider {
    height: 420px;
    border-radius: 26px;
  }

  .hero-mini-list {
    position: static;
    width: auto;
    margin-top: 16px;
  }

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

  .poster {
    height: 230px;
  }

  .section,
  .page-hero,
  .detail-wrap {
    padding-left: 16px;
    padding-right: 16px;
  }

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

  .ranking-row {
    grid-template-columns: 42px 1fr;
  }

  .ranking-row img,
  .ranking-row .btn {
    display: none;
  }

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

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

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

  .poster {
    height: 300px;
  }
}
