* {
  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: #0f172a;
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 36%, #f8fafc 100%);
}

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

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

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, #f59e0b, #f97316, #d97706);
  box-shadow: 0 16px 35px rgba(120, 53, 15, 0.25);
}

.nav-inner {
  max-width: 1240px;
  height: 64px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-size: 24px;
  font-weight: 800;
  white-space: nowrap;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #f59e0b;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
  transition: transform 0.28s ease;
}

.brand:hover .brand-mark {
  transform: rotate(12deg) scale(1.04);
}

.nav-links {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  color: #fff7ed;
  font-size: 15px;
  font-weight: 650;
  overflow: hidden;
}

.nav-links a {
  opacity: 0.94;
  transition: color 0.2s ease, opacity 0.2s ease;
  white-space: nowrap;
}

.nav-links a:hover {
  color: #fffbeb;
  opacity: 1;
}

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

.nav-search input,
.mobile-search input,
.filter-bar input,
.filter-bar select,
.search-panel input,
.search-panel select {
  border: 0;
  outline: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #0f172a;
  padding: 10px 14px;
  box-shadow: inset 0 0 0 1px rgba(251, 191, 36, 0.28);
}

.nav-search input {
  width: 230px;
  padding-right: 72px;
}

.nav-search button,
.mobile-search button,
.search-panel button {
  border: 0;
  border-radius: 999px;
  padding: 9px 14px;
  color: #92400e;
  background: #fffbeb;
  font-weight: 750;
  cursor: pointer;
}

.nav-search button {
  position: absolute;
  right: 4px;
}

.menu-button {
  display: none;
  border: 0;
  background: transparent;
  color: #ffffff;
  font-size: 26px;
}

.mobile-panel {
  display: none;
  padding: 16px 20px 20px;
  background: linear-gradient(180deg, #d97706, #ea580c);
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.mobile-panel a {
  display: block;
  color: #ffffff;
  padding: 10px 0;
  font-weight: 650;
}

.mobile-panel.is-open {
  display: block;
}

.hero-carousel {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: #0f172a;
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  filter: saturate(1.08);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 20%, rgba(251, 191, 36, 0.25), transparent 32%), linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.72) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  min-height: 620px;
  margin: 0 auto;
  padding: 116px 20px 80px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) 360px;
  gap: 56px;
  align-items: center;
  color: #ffffff;
}

.eyebrow {
  display: inline-flex;
  padding: 7px 13px;
  border-radius: 999px;
  color: #fffbeb;
  background: rgba(251, 191, 36, 0.22);
  box-shadow: inset 0 0 0 1px rgba(253, 230, 138, 0.38);
  font-size: 14px;
  font-weight: 700;
}

.hero-copy h1 {
  max-width: 760px;
  margin: 20px 0 16px;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
  text-shadow: 0 20px 40px rgba(15, 23, 42, 0.48);
}

.hero-copy p {
  max-width: 760px;
  margin: 0;
  color: #ffedd5;
  font-size: 18px;
  line-height: 1.85;
}

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

.hero-tags {
  margin-top: 22px;
}

.hero-tags span,
.tag-row span,
.meta-row span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
}

.hero-tags span {
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

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

.primary-button,
.ghost-button,
.more-link,
.play-layer,
.search-panel button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.primary-button {
  padding: 13px 24px;
  color: #92400e;
  background: #ffffff;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.25);
}

.primary-button:hover,
.ghost-button:hover,
.more-link:hover,
.play-layer:hover,
.search-panel button:hover {
  transform: translateY(-2px);
}

.ghost-button {
  padding: 12px 22px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(10px);
}

.hero-poster {
  position: relative;
  display: block;
  border-radius: 28px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 26px 60px rgba(15, 23, 42, 0.44);
  transform: rotate(1deg);
}

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

.hero-poster span {
  position: absolute;
  left: 18px;
  bottom: 18px;
  border-radius: 999px;
  padding: 10px 16px;
  color: #92400e;
  background: #ffffff;
  font-weight: 800;
}

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

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

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

.main-wrap,
.page-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 52px 20px;
}

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

.page-head {
  align-items: start;
}

.section-title,
.page-head h1,
.detail-title h1 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-head p,
.page-head p,
.detail-title p,
.footer-grid p {
  margin: 8px 0 0;
  color: #64748b;
  line-height: 1.75;
}

.more-link {
  padding: 10px 16px;
  color: #92400e;
  background: #ffedd5;
}

.category-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-bottom: 44px;
}

.category-tile {
  min-height: 132px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 24px;
  padding: 18px;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #ea580c 58%, #7c2d12);
  box-shadow: 0 18px 34px rgba(234, 88, 12, 0.22);
}

.category-tile strong {
  font-size: 21px;
}

.category-tile span {
  color: #ffedd5;
  font-size: 13px;
  line-height: 1.55;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 54px rgba(146, 64, 14, 0.16);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #fde68a, #fed7aa);
}

.poster-link img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.poster-play,
.rank-badge {
  position: absolute;
  border-radius: 999px;
  font-weight: 850;
}

.poster-play {
  right: 12px;
  bottom: 12px;
  padding: 8px 12px;
  color: #92400e;
  background: rgba(255, 255, 255, 0.92);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

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

.rank-badge {
  left: 12px;
  top: 12px;
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, #ef4444, #f59e0b);
  box-shadow: 0 10px 20px rgba(127, 29, 29, 0.26);
}

.card-body {
  padding: 16px;
}

.card-meta {
  display: flex;
  gap: 8px;
  color: #d97706;
  font-size: 12px;
  font-weight: 800;
}

.card-body h3 {
  min-height: 52px;
  margin: 8px 0;
  color: #0f172a;
  font-size: 17px;
  line-height: 1.45;
  font-weight: 850;
}

.card-body p {
  min-height: 46px;
  margin: 0 0 12px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.65;
}

.tag-row span,
.detail-tags span,
.meta-row span {
  color: #92400e;
  background: #ffedd5;
}

.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 26px;
  align-items: start;
}

.panel {
  border-radius: 28px;
  padding: 24px;
  background: #ffffff;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
}

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

.small-card {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  border-radius: 18px;
  padding: 10px;
  background: #fff7ed;
  transition: background 0.2s ease, transform 0.2s ease;
}

.small-card:hover {
  background: #ffedd5;
  transform: translateX(3px);
}

.small-card img {
  width: 84px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 14px;
  background: #fed7aa;
}

.small-card strong {
  display: block;
  color: #0f172a;
  font-size: 15px;
  line-height: 1.4;
}

.small-card span {
  display: block;
  margin-top: 5px;
  color: #d97706;
  font-size: 12px;
  font-weight: 750;
}

.small-card p {
  margin: 5px 0 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.5;
}

.small-rank {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
  border-radius: 999px;
  color: #ffffff !important;
  background: linear-gradient(135deg, #ef4444, #f59e0b);
}

.filter-bar,
.search-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px;
  margin-bottom: 24px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.07);
}

.filter-bar input {
  min-width: 260px;
  flex: 1;
}

.filter-bar select {
  min-width: 150px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  color: #d97706;
  font-size: 14px;
  font-weight: 750;
}

.detail-hero {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  padding: 34px;
  border-radius: 34px;
  background: radial-gradient(circle at 20% 0%, #fed7aa, transparent 34%), linear-gradient(135deg, #ffffff, #fff7ed);
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.08);
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 22px 42px rgba(15, 23, 42, 0.18);
  background: #fed7aa;
}

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

.meta-row {
  margin: 18px 0;
}

.player-section {
  margin-top: 34px;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #020617;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.24);
}

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

.play-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.16), rgba(15, 23, 42, 0.74));
  cursor: pointer;
  font-size: 22px;
  letter-spacing: 0.06em;
}

.play-layer span {
  width: 86px;
  height: 86px;
  display: inline-grid;
  place-items: center;
  margin-right: 14px;
  border-radius: 999px;
  color: #92400e;
  background: #ffffff;
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.28);
}

.player-box.is-playing .play-layer {
  display: none;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 26px;
  align-items: start;
  margin-top: 34px;
}

.article-body h2,
.panel h2 {
  margin: 0 0 16px;
  font-size: 25px;
  font-weight: 900;
}

.article-body p {
  margin: 0 0 18px;
  color: #334155;
  line-height: 2;
  font-size: 16px;
}

.search-panel input {
  min-width: 280px;
  flex: 1;
}

.result-empty {
  padding: 34px;
  border-radius: 24px;
  color: #64748b;
  background: #ffffff;
  text-align: center;
}

.site-footer {
  margin-top: 36px;
  color: #ffffff;
  background: linear-gradient(180deg, #0f172a, #020617);
}

.footer-grid {
  max-width: 1240px;
  margin: 0 auto;
  padding: 44px 20px;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr 0.75fr 1fr;
  gap: 28px;
}

.footer-brand {
  color: #fbbf24;
  font-size: 24px;
  font-weight: 900;
}

.footer-grid h3 {
  margin: 0 0 12px;
  color: #fbbf24;
}

.footer-grid a {
  display: block;
  margin: 7px 0;
  color: #cbd5e1;
}

.footer-grid p {
  color: #94a3b8;
}

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

  .menu-button {
    display: block;
  }

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

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

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

  .hero-content,
  .detail-hero,
  .split-grid,
  .content-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-content {
    padding-top: 94px;
  }

  .hero-poster,
  .detail-poster {
    max-width: 320px;
  }

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

@media (max-width: 640px) {
  .brand-text {
    font-size: 19px;
  }

  .hero-carousel,
  .hero-content {
    min-height: 720px;
  }

  .hero-copy h1 {
    font-size: 38px;
  }

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

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

  .card-body h3 {
    font-size: 15px;
  }

  .detail-hero,
  .panel {
    padding: 20px;
  }
}
