* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #1f2937;
  background: linear-gradient(180deg, rgba(255, 247, 237, 0.55), #ffffff 26%, rgba(254, 243, 199, 0.35));
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, #fffbeb, #fff7ed, #fef3c7);
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.14);
  backdrop-filter: blur(16px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, #fb923c, #f59e0b);
  color: #ffffff;
  font-weight: 900;
  font-size: 24px;
  box-shadow: 0 15px 30px rgba(249, 115, 22, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.brand:hover .brand-mark {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 20px 40px rgba(249, 115, 22, 0.33);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-size: 24px;
  font-weight: 900;
  background: linear-gradient(90deg, #ea580c, #d97706);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-subtitle {
  margin-top: 4px;
  color: #6b7280;
  font-size: 12px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: #374151;
  font-weight: 700;
}

.site-nav a {
  position: relative;
  transition: color 0.2s ease;
}

.site-nav a:hover {
  color: #ea580c;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #fb923c, #f59e0b);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover::after {
  opacity: 1;
  transform: translateY(0);
}

.nav-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-search input,
.filter-box input,
.search-panel input {
  border: 2px solid #fed7aa;
  border-radius: 999px;
  background: #ffffff;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-search input {
  width: 230px;
  padding: 10px 16px;
}

.nav-search input:focus,
.filter-box input:focus,
.search-panel input:focus {
  border-color: #fb923c;
  box-shadow: 0 0 0 5px rgba(251, 146, 60, 0.14);
}

.nav-search button,
.filter-box button,
.search-panel button {
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #f97316, #f59e0b);
  color: #ffffff;
  font-weight: 800;
  padding: 10px 18px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-search button:hover,
.filter-box button:hover,
.search-panel button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 25px rgba(249, 115, 22, 0.22);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: #ffedd5;
  color: #9a3412;
  cursor: pointer;
}

.hero-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #ffedd5, #fef3c7 45%, #fef9c3);
}

.hero-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(58px);
  opacity: 0.28;
}

.hero-glow-a {
  top: 40px;
  left: 4vw;
  width: 300px;
  height: 300px;
  background: #fb923c;
}

.hero-glow-b {
  right: 4vw;
  bottom: 20px;
  width: 380px;
  height: 380px;
  background: #facc15;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 58px 0 72px;
}

.hero-heading {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 34px;
}

.hero-heading h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.08;
  font-weight: 950;
  background: linear-gradient(90deg, #ea580c, #d97706, #f97316);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-heading p {
  margin: 0;
  color: #4b5563;
  font-size: clamp(17px, 2vw, 22px);
}

.hero-frame {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  box-shadow: 0 34px 70px rgba(124, 45, 18, 0.28);
  background: #111827;
  aspect-ratio: 21 / 9;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.65s ease;
}

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 7s ease;
}

.hero-slide.is-active img {
  transform: scale(1.09);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.32), rgba(0, 0, 0, 0.08)), linear-gradient(0deg, rgba(0, 0, 0, 0.65), transparent 55%);
}

.hero-copy {
  position: absolute;
  left: clamp(22px, 6vw, 72px);
  right: clamp(22px, 18vw, 360px);
  bottom: clamp(24px, 6vw, 72px);
  color: #ffffff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: max-content;
  margin-bottom: 12px;
  padding: 7px 14px;
  border-radius: 999px;
  background: #f97316;
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
}

.hero-copy h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 5vw, 48px);
  line-height: 1.1;
  font-weight: 950;
}

.hero-copy p {
  max-width: 760px;
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(15px, 2vw, 19px);
  line-height: 1.7;
}

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

.hero-meta span,
.detail-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
}

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

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
  background: linear-gradient(90deg, #f97316, #f59e0b);
  color: #ffffff;
  box-shadow: 0 16px 34px rgba(249, 115, 22, 0.26);
}

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

.ghost-btn {
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  backdrop-filter: blur(12px);
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 18px;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

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

.hero-dot.is-active {
  width: 32px;
  background: #ffffff;
}

.section {
  padding: 58px 0;
}

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

.section-head > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-head h2 {
  margin: 0;
  color: #1f2937;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.2;
}

.section-head a {
  color: #ea580c;
  font-weight: 800;
}

.section-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #fb923c, #f59e0b);
  color: #ffffff;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.18);
}

.section-icon.red {
  background: linear-gradient(135deg, #f87171, #f97316);
}

.section-icon.blue {
  background: linear-gradient(135deg, #60a5fa, #06b6d4);
}

.section-icon.purple {
  background: linear-gradient(135deg, #a78bfa, #ec4899);
}

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(31, 41, 55, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 55px rgba(124, 45, 18, 0.16);
}

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

.poster-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: #111827;
}

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

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

.play-dot {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: #ea580c;
  font-weight: 900;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
}

.rank-num {
  position: absolute;
  left: 12px;
  top: 12px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #f97316, #f59e0b);
  color: #ffffff;
  box-shadow: 0 12px 22px rgba(249, 115, 22, 0.3);
}

.movie-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
}

.movie-info strong {
  color: #111827;
  font-size: 18px;
  line-height: 1.35;
}

.movie-info em {
  color: #6b7280;
  font-size: 13px;
  font-style: normal;
}

.movie-genre {
  color: #d97706;
  font-size: 13px;
  font-weight: 800;
}

.movie-desc {
  display: -webkit-box;
  min-height: 44px;
  overflow: hidden;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.tag-row span {
  padding: 5px 9px;
  border-radius: 999px;
  background: #fff7ed;
  color: #c2410c;
  font-size: 12px;
  font-weight: 700;
}

.tag-row.large span {
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.movie-card-list .movie-link {
  display: grid;
  grid-template-columns: 132px 1fr;
  min-height: 190px;
}

.movie-card-list .poster-wrap {
  aspect-ratio: auto;
  height: 100%;
}

.warm-band {
  background: linear-gradient(90deg, rgba(254, 243, 199, 0.78), rgba(255, 237, 213, 0.9));
}

.category-band {
  background: #ffffff;
}

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

.category-card,
.category-overview-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: linear-gradient(135deg, #ffedd5, #fef3c7);
  padding: 24px;
  box-shadow: 0 15px 35px rgba(245, 158, 11, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card::after,
.category-overview-card::after {
  content: "";
  position: absolute;
  right: -34px;
  top: -34px;
  width: 94px;
  height: 94px;
  border-radius: 999px;
  background: rgba(251, 146, 60, 0.18);
  transition: transform 0.4s ease;
}

.category-card:hover,
.category-overview-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px rgba(245, 158, 11, 0.18);
}

.category-card:hover::after,
.category-overview-card:hover::after {
  transform: scale(1.8);
}

.category-card span,
.category-title {
  position: relative;
  z-index: 1;
  display: block;
  margin-bottom: 10px;
  color: #111827;
  font-size: 19px;
  font-weight: 900;
}

.category-card small,
.category-overview-card p {
  position: relative;
  z-index: 1;
  color: #4b5563;
  line-height: 1.65;
}

.page-hero {
  background: linear-gradient(135deg, #ffedd5, #fef3c7 55%, #fef9c3);
  padding: 46px 0 52px;
}

.back-link {
  display: inline-flex;
  margin-bottom: 18px;
  color: #ea580c;
  font-weight: 800;
}

.page-hero h1 {
  margin: 0 0 12px;
  color: #111827;
  font-size: clamp(34px, 5vw, 50px);
  line-height: 1.12;
}

.page-hero p {
  max-width: 780px;
  margin: 0;
  color: #4b5563;
  font-size: 18px;
  line-height: 1.75;
}

.filter-box,
.search-panel {
  display: flex;
  max-width: 760px;
  gap: 12px;
  margin-top: 24px;
}

.filter-box input,
.search-panel input {
  flex: 1;
  padding: 13px 18px;
}

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

.category-overview-card {
  background: #ffffff;
}

.category-samples {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.category-samples a {
  border-radius: 999px;
  background: #fff7ed;
  color: #c2410c;
  padding: 7px 11px;
  font-size: 13px;
  font-weight: 700;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 600px;
  background: #111827;
  color: #ffffff;
}

.detail-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  filter: blur(24px) saturate(1.15);
  transform: scale(1.12);
  opacity: 0.35;
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.94), rgba(17, 24, 39, 0.72), rgba(17, 24, 39, 0.56));
}

.detail-hero-inner {
  position: relative;
  z-index: 1;
  padding: 44px 0 60px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #fed7aa;
}

.detail-layout {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 42px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: 26px;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.38);
}

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

.detail-copy h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.1;
}

.detail-copy p {
  max-width: 820px;
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 19px;
  line-height: 1.8;
}

.player-section h2 {
  margin: 0 0 20px;
  font-size: clamp(24px, 3vw, 34px);
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #000000;
  box-shadow: 0 30px 65px rgba(17, 24, 39, 0.22);
  aspect-ratio: 16 / 9;
}

.movie-player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.76));
  color: #ffffff;
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-cover.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.player-button {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: #ea580c;
  font-size: 34px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.player-cover strong {
  font-size: 22px;
}

.detail-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.content-card {
  border-radius: 24px;
  background: #ffffff;
  padding: 28px;
  box-shadow: 0 16px 40px rgba(31, 41, 55, 0.08);
}

.content-card h2 {
  margin: 0 0 14px;
  color: #111827;
}

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

.hot-words {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.hot-words button {
  border: 0;
  border-radius: 999px;
  background: #ffffff;
  color: #c2410c;
  padding: 8px 14px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(249, 115, 22, 0.12);
}

.empty-state {
  grid-column: 1 / -1;
  border-radius: 24px;
  background: #ffffff;
  padding: 42px;
  text-align: center;
  color: #6b7280;
  box-shadow: 0 16px 40px rgba(31, 41, 55, 0.08);
}

.site-footer {
  background: #111827;
  color: rgba(255, 255, 255, 0.78);
  padding: 46px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 30px;
}

.footer-brand {
  display: inline-flex;
  margin-bottom: 12px;
  color: #ffffff;
  font-size: 24px;
  font-weight: 950;
}

.site-footer p {
  max-width: 420px;
  margin: 0;
  line-height: 1.75;
}

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

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

.footer-links a {
  color: rgba(255, 255, 255, 0.78);
}

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

.is-filtered-out {
  display: none !important;
}

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

  .nav-toggle {
    display: grid;
    place-items: center;
  }

  .site-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: calc(100% + 10px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border: 1px solid #fed7aa;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 22px 45px rgba(124, 45, 18, 0.15);
    padding: 12px;
  }

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

  .site-nav a {
    padding: 13px 14px;
    border-radius: 14px;
  }

  .site-nav a:hover {
    background: #fff7ed;
  }

  .site-nav a::after {
    display: none;
  }

  .hero-frame {
    aspect-ratio: 16 / 10;
  }

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

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

  .detail-layout {
    grid-template-columns: 220px 1fr;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .nav-wrap {
    min-height: 66px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 15px;
  }

  .brand-name {
    font-size: 20px;
  }

  .brand-subtitle {
    display: none;
  }

  .hero-inner {
    padding: 38px 0 48px;
  }

  .hero-frame {
    border-radius: 22px;
    aspect-ratio: 4 / 5;
  }

  .hero-copy {
    left: 18px;
    right: 18px;
    bottom: 38px;
  }

  .hero-meta span:nth-child(n + 3) {
    display: none;
  }

  .hero-actions {
    gap: 8px;
  }

  .primary-btn,
  .ghost-btn {
    padding: 10px 15px;
  }

  .section {
    padding: 42px 0;
  }

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

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

  .movie-card-list .movie-link {
    grid-template-columns: 110px 1fr;
    min-height: 164px;
  }

  .movie-card-list .movie-desc,
  .movie-card-list .tag-row {
    display: none;
  }

  .filter-box,
  .search-panel {
    flex-direction: column;
  }

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

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

  .detail-copy p {
    font-size: 16px;
  }

  .player-shell {
    border-radius: 18px;
  }

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