:root {
  --stone-50: #fafaf9;
  --stone-100: #f5f5f4;
  --stone-200: #e7e5e4;
  --stone-500: #78716c;
  --stone-600: #57534e;
  --stone-700: #44403c;
  --stone-800: #292524;
  --stone-900: #1c1917;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-300: #fcd34d;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --red-600: #dc2626;
  --white: #ffffff;
  --black: #000000;
  --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 10px 24px rgba(15, 23, 42, 0.12);
  --shadow-lg: 0 22px 54px rgba(15, 23, 42, 0.22);
  --radius-lg: 18px;
  --radius-xl: 24px;
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--stone-50);
  color: var(--stone-800);
  font-size: 16px;
  line-height: 1.65;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.94);
  color: var(--white);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 14px;
  color: var(--slate-900);
  background: linear-gradient(135deg, var(--amber-300), var(--amber-600));
  box-shadow: 0 10px 24px rgba(217, 119, 6, 0.35);
}

.brand-text {
  font-size: 20px;
}

.desktop-nav {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.desktop-nav a,
.mobile-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.78);
  transition: background 0.25s ease, color 0.25s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-nav a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
}

.header-search {
  display: flex;
  width: 280px;
  height: 42px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.header-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  color: var(--white);
  background: transparent;
  padding: 0 14px;
  outline: none;
}

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

.header-search button,
.big-search button {
  border: 0;
  color: var(--white);
  background: var(--amber-600);
  padding: 0 18px;
  cursor: pointer;
  transition: background 0.25s ease;
}

.header-search button:hover,
.big-search button:hover {
  background: var(--amber-700);
}

.menu-toggle {
  display: none;
  border: 0;
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 8px 12px;
  cursor: pointer;
}

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

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

.hero {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--slate-900), #78350f 48%, #7c2d12);
}

.hero-viewport,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.65s ease;
}

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

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  transform: scale(1.02);
}

.hero-mask {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 36%, rgba(251, 191, 36, 0.26), transparent 30%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0.95)),
    linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.36));
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  color: var(--white);
}

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

.hero-kicker,
.page-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  background: var(--amber-600);
  border-radius: 999px;
  padding: 6px 14px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.hero h1 {
  margin: 18px 0;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1;
  letter-spacing: -0.06em;
}

.hero p {
  display: -webkit-box;
  max-width: 760px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 19px;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.hero-tags span,
.tag-row span {
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  font-weight: 700;
}

.hero-meta,
.detail-meta,
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0;
  color: var(--amber-300);
  font-weight: 800;
}

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

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.primary-btn {
  color: var(--white);
  background: var(--amber-600);
  box-shadow: 0 16px 34px rgba(217, 119, 6, 0.34);
}

.primary-btn:hover {
  background: var(--amber-700);
  transform: translateY(-2px) scale(1.02);
}

.ghost-btn {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.ghost-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.hero-poster {
  position: relative;
  flex: 0 0 300px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: rotate(2deg);
}

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

.hero-poster span {
  position: absolute;
  right: 18px;
  bottom: 18px;
  color: var(--slate-900);
  background: var(--amber-300);
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 900;
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

.hero-dot {
  width: 28px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  cursor: pointer;
}

.hero-dot.is-active {
  width: 46px;
  background: var(--amber-400);
}

.category-strip-section {
  background: var(--stone-100);
  padding: 24px 0;
}

.category-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.category-strip a {
  border-radius: 999px;
  padding: 11px 18px;
  background: var(--white);
  color: var(--stone-700);
  font-weight: 800;
  box-shadow: var(--shadow-sm);
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.category-strip a:hover {
  color: var(--white);
  background: var(--amber-600);
  transform: translateY(-2px);
}

.content-section {
  padding: 72px 0;
}

.warm-section {
  background: linear-gradient(135deg, #fff7ed, var(--amber-50));
}

.dark-section {
  color: var(--white);
  background: linear-gradient(135deg, var(--slate-800), var(--slate-900));
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.section-heading h2 {
  margin: 12px 0 0;
  color: var(--stone-800);
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.15;
}

.dark-section .section-heading h2,
.dark-section .section-heading p {
  color: var(--white);
}

.section-heading p {
  margin: 8px 0 0;
  color: var(--stone-600);
}

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--stone-200);
}

.poster-wrap img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.45s ease, opacity 0.45s ease;
}

.movie-card:hover .poster-wrap img {
  transform: scale(1.08);
  opacity: 0.92;
}

.duration,
.type-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--white);
  font-size: 12px;
  font-weight: 900;
}

.duration {
  right: 12px;
  bottom: 12px;
  background: rgba(0, 0, 0, 0.72);
}

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

.rank-badge {
  right: 12px;
  top: 12px;
  background: var(--red-600);
}

.movie-card-body {
  padding: 18px;
}

.movie-card-body h3 {
  display: -webkit-box;
  min-height: 3em;
  margin: 0 0 10px;
  color: var(--stone-800);
  font-size: 19px;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card-body h3 a:hover {
  color: var(--amber-700);
}

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

.meta-row {
  gap: 8px;
  margin: 0 0 14px;
  color: var(--stone-500);
  font-size: 13px;
  font-weight: 700;
}

.meta-row span {
  display: inline-flex;
  align-items: center;
}

.tag-row span {
  color: var(--amber-800);
  background: var(--amber-100);
}

.dark-section .movie-card {
  background: rgba(255, 255, 255, 0.95);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 36px;
  align-items: start;
}

.ranking-panel {
  border-radius: var(--radius-xl);
  padding: 22px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-md);
}

.ranking-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  color: var(--white);
  font-size: 22px;
  font-weight: 900;
}

.ranking-title a {
  color: var(--amber-300);
  font-size: 14px;
}

.rank-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rank-list a {
  display: grid;
  grid-template-columns: 36px 84px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 76px;
  border-radius: 16px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.08);
  transition: background 0.25s ease, transform 0.25s ease;
}

.rank-list a:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateX(4px);
}

.rank-num {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 12px;
  color: var(--slate-900);
  background: var(--amber-300);
  font-weight: 900;
}

.rank-list img {
  width: 84px;
  height: 58px;
  border-radius: 12px;
  object-fit: cover;
}

.rank-info {
  min-width: 0;
}

.rank-info strong,
.rank-info em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-info em {
  color: rgba(255, 255, 255, 0.66);
  font-size: 13px;
  font-style: normal;
}

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

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  border-radius: var(--radius-xl);
  padding: 24px;
  color: var(--white);
  background: linear-gradient(135deg, var(--slate-800), var(--slate-900));
  box-shadow: var(--shadow-md);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-card span {
  position: relative;
  z-index: 2;
  display: block;
  margin-bottom: 8px;
  font-size: 24px;
  font-weight: 900;
}

.category-card p {
  position: relative;
  z-index: 2;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.category-card-images {
  position: absolute;
  right: -18px;
  bottom: -20px;
  display: flex;
  gap: 8px;
  opacity: 0.54;
  transform: rotate(-8deg);
}

.category-card-images img {
  width: 72px;
  height: 108px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
}

.sub-page {
  min-height: 60vh;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(135deg, var(--slate-900), #78350f);
}

.page-hero {
  min-height: 340px;
  display: grid;
  align-items: center;
  padding: 72px 0;
}

.page-hero > img,
.detail-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
}

.page-hero-mask,
.detail-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.42));
}

.page-hero .container,
.detail-hero .container {
  position: relative;
  z-index: 2;
}

.amber-hero {
  background: linear-gradient(135deg, var(--amber-600), #ea580c);
}

.page-hero h1 {
  margin: 18px 0 10px;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.05;
}

.page-hero p {
  max-width: 720px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 19px;
}

.tool-bar {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  padding: 18px;
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.filter-input,
.sort-select,
.big-search input {
  min-height: 46px;
  border: 2px solid var(--stone-200);
  border-radius: 999px;
  padding: 0 16px;
  outline: none;
  background: var(--stone-50);
}

.filter-input {
  width: min(520px, 100%);
}

.filter-input:focus,
.sort-select:focus,
.big-search input:focus {
  border-color: var(--amber-500);
}

.big-search {
  display: flex;
  width: min(680px, 100%);
  min-height: 56px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.big-search input {
  flex: 1;
  border: 0;
  border-radius: 0;
  background: var(--white);
}

.search-summary {
  margin-bottom: 24px;
  color: var(--stone-700);
  font-size: 22px;
  font-weight: 900;
}

.empty-state {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 60px 20px;
  text-align: center;
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.empty-state strong {
  font-size: 28px;
}

.detail-hero {
  min-height: 480px;
  display: grid;
  align-items: end;
  padding: 72px 0 58px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.74);
  font-weight: 700;
}

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

.detail-copy {
  max-width: 820px;
}

.detail-copy h1 {
  margin: 0 0 16px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.detail-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 20px;
}

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

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

.player-section {
  padding-top: 48px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: var(--black);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 9;
}

.video-player {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--black);
  cursor: pointer;
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  gap: 10px;
  border: 0;
  color: var(--white);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.62));
  cursor: pointer;
}

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

.play-overlay span {
  display: grid;
  width: 84px;
  height: 84px;
  place-items: center;
  border-radius: 999px;
  color: var(--slate-900);
  background: var(--amber-300);
  font-size: 34px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.32);
}

.play-overlay strong {
  font-size: 20px;
}

.detail-card,
.side-panel {
  margin-top: 24px;
  border-radius: var(--radius-xl);
  padding: 28px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.detail-card h2,
.side-panel h2 {
  margin: 0 0 16px;
  color: var(--stone-800);
  font-size: 26px;
}

.detail-card p {
  margin: 0;
  color: var(--stone-700);
}

.side-panel {
  margin-top: 0;
  position: sticky;
  top: 96px;
}

.side-panel dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.side-panel dt {
  color: var(--stone-500);
  font-size: 13px;
  font-weight: 900;
}

.side-panel dd {
  margin: -8px 0 8px;
  color: var(--stone-800);
  font-weight: 800;
}

.side-panel a {
  color: var(--amber-700);
}

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

.site-footer {
  color: rgba(255, 255, 255, 0.78);
  background: var(--slate-900);
  padding-top: 54px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
}

.footer-brand {
  color: var(--white);
  font-size: 26px;
}

.site-footer p {
  max-width: 520px;
  margin: 14px 0 0;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: 18px;
}

.site-footer a:not(.footer-brand) {
  display: block;
  margin: 8px 0;
  color: rgba(255, 255, 255, 0.72);
}

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

.footer-bottom {
  margin-top: 42px;
  padding: 20px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.is-filtered-out {
  display: none;
}

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

  .archive-grid,
  .latest-grid,
  .compact-feature-grid,
  .category-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

@media (max-width: 820px) {
  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .header-inner {
    min-height: 66px;
  }

  .hero {
    height: auto;
    min-height: 680px;
  }

  .hero-content {
    padding: 72px 0 90px;
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-poster {
    width: min(260px, 70vw);
    flex: none;
  }

  .hero-control {
    display: none;
  }

  .movie-grid,
  .archive-grid,
  .latest-grid,
  .compact-feature-grid,
  .category-card-grid,
  .category-card-grid.wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .brand-text {
    font-size: 17px;
  }

  .hero h1,
  .detail-copy h1,
  .page-hero h1 {
    font-size: 38px;
  }

  .hero p,
  .detail-copy p,
  .page-hero p {
    font-size: 16px;
  }

  .hero-actions,
  .tool-bar,
  .big-search {
    flex-direction: column;
    align-items: stretch;
  }

  .primary-btn,
  .ghost-btn {
    width: 100%;
  }

  .movie-grid,
  .archive-grid,
  .latest-grid,
  .compact-feature-grid,
  .category-card-grid,
  .category-card-grid.wide {
    grid-template-columns: 1fr;
  }

  .rank-list a {
    grid-template-columns: 32px 72px 1fr;
  }

  .rank-list img {
    width: 72px;
    height: 52px;
  }
}
