:root {
  --orange-700: #c2410c;
  --orange-600: #ea580c;
  --orange-500: #f97316;
  --orange-100: #ffedd5;
  --gray-950: #111827;
  --gray-900: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --white: #ffffff;
  --shadow: 0 20px 60px rgba(17, 24, 39, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--gray-950);
  background: linear-gradient(180deg, #fff7ed 0%, #f9fafb 46%, #ffffff 100%);
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, var(--orange-700), var(--orange-500));
  color: var(--white);
  box-shadow: 0 14px 30px rgba(194, 65, 12, 0.24);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand-icon {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

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

.main-nav a {
  opacity: 0.88;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  opacity: 1;
  transform: translateY(-1px);
}

.top-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-search input,
.panel-search input,
.filter-bar input,
.filter-bar select {
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  outline: none;
}

.top-search input {
  width: 220px;
  padding: 10px 14px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
}

.top-search input::placeholder {
  color: rgba(255, 255, 255, 0.76);
}

.top-search button,
.panel-search button,
.btn {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.top-search button {
  padding: 10px 16px;
  color: var(--orange-700);
  background: var(--white);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  font-size: 22px;
}

.hero-carousel {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: var(--gray-950);
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 18% 22%, rgba(249, 115, 22, 0.45), transparent 34%), linear-gradient(120deg, #111827, #7c2d12 54%, #ea580c);
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
  filter: blur(2px) saturate(1.2);
}

.hero-bg::after,
.detail-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.95) 0%, rgba(17, 24, 39, 0.76) 45%, rgba(194, 65, 12, 0.34) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  min-height: 620px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: center;
  gap: 54px;
  color: var(--white);
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 8px 13px;
  border-radius: 999px;
  color: #fed7aa;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 800;
  font-size: 14px;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.06em;
}

.hero-copy p,
.page-hero p,
.detail-one {
  max-width: 720px;
  margin: 0 0 22px;
  font-size: 18px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.86);
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  padding: 7px 11px;
  border-radius: 999px;
  color: #9a3412;
  background: var(--orange-100);
  font-size: 13px;
  font-weight: 700;
}

.hero-tags span {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
}

.btn.primary {
  color: var(--white);
  background: linear-gradient(90deg, var(--orange-600), var(--orange-500));
  box-shadow: 0 14px 30px rgba(249, 115, 22, 0.28);
}

.btn.ghost {
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.btn.small {
  min-height: 38px;
  padding: 0 16px;
  color: var(--white);
  background: var(--orange-600);
}

.btn:hover,
.top-search button:hover,
.panel-search button:hover {
  transform: translateY(-2px);
}

.hero-poster,
.detail-poster {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(135deg, #fdba74, #7c2d12);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.35);
}

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

.hero-poster span {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(8px);
  font-weight: 800;
}

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

.hero-dots button {
  width: 34px;
  height: 7px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.36);
}

.hero-dots button.active {
  background: var(--white);
}

.intro-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: -38px;
  position: relative;
  z-index: 8;
}

.intro-strip a,
.category-tile,
.movie-card,
.side-panel,
.category-block,
.player-card,
.detail-content article,
.detail-content aside,
.rank-row {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(229, 231, 235, 0.88);
  box-shadow: var(--shadow);
}

.intro-strip a {
  display: grid;
  gap: 5px;
  padding: 22px;
  border-radius: 24px;
}

.intro-strip strong {
  font-size: 19px;
}

.intro-strip span {
  color: var(--gray-600);
  line-height: 1.6;
}

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

.section-head h2,
.side-panel h2,
.detail-content h2,
.category-block h2 {
  margin: 0 0 8px;
  font-size: 30px;
  letter-spacing: -0.03em;
}

.section-head p,
.side-panel p,
.category-block p {
  margin: 0;
  color: var(--gray-600);
  line-height: 1.7;
}

.section-head a {
  color: var(--orange-700);
  font-weight: 800;
}

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

.category-tile {
  display: grid;
  min-height: 190px;
  padding: 20px;
  border-radius: 24px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover,
.movie-card:hover {
  transform: translateY(-4px);
}

.category-tile span {
  color: var(--orange-700);
  font-weight: 900;
  font-size: 20px;
}

.category-tile strong {
  margin-top: 8px;
  color: var(--gray-600);
  line-height: 1.55;
}

.category-thumbs {
  display: flex;
  align-items: end;
  gap: 6px;
  margin-top: 18px;
}

.category-thumbs img {
  width: 31%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 12px;
  background: linear-gradient(135deg, #ffedd5, #fdba74);
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.poster {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #ffedd5, #fb923c 46%, #7c2d12);
}

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

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

.score {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(17, 24, 39, 0.76);
  font-weight: 900;
  font-size: 13px;
}

.movie-info {
  padding: 17px;
}

.movie-title {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 900;
}

.movie-title:hover {
  color: var(--orange-700);
}

.movie-info p {
  display: -webkit-box;
  min-height: 48px;
  margin: 0 0 13px;
  overflow: hidden;
  color: var(--gray-600);
  line-height: 1.65;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--gray-600);
  font-size: 13px;
  font-weight: 700;
}

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

.side-panel {
  position: sticky;
  top: 92px;
  margin-top: 64px;
  padding: 26px;
  border-radius: 26px;
}

.panel-search {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.panel-search input {
  padding: 13px 16px;
  color: var(--gray-950);
  background: var(--gray-100);
  border-color: var(--gray-200);
}

.panel-search button {
  padding: 13px 16px;
  color: var(--white);
  background: var(--orange-600);
}

.page-hero {
  margin-top: 48px;
  padding: 54px;
  border-radius: 34px;
  color: var(--white);
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.18), transparent 30%), linear-gradient(120deg, #111827, #9a3412 58%, #f97316);
  box-shadow: var(--shadow);
}

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

.category-block {
  padding: 24px;
  border-radius: 28px;
}

.category-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.filter-bar {
  display: grid;
  grid-template-columns: 1fr 180px 180px;
  gap: 12px;
  margin-top: 24px;
  margin-bottom: 24px;
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  padding: 14px 16px;
  color: var(--gray-950);
  background: var(--white);
  border-color: var(--gray-200);
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.06);
}

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

.rank-list.compact .rank-row:nth-child(n + 7) {
  display: none;
}

.rank-row {
  display: grid;
  grid-template-columns: 52px 76px minmax(0, 1fr) 190px 110px;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 18px;
}

.rank-index {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--white);
  background: linear-gradient(135deg, var(--orange-600), var(--orange-500));
  font-weight: 900;
}

.rank-cover img {
  width: 76px;
  height: 54px;
  object-fit: cover;
  border-radius: 12px;
  background: linear-gradient(135deg, #ffedd5, #fdba74);
}

.rank-main {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.rank-main strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-main em {
  overflow: hidden;
  color: var(--gray-600);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-style: normal;
  font-size: 13px;
}

.rank-tags,
.rank-heat {
  color: var(--gray-600);
  font-size: 13px;
  font-weight: 700;
}

.rank-heat {
  color: var(--orange-700);
  text-align: right;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--gray-950);
}

.detail-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #111827, #c2410c);
}

.detail-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.26;
  filter: blur(2px);
}

.detail-wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
  min-height: 590px;
  padding: 70px 0;
}

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

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

.detail-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

.detail-stats span {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.13);
  font-weight: 800;
}

.detail-tags span {
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
}

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

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000000;
}

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

.play-overlay {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 82px;
  height: 82px;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  background: rgba(249, 115, 22, 0.88);
  font-size: 28px;
  cursor: pointer;
  transform: translate(-50%, -50%);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.36);
}

.play-overlay.hidden {
  display: none;
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  margin-top: 34px;
}

.detail-content article,
.detail-content aside {
  padding: 28px;
  border-radius: 26px;
}

.detail-content p {
  color: var(--gray-700);
  line-height: 1.95;
  font-size: 16px;
}

dl {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px 14px;
  margin: 0;
}

dt {
  color: var(--gray-600);
  font-weight: 800;
}

dd {
  margin: 0;
  color: var(--gray-950);
  line-height: 1.6;
}

.site-footer {
  margin-top: 78px;
  padding: 48px 0 28px;
  color: #d1d5db;
  background: var(--gray-950);
}

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 36px;
}

.site-footer h2,
.site-footer h3 {
  color: var(--white);
  margin: 0 0 14px;
}

.site-footer p {
  line-height: 1.8;
  margin: 0;
}

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

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

.copyright {
  width: min(1180px, calc(100% - 32px));
  margin: 34px auto 0 !important;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
}

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

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

  .menu-toggle {
    display: inline-grid;
    place-items: center;
    margin-left: auto;
  }

  .main-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 76px;
    display: none;
    padding: 18px;
    border-radius: 22px;
    background: var(--orange-700);
    box-shadow: var(--shadow);
  }

  .main-nav.open {
    display: grid;
  }

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

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

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

  .side-panel {
    position: static;
    margin-top: 24px;
  }

  .rank-row {
    grid-template-columns: 42px 64px minmax(0, 1fr);
  }

  .rank-tags,
  .rank-heat {
    display: none;
  }
}

@media (max-width: 640px) {
  .nav-wrap {
    height: 62px;
  }

  .brand {
    font-size: 18px;
  }

  .hero-carousel,
  .hero-inner {
    min-height: 690px;
  }

  .hero-inner {
    gap: 26px;
    padding: 42px 0 74px;
  }

  .intro-strip,
  .category-grid,
  .movie-grid,
  .small-grid,
  .filter-bar {
    grid-template-columns: 1fr;
  }

  .page-hero {
    padding: 34px 22px;
  }

  .detail-wrap {
    padding: 46px 0;
  }

  .detail-content article,
  .detail-content aside,
  .category-block {
    padding: 20px;
  }
}
