:root {
  --page-bg: #fffbeb;
  --page-bg-soft: #fefce8;
  --text: #1f2937;
  --muted: #6b7280;
  --line: rgba(217, 119, 6, 0.18);
  --amber: #d97706;
  --amber-light: #f59e0b;
  --yellow: #eab308;
  --orange: #ea580c;
  --card: rgba(255, 255, 255, 0.9);
  --shadow: 0 22px 60px rgba(146, 64, 14, 0.16);
  --radius: 26px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: linear-gradient(180deg, #fffbeb 0%, #fef9c3 42%, #fff7ed 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background 0.25s ease, box-shadow 0.25s ease, backdrop-filter 0.25s ease;
}

.site-header.is-scrolled,
.site-header:hover {
  background: rgba(255, 251, 235, 0.88);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(146, 64, 14, 0.12);
}

.nav-shell {
  max-width: 1280px;
  height: 78px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 26px;
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--amber-light), var(--yellow));
  border-radius: 14px;
  box-shadow: 0 12px 24px rgba(217, 119, 6, 0.24);
}

.brand-name {
  display: block;
  font-size: 24px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, var(--amber), var(--yellow));
  -webkit-background-clip: text;
  color: transparent;
}

.brand-subtitle {
  display: block;
  margin-top: 4px;
  color: var(--amber);
  font-size: 12px;
}

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

.nav-link {
  color: #78350f;
  font-weight: 700;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--amber);
}

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

.header-search input,
.mobile-search input,
.filter-bar input,
.advanced-search input,
.advanced-search select {
  border: 2px solid rgba(245, 158, 11, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.header-search button,
.mobile-search button,
.advanced-search button {
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(90deg, var(--amber-light), var(--yellow));
  cursor: pointer;
}

input:focus,
select:focus {
  border-color: var(--amber-light);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.16);
}

.menu-toggle {
  display: none;
  border: 0;
  color: #78350f;
  background: transparent;
  font-size: 30px;
  margin-left: auto;
}

.mobile-panel {
  display: none;
  padding: 16px 24px 22px;
  background: rgba(255, 251, 235, 0.96);
  border-top: 1px solid var(--line);
}

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

.mobile-panel nav {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.mobile-link {
  padding: 12px 0;
  color: #78350f;
  font-weight: 800;
}

.mobile-link.active {
  color: var(--amber);
}

.mobile-search input {
  min-width: 0;
  flex: 1;
  padding: 11px 16px;
}

.hero {
  position: relative;
  min-height: 640px;
  background: #111827;
}

.hero-stage {
  position: relative;
  min-height: 640px;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 120px 24px 86px;
  opacity: 0;
  transform: translateX(36px);
  pointer-events: none;
  transition: opacity 0.62s ease, transform 0.62s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.hero-slide > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.46), transparent 32%), linear-gradient(135deg, #111827, #78350f 58%, #f59e0b);
}

.hero-slide > img.is-missing {
  display: none;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.18) 0%, rgba(17, 24, 39, 0.62) 45%, rgba(17, 24, 39, 0.92) 100%), radial-gradient(circle at 12% 82%, rgba(245, 158, 11, 0.52), transparent 34%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1120px, 100%);
  margin: 0 auto;
  color: #fff;
}

.hero-kicker,
.eyebrow {
  margin: 0 0 12px;
  color: var(--amber-light);
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-content h1 {
  max-width: 960px;
  margin: 0;
  font-size: clamp(44px, 8vw, 82px);
  line-height: 0.95;
  letter-spacing: -0.07em;
}

.hero-desc {
  max-width: 780px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(18px, 2.4vw, 24px);
  line-height: 1.65;
}

.hero-tags,
.movie-tags,
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags {
  margin-top: 24px;
}

.tag,
.pill-row a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 999px;
  color: #92400e;
  background: rgba(254, 243, 199, 0.9);
  font-size: 13px;
  font-weight: 800;
}

.hero-tags .tag {
  color: #fff;
  background: rgba(245, 158, 11, 0.85);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

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

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

.btn-primary {
  color: #fff;
  background: linear-gradient(90deg, var(--amber-light), var(--yellow));
  box-shadow: 0 16px 34px rgba(245, 158, 11, 0.3);
}

.btn-ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.btn-small {
  min-height: 42px;
  color: #fff;
  background: linear-gradient(90deg, var(--amber-light), var(--yellow));
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  font-size: 40px;
  line-height: 1;
  cursor: pointer;
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

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

.hero-dot.is-active {
  width: 34px;
  background: #fbbf24;
}

.quick-panel,
.content-section,
.page-hero,
.detail-layout,
.rank-columns,
.text-panel {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
}

.quick-panel {
  transform: translateY(-42px);
  display: grid;
  grid-template-columns: 1.05fr 1.4fr;
  gap: 24px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.quick-copy h2,
.section-heading h2,
.page-hero h1,
.detail-article h1,
.text-panel h2,
.side-card h2 {
  margin: 0;
  color: #111827;
  letter-spacing: -0.04em;
}

.quick-copy h2 {
  font-size: clamp(28px, 4vw, 44px);
}

.quick-copy p:last-child,
.page-hero p,
.text-panel p,
.feature-card p {
  color: var(--muted);
  line-height: 1.8;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-content: center;
}

.quick-links a,
.section-more {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  color: #92400e;
  background: #fef3c7;
  font-weight: 900;
}

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

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

.section-heading.tight {
  margin-bottom: 16px;
}

.section-heading h2 {
  font-size: clamp(30px, 4vw, 48px);
}

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

.movie-card {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(245, 158, 11, 0.18);
  border-radius: 24px;
  background: var(--card);
  box-shadow: 0 14px 35px rgba(146, 64, 14, 0.1);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 50px rgba(146, 64, 14, 0.18);
}

.poster-frame {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: radial-gradient(circle at 22% 18%, rgba(253, 186, 116, 0.75), transparent 35%), linear-gradient(135deg, #78350f, #f59e0b);
}

.poster-frame img,
.category-bg img,
.rank-cover img,
.side-poster img,
.player-cover-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.poster-frame img {
  transition: transform 0.46s ease;
}

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

.poster-frame img.is-missing,
.category-bg img.is-missing,
.rank-cover img.is-missing,
.side-poster img.is-missing,
.player-cover-bg img.is-missing {
  display: none;
}

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(17, 24, 39, 0.72));
}

.play-badge {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--amber-light), var(--yellow));
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.movie-info {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.movie-meta {
  color: var(--amber);
  font-size: 13px;
  font-weight: 800;
}

.movie-info strong {
  color: #111827;
  font-size: 20px;
  line-height: 1.25;
}

.movie-desc {
  min-height: 48px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

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

.category-tile {
  position: relative;
  min-height: 170px;
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(135deg, #78350f, #f59e0b);
  box-shadow: 0 18px 40px rgba(146, 64, 14, 0.15);
}

.category-bg {
  position: absolute;
  inset: 0;
  opacity: 0.36;
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.12), rgba(17, 24, 39, 0.76));
}

.category-name,
.category-entry {
  position: absolute;
  z-index: 2;
  left: 20px;
}

.category-name {
  bottom: 54px;
  color: #fff;
  font-size: 28px;
  font-weight: 900;
}

.category-entry {
  bottom: 22px;
  color: #fde68a;
  font-weight: 800;
}

.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.ranking-card,
.feature-card,
.text-panel,
.side-card,
.detail-article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.ranking-card,
.feature-card {
  padding: 26px;
}

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

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

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

.rank-index {
  color: var(--amber);
  font-size: 20px;
  font-weight: 900;
}

.rank-cover {
  width: 76px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(135deg, #78350f, #f59e0b);
}

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

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

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

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

.mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.mini-grid .movie-info strong {
  font-size: 17px;
}

.page-main,
.detail-main {
  padding-top: 118px;
  padding-bottom: 68px;
}

.page-hero {
  padding: 52px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: radial-gradient(circle at 90% 8%, rgba(245, 158, 11, 0.2), transparent 28%), rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow);
}

.page-hero h1 {
  font-size: clamp(42px, 7vw, 72px);
}

.page-hero p {
  max-width: 820px;
  font-size: 18px;
}

.filter-bar {
  margin-top: 26px;
}

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

.pill-row {
  margin-top: 22px;
}

.rank-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 28px;
}

.advanced-search {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.7fr auto;
  gap: 12px;
  margin-top: 28px;
}

.advanced-search input,
.advanced-search select {
  width: 100%;
  padding: 14px 18px;
}

.text-panel {
  margin-top: 28px;
  padding: 42px;
}

.text-panel h2 {
  margin-top: 26px;
  font-size: 28px;
}

.text-panel h2:first-child {
  margin-top: 0;
}

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

.detail-primary {
  min-width: 0;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.26);
}

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

.player-cover {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  color: #fff;
  background: #111827;
  cursor: pointer;
}

.player-box.is-playing .player-cover {
  display: none;
}

.player-cover-bg {
  position: absolute;
  inset: 0;
  opacity: 0.74;
  background: radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.42), transparent 32%), linear-gradient(135deg, #111827, #78350f);
}

.player-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.12), rgba(17, 24, 39, 0.7));
}

.player-play {
  position: relative;
  z-index: 2;
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  margin: auto;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amber-light), var(--yellow));
  box-shadow: 0 18px 50px rgba(245, 158, 11, 0.42);
  font-size: 34px;
}

.detail-article {
  margin-top: 24px;
  padding: 34px;
}

.detail-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.detail-article h1 {
  font-size: clamp(34px, 5vw, 54px);
}

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

.detail-meta span {
  padding: 8px 13px;
  border-radius: 999px;
  color: #92400e;
  background: #fef3c7;
  font-size: 14px;
  font-weight: 800;
}

.detail-tags {
  margin-bottom: 26px;
}

.detail-article h2 {
  margin: 30px 0 12px;
  color: #111827;
  font-size: 26px;
}

.detail-article p {
  color: #4b5563;
  font-size: 17px;
  line-height: 1.9;
}

.detail-side {
  display: grid;
  align-content: start;
  gap: 20px;
}

.side-poster {
  overflow: hidden;
  border-radius: 28px;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #78350f, #f59e0b);
  box-shadow: var(--shadow);
}

.side-card {
  padding: 24px;
}

.side-card dl {
  display: grid;
  gap: 14px;
  margin: 20px 0 0;
}

.side-card dl div {
  display: grid;
  gap: 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.side-card dt {
  color: var(--amber);
  font-size: 13px;
  font-weight: 900;
}

.side-card dd {
  margin: 0;
  color: #111827;
  line-height: 1.6;
}

.compact-pills a {
  font-size: 12px;
}

.detail-recommend {
  margin-top: 12px;
}

.site-footer {
  color: #fde68a;
  background: linear-gradient(135deg, #451a03, #78350f 58%, #92400e);
}

.footer-inner {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
  padding: 42px 0;
  display: flex;
  justify-content: space-between;
  gap: 32px;
}

.footer-logo {
  display: inline-block;
  margin-bottom: 12px;
  color: #fff;
  font-size: 24px;
  font-weight: 900;
}

.footer-inner p {
  max-width: 680px;
  margin: 0;
  color: rgba(253, 230, 138, 0.88);
  line-height: 1.8;
}

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

.footer-links a {
  color: #fff7ed;
  font-weight: 800;
}

[hidden] {
  display: none !important;
}

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

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

  .split-section,
  .detail-layout,
  .rank-columns {
    grid-template-columns: 1fr;
  }

  .detail-side {
    grid-template-columns: minmax(0, 280px) 1fr;
  }
}

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

  .menu-toggle {
    display: block;
  }

  .nav-shell {
    padding: 0 18px;
  }

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

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

  .hero-slide {
    padding: 112px 22px 80px;
  }

  .hero-arrow {
    display: none;
  }

  .quick-panel {
    grid-template-columns: 1fr;
  }

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

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

  .rank-score {
    display: none;
  }

  .advanced-search {
    grid-template-columns: 1fr;
  }

  .page-hero,
  .text-panel,
  .detail-article {
    padding: 28px;
  }

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

  .side-poster {
    aspect-ratio: 16 / 10;
  }

  .footer-inner {
    flex-direction: column;
  }
}

@media (max-width: 540px) {
  .brand-subtitle {
    display: none;
  }

  .hero-content h1 {
    font-size: 42px;
  }

  .movie-grid,
  .category-grid,
  .category-grid.compact,
  .mini-grid {
    grid-template-columns: 1fr;
  }

  .quick-panel,
  .content-section,
  .page-hero,
  .detail-layout,
  .rank-columns,
  .text-panel,
  .footer-inner {
    width: min(100% - 26px, 1280px);
  }

  .detail-title-row,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}
