:root {
  --bg: #fff7ed;
  --bg-soft: #fffbeb;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #fde68a;
  --brand: #d97706;
  --brand-dark: #92400e;
  --brand-deep: #78350f;
  --brand-soft: #fef3c7;
  --shadow: 0 18px 45px rgba(146, 64, 14, 0.16);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.20), transparent 32rem),
    linear-gradient(180deg, #fff7ed 0%, #ffffff 42%, #fffbeb 100%);
  font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(251, 191, 36, 0.35);
  background: rgba(255, 251, 235, 0.86);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  color: var(--brand-deep);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 13px;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  box-shadow: 0 12px 25px rgba(217, 119, 6, 0.32);
}

.brand-text {
  font-size: 1.18rem;
  background: linear-gradient(90deg, #92400e, #ea580c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav-link {
  padding: 9px 14px;
  border-radius: 13px;
  color: #7c2d12;
  font-weight: 700;
  font-size: 0.94rem;
  transition: 0.22s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #78350f;
  background: #fde68a;
}

.header-search {
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid #fcd34d;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(217, 119, 6, 0.08);
}

.header-search input {
  width: 190px;
  border: 0;
  outline: 0;
  padding: 10px 12px 10px 16px;
  background: transparent;
}

.header-search button,
.primary-button,
.ghost-button,
.filter-button,
.play-control {
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

.header-search button {
  padding: 10px 15px;
  color: #ffffff;
  background: linear-gradient(135deg, #d97706, #ea580c);
  font-weight: 700;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  color: #7c2d12;
  background: #fde68a;
  font-size: 1.25rem;
}

.mobile-panel {
  display: none;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 12px;
  border: 1px solid #fcd34d;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.mobile-panel a,
.mobile-cats a {
  display: block;
  padding: 11px 12px;
  border-radius: 12px;
  color: #7c2d12;
  font-weight: 700;
}

.mobile-panel a:hover,
.mobile-cats a:hover {
  background: #fef3c7;
}

.mobile-cats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid #fde68a;
}

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

.page-main {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 64px;
}

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: #1c1208;
}

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

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

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

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

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 28%, rgba(251, 191, 36, 0.28), transparent 22rem),
    linear-gradient(0deg, rgba(24, 16, 8, 0.94), rgba(24, 16, 8, 0.16) 45%, rgba(24, 16, 8, 0.84));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1240px, calc(100% - 32px));
  min-height: 620px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: center;
  gap: 54px;
  padding: 92px 0 72px;
}

.hero-copy {
  max-width: 760px;
  color: #ffffff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 8px 13px;
  border: 1px solid rgba(252, 211, 77, 0.45);
  border-radius: 999px;
  color: #fde68a;
  background: rgba(120, 53, 15, 0.46);
  backdrop-filter: blur(12px);
  font-weight: 800;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.45rem, 7vw, 5.25rem);
  line-height: 1.05;
  letter-spacing: -0.06em;
  text-shadow: 0 22px 60px rgba(0, 0, 0, 0.46);
}

.hero p {
  max-width: 680px;
  margin: 22px 0 0;
  color: rgba(255, 251, 235, 0.88);
  font-size: clamp(1rem, 2.2vw, 1.28rem);
}

.hero-tags,
.card-tags,
.detail-tags,
.cat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

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

.hero-tags span,
.card-tags span,
.detail-tags span,
.cat-pills a {
  border: 1px solid rgba(251, 191, 36, 0.45);
  border-radius: 999px;
  background: rgba(254, 243, 199, 0.12);
  color: #fef3c7;
  font-size: 0.84rem;
  font-weight: 800;
}

.hero-tags span {
  padding: 7px 12px;
}

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

.primary-button,
.ghost-button,
.filter-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 45px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 900;
  transition: 0.22s ease;
}

.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  box-shadow: 0 18px 36px rgba(234, 88, 12, 0.32);
}

.primary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 45px rgba(234, 88, 12, 0.38);
}

.ghost-button {
  color: #fff7ed;
  border: 1px solid rgba(253, 230, 138, 0.48);
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(12px);
}

.ghost-button:hover {
  background: rgba(255, 255, 255, 0.18);
}

.hero-poster {
  display: block;
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border: 1px solid rgba(253, 230, 138, 0.4);
  border-radius: 30px;
  background: linear-gradient(145deg, #92400e, #f59e0b);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.45);
  transform: rotate(2deg);
}

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

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

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

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

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin: 46px 0 20px;
}

.section-head h2,
.page-title h1,
.detail-copy h1 {
  margin: 0;
  color: #1f2937;
  font-size: clamp(1.7rem, 4vw, 2.55rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.section-head p,
.page-title p {
  margin: 8px 0 0;
  color: var(--muted);
}

.more-link {
  color: #b45309;
  font-weight: 900;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(251, 191, 36, 0.45);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.90);
  box-shadow: 0 14px 35px rgba(146, 64, 14, 0.08);
  transition: 0.22s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(145deg, #fef3c7, #d97706);
}

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

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

.poster-shade {
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent);
}

.duration,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 900;
  font-size: 0.8rem;
}

.duration {
  right: 12px;
  bottom: 12px;
  padding: 4px 9px;
  background: rgba(0, 0, 0, 0.62);
}

.rank-badge {
  top: 12px;
  left: 12px;
  min-width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  box-shadow: 0 10px 24px rgba(234, 88, 12, 0.35);
}

.card-body {
  padding: 16px;
}

.card-tags span,
.detail-tags span,
.cat-pills a {
  padding: 5px 9px;
  color: #92400e;
  background: #fffbeb;
  border-color: #fde68a;
}

.card-body h3 {
  margin: 10px 0 7px;
  color: #111827;
  font-size: 1.05rem;
  line-height: 1.35;
}

.card-body h3 a:hover {
  color: #d97706;
}

.card-body p {
  display: -webkit-box;
  min-height: 3.1em;
  margin: 0;
  overflow: hidden;
  color: #6b7280;
  font-size: 0.92rem;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 13px;
  color: #9a3412;
  font-size: 0.82rem;
  font-weight: 800;
}

.card-meta span {
  padding: 4px 8px;
  border-radius: 999px;
  background: #fff7ed;
}

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

.cat-card {
  min-height: 138px;
  padding: 20px;
  border-radius: 22px;
  border: 1px solid rgba(251, 191, 36, 0.45);
  background:
    radial-gradient(circle at 90% 10%, rgba(245, 158, 11, 0.24), transparent 7rem),
    linear-gradient(145deg, #ffffff, #fffbeb);
  box-shadow: 0 14px 36px rgba(146, 64, 14, 0.08);
}

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

.cat-card h3 {
  margin: 0 0 8px;
  color: #92400e;
}

.cat-card p {
  margin: 0;
  color: #78716c;
  font-size: 0.94rem;
}

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

.rank-panel {
  position: sticky;
  top: 96px;
  padding: 18px;
  border: 1px solid rgba(251, 191, 36, 0.45);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.rank-panel h2 {
  margin: 0 0 14px;
  color: #78350f;
  font-size: 1.25rem;
}

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

.rank-item,
.mini-card {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 9px;
  border-radius: 16px;
  background: #fff7ed;
  transition: 0.2s ease;
}

.rank-item:hover,
.mini-card:hover {
  background: #fde68a;
}

.rank-num {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, #d97706, #ea580c);
  font-weight: 900;
}

.rank-title,
.mini-card strong {
  display: block;
  overflow: hidden;
  color: #1f2937;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-meta,
.mini-card em {
  display: block;
  overflow: hidden;
  color: #92400e;
  font-size: 0.82rem;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-title {
  margin-bottom: 24px;
  padding: 30px;
  border-radius: 28px;
  color: #1f2937;
  background:
    radial-gradient(circle at 100% 0%, rgba(251, 191, 36, 0.28), transparent 18rem),
    linear-gradient(135deg, #ffffff, #fff7ed);
  border: 1px solid rgba(251, 191, 36, 0.45);
  box-shadow: 0 14px 38px rgba(146, 64, 14, 0.08);
}

.cat-pills {
  margin-top: 18px;
}

.filters {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px 170px;
  gap: 12px;
  margin-bottom: 24px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(251, 191, 36, 0.45);
  background: #ffffff;
}

.filters input,
.filters select {
  width: 100%;
  min-height: 46px;
  border: 1px solid #fcd34d;
  border-radius: 14px;
  padding: 0 13px;
  outline: 0;
  color: #1f2937;
  background: #fffbeb;
  font-family: inherit;
}

.filters input:focus,
.filters select:focus {
  border-color: #d97706;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.20);
}

.filter-button {
  color: #ffffff;
  background: linear-gradient(135deg, #d97706, #ea580c);
}

.detail-hero {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 34px;
  align-items: end;
  min-height: 480px;
  padding: 42px;
  border-radius: 34px;
  color: #ffffff;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow);
}

.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 15%, rgba(245, 158, 11, 0.28), transparent 18rem),
    linear-gradient(90deg, rgba(24, 16, 8, 0.94), rgba(120, 53, 15, 0.82), rgba(24, 16, 8, 0.42));
}

.detail-poster,
.detail-copy {
  position: relative;
  z-index: 1;
}

.detail-poster {
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border: 1px solid rgba(253, 230, 138, 0.45);
  border-radius: 28px;
  box-shadow: 0 28px 75px rgba(0, 0, 0, 0.42);
  background: linear-gradient(145deg, #92400e, #f59e0b);
}

.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.breadcrumb {
  margin: 0 0 14px;
  color: #fde68a;
  font-weight: 800;
}

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

.detail-copy h1 {
  color: #ffffff;
  font-size: clamp(2rem, 5vw, 4.4rem);
}

.detail-copy .intro {
  max-width: 760px;
  margin: 16px 0 0;
  color: rgba(255, 251, 235, 0.92);
  font-size: 1.08rem;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff7ed;
  font-weight: 800;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 24px;
  margin-top: 28px;
}

.content-panel,
.player-panel,
.side-panel {
  border: 1px solid rgba(251, 191, 36, 0.45);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 14px 36px rgba(146, 64, 14, 0.08);
}

.content-panel,
.player-panel {
  padding: 24px;
}

.content-panel h2,
.player-panel h2,
.side-panel h2 {
  margin: 0 0 14px;
  color: #78350f;
  font-size: 1.45rem;
}

.content-panel p {
  margin: 0 0 18px;
  color: #374151;
  font-size: 1rem;
}

.player-panel {
  margin-top: 24px;
}

.video-player-box {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #111827;
  aspect-ratio: 16 / 9;
  cursor: pointer;
}

.video-player-box video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000000;
}

.play-control {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #ffffff;
  background:
    radial-gradient(circle, rgba(245, 158, 11, 0.34), rgba(0, 0, 0, 0.42)),
    rgba(0, 0, 0, 0.20);
  font-size: 1.1rem;
  font-weight: 900;
}

.play-control span {
  display: inline-grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.32);
}

.video-player-box.playing .play-control {
  display: none;
}

.side-panel {
  position: sticky;
  top: 96px;
  padding: 18px;
}

.related-list {
  display: grid;
  gap: 10px;
}

.mini-card img {
  width: 56px;
  height: 78px;
  object-fit: cover;
  border-radius: 12px;
  background: linear-gradient(145deg, #fef3c7, #d97706);
}

.empty-state {
  display: none;
  padding: 32px;
  border-radius: 20px;
  color: #92400e;
  background: #fffbeb;
  border: 1px solid #fde68a;
  text-align: center;
  font-weight: 900;
}

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

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

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

  .rank-panel,
  .side-panel {
    position: static;
  }
}

@media (max-width: 900px) {
  .main-nav,
  .header-search {
    display: none;
  }

  .menu-button {
    display: block;
    margin-left: auto;
  }

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

  .hero-content {
    gap: 28px;
    padding-top: 98px;
  }

  .hero-poster {
    width: min(260px, 68vw);
    justify-self: start;
  }

  .detail-poster {
    width: min(280px, 70vw);
  }

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

@media (max-width: 680px) {
  .header-inner,
  .page-main,
  .hero-content,
  .mobile-panel {
    width: min(100% - 22px, 1240px);
  }

  .hero,
  .hero-track,
  .hero-content {
    min-height: 690px;
  }

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

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

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

  .page-title,
  .detail-hero {
    padding: 22px;
    border-radius: 24px;
  }

  .content-panel,
  .player-panel {
    padding: 18px;
  }
}
