:root {
  --bg: #fffaf0;
  --bg-soft: #fff7ed;
  --panel: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #fed7aa;
  --brand: #f59e0b;
  --brand-dark: #d97706;
  --accent: #ea580c;
  --danger: #dc2626;
  --shadow: 0 18px 45px rgba(146, 64, 14, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #fffaf0 0%, #ffffff 36%, #fff7ed 100%);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

img {
  max-width: 100%;
  height: auto;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(255, 251, 235, 0.96), rgba(255, 237, 213, 0.96));
  border-bottom: 1px solid rgba(251, 191, 36, 0.28);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 28px rgba(146, 64, 14, 0.12);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  box-shadow: 0 10px 22px rgba(234, 88, 12, 0.28);
}

.brand-text {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #d97706, #ea580c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.nav-link {
  color: #374151;
  font-weight: 650;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--brand-dark);
}

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

.header-search input,
.filter-panel input,
.filter-panel select,
.big-search input {
  border: 2px solid #fed7aa;
  outline: none;
  border-radius: 999px;
  background: #ffffff;
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
  width: 230px;
  padding: 10px 16px;
}

.header-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus,
.big-search input:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.16);
}

.header-search button,
.big-search button,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  font-weight: 750;
  cursor: pointer;
  text-decoration: none;
}

.header-search button,
.big-search button,
.btn-primary {
  color: #ffffff;
  background: linear-gradient(90deg, #f59e0b, #ea580c);
  box-shadow: 0 10px 24px rgba(234, 88, 12, 0.22);
}

.header-search button {
  padding: 10px 18px;
}

.btn {
  min-height: 44px;
  padding: 12px 20px;
}

.btn-small {
  min-height: 38px;
  padding: 8px 15px;
  color: #ffffff;
  background: linear-gradient(90deg, #f59e0b, #ea580c);
}

.btn-ghost {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  background: transparent;
  color: #92400e;
  font-size: 1.5rem;
}

.hero {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  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-bg,
.detail-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img,
.detail-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 30%, rgba(251, 191, 36, 0.26), transparent 36%),
    linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.64) 48%, rgba(17, 24, 39, 0.32)),
    linear-gradient(0deg, rgba(17, 24, 39, 0.88), rgba(17, 24, 39, 0.08));
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.55fr);
  gap: 42px;
  align-items: center;
  min-height: 650px;
  padding: 78px 0 84px;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 14px;
  padding: 7px 12px;
  border-radius: 999px;
  color: #78350f;
  background: rgba(254, 243, 199, 0.94);
  font-size: 0.88rem;
  font-weight: 800;
}

.eyebrow.dark {
  color: #ffffff;
  background: linear-gradient(90deg, #f59e0b, #ea580c);
}

.hero h1,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  font-size: clamp(2.3rem, 5vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-copy p,
.page-hero p,
.detail-copy p {
  max-width: 780px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.1rem;
  line-height: 1.85;
}

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

.hero-tags span,
.tag-row span {
  border-radius: 999px;
  padding: 6px 10px;
  color: #92400e;
  background: #fffbeb;
  font-size: 0.85rem;
  font-weight: 700;
}

.tag-row.large span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

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

.hero-poster,
.detail-poster {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
  background: linear-gradient(135deg, #fbbf24, #ea580c);
}

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

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

.hero-dot {
  width: 34px;
  height: 7px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
}

.hero-dot.is-active {
  background: #f59e0b;
}

.section {
  padding: 72px 0;
}

.section-tight {
  padding: 42px 0;
}

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

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

.section-head h2,
.intro-panel h2,
.article-content h2 {
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.45rem);
  line-height: 1.15;
}

.section-head p,
.intro-panel p,
.category-overview-card p,
.article-content p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.section-head.mini {
  align-items: center;
  margin-bottom: 16px;
}

.section-head.mini h2 {
  font-size: 1.4rem;
}

.link-more,
.section-head a {
  color: var(--brand-dark);
  font-weight: 800;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.6fr);
  gap: 24px;
}

.intro-panel,
.hot-rank-card,
.category-overview-card,
.detail-side-card,
.player-card,
.article-content {
  border: 1px solid rgba(251, 191, 36, 0.26);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.intro-panel,
.hot-rank-card {
  padding: 30px;
}

.big-search {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.big-search input {
  flex: 1;
  min-height: 52px;
  padding: 12px 18px;
}

.big-search button {
  padding: 0 24px;
}

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

.rank-list a {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  background: #fff7ed;
}

.rank-no {
  display: inline-grid;
  place-items: center;
  min-width: 32px;
  height: 32px;
  border-radius: 10px;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  font-weight: 900;
}

.rank-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 750;
}

.rank-score {
  color: #92400e;
  font-weight: 800;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  padding: 22px;
  border-radius: 26px;
  color: #ffffff;
  background: #111827;
  box-shadow: var(--shadow);
}

.category-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.32;
  transform: scale(1.04);
  transition: transform 0.35s ease;
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(146, 64, 14, 0.88), rgba(234, 88, 12, 0.64));
}

.category-card:hover .category-bg {
  transform: scale(1.12);
}

.category-name,
.category-desc,
.category-count {
  position: relative;
  z-index: 1;
  display: block;
}

.category-name {
  font-size: 1.35rem;
  font-weight: 900;
}

.category-desc {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.65;
}

.category-count {
  margin-top: 18px;
  font-weight: 800;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(251, 191, 36, 0.24);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(146, 64, 14, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 42px rgba(146, 64, 14, 0.18);
}

.poster-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
}

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

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

.poster-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  color: #ffffff;
  text-align: center;
  font-weight: 900;
  opacity: 0;
}

.poster-missing img {
  opacity: 0;
}

.poster-missing .poster-fallback {
  opacity: 1;
}

.rating-badge {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.58);
  font-weight: 850;
}

.movie-info {
  padding: 16px;
}

.movie-title {
  display: block;
  overflow: hidden;
  color: var(--text);
  font-size: 1.08rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.movie-desc {
  display: -webkit-box;
  min-height: 3.25em;
  margin: 10px 0 0;
  overflow: hidden;
  color: var(--muted);
  line-height: 1.65;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  color: #92400e;
  font-size: 0.86rem;
  font-weight: 750;
}

.tag-row {
  margin-top: 12px;
}

.card-compact .movie-desc {
  min-height: auto;
  -webkit-line-clamp: 1;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0;
  color: #ffffff;
  background:
    radial-gradient(circle at 78% 22%, rgba(251, 191, 36, 0.38), transparent 34%),
    linear-gradient(135deg, #111827, #78350f 54%, #ea580c);
}

.small-hero,
.search-hero,
.rank-hero,
.category-hero {
  padding: 82px 0;
}

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

.category-overview-card {
  padding: 26px;
}

.category-overview-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.category-overview-top h2 {
  margin: 0;
  font-size: 1.45rem;
}

.category-overview-top span {
  border-radius: 999px;
  padding: 6px 10px;
  color: #92400e;
  background: #fffbeb;
  font-weight: 800;
}

.sample-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 18px;
}

.sample-links a {
  border-radius: 999px;
  padding: 7px 10px;
  color: #92400e;
  background: #fff7ed;
  font-size: 0.9rem;
  font-weight: 750;
}

.filter-panel {
  display: flex;
  gap: 12px;
  align-items: center;
}

.filter-panel input {
  flex: 1;
  min-height: 50px;
  padding: 12px 18px;
}

.filter-panel select {
  min-height: 50px;
  padding: 0 18px;
}

.empty-state {
  margin-top: 24px;
  padding: 28px;
  border-radius: 20px;
  text-align: center;
  background: #fff7ed;
  color: #92400e;
  font-weight: 800;
}

.table-wrap {
  overflow-x: auto;
}

.rank-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 10px;
}

.rank-table th {
  padding: 0 14px 8px;
  color: #92400e;
  text-align: left;
  white-space: nowrap;
}

.rank-table td {
  padding: 16px 14px;
  background: #ffffff;
  border-top: 1px solid rgba(251, 191, 36, 0.22);
  border-bottom: 1px solid rgba(251, 191, 36, 0.22);
}

.rank-table td:first-child {
  border-left: 1px solid rgba(251, 191, 36, 0.22);
  border-radius: 18px 0 0 18px;
}

.rank-table td:last-child {
  border-right: 1px solid rgba(251, 191, 36, 0.22);
  border-radius: 0 18px 18px 0;
}

.table-title {
  color: var(--text);
  font-weight: 850;
}

.rank-table p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 610px;
  background: #111827;
}

.detail-mask {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.94), rgba(17, 24, 39, 0.74) 52%, rgba(17, 24, 39, 0.42)),
    linear-gradient(0deg, rgba(17, 24, 39, 0.94), rgba(17, 24, 39, 0.18));
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 38px;
  align-items: center;
  min-height: 610px;
  padding: 76px 0;
}

.detail-copy {
  color: #ffffff;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.detail-meta span {
  border-radius: 999px;
  padding: 8px 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-weight: 750;
}

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

.player-card {
  padding: 14px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.video-shell video {
  width: 100%;
  height: 100%;
  background: #000000;
}

.play-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 8px;
  border: 0;
  color: #ffffff;
  text-align: center;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.18), rgba(17, 24, 39, 0.76));
  cursor: pointer;
}

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

.play-icon {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  box-shadow: 0 18px 45px rgba(234, 88, 12, 0.36);
  font-size: 2rem;
}

.detail-side-card {
  padding: 24px;
}

.detail-side-card h2 {
  margin: 0 0 16px;
}

.detail-side-card dl {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 12px 10px;
  margin: 0;
}

.detail-side-card dt {
  color: #92400e;
  font-weight: 850;
}

.detail-side-card dd {
  margin: 0;
  color: var(--muted);
}

.article-content {
  padding: 34px;
}

.article-content h2 + p {
  margin-top: 14px;
}

.article-content p {
  color: #374151;
  font-size: 1.04rem;
}

.site-footer {
  padding: 48px 0 24px;
  background: #111827;
  color: #ffffff;
}

.footer-grid {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.footer-grid p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.75;
}

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

.footer-links a {
  color: rgba(255, 255, 255, 0.82);
}

.copyright {
  width: min(1180px, calc(100% - 32px));
  margin: 30px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.58);
}

@media (max-width: 1100px) {
  .category-grid,
  .movie-grid,
  .dense-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .hero-poster {
    display: none;
  }
}

@media (max-width: 820px) {
  .header-inner {
    flex-wrap: wrap;
    min-height: 62px;
    padding: 10px 0;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav,
  .header-search {
    display: none;
    width: 100%;
  }

  .site-nav.is-open,
  .header-search.is-open {
    display: flex;
  }

  .site-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding-top: 10px;
  }

  .header-search input {
    width: 100%;
  }

  .hero,
  .hero-content {
    min-height: 590px;
  }

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

  .detail-poster {
    max-width: 220px;
  }

  .category-grid,
  .category-overview-grid,
  .movie-grid,
  .dense-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-panel,
  .big-search,
  .footer-grid {
    flex-direction: column;
    align-items: stretch;
  }
}

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

  .category-grid,
  .category-overview-grid,
  .movie-grid,
  .dense-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy p,
  .page-hero p,
  .detail-copy p {
    font-size: 1rem;
  }

  .section {
    padding: 48px 0;
  }

  .intro-panel,
  .hot-rank-card,
  .category-overview-card,
  .article-content {
    padding: 22px;
  }
}
