* {
  box-sizing: border-box;
}

:root {
  color-scheme: light;
  --orange: #f97316;
  --orange-dark: #c2410c;
  --amber: #f59e0b;
  --yellow: #facc15;
  --ink: #1f2937;
  --muted: #6b7280;
  --soft: #fff7ed;
  --panel: #ffffff;
  --line: #fed7aa;
  --shadow: 0 18px 45px rgba(124, 45, 18, 0.16);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #fff7ed 0%, #fff 35%, #fffbeb 100%);
  line-height: 1.65;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, #d97706, #f97316, #eab308);
  box-shadow: 0 12px 30px rgba(120, 53, 15, 0.22);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
  font-size: 25px;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.18;
}

.brand-copy strong {
  font-size: 21px;
  letter-spacing: 0.04em;
}

.brand-copy small {
  color: #fef3c7;
  font-size: 12px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-link,
.mobile-link {
  color: #fff;
  border-radius: 12px;
  font-weight: 700;
  transition: 0.25s ease;
}

.nav-link {
  padding: 9px 14px;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  background: #fff;
  color: var(--orange-dark);
  box-shadow: 0 8px 18px rgba(120, 53, 15, 0.16);
}

.menu-toggle {
  display: none;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  width: 44px;
  height: 44px;
  font-size: 24px;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 14px;
}

.mobile-link {
  display: block;
  padding: 11px 14px;
}

.hero-carousel {
  position: relative;
  overflow: hidden;
  min-height: 680px;
  background: radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.28), transparent 25%), linear-gradient(135deg, #b45309 0%, #f97316 48%, #eab308 100%);
}

.float-icons {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.12;
  color: #fff;
}

.float-icons span {
  position: absolute;
  font-size: clamp(52px, 8vw, 104px);
  filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.18));
}

.float-icons span:nth-child(1) {
  top: 9%;
  left: 6%;
}

.float-icons span:nth-child(2) {
  top: 20%;
  right: 10%;
}

.float-icons span:nth-child(3) {
  bottom: 14%;
  left: 23%;
}

.float-icons span:nth-child(4) {
  right: 9%;
  bottom: 8%;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 88px 0 96px;
}

.hero-slide {
  display: none;
  align-items: center;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 54px;
}

.hero-slide.active {
  display: grid;
  animation: fadeIn 0.6s ease both;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-text {
  color: #fff;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #9a3412;
  background: #ffedd5;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.hero-text .eyebrow {
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(6px);
}

.hero-text h1 {
  margin: 22px 0 20px;
  font-size: clamp(40px, 7vw, 70px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-summary {
  max-width: 680px;
  color: #fffbeb;
  font-size: 20px;
}

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

.hero-meta {
  margin: 26px 0 32px;
}

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

.meta-line span {
  background: #fff7ed;
  color: #c2410c;
}

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

.primary-button,
.ghost-button,
.text-button,
.rank-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 900;
  transition: 0.25s ease;
}

.primary-button {
  color: #ea580c;
  background: #fff;
  padding: 14px 28px;
  box-shadow: 0 18px 32px rgba(120, 53, 15, 0.18);
}

.primary-button:hover,
.rank-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 35px rgba(120, 53, 15, 0.25);
}

.ghost-button {
  color: #fff;
  background: #b45309;
  padding: 14px 28px;
}

.ghost-button.light {
  background: rgba(255, 255, 255, 0.2);
}

.hero-art {
  position: relative;
  display: block;
  overflow: hidden;
  border: 10px solid rgba(255, 255, 255, 0.2);
  border-radius: 34px;
  box-shadow: 0 28px 70px rgba(69, 26, 3, 0.38);
  transform: rotate(1deg);
  transition: 0.35s ease;
}

.hero-art:hover {
  transform: rotate(0) scale(1.025);
}

.hero-art img {
  width: 100%;
  height: 460px;
  object-fit: cover;
}

.hero-ribbon {
  position: absolute;
  right: 18px;
  top: 18px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  padding: 10px 18px;
  font-weight: 900;
  transform: rotate(8deg);
}

.hero-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 34px;
}

.hero-dot {
  width: 11px;
  height: 11px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  transition: 0.25s ease;
}

.hero-dot.active {
  width: 38px;
  background: #fff;
}

.hero-search {
  width: min(760px, 100%);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin: 32px auto 0;
  padding: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
}

.hero-search input,
.content-search {
  width: 100%;
  border: 0;
  outline: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
}

.hero-search input {
  padding: 15px 22px;
  font-size: 16px;
}

.hero-search button {
  border: 0;
  border-radius: 999px;
  background: #78350f;
  color: #fff;
  padding: 0 25px;
  font-weight: 900;
}

.wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 82px;
  background: linear-gradient(180deg, transparent, rgba(255, 247, 237, 0.9));
}

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

.soft-bg {
  width: 100%;
  max-width: none;
  padding-left: max(16px, calc((100% - 1180px) / 2));
  padding-right: max(16px, calc((100% - 1180px) / 2));
  background: linear-gradient(180deg, #fff7ed, #fffbeb);
}

.section-head {
  max-width: 760px;
  margin: 0 auto 42px;
  text-align: center;
}

.left-head {
  text-align: left;
  margin: 0;
}

.section-head h2,
.page-hero h1,
.detail-copy h1 {
  margin: 14px 0 12px;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.12;
  color: #111827;
}

.section-head p,
.page-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

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

.category-card,
.category-title-card,
.detail-panel,
.movie-card,
.rank-row,
.tool-panel {
  border: 1px solid #fed7aa;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.category-card {
  display: flex;
  min-height: 230px;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
  border-radius: 26px;
  padding: 22px;
  transition: 0.25s ease;
}

.category-card:hover,
.movie-card:hover,
.mini-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 56px rgba(124, 45, 18, 0.22);
}

.cat-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, #fb923c, #facc15);
  font-size: 28px;
}

.category-card strong {
  font-size: 23px;
}

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

.cat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: auto;
}

.cat-strip img {
  width: 100%;
  height: 64px;
  border-radius: 12px;
  object-fit: cover;
}

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

.listing-grid {
  grid-template-columns: repeat(5, 1fr);
}

.movie-card {
  overflow: hidden;
  border-radius: 26px;
  transition: 0.28s ease;
}

.poster {
  position: relative;
  display: block;
  overflow: hidden;
  background: #fed7aa;
}

.poster img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: 0.35s ease;
}

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

.play-badge {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #fff;
  color: #ea580c;
  font-weight: 900;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.card-body {
  padding: 18px;
}

.card-body h3 {
  margin: 12px 0 8px;
  font-size: 19px;
  line-height: 1.32;
}

.card-body h3 a:hover,
.rank-info h3 a:hover,
.mini-card strong:hover {
  color: var(--orange);
}

.card-body p {
  min-height: 52px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
}

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

.tag-row span {
  display: inline-flex;
  border-radius: 999px;
  background: #fff7ed;
  color: #c2410c;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
}

.big-tags span {
  font-size: 13px;
  padding: 7px 12px;
}

.split-block {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 42px;
  align-items: start;
}

.text-button {
  margin-top: 24px;
  color: #fff;
  background: linear-gradient(90deg, #f97316, #f59e0b);
  padding: 12px 22px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 60px 86px 1fr auto;
  align-items: center;
  gap: 16px;
  border-radius: 22px;
  padding: 12px;
}

.rank-num {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, #f97316, #facc15);
  font-size: 18px;
  font-weight: 900;
}

.rank-poster img {
  width: 86px;
  height: 110px;
  border-radius: 16px;
  object-fit: cover;
}

.rank-info h3 {
  margin: 8px 0 6px;
  font-size: 20px;
}

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

.rank-action {
  color: #fff;
  background: #ea580c;
  padding: 10px 18px;
}

.full-rank .rank-row {
  grid-template-columns: 70px 96px 1fr auto;
}

.page-hero {
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 66px max(16px, calc((100% - 1180px) / 2));
  background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.34), transparent 25%), linear-gradient(135deg, #fff7ed, #ffedd5 48%, #fef3c7);
}

.page-hero > div {
  max-width: 860px;
}

.category-overview-wrap {
  display: grid;
  gap: 34px;
}

.category-overview {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 22px;
  align-items: stretch;
}

.category-title-card {
  display: flex;
  align-items: center;
  gap: 18px;
  border-radius: 26px;
  padding: 24px;
}

.category-title-card span {
  font-size: 42px;
}

.category-title-card h2 {
  margin: 0 0 6px;
}

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

.mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.mini-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
  border-radius: 18px;
  background: #fff;
  padding: 10px;
  box-shadow: 0 10px 25px rgba(124, 45, 18, 0.1);
  transition: 0.25s ease;
}

.mini-card img {
  width: 72px;
  height: 88px;
  border-radius: 14px;
  object-fit: cover;
}

.mini-card strong,
.mini-card small {
  display: block;
}

.mini-card small {
  margin-top: 4px;
  color: var(--muted);
}

.tool-panel {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 18px;
  align-items: center;
  border-radius: 24px;
  padding: 16px;
  margin-bottom: 28px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-box span {
  font-size: 22px;
}

.content-search {
  border: 1px solid #fed7aa;
  padding: 14px 18px;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  justify-content: flex-end;
}

.filter-button {
  border: 0;
  border-radius: 999px;
  background: #f3f4f6;
  color: #374151;
  padding: 10px 15px;
  font-weight: 800;
  transition: 0.2s ease;
}

.filter-button.active,
.filter-button:hover {
  background: linear-gradient(90deg, #f97316, #f59e0b);
  color: #fff;
}

.breadcrumb {
  width: min(1180px, calc(100% - 32px));
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 26px auto 0;
  color: #9a3412;
  font-weight: 700;
}

.detail-hero {
  width: min(1180px, calc(100% - 32px));
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 44px;
  align-items: center;
  margin: 34px auto 56px;
  padding: 34px;
  border-radius: 34px;
  background: linear-gradient(135deg, #fff7ed, #ffffff 45%, #fffbeb);
  box-shadow: var(--shadow);
}

.detail-cover img {
  width: 100%;
  height: 500px;
  border-radius: 26px;
  object-fit: cover;
  box-shadow: 0 22px 45px rgba(124, 45, 18, 0.2);
}

.detail-copy h1 {
  margin-top: 18px;
}

.detail-one {
  max-width: 760px;
  color: #4b5563;
  font-size: 19px;
}

.detail-meta {
  margin: 22px 0;
}

.detail-meta span {
  background: #fff7ed;
  color: #c2410c;
}

.player-section,
.detail-layout {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 54px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  background: #111827;
  box-shadow: 0 30px 70px rgba(17, 24, 39, 0.32);
}

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

.play-cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: #fff;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.12), rgba(17, 24, 39, 0.78));
  cursor: pointer;
  transition: 0.25s ease;
}

.play-cover span {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #fff;
  color: #ea580c;
  font-size: 34px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.play-cover strong {
  font-size: 20px;
}

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

.detail-layout {
  display: grid;
  gap: 26px;
}

.detail-panel {
  border-radius: 28px;
  padding: 30px;
}

.detail-panel h2 {
  margin: 0 0 16px;
  font-size: 28px;
}

.detail-panel p {
  margin: 0;
  color: #4b5563;
  font-size: 17px;
}

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

.site-footer {
  margin-top: 46px;
  padding: 42px max(16px, calc((100% - 1180px) / 2));
  background: #78350f;
  color: #fffbeb;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.footer-grid p {
  max-width: 680px;
  margin: 10px 0 0;
  color: #fde68a;
}

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

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

.copyright {
  margin: 30px 0 0;
  color: #fde68a;
}

.data-card.is-hidden {
  display: none;
}

@media (max-width: 1120px) {
  .movie-grid,
  .listing-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .hero-slide,
  .detail-hero,
  .split-block,
  .category-overview {
    grid-template-columns: 1fr;
  }

  .left-head {
    text-align: center;
    margin: 0 auto;
  }
}

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

  .menu-toggle {
    display: block;
  }

  .mobile-nav.open {
    display: grid;
    gap: 8px;
  }

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

  .hero-inner {
    padding: 52px 0 76px;
  }

  .hero-art img {
    height: 330px;
  }

  .hero-search,
  .tool-panel,
  .rank-row,
  .full-rank .rank-row {
    grid-template-columns: 1fr;
    border-radius: 24px;
  }

  .hero-search button {
    padding: 13px 18px;
  }

  .movie-grid,
  .listing-grid,
  .category-grid,
  .mini-grid,
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-hero {
    min-height: auto;
    align-items: flex-start;
    flex-direction: column;
    padding-top: 46px;
    padding-bottom: 46px;
  }

  .detail-hero {
    padding: 20px;
  }

  .detail-cover img {
    height: 380px;
  }

  .rank-row {
    text-align: center;
  }

  .rank-poster img,
  .rank-num {
    margin: 0 auto;
  }

  .rank-action {
    width: 100%;
  }

  .footer-grid {
    display: grid;
  }

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

@media (max-width: 520px) {
  .nav-wrap {
    width: min(100% - 20px, 1180px);
  }

  .brand-copy strong {
    font-size: 18px;
  }

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

  .poster img {
    height: 340px;
  }

  .hero-text h1 {
    font-size: 36px;
  }

  .hero-summary {
    font-size: 17px;
  }

  .section-block {
    padding: 54px 0;
  }
}
