:root {
  --amber-950: #451a03;
  --amber-900: #78350f;
  --amber-800: #92400e;
  --amber-700: #b45309;
  --amber-600: #d97706;
  --amber-500: #f59e0b;
  --amber-200: #fde68a;
  --stone-950: #0c0a09;
  --stone-900: #1c1917;
  --stone-800: #292524;
  --stone-700: #44403c;
  --stone-600: #57534e;
  --stone-500: #78716c;
  --stone-300: #d6d3d1;
  --stone-200: #e7e5e4;
  --stone-100: #f5f5f4;
  --stone-50: #fafaf9;
  --white: #ffffff;
  --shadow-soft: 0 18px 45px rgba(41, 37, 36, .12);
  --shadow-card: 0 12px 30px rgba(41, 37, 36, .12);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--stone-800);
  background: linear-gradient(180deg, #fff7ed 0%, var(--stone-100) 48%, var(--stone-50) 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, var(--amber-950), var(--amber-800), var(--amber-950));
  color: #fff7ed;
  box-shadow: 0 12px 30px rgba(69, 26, 3, .25);
}

.navbar {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 180px;
}

.logo-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--amber-200);
  border-radius: 14px;
  background: rgba(255, 255, 255, .10);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-title {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: .04em;
}

.logo-subtitle {
  margin-top: 4px;
  color: var(--amber-200);
  font-size: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #fffbeb;
  font-weight: 650;
}

.nav-links a {
  position: relative;
  transition: color .2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -9px;
  height: 2px;
  transform: scaleX(0);
  transform-origin: center;
  background: var(--amber-200);
  transition: transform .2s ease;
}

.nav-links a:hover {
  color: var(--amber-200);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.header-search {
  display: flex;
  align-items: center;
  width: min(260px, 26vw);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .16);
}

.header-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  color: #fff7ed;
  background: transparent;
  outline: 0;
  padding: 10px 4px 10px 16px;
}

.header-search input::placeholder {
  color: rgba(255, 247, 237, .72);
}

.header-search button {
  border: 0;
  color: var(--amber-200);
  cursor: pointer;
  padding: 10px 14px;
  background: transparent;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: #fff7ed;
  cursor: pointer;
  background: rgba(255, 255, 255, .10);
}

.mobile-panel {
  display: none;
  padding: 0 0 18px;
}

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

.mobile-panel a {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  color: #fff7ed;
}

.mobile-panel a:hover {
  background: rgba(255, 255, 255, .12);
}

.hero-slider {
  position: relative;
  height: min(72vh, 620px);
  min-height: 480px;
  overflow: hidden;
  background: var(--stone-900);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 900ms 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::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(12, 10, 9, .94) 0%, rgba(12, 10, 9, .58) 44%, rgba(12, 10, 9, .26) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding: 48px 0 64px;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--amber-200);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero-title {
  margin: 0 0 18px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.05;
  font-weight: 900;
  text-shadow: 0 8px 32px rgba(0, 0, 0, .4);
}

.hero-desc {
  width: min(720px, 100%);
  margin: 0 0 26px;
  color: #e7e5e4;
  font-size: clamp(16px, 2vw, 21px);
  line-height: 1.8;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}

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

.btn-primary {
  color: #fff7ed;
  background: var(--amber-600);
  box-shadow: 0 14px 30px rgba(217, 119, 6, .35);
}

.btn-primary:hover {
  background: var(--amber-700);
}

.btn-ghost {
  color: #fff7ed;
  border-color: rgba(255, 255, 255, .32);
  background: rgba(255, 255, 255, .12);
  backdrop-filter: blur(12px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, .20);
}

.btn-light {
  color: var(--amber-800);
  background: #fff7ed;
  border-color: #fed7aa;
}

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

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

.hero-dot.is-active {
  background: var(--amber-200);
}

.hero-side {
  position: absolute;
  z-index: 4;
  right: max(24px, calc((100vw - 1180px) / 2));
  bottom: 64px;
  width: 330px;
  display: grid;
  gap: 12px;
}

.hero-mini {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  color: #fff7ed;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(16px);
}

.hero-mini img {
  width: 82px;
  height: 56px;
  object-fit: cover;
  border-radius: 12px;
}

.hero-mini strong {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.hero-mini span {
  color: var(--amber-200);
  font-size: 12px;
}

.quick-panel {
  position: relative;
  z-index: 8;
  margin-top: -34px;
}

.quick-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  align-items: center;
  padding: 22px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, .88);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}

.quick-search {
  display: flex;
  gap: 10px;
}

.quick-search input,
.page-filter input,
.page-filter select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--stone-200);
  border-radius: 999px;
  outline: 0;
  padding: 0 18px;
  color: var(--stone-800);
  background: var(--white);
}

.quick-search button,
.page-filter button {
  border: 0;
  white-space: nowrap;
}

.quick-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.tag-chip,
.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--amber-800);
  background: #fef3c7;
  font-size: 14px;
  font-weight: 700;
}

.section {
  padding: 54px 0;
}

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

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: var(--stone-800);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 900;
}

.section-title::before {
  content: "";
  width: 5px;
  height: 34px;
  border-radius: 999px;
  background: var(--amber-600);
}

.section-subtitle {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--stone-600);
  line-height: 1.75;
}

.more-link {
  color: var(--amber-700);
  font-weight: 800;
}

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

.movie-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: 0 10px 24px rgba(41, 37, 36, .10);
  transition: transform .25s ease, box-shadow .25s ease;
}

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

.card-cover {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--stone-200);
}

.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.movie-card:hover .card-cover img {
  transform: scale(1.08);
}

.card-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, .60), rgba(0, 0, 0, 0));
  transition: opacity .25s ease;
}

.movie-card:hover .card-cover::after {
  opacity: 1;
}

.play-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: inline-flex;
  width: 54px;
  height: 54px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: rgba(217, 119, 6, .92);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .3);
  transform: translate(-50%, -50%) scale(.84);
  opacity: 0;
  transition: opacity .25s ease, transform .25s ease;
}

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

.duration-badge,
.rank-badge,
.rating-badge {
  position: absolute;
  z-index: 3;
  padding: 5px 8px;
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, .70);
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.duration-badge {
  right: 10px;
  top: 10px;
}

.rank-badge {
  left: 10px;
  top: 10px;
  background: var(--amber-600);
}

.rating-badge {
  left: 10px;
  bottom: 10px;
  background: rgba(69, 26, 3, .82);
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px;
}

.card-title {
  margin: 0 0 8px;
  color: var(--stone-800);
  font-size: 17px;
  line-height: 1.45;
  font-weight: 850;
}

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

.card-desc {
  flex: 1;
  margin: 0 0 14px;
  color: var(--stone-600);
  font-size: 14px;
  line-height: 1.65;
}

.line-clamp-2,
.line-clamp-3 {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
}

.line-clamp-2 {
  -webkit-line-clamp: 2;
}

.line-clamp-3 {
  -webkit-line-clamp: 3;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--stone-500);
  font-size: 13px;
}

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

.category-card {
  min-height: 152px;
  padding: 20px;
  border-radius: var(--radius-lg);
  color: #fff7ed;
  background: linear-gradient(135deg, var(--amber-900), var(--amber-600));
  box-shadow: var(--shadow-card);
  transition: transform .22s ease, box-shadow .22s ease;
}

.category-card:nth-child(2n) {
  background: linear-gradient(135deg, var(--stone-900), var(--amber-700));
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 40px rgba(69, 26, 3, .22);
}

.category-card h3 {
  margin: 0 0 8px;
  font-size: 21px;
  font-weight: 900;
}

.category-card p {
  margin: 0;
  color: rgba(255, 251, 235, .82);
  font-size: 14px;
  line-height: 1.7;
}

.rank-section {
  border-radius: var(--radius-xl);
  padding: 30px;
  background: linear-gradient(135deg, #fef3c7, #ffedd5);
  box-shadow: var(--shadow-soft);
}

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

.rank-row {
  display: grid;
  grid-template-columns: 44px 96px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .76);
  transition: transform .2s ease, background .2s ease;
}

.rank-row:hover {
  transform: translateX(4px);
  background: #fff;
}

.rank-num {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: var(--amber-600);
  font-weight: 900;
}

.rank-row img {
  width: 96px;
  height: 62px;
  object-fit: cover;
  border-radius: 12px;
}

.rank-row h3 {
  margin: 0 0 6px;
  color: var(--stone-800);
  font-size: 16px;
  font-weight: 850;
}

.rank-row p {
  margin: 0;
  color: var(--stone-600);
  font-size: 13px;
}

.page-hero {
  padding: 56px 0;
  color: #fff7ed;
  background: radial-gradient(circle at 15% 15%, rgba(245, 158, 11, .32), transparent 28%), linear-gradient(120deg, var(--stone-950), var(--amber-900));
}

.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.15;
  font-weight: 900;
}

.page-hero p {
  max-width: 780px;
  margin: 0;
  color: #e7e5e4;
  font-size: 18px;
  line-height: 1.8;
}

.page-filter {
  display: grid;
  grid-template-columns: 1fr 190px 130px;
  gap: 12px;
  margin: 26px 0 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--stone-600);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--amber-700);
  font-weight: 700;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) 340px;
  gap: 28px;
  padding: 34px 0 56px;
}

.player-box {
  overflow: hidden;
  border-radius: 22px;
  background: var(--stone-950);
  box-shadow: 0 22px 54px rgba(12, 10, 9, .32);
}

.player-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--stone-950);
}

.player-frame video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: linear-gradient(0deg, rgba(0, 0, 0, .62), rgba(0, 0, 0, .18));
}

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

.player-start {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 0;
  border-radius: 999px;
  color: #fff7ed;
  cursor: pointer;
  padding: 16px 24px;
  background: var(--amber-600);
  box-shadow: 0 16px 34px rgba(0, 0, 0, .35);
  font-weight: 900;
}

.player-status {
  position: absolute;
  left: 18px;
  bottom: 14px;
  z-index: 6;
  color: #fff7ed;
  font-size: 13px;
  opacity: .92;
}

.detail-card,
.sidebar-card,
.info-panel {
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.detail-card {
  margin-top: 22px;
  padding: 26px;
}

.detail-title {
  margin: 0 0 16px;
  color: var(--stone-800);
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.2;
  font-weight: 950;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 20px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--stone-200);
}

.detail-section + .detail-section {
  margin-top: 26px;
}

.detail-section h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  color: var(--stone-800);
  font-size: 22px;
  font-weight: 900;
}

.detail-section h2::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--amber-500);
}

.detail-section p {
  margin: 0;
  color: var(--stone-700);
  line-height: 1.9;
  font-size: 16px;
}

.review-box {
  padding: 22px;
  border-left: 5px solid var(--amber-500);
  border-radius: 16px;
  background: #fffbeb;
}

.sidebar-card {
  position: sticky;
  top: 92px;
  padding: 20px;
}

.sidebar-card h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: var(--stone-800);
  font-size: 22px;
  font-weight: 900;
}

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

.related-item {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 12px;
  align-items: center;
  padding: 8px;
  border-radius: 14px;
  transition: background .2s ease;
}

.related-item:hover {
  background: var(--stone-50);
}

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

.related-item h3 {
  margin: 0 0 6px;
  color: var(--stone-800);
  font-size: 15px;
  line-height: 1.45;
  font-weight: 850;
}

.related-item span {
  color: var(--stone-500);
  font-size: 12px;
}

.detail-poster {
  margin-bottom: 18px;
  overflow: hidden;
  border-radius: 18px;
}

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

.info-panel {
  padding: 24px;
  line-height: 1.8;
}

.info-panel h1,
.info-panel h2 {
  color: var(--stone-800);
  font-weight: 900;
}

.info-panel p,
.info-panel li {
  color: var(--stone-700);
}

.site-footer {
  color: var(--stone-300);
  background: linear-gradient(90deg, var(--stone-950), var(--stone-800), var(--stone-950));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 34px;
  padding: 44px 0 30px;
}

.site-footer h3,
.site-footer strong {
  color: #fff7ed;
}

.site-footer p,
.site-footer li {
  color: var(--stone-300);
  line-height: 1.75;
}

.site-footer ul {
  padding: 0;
  margin: 12px 0 0;
  list-style: none;
}

.site-footer li + li {
  margin-top: 8px;
}

.footer-bottom {
  padding: 22px 0;
  color: var(--stone-500);
  text-align: center;
  border-top: 1px solid rgba(231, 229, 228, .12);
}

.empty-state {
  display: none;
  padding: 36px;
  margin-top: 20px;
  text-align: center;
  color: var(--stone-600);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.empty-state.is-visible {
  display: block;
}

@media (max-width: 1080px) {
  .nav-links,
  .header-search,
  .hero-side {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

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

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

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

  .sidebar-card {
    position: static;
  }
}

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

  .navbar {
    height: 64px;
  }

  .logo-mark {
    width: 38px;
    height: 38px;
  }

  .logo-title {
    font-size: 18px;
  }

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

  .hero-content {
    padding-bottom: 72px;
  }

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

  .quick-tags {
    justify-content: flex-start;
  }

  .quick-search,
  .page-filter {
    grid-template-columns: 1fr;
    display: grid;
  }

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

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

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

  .rank-row {
    grid-template-columns: 38px 82px 1fr;
  }

  .rank-row img {
    width: 82px;
  }

  .detail-card {
    padding: 20px;
  }

  .related-item {
    grid-template-columns: 96px 1fr;
  }

  .related-item img {
    width: 96px;
    height: 64px;
  }
}

@media (max-width: 480px) {
  .movie-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 32px;
  }
}
