:root {
  --bg: #070a12;
  --bg-soft: #111827;
  --panel: rgba(31, 41, 55, 0.72);
  --panel-strong: rgba(17, 24, 39, 0.92);
  --red: #dc2626;
  --red-dark: #7f1d1d;
  --gold: #facc15;
  --gold-soft: #fde68a;
  --text: #f9fafb;
  --muted: #9ca3af;
  --line: rgba(248, 113, 113, 0.18);
  --shadow: 0 18px 55px rgba(127, 29, 29, 0.28);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(220, 38, 38, 0.24), transparent 32rem),
    radial-gradient(circle at top right, rgba(250, 204, 21, 0.12), transparent 28rem),
    linear-gradient(180deg, #030712 0%, #111827 42%, #030712 100%);
  min-height: 100vh;
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg, rgba(127, 29, 29, 0.96), rgba(185, 28, 28, 0.96), rgba(127, 29, 29, 0.96));
  border-bottom: 1px solid rgba(254, 240, 138, 0.18);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--gold), var(--red));
  box-shadow: 0 10px 28px rgba(250, 204, 21, 0.24);
}

.brand-text strong {
  display: block;
  font-size: 20px;
  line-height: 1.05;
  background: linear-gradient(90deg, var(--gold-soft), #ffffff);
  -webkit-background-clip: text;
  color: transparent;
}

.brand-text em {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  font-style: normal;
  color: #fecaca;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  color: #fee2e2;
}

.nav-link {
  position: relative;
  transition: color 0.2s ease;
}

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

.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 3px;
  border-radius: 999px;
  background: var(--gold);
}

.nav-toggle {
  display: none;
  color: #ffffff;
  border: 0;
  border-radius: 12px;
  padding: 8px 11px;
  background: rgba(255, 255, 255, 0.1);
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
  flex-wrap: wrap;
  gap: 10px;
}

.mobile-nav a {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fee2e2;
  font-size: 14px;
}

.hero-carousel {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  border-bottom: 1px solid rgba(248, 113, 113, 0.18);
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease, transform 0.8s ease;
  transform: scale(1.02);
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(3, 7, 18, 0.95), rgba(127, 29, 29, 0.6), rgba(3, 7, 18, 0.94)),
    radial-gradient(circle at 75% 30%, rgba(250, 204, 21, 0.24), transparent 25rem);
}

.hero-bg img {
  position: absolute;
  right: 7vw;
  top: 80px;
  width: min(410px, 38vw);
  height: min(520px, 70vh);
  object-fit: cover;
  border-radius: 28px;
  opacity: 0.82;
  box-shadow: var(--shadow);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #030712 0%, rgba(3, 7, 18, 0.78) 42%, rgba(3, 7, 18, 0.28) 100%),
    linear-gradient(0deg, #030712 0%, transparent 42%);
}

.image-missing::before,
.poster-wrap.image-missing::before {
  content: "热门亚洲影片";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  color: rgba(255, 255, 255, 0.74);
  letter-spacing: 0.08em;
  background:
    radial-gradient(circle at top right, rgba(250, 204, 21, 0.18), transparent 45%),
    linear-gradient(135deg, #7f1d1d, #111827 55%, #030712);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding-top: 136px;
  max-width: 760px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--gold-soft);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.hero-content h1 {
  margin: 0;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero-desc {
  max-width: 680px;
  margin: 24px 0 0;
  color: #d1d5db;
  font-size: 20px;
  line-height: 1.8;
}

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

.hero-meta {
  margin-top: 22px;
}

.hero-meta span,
.detail-meta span {
  border: 1px solid rgba(254, 202, 202, 0.18);
  border-radius: 999px;
  padding: 7px 13px;
  color: #fee2e2;
  background: rgba(127, 29, 29, 0.28);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 14px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease;
}

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

.btn.primary {
  color: #ffffff;
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  box-shadow: 0 14px 30px rgba(220, 38, 38, 0.32);
}

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

.hero-search-panel {
  position: absolute;
  z-index: 5;
  right: max(16px, calc((100vw - 1180px) / 2));
  bottom: 116px;
  width: min(360px, calc(100% - 32px));
}

.search-card,
.side-card {
  padding: 22px;
  border-radius: var(--radius);
  background: rgba(17, 24, 39, 0.78);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.search-card span {
  color: var(--gold-soft);
  font-size: 13px;
  font-weight: 700;
}

.search-card h2 {
  margin: 8px 0 16px;
  font-size: 24px;
}

.global-search,
.page-filter {
  display: flex;
  gap: 10px;
}

.global-search input,
.page-filter input {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 13px;
  color: #ffffff;
  background: rgba(3, 7, 18, 0.72);
  outline: none;
}

.global-search button,
.page-filter button {
  min-width: 76px;
  border: 0;
  border-radius: 13px;
  color: #ffffff;
  font-weight: 800;
  background: var(--red);
}

.search-results {
  display: none;
  margin-top: 14px;
  max-height: 240px;
  overflow: auto;
}

.search-results.active {
  display: grid;
  gap: 10px;
}

.search-results a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
}

.search-results strong {
  display: block;
  font-size: 14px;
}

.search-results em {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.hot-entry {
  display: block;
  margin-top: 14px;
  padding: 18px 20px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.2), rgba(220, 38, 38, 0.22));
  border: 1px solid rgba(250, 204, 21, 0.22);
}

.hot-entry strong,
.hot-entry span {
  display: block;
}

.hot-entry span {
  margin-top: 6px;
  color: #fecaca;
  font-size: 13px;
}

.hero-thumbs {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  width: min(1180px, calc(100% - 32px));
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.hero-thumb {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  color: #ffffff;
  background: rgba(17, 24, 39, 0.64);
  backdrop-filter: blur(14px);
  opacity: 0.78;
}

.hero-thumb.active {
  opacity: 1;
  border-color: rgba(250, 204, 21, 0.62);
  background: rgba(127, 29, 29, 0.68);
}

.hero-thumb img {
  width: 46px;
  height: 58px;
  flex: 0 0 auto;
  border-radius: 10px;
  object-fit: cover;
}

.hero-thumb span {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  text-align: left;
  font-size: 13px;
  line-height: 1.35;
}

.category-strip {
  width: min(1180px, calc(100% - 32px));
  margin: 26px auto 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.category-chip {
  padding: 18px;
  border-radius: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  transition: transform 0.2s ease, background 0.2s ease;
}

.category-chip:hover,
.movie-card:hover,
.category-large-card:hover {
  transform: translateY(-4px);
}

.category-chip strong,
.category-chip span {
  display: block;
}

.category-chip span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

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

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 36px);
}

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

.section-more {
  flex: 0 0 auto;
  color: #fca5a5;
  font-weight: 800;
}

.movie-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}

.page-grid {
  grid-template-columns: repeat(5, 1fr);
  padding-bottom: 64px;
}

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(31, 41, 55, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.movie-card:hover {
  background: rgba(31, 41, 55, 0.88);
  box-shadow: var(--shadow);
}

.poster-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #111827;
}

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

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

.poster-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.76), transparent 58%);
}

.type-badge,
.year-badge,
.rank-no {
  position: absolute;
  z-index: 2;
  padding: 5px 9px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  line-height: 1;
}

.type-badge {
  top: 10px;
  left: 10px;
  background: var(--red);
}

.year-badge {
  right: 10px;
  bottom: 10px;
  background: rgba(0, 0, 0, 0.76);
}

.rank-no {
  top: 10px;
  right: 10px;
  min-width: 30px;
  text-align: center;
  background: linear-gradient(135deg, var(--gold), var(--red));
}

.play-mask {
  position: absolute;
  z-index: 3;
  inset: 0;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 38px;
  opacity: 0;
  transform: scale(0.82);
  background: rgba(0, 0, 0, 0.34);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .play-mask {
  opacity: 1;
  transform: scale(1);
}

.card-body {
  padding: 14px;
}

.card-body h3 {
  margin: 0;
  min-height: 2.8em;
  font-size: 16px;
  line-height: 1.4;
}

.card-body h3 a:hover {
  color: #fca5a5;
}

.one-line {
  min-height: 3.2em;
  margin: 8px 0 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.meta-line {
  justify-content: space-between;
  color: #6b7280;
  font-size: 12px;
}

.compact-card .poster-wrap {
  aspect-ratio: 16 / 9;
}

.compact-card .one-line {
  display: none;
}

.page-main {
  min-height: 80vh;
}

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

.compact-hero {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 56px);
}

.page-hero p {
  max-width: 760px;
  color: #d1d5db;
  font-size: 18px;
  line-height: 1.8;
}

.page-filter {
  max-width: 620px;
  margin-top: 20px;
}

.category-large-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding-bottom: 70px;
}

.category-large-card {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-large-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
}

.category-large-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(3, 7, 18, 0.9), rgba(3, 7, 18, 0.38));
}

.category-large-card div {
  position: relative;
  z-index: 2;
  padding: 28px;
}

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

.category-large-card h2 {
  margin: 12px 0 8px;
  font-size: 30px;
}

.category-large-card p {
  max-width: 520px;
  color: #d1d5db;
  line-height: 1.7;
}

.detail-main {
  padding: 34px 0 70px;
}

.back-link {
  display: inline-flex;
  margin-bottom: 20px;
  color: #fca5a5;
  font-weight: 700;
}

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

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: #000000;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.18));
}

.player-overlay.hidden {
  display: none;
}

.play-circle {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--red));
  box-shadow: 0 16px 40px rgba(220, 38, 38, 0.38);
}

.player-message {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 5;
  margin: 0;
  color: #fecaca;
  text-align: center;
  font-size: 14px;
}

.detail-info {
  margin-top: 24px;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.detail-info h1 {
  margin: 0;
  font-size: clamp(30px, 5vw, 48px);
}

.detail-one-line {
  margin: 14px 0 0;
  color: #d1d5db;
  font-size: 18px;
  line-height: 1.75;
}

.detail-meta {
  margin: 22px 0 26px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.detail-info section {
  margin-top: 24px;
}

.detail-info h2,
.side-card h2 {
  margin: 0 0 12px;
  font-size: 22px;
}

.detail-info p {
  margin: 0;
  color: #d1d5db;
  line-height: 1.9;
}

.tag-list div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-list span {
  padding: 8px 13px;
  border-radius: 999px;
  color: #fecaca;
  background: rgba(220, 38, 38, 0.18);
  border: 1px solid rgba(248, 113, 113, 0.2);
}

.detail-sidebar {
  position: sticky;
  top: 96px;
}

.side-card dl {
  margin: 0;
}

.side-card dt {
  margin-top: 16px;
  color: #9ca3af;
  font-size: 13px;
}

.side-card dd {
  margin: 5px 0 0;
  line-height: 1.6;
}

.side-card a {
  color: #fca5a5;
}

.related-section {
  margin-top: 44px;
}

.site-footer {
  margin-top: 70px;
  padding: 46px 0;
  border-top: 1px solid rgba(248, 113, 113, 0.16);
  background: rgba(3, 7, 18, 0.7);
}

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 1.2fr;
  gap: 28px;
  color: #d1d5db;
}

.footer-grid h3,
.footer-grid h4 {
  margin: 0 0 12px;
  color: #ffffff;
}

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

.footer-links a {
  color: #fca5a5;
}

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

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

  .nav-toggle {
    display: inline-flex;
  }

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

  .hero-search-panel {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(720px, calc(100% - 32px));
    margin: -120px auto 0;
  }

  .hero-content {
    padding-top: 96px;
  }

  .hero-bg img {
    right: 2vw;
    opacity: 0.45;
  }

  .hero-thumbs {
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
    grid-template-columns: repeat(3, 1fr);
    margin: 22px auto 0;
  }

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

  .movie-grid,
  .page-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .detail-sidebar {
    position: static;
  }
}

@media (max-width: 720px) {
  .header-inner {
    height: 64px;
  }

  .brand-text em {
    display: none;
  }

  .hero-carousel {
    min-height: 760px;
  }

  .hero-content {
    padding-top: 80px;
  }

  .hero-desc {
    font-size: 16px;
  }

  .hero-thumbs,
  .category-strip,
  .category-large-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .movie-grid,
  .page-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .global-search,
  .page-filter {
    flex-direction: column;
  }

  .card-body {
    padding: 11px;
  }

  .card-body h3 {
    font-size: 14px;
  }

  .one-line,
  .meta-line {
    font-size: 12px;
  }

  .detail-info {
    padding: 20px;
  }
}
