:root {
  --orange: #f97316;
  --amber: #f59e0b;
  --yellow: #facc15;
  --ink: #1f2937;
  --muted: #6b7280;
  --soft: #f9fafb;
  --line: #e5e7eb;
  --dark: #111827;
  --radius: 20px;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: #f3f4f6;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  color: #ffffff;
  background: linear-gradient(90deg, var(--orange), var(--amber), var(--yellow));
  box-shadow: 0 12px 32px rgba(234, 88, 12, 0.25);
}

.nav-inner {
  min-height: 66px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-icon {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: var(--orange);
  background: #ffffff;
  border-radius: 999px;
  box-shadow: 0 10px 22px rgba(120, 53, 15, 0.25);
}

.brand-text {
  font-size: clamp(18px, 2vw, 24px);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
  font-weight: 700;
}

.desktop-nav a,
.mobile-nav a {
  transition: opacity 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover {
  opacity: 0.78;
}

.top-search {
  position: relative;
  width: min(260px, 24vw);
}

.top-search input,
.toolbar input,
.toolbar select {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  outline: none;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  padding: 11px 16px;
  box-shadow: 0 12px 30px rgba(120, 53, 15, 0.14);
}

.top-search button {
  position: absolute;
  right: 4px;
  top: 4px;
  bottom: 4px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--orange), var(--amber));
  padding: 0 14px;
  font-weight: 800;
}

.search-results {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(390px, calc(100vw - 32px));
  max-height: 460px;
  overflow: auto;
  display: none;
  color: var(--ink);
  background: #ffffff;
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 8px;
}

.search-results.is-open {
  display: block;
}

.search-result-item {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border-radius: 14px;
}

.search-result-item:hover {
  background: #fff7ed;
}

.search-result-item img {
  width: 46px;
  height: 62px;
  object-fit: cover;
  border-radius: 10px;
}

.search-result-item strong {
  display: block;
  line-height: 1.3;
}

.search-result-item span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 8px 12px;
}

.mobile-nav {
  display: none;
  padding: 0 0 16px;
}

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

.mobile-nav a {
  padding: 10px 12px;
  border-radius: 12px;
}

.mobile-nav a:hover {
  background: rgba(255, 255, 255, 0.16);
}

.hero-slider {
  position: relative;
  min-height: clamp(520px, 72vw, 720px);
  overflow: hidden;
  color: #ffffff;
  background: #111827;
}

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

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
}

.hero-slide.is-active img {
  animation: heroScale 8s ease forwards;
}

@keyframes heroScale {
  from {
    transform: scale(1.06);
  }
  to {
    transform: scale(1);
  }
}

.hero-mask {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.58) 52%, rgba(0, 0, 0, 0.76));
}

.hero-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  align-items: center;
  padding-top: 30px;
}

.hero-copy {
  width: min(780px, 100%);
  text-align: left;
}

.hero-eyebrow,
.badge,
.rank-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--orange), var(--amber));
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 12px 22px rgba(194, 65, 12, 0.25);
}

.hero-copy h1,
.hero-copy h2 {
  margin: 18px 0 12px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 1.02;
  font-weight: 900;
  text-shadow: 0 18px 35px rgba(0, 0, 0, 0.42);
}

.hero-copy h2 {
  font-size: clamp(34px, 5.5vw, 68px);
}

.hero-copy p {
  max-width: 760px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(17px, 2.2vw, 24px);
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(90deg, var(--orange), var(--amber));
  box-shadow: 0 16px 30px rgba(194, 65, 12, 0.34);
}

.btn-light {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
}

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

.hero-dots button {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.54);
  transition: width 0.2s ease, background 0.2s ease;
}

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

.section {
  padding: 70px 0;
}

.section-soft {
  background: linear-gradient(135deg, #fff7ed, #fffbeb);
}

.section-gray {
  background: #f3f4f6;
}

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

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

.section-title {
  margin: 0;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.15;
  font-weight: 900;
}

.section-title span {
  color: var(--orange);
}

.section-hot .section-title span {
  color: #ffffff;
}

.section-desc {
  margin: 8px 0 0;
  color: var(--muted);
  max-width: 720px;
}

.section-hot .section-desc {
  color: rgba(255, 255, 255, 0.88);
}

.more-link {
  color: var(--orange);
  font-weight: 900;
  white-space: nowrap;
}

.section-hot .more-link {
  color: #ffffff;
}

.grid {
  display: grid;
  gap: 22px;
}

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

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

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

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

.movie-card,
.category-card,
.detail-card,
.related-panel,
.rank-card,
.list-card {
  overflow: hidden;
  background: #ffffff;
  border-radius: var(--radius);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

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

.poster-wrap.wide {
  aspect-ratio: 16 / 10;
}

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

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

.poster-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.78));
}

.play-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  color: #ffffff;
  background: rgba(249, 115, 22, 0.9);
  border-radius: 999px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.86);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .play-mark,
.rank-card:hover .play-mark,
.list-card:hover .play-mark {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.card-body {
  padding: 16px;
}

.card-body h3,
.list-card h3,
.rank-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 900;
}

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

.meta-row,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

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

.toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(150px, 0.42fr));
  gap: 14px;
  margin: 22px 0 30px;
  padding: 16px;
  background: #ffffff;
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.toolbar input,
.toolbar select {
  border-color: var(--line);
  border-radius: 14px;
  box-shadow: none;
}

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

.category-card {
  position: relative;
  min-height: 260px;
  color: #ffffff;
  isolation: isolate;
}

.category-card img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(120deg, rgba(17, 24, 39, 0.88), rgba(249, 115, 22, 0.52));
}

.category-card-content {
  display: grid;
  align-content: end;
  min-height: 260px;
  padding: 28px;
}

.category-card h2 {
  margin: 12px 0 8px;
  font-size: 30px;
  line-height: 1.15;
}

.category-card p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.9);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  margin-bottom: 18px;
}

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

.page-hero {
  color: #ffffff;
  background: radial-gradient(circle at 20% 20%, rgba(250, 204, 21, 0.42), transparent 36%), linear-gradient(120deg, #111827, #7c2d12 52%, #f97316);
  padding: 58px 0;
}

.page-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.1;
}

.page-hero p {
  margin: 0;
  max-width: 780px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
}

.list-stack {
  display: grid;
  gap: 18px;
}

.list-card {
  display: grid;
  grid-template-columns: minmax(160px, 240px) 1fr;
}

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

.list-card-body {
  padding: 22px;
}

.rank-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
}

.rank-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  align-items: stretch;
}

.rank-number {
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(180deg, var(--orange), var(--amber));
  font-size: 34px;
  font-weight: 900;
}

.rank-body {
  padding: 18px;
}

.watch-section {
  background: #050505;
  padding: 34px 0 42px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #000000;
  box-shadow: 0 30px 65px rgba(0, 0, 0, 0.36);
}

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

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 0;
  color: #ffffff;
  background: #000000;
  padding: 0;
}

.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
}

.player-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.64));
}

.player-cover.is-hidden {
  display: none;
}

.player-play {
  position: relative;
  z-index: 2;
  display: grid;
  width: 92px;
  height: 92px;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--orange), var(--amber));
  font-size: 40px;
  box-shadow: 0 20px 45px rgba(249, 115, 22, 0.38);
}

.detail-main {
  padding: 40px 0 70px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 28px;
  align-items: start;
}

.detail-card,
.related-panel {
  padding: 28px;
}

.detail-card h1 {
  margin: 0 0 16px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.12;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--muted);
}

.detail-card h2,
.related-panel h2 {
  margin: 26px 0 12px;
  font-size: 22px;
}

.detail-card p {
  margin: 0 0 14px;
  color: #374151;
}

.lead {
  color: #c2410c !important;
  font-size: 18px;
  font-weight: 800;
}

.review-box {
  border-left: 4px solid var(--orange);
  border-radius: 16px;
  background: #fff7ed;
  padding: 18px;
}

.side-poster {
  overflow: hidden;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

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

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

.related-item {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 12px;
  align-items: center;
}

.related-item img {
  width: 68px;
  height: 90px;
  border-radius: 12px;
  object-fit: cover;
}

.related-item strong {
  display: block;
  line-height: 1.35;
}

.related-item span {
  color: var(--muted);
  font-size: 13px;
}

.site-footer {
  color: #d1d5db;
  background: #111827;
  padding: 46px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 30px;
}

.site-footer h2,
.site-footer h3 {
  color: #ffffff;
  margin: 0 0 12px;
}

.site-footer p,
.site-footer li {
  color: #9ca3af;
  font-size: 14px;
}

.site-footer ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a:hover {
  color: var(--orange);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 28px;
  padding-top: 20px;
  text-align: center;
  color: #9ca3af;
  font-size: 14px;
}

.is-hidden-by-filter {
  display: none !important;
}

@media (max-width: 1024px) {
  .desktop-nav,
  .top-search {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

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

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

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

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

  .hero-slider {
    min-height: 620px;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .section {
    padding: 48px 0;
  }

  .section-head {
    display: block;
  }

  .grid-3,
  .grid-4,
  .grid-5,
  .grid-6,
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .card-body {
    padding: 12px;
  }

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

  .toolbar {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .list-card,
  .rank-card {
    grid-template-columns: 1fr;
  }

  .list-card .poster-wrap {
    min-height: 220px;
  }

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

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

  .grid-3,
  .grid-4,
  .grid-5,
  .grid-6,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .player-play {
    width: 72px;
    height: 72px;
    font-size: 30px;
  }
}
