:root {
  --amber: #f59e0b;
  --amber-dark: #d97706;
  --amber-soft: #fffbeb;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #f9fafb;
  --dark: #111827;
  --radius: 1rem;
  --shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(14px);
}

.nav-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark,
.footer-logo span {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--amber);
  color: #ffffff;
  font-size: 15px;
  box-shadow: 0 10px 20px rgba(245, 158, 11, 0.28);
}

.brand-text {
  font-size: 24px;
  color: #111827;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-link,
.mobile-extra {
  padding: 9px 13px;
  border-radius: 12px;
  color: #4b5563;
  font-size: 14px;
  font-weight: 650;
  transition: all 0.2s ease;
}

.nav-link:hover,
.mobile-extra:hover,
.nav-link.active {
  background: #fef3c7;
  color: #b45309;
}

.mobile-extra {
  display: none;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #fff7ed;
  color: #b45309;
  font-size: 22px;
  cursor: pointer;
}

.hero-section,
.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
}

.hero-section {
  min-height: 600px;
  color: #ffffff;
  background: #111827;
}

.hero-bg,
.detail-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img,
.detail-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.56), rgba(0, 0, 0, 0.15));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 600px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 48px;
  align-items: center;
}

.hero-copy {
  max-width: 720px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fbbf24;
  font-weight: 800;
  margin-bottom: 16px;
}

.hero-copy h1,
.page-hero h1,
.detail-info h1 {
  margin: 0 0 22px;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.hero-copy p,
.page-hero p,
.detail-one-line {
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(17px, 2vw, 22px);
}

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

.hero-meta {
  margin-bottom: 30px;
}

.hero-meta span,
.detail-meta span {
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
}

.hero-meta span:first-child,
.detail-meta span:first-child {
  background: var(--amber);
  color: #ffffff;
  font-weight: 800;
}

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

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

.primary-btn,
.search-panel button {
  background: var(--amber);
  color: #ffffff;
  box-shadow: 0 16px 24px rgba(245, 158, 11, 0.26);
}

.primary-btn:hover,
.search-panel button:hover {
  background: var(--amber-dark);
  transform: translateY(-2px);
}

.ghost-btn {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.12);
}

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

.search-panel {
  display: flex;
  gap: 10px;
  max-width: 560px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
}

.site-search-input {
  flex: 1;
  min-width: 0;
  height: 46px;
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  outline: none;
  color: #111827;
  background: rgba(255, 255, 255, 0.95);
}

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

.hero-mini-card {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  border-radius: 22px;
  box-shadow: var(--shadow);
  isolation: isolate;
}

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

.hero-mini-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent 60%);
  z-index: 1;
}

.hero-mini-card span {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 2;
  color: #ffffff;
  font-weight: 800;
}

.hero-mini-card:hover img {
  transform: scale(1.08);
}

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

.content-section > .section-heading,
.content-section > .movie-grid,
.content-section > .ranking-list,
.content-section > .filter-chips,
.content-section > .pagination,
.article-grid,
.prose-section > * {
  width: min(1180px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.white-section {
  background: #ffffff;
}

.warm-section,
.category-panel:nth-of-type(even) {
  background: linear-gradient(135deg, #fffbeb, #fff7ed);
}

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

.section-heading > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #fff7ed;
  color: var(--amber-dark);
  font-size: 20px;
}

.section-heading h2 {
  margin: 0;
  color: #111827;
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: -0.04em;
}

.section-more {
  color: #d97706;
  font-weight: 800;
}

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

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

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

.movie-card,
.movie-row {
  background: #ffffff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.movie-card a,
.movie-row a {
  display: block;
  height: 100%;
}

.card-cover,
.row-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #111827;
}

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

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

.play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: var(--amber);
  color: #ffffff;
  opacity: 0;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.32);
  transition: all 0.25s ease;
}

.play-icon.small {
  width: 42px;
  height: 42px;
  font-size: 14px;
}

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

.card-year {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 8px;
  border-radius: 8px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.68);
  font-size: 12px;
  font-weight: 750;
}

.card-body {
  padding: 18px;
}

.card-category {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  color: #b45309;
  background: #fef3c7;
  font-size: 12px;
  font-weight: 800;
}

.card-body h3,
.row-info h3 {
  margin: 0 0 8px;
  color: #1f2937;
  font-size: 18px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-body p,
.row-info p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  color: #6b7280;
  font-size: 12px;
}

.movie-card-large {
  position: relative;
  background: #111827;
}

.movie-card-large .card-cover {
  aspect-ratio: 16 / 10;
}

.movie-card-large .card-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.05));
}

.movie-card-large .overlay-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  color: #ffffff;
  z-index: 2;
}

.movie-card-large .overlay-body h3,
.movie-card-large .overlay-body p,
.movie-card-large .overlay-body .card-meta {
  color: #ffffff;
}

.ranking-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 16px;
}

.ranking-list li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 14px;
  align-items: center;
}

.rank-no {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: #111827;
  color: #fbbf24;
  font-weight: 900;
}

.movie-row a {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 18px;
  align-items: stretch;
}

.row-cover {
  height: 100%;
  aspect-ratio: auto;
  min-height: 136px;
}

.row-info {
  padding: 18px 18px 18px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-hero {
  color: #ffffff;
  background: radial-gradient(circle at top left, rgba(245, 158, 11, 0.45), transparent 34%), linear-gradient(135deg, #111827, #1f2937 52%, #3f2b08);
}

.slim-hero {
  padding: 82px 0;
}

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

.page-hero h1 {
  max-width: 800px;
}

.page-hero p {
  max-width: 720px;
}

.page-hero .search-panel {
  margin-top: 28px;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.chip {
  border: 1px solid #fde68a;
  border-radius: 999px;
  background: #fffbeb;
  color: #92400e;
  padding: 8px 14px;
  font-weight: 800;
  cursor: pointer;
}

.chip.active,
.chip:hover {
  background: var(--amber);
  color: #ffffff;
}

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

.pagination a,
.pagination span {
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid var(--line);
  color: #374151;
  font-weight: 750;
}

.pagination a.active,
.pagination a:hover {
  background: var(--amber);
  border-color: var(--amber);
  color: #ffffff;
}

.detail-hero {
  min-height: 620px;
  color: #ffffff;
  background: #111827;
}

.detail-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.28));
}

.detail-wrap {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 64px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 36px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #fbbf24;
}

.detail-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 42px;
  align-items: center;
}

.detail-poster {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

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

.detail-info h1 {
  max-width: 820px;
}

.detail-one-line {
  max-width: 820px;
}

.detail-meta {
  margin-bottom: 18px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 30px;
}

.tag-list span {
  padding: 6px 12px;
  border-radius: 999px;
  color: #fff7ed;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
}

.player-section {
  padding: 64px 0;
  background: #0b1020;
}

.player-shell {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
}

.video-player {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #000000;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.36);
  aspect-ratio: 16 / 9;
}

.movie-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #000000;
  cursor: pointer;
}

.video-play-button {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 86px;
  height: 86px;
  border: 0;
  border-radius: 999px;
  background: var(--amber);
  color: #ffffff;
  font-size: 34px;
  cursor: pointer;
  box-shadow: 0 20px 45px rgba(245, 158, 11, 0.3);
  transition: transform 0.2s ease, background 0.2s ease;
  z-index: 3;
}

.video-play-button:hover {
  background: var(--amber-dark);
  transform: scale(1.05);
}

.video-player.is-playing .video-play-button {
  opacity: 0;
  pointer-events: none;
}

.video-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 24px;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), transparent);
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.video-player.is-playing .video-caption {
  opacity: 0;
}

.detail-content .article-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.article-grid article,
.prose-card {
  padding: 28px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
}

.article-grid h2,
.prose-card h2 {
  margin: 0 0 14px;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.article-grid p,
.prose-card p {
  margin: 0;
  color: #4b5563;
  line-height: 1.85;
}

.prose-section {
  display: grid;
  gap: 22px;
}

.site-footer {
  background: linear-gradient(135deg, #111827, #1f2937 50%, #111827);
  color: #d1d5db;
  padding: 58px 0 26px;
}

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1fr;
  gap: 34px;
}

.footer-logo {
  color: #ffffff;
  font-size: 24px;
}

.footer-brand p {
  margin: 16px 0 0;
  color: #9ca3af;
}

.site-footer h3 {
  margin: 0 0 16px;
  color: #ffffff;
}

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

.site-footer a:hover {
  color: #fbbf24;
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 34px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #9ca3af;
  font-size: 14px;
}

.is-hidden {
  display: none !important;
}

.no-result {
  width: min(1180px, calc(100% - 32px));
  margin: 24px auto 0;
  padding: 22px;
  border-radius: 18px;
  background: #fff7ed;
  color: #92400e;
  font-weight: 800;
  text-align: center;
}

@media (max-width: 1024px) {
  .hero-content,
  .detail-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-showcase {
    display: none;
  }

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

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

@media (max-width: 820px) {
  .nav-shell {
    min-height: 64px;
  }

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

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

  .nav-menu {
    position: absolute;
    top: 64px;
    left: 16px;
    right: 16px;
    display: none;
    padding: 14px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
  }

  .nav-menu.open {
    display: flex;
  }

  .mobile-extra {
    display: inline-flex;
  }

  .hero-content {
    min-height: 560px;
  }

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

  .search-panel {
    border-radius: 18px;
    flex-direction: column;
  }

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

  .movie-row a {
    grid-template-columns: 120px 1fr;
  }

  .row-info {
    padding: 14px 14px 14px 0;
  }

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

  .video-caption {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .hero-section,
  .hero-content {
    min-height: 640px;
  }

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

  .movie-grid,
  .feature-grid,
  .compact-grid,
  .catalog-grid {
    grid-template-columns: 1fr;
  }

  .ranking-list li {
    grid-template-columns: 42px 1fr;
  }

  .rank-no {
    width: 38px;
    height: 38px;
  }

  .movie-row a {
    grid-template-columns: 1fr;
  }

  .row-cover {
    min-height: 180px;
  }

  .row-info {
    padding: 16px;
  }

  .detail-grid {
    gap: 24px;
  }

  .detail-poster {
    max-width: none;
  }

  .footer-grid {
    gap: 26px;
  }
}
