:root {
  --color-stone-950: #1c1917;
  --color-stone-900: #292524;
  --color-stone-800: #44403c;
  --color-stone-700: #57534e;
  --color-stone-600: #78716c;
  --color-stone-300: #d6d3d1;
  --color-stone-200: #e7e5e4;
  --color-stone-100: #f5f5f4;
  --color-stone-50: #fafaf9;
  --color-amber-900: #78350f;
  --color-amber-800: #92400e;
  --color-amber-700: #b45309;
  --color-amber-600: #d97706;
  --color-amber-500: #f59e0b;
  --color-amber-200: #fde68a;
  --color-amber-100: #fef3c7;
  --color-orange-700: #c2410c;
  --shadow-soft: 0 18px 45px rgba(68, 64, 60, 0.16);
  --shadow-card: 0 12px 28px rgba(68, 64, 60, 0.12);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--color-stone-900);
  background: linear-gradient(180deg, var(--color-stone-50), rgba(254, 243, 199, 0.35), var(--color-stone-100));
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: linear-gradient(90deg, var(--color-amber-900), var(--color-amber-800), var(--color-orange-700));
  color: #fff;
  box-shadow: 0 12px 30px rgba(120, 53, 15, 0.25);
}

.header-inner,
.footer-inner,
.container,
.hero-content,
.hero-dots,
.hero-arrow-wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 26px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.03em;
}

.logo-mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  color: var(--color-amber-800);
  box-shadow: inset 0 0 0 2px rgba(245, 158, 11, 0.25);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.84);
}

.site-nav a,
.mobile-nav a {
  transition: color 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover,
.site-nav .nav-active,
.mobile-nav a:hover {
  color: #fff;
}

.header-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input {
  width: 220px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 0 15px;
  outline: none;
  color: #fff;
  background: rgba(255, 255, 255, 0.13);
}

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

.header-search button,
.btn,
.filter-button,
.play-button,
.pagination a,
.pagination span {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.header-search button,
.btn-primary,
.play-button {
  color: #fff;
  background: var(--color-amber-600);
  box-shadow: 0 12px 28px rgba(217, 119, 6, 0.28);
}

.header-search button {
  height: 38px;
  padding: 0 16px;
}

.header-search button:hover,
.btn-primary:hover,
.play-button:hover {
  background: var(--color-amber-700);
  transform: translateY(-1px);
}

.mobile-menu-button {
  display: none;
  margin-left: auto;
  border: 0;
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-size: 22px;
}

.mobile-nav {
  display: none;
  padding: 0 16px 18px;
  background: rgba(41, 37, 36, 0.2);
}

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

.mobile-category-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
}

.hero {
  position: relative;
  height: clamp(430px, 62vw, 640px);
  overflow: hidden;
  color: #fff;
  background: var(--color-stone-900);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.8s ease, transform 1.2s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

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

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.12));
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(44px, 8vw, 92px);
}

.hero-copy {
  width: min(720px, 100%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--color-amber-500);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.hero p {
  margin: 0 0 24px;
  max-width: 660px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.8;
}

.hero-meta,
.detail-meta,
.breadcrumb,
.section-heading,
.movie-card-foot,
.movie-cover-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-meta {
  margin-bottom: 26px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

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

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

.btn-secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

.hero-arrow {
  position: absolute;
  z-index: 3;
  top: 50%;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, 0.44);
  cursor: pointer;
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.7);
}

.hero-arrow-prev {
  left: max(16px, calc((100vw - 1180px) / 2));
}

.hero-arrow-next {
  right: max(16px, calc((100vw - 1180px) / 2));
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 8px;
  transform: translateX(-50%);
}

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
  width: 32px;
  background: var(--color-amber-500);
}

.container {
  padding: 48px 0;
}

.section {
  margin-bottom: 64px;
}

.section-heading {
  justify-content: space-between;
  margin-bottom: 28px;
}

.section-heading h2,
.page-title h1,
.detail-title {
  margin: 0;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.section-heading p,
.page-title p {
  color: var(--color-stone-600);
  line-height: 1.8;
}

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

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

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

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

.movie-card {
  min-width: 0;
}

.movie-card-link {
  display: block;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.movie-cover-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-amber-900), var(--color-stone-800));
}

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

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

.movie-cover-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.16), transparent);
}

.movie-cover-meta {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
}

.movie-card-body {
  min-height: 158px;
  padding: 16px;
  background: linear-gradient(135deg, var(--color-amber-100), var(--color-stone-100));
}

.movie-card-body h3 {
  margin: 0 0 10px;
  display: -webkit-box;
  overflow: hidden;
  color: var(--color-stone-900);
  font-size: 18px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-card-body p {
  margin: 0 0 14px;
  display: -webkit-box;
  overflow: hidden;
  color: var(--color-stone-600);
  font-size: 14px;
  line-height: 1.65;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-card-foot {
  justify-content: space-between;
  gap: 8px;
}

.tag-group {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-style: normal;
  white-space: nowrap;
}

.tag-amber {
  color: var(--color-amber-900);
  background: var(--color-amber-100);
}

.tag-stone {
  color: var(--color-stone-700);
  background: var(--color-stone-200);
}

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

.category-card {
  padding: 24px;
  border: 1px solid rgba(214, 211, 209, 0.8);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 8px 24px rgba(68, 64, 60, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-card h2,
.category-card h3 {
  margin: 0 0 8px;
}

.category-card p {
  margin: 0 0 16px;
  color: var(--color-stone-600);
  line-height: 1.75;
}

.category-card strong {
  color: var(--color-amber-700);
}

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

.rank-link {
  display: grid;
  grid-template-columns: 54px 116px 1fr;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: 0 8px 20px rgba(68, 64, 60, 0.08);
}

.rank-num {
  font-size: 24px;
  font-weight: 900;
  color: var(--color-amber-600);
}

.rank-link img {
  width: 116px;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--color-amber-900), var(--color-stone-800));
}

.rank-info {
  display: grid;
  gap: 6px;
}

.rank-info strong {
  font-size: 16px;
}

.rank-info em {
  color: var(--color-stone-600);
  font-size: 13px;
  font-style: normal;
}

.page-title {
  margin-bottom: 32px;
  padding: 34px;
  border-radius: var(--radius-xl);
  color: #fff;
  background: linear-gradient(135deg, var(--color-amber-800), var(--color-orange-700));
  box-shadow: var(--shadow-soft);
}

.page-title p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.82);
}

.filter-bar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  margin-bottom: 26px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: 0 8px 22px rgba(68, 64, 60, 0.08);
}

.filter-bar input,
.search-input,
.search-select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--color-stone-300);
  border-radius: 12px;
  padding: 0 14px;
  outline: none;
  color: var(--color-stone-900);
  background: var(--color-stone-50);
}

.filter-button {
  padding: 0 18px;
  color: var(--color-amber-900);
  background: var(--color-amber-100);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(300px, 0.9fr);
  gap: 32px;
  align-items: start;
}

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

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

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #000;
  box-shadow: var(--shadow-soft);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.18));
  pointer-events: none;
}

.play-button {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 5;
  min-width: 160px;
  min-height: 52px;
  transform: translate(-50%, -50%);
  pointer-events: auto;
}

.play-button:hover {
  transform: translate(-50%, -50%) scale(1.03);
}

.player-shell.is-playing .player-overlay,
.player-shell.is-playing .play-button {
  display: none;
}

.detail-main-card,
.detail-side-card,
.text-card {
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: 0 10px 28px rgba(68, 64, 60, 0.08);
}

.detail-main-card {
  margin-top: 24px;
  padding: 28px;
}

.detail-title {
  margin-bottom: 16px;
}

.detail-meta {
  margin-bottom: 18px;
  color: var(--color-stone-600);
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.text-card {
  margin-top: 18px;
  padding: 24px;
}

.text-card h2,
.detail-side-card h2 {
  margin: 0 0 14px;
  font-size: 20px;
}

.text-card p {
  color: var(--color-stone-700);
  line-height: 1.9;
}

.detail-side-card {
  margin-bottom: 20px;
  padding: 22px;
}

.info-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.info-list div {
  display: grid;
  gap: 4px;
}

.info-list dt {
  color: var(--color-stone-600);
  font-size: 13px;
}

.info-list dd {
  margin: 0;
  color: var(--color-stone-900);
  font-weight: 700;
}

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

.related-mini a {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  align-items: center;
}

.related-mini img {
  width: 92px;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--color-amber-900), var(--color-stone-800));
}

.related-mini strong {
  display: -webkit-box;
  overflow: hidden;
  margin-bottom: 4px;
  font-size: 14px;
  line-height: 1.4;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px 160px 160px;
  gap: 12px;
  margin-bottom: 24px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: 0 10px 28px rgba(68, 64, 60, 0.08);
}

.search-status {
  margin-bottom: 18px;
  color: var(--color-stone-600);
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 36px;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--color-stone-300);
  background: #fff;
}

.pagination .current {
  color: #fff;
  border-color: var(--color-amber-600);
  background: var(--color-amber-600);
}

.site-footer {
  color: rgba(255, 255, 255, 0.8);
  background: linear-gradient(135deg, var(--color-stone-950), var(--color-amber-900));
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.8fr;
  gap: 32px;
  padding: 44px 0;
}

.footer-inner h2,
.footer-inner h3 {
  margin: 0 0 14px;
  color: #fff;
}

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

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

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

.hidden {
  display: none !important;
}

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

  .mobile-menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

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

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

  .detail-layout,
  .footer-inner,
  .search-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .header-inner,
  .footer-inner,
  .container,
  .hero-content,
  .hero-dots {
    width: min(100% - 24px, 1180px);
  }

  .hero {
    height: 560px;
  }

  .hero-arrow {
    display: none;
  }

  .grid-large,
  .grid-medium,
  .grid-small,
  .category-panel {
    grid-template-columns: 1fr;
  }

  .rank-link {
    grid-template-columns: 42px 88px 1fr;
    gap: 12px;
  }

  .rank-link img {
    width: 88px;
  }

  .page-title,
  .detail-main-card,
  .text-card {
    padding: 22px;
  }

  .filter-bar {
    grid-template-columns: 1fr;
  }
}
