/*
  亚洲电影大全静态站样式
  以橙黄色渐变、深色卡片、圆角海报和响应式网格构建电影网站视觉体验。
*/
:root {
  --bg: #0f0b06;
  --bg-soft: #17110a;
  --surface: rgba(255, 255, 255, 0.08);
  --surface-strong: rgba(255, 255, 255, 0.13);
  --border: rgba(255, 255, 255, 0.14);
  --text: #fff8ed;
  --text-soft: #d8c7ad;
  --muted: #9b8871;
  --amber: #f59e0b;
  --orange: #f97316;
  --gold: #facc15;
  --danger: #ef4444;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
  --radius: 24px;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 10%, rgba(245, 158, 11, 0.22), transparent 32rem),
    radial-gradient(circle at 85% 0%, rgba(249, 115, 22, 0.18), transparent 28rem),
    linear-gradient(180deg, #170f08 0%, #0d0906 48%, #080604 100%);
  min-height: 100vh;
}

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

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

button,
input {
  font: inherit;
}

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

.narrow {
  width: min(860px, calc(100% - 32px));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(13, 9, 6, 0.82);
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #1d1206;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  box-shadow: 0 12px 32px rgba(249, 115, 22, 0.35);
}

.brand-text {
  font-size: 1.08rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.main-nav a {
  color: var(--text-soft);
  padding: 10px 14px;
  border-radius: 999px;
  transition: 0.22s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: #1d1206;
  background: linear-gradient(135deg, var(--gold), var(--orange));
}

.mobile-menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  cursor: pointer;
}

.mobile-menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  border-radius: 999px;
}

.hero-section {
  position: relative;
  overflow: hidden;
  padding: 76px 0 54px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.88), rgba(249, 115, 22, 0.86));
}

.hero-orb {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  filter: blur(12px);
  pointer-events: none;
}

.orb-one {
  top: -120px;
  left: -90px;
}

.orb-two {
  right: -120px;
  bottom: -160px;
}

.hero-shell {
  position: relative;
  z-index: 1;
}

.hero-slide {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 44px;
}

.hero-slide.is-active {
  display: flex;
}

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

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: #fff7d6;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.hero-copy h1,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero-copy p {
  margin: 22px 0 0;
  max-width: 700px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  line-height: 1.8;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.btn-primary {
  color: #1d1206;
  background: linear-gradient(135deg, #fff7d6, var(--gold));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
}

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

.btn.wide {
  width: 100%;
}

.hero-poster {
  width: min(310px, 34vw);
  flex: 0 0 auto;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}

.hero-poster-img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 24px;
  background: rgba(0, 0, 0, 0.18);
}

.hero-poster span {
  display: block;
  padding: 14px 6px 4px;
  font-weight: 900;
  text-align: center;
}

.hero-dots {
  display: flex;
  gap: 8px;
  margin-top: 32px;
}

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

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

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 36px;
}

.hero-stats div,
.quick-search,
.filter-panel,
.taxonomy-card,
.rank-panel,
.detail-main-card,
.detail-side-card,
.review-card,
.text-page,
.rank-table-section {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero-stats div {
  padding: 20px;
  background: rgba(255, 255, 255, 0.2);
}

.hero-stats strong {
  display: block;
  color: #fff;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1;
}

.hero-stats span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.84);
}

.quick-search {
  margin-top: -28px;
  position: relative;
  z-index: 3;
  padding: 18px;
  background: rgba(24, 17, 10, 0.92);
}

.quick-search form,
.filter-panel {
  display: grid;
  grid-template-columns: 160px 1fr auto;
  gap: 14px;
  align-items: center;
}

.quick-search label,
.search-box label {
  color: var(--gold);
  font-weight: 900;
}

.quick-search input,
.search-box input {
  width: 100%;
  border: 1px solid var(--border);
  outline: none;
  border-radius: 16px;
  padding: 14px 16px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.28);
}

.quick-search button,
.filter-actions button {
  border: 0;
  border-radius: 16px;
  padding: 14px 20px;
  color: #1d1206;
  font-weight: 900;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  cursor: pointer;
}

.content-section {
  margin-top: 54px;
}

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

.section-heading h2,
.rank-panel h2,
.taxonomy-card h2,
.detail-main-card h2,
.detail-side-card h2,
.text-page h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  letter-spacing: -0.04em;
}

.section-heading p,
.text-page p {
  margin: 8px 0 0;
  color: var(--text-soft);
  line-height: 1.75;
}

.section-link {
  color: var(--gold);
  font-weight: 900;
}

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(250, 204, 21, 0.55);
}

.poster-wrap,
.detail-poster,
.hero-poster {
  position: relative;
  overflow: hidden;
}

.poster-wrap {
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.9), rgba(249, 115, 22, 0.86));
}

.poster-wrap.poster-fallback::after,
.detail-poster.poster-fallback::after,
.hero-poster.poster-fallback::after {
  content: '亚洲电影大全';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.6rem;
  font-weight: 900;
  text-align: center;
  letter-spacing: 0.08em;
}

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

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

.poster-type,
.rating-badge {
  position: absolute;
  top: 12px;
  z-index: 2;
  border-radius: 999px;
  padding: 6px 10px;
  color: #1d1206;
  font-size: 0.76rem;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.88);
}

.poster-type {
  left: 12px;
}

.rating-badge {
  right: 12px;
  background: linear-gradient(135deg, var(--gold), var(--orange));
}

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

.movie-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.86rem;
}

.category-pill {
  color: var(--gold);
  font-weight: 900;
}

.movie-card h3 {
  margin: 10px 0 8px;
  font-size: 1.05rem;
  line-height: 1.35;
}

.movie-card p {
  min-height: 62px;
  margin: 0;
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.62;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag-row span,
.taxonomy-tags span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.78rem;
}

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

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

.category-card {
  display: flex;
  min-height: 130px;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 20px;
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(249, 115, 22, 0.06)),
    rgba(255, 255, 255, 0.07);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(250, 204, 21, 0.55);
}

.category-card span {
  color: var(--gold);
  font-weight: 900;
}

.category-card strong {
  font-size: 2rem;
  letter-spacing: -0.04em;
}

.category-card em {
  color: var(--text-soft);
  font-style: normal;
  line-height: 1.5;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 24px;
  align-items: start;
  margin-top: 54px;
}

.rank-panel {
  padding: 24px;
}

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

.rank-panel a {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
}

.rank-no {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 12px;
  color: #1d1206;
  font-weight: 900;
  background: linear-gradient(135deg, var(--gold), var(--orange));
}

.rank-panel strong {
  font-size: 0.95rem;
}

.rank-panel em {
  grid-column: 2;
  color: var(--muted);
  font-size: 0.82rem;
  font-style: normal;
}

.page-hero {
  padding: 72px 0;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(circle at 16% 20%, rgba(245, 158, 11, 0.28), transparent 28rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
}

.page-hero p {
  color: var(--text-soft);
  font-size: 1.08rem;
  line-height: 1.8;
}

.filter-panel {
  margin-top: 28px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.07);
}

.search-box {
  display: grid;
  grid-column: span 2;
  gap: 8px;
}

.filter-actions {
  display: grid;
  gap: 8px;
  justify-items: end;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.taxonomy-overview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 36px;
}

.taxonomy-card {
  padding: 24px;
}

.taxonomy-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.taxonomy-tags em {
  color: var(--gold);
  font-style: normal;
  font-weight: 900;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.22;
  filter: blur(10px);
  transform: scale(1.08);
}

.detail-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 6, 4, 0.94), rgba(8, 6, 4, 0.72));
}

.detail-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 38px;
  align-items: center;
}

.detail-poster {
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

.detail-poster-img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 22px;
}

.detail-one-line {
  max-width: 780px;
  color: var(--text-soft);
  font-size: 1.12rem;
  line-height: 1.8;
}

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

.detail-badges span,
.detail-badges a {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.07);
}

.player-section {
  margin-top: -28px;
  position: relative;
  z-index: 3;
}

.player-box {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: #000;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.movie-video {
  width: 100%;
  height: 100%;
  background: #000;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.22), rgba(0, 0, 0, 0.78));
}

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

.player-cover button {
  border: 0;
  border-radius: 999px;
  padding: 16px 28px;
  color: #1d1206;
  font-weight: 900;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  cursor: pointer;
}

.play-icon {
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  margin-right: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
}

.player-cover p,
.player-message {
  color: var(--text-soft);
}

.player-message {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.55);
  text-align: center;
}

.player-message:empty {
  display: none;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
  gap: 22px;
  margin-top: 34px;
}

.detail-main-card,
.detail-side-card,
.review-card,
.text-page {
  padding: 26px;
}

.detail-main-card p,
.review-card p,
.detail-side-card dd,
.text-page p {
  color: var(--text-soft);
  line-height: 1.9;
}

.detail-side-card dl {
  margin: 16px 0 0;
  display: grid;
  gap: 12px;
}

.detail-side-card div {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}

.detail-side-card dt {
  color: var(--muted);
}

.detail-side-card dd {
  margin: 0;
}

.large-tags span {
  padding: 8px 12px;
  font-size: 0.86rem;
}

.rankings-layout {
  display: grid;
  gap: 28px;
  margin-top: 40px;
}

.rank-table-section {
  padding: 24px;
  overflow: hidden;
}

.compact-heading {
  margin-bottom: 18px;
}

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

.rank-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.rank-table th,
.rank-table td {
  border-bottom: 1px solid var(--border);
  padding: 14px 12px;
  text-align: left;
}

.rank-table th {
  color: var(--gold);
  font-size: 0.84rem;
  letter-spacing: 0.08em;
}

.rank-table td {
  color: var(--text-soft);
}

.rank-table td a {
  color: var(--text);
  font-weight: 900;
}

.text-page {
  margin-top: 40px;
}

.site-footer {
  margin-top: 72px;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.28);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.7fr;
  gap: 28px;
  padding: 42px 0;
}

.site-footer h2,
.site-footer h3 {
  margin: 0 0 12px;
}

.site-footer p,
.site-footer a,
.footer-bottom {
  color: var(--text-soft);
  line-height: 1.75;
}

.site-footer a {
  display: block;
  margin: 7px 0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--border);
  padding: 18px 0 24px;
  font-size: 0.9rem;
}

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

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

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

  .sticky-panel {
    position: static;
  }
}

@media (max-width: 760px) {
  .mobile-menu-btn {
    display: block;
  }

  .main-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 78px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 12px;
    background: rgba(13, 9, 6, 0.96);
  }

  .main-nav.is-open {
    display: flex;
  }

  .hero-section {
    padding-top: 52px;
  }

  .hero-slide,
  .detail-hero-inner,
  .taxonomy-overview,
  .footer-grid {
    grid-template-columns: 1fr;
    display: grid;
  }

  .hero-poster {
    width: 78%;
    margin: 0 auto;
  }

  .hero-stats,
  .quick-search form,
  .filter-panel {
    grid-template-columns: 1fr;
  }

  .search-box {
    grid-column: auto;
  }

  .filter-actions {
    justify-items: stretch;
  }

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

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

  .movie-card p {
    min-height: auto;
  }

  .page-hero,
  .detail-hero {
    padding: 46px 0;
  }

  .detail-poster {
    max-width: 260px;
    margin: 0 auto;
  }

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

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

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

  .hero-copy h1,
  .page-hero h1,
  .detail-info h1 {
    font-size: 2.35rem;
  }
}
