:root {
  --brand-red: #ef4444;
  --brand-orange: #f97316;
  --brand-amber: #f59e0b;
  --ink: #1f2937;
  --muted: #6b7280;
  --soft: #fff7ed;
  --line: rgba(251, 146, 60, 0.22);
  --shadow: 0 18px 45px rgba(124, 45, 18, 0.13);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 0%, rgba(251, 191, 36, 0.18), transparent 32rem),
    linear-gradient(135deg, rgba(255, 251, 235, 0.62), #ffffff 40%, rgba(255, 247, 237, 0.72));
}

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.88);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 24px rgba(124, 45, 18, 0.08);
}

.nav-wrap,
.footer-inner,
.section,
.hero-shell,
.page-hero,
.detail-wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.nav-wrap {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 22px;
}

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

.brand-mark {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-red), var(--brand-orange));
  box-shadow: 0 12px 28px rgba(239, 68, 68, 0.28);
}

.brand-text {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, #dc2626, #f59e0b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.desktop-nav a,
.mobile-panel a {
  position: relative;
  font-size: 15px;
  font-weight: 700;
  color: #4b5563;
}

.desktop-nav a:hover,
.mobile-panel a:hover {
  color: #d97706;
}

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

.nav-search input,
.mobile-panel input,
.filter-input {
  border: 1px solid rgba(249, 115, 22, 0.25);
  border-radius: 999px;
  padding: 11px 16px;
  outline: none;
  background: rgba(255, 255, 255, 0.92);
  transition: 0.2s ease;
}

.nav-search input:focus,
.mobile-panel input:focus,
.filter-input:focus {
  border-color: var(--brand-amber);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.16);
}

button,
.btn,
.nav-search button,
.mobile-panel button {
  border: none;
  border-radius: 999px;
  padding: 11px 18px;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  background: linear-gradient(135deg, var(--brand-red), var(--brand-orange));
  box-shadow: 0 12px 26px rgba(239, 68, 68, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button:hover,
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(239, 68, 68, 0.3);
}

.btn.light {
  color: #b45309;
  background: rgba(255, 255, 255, 0.92);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  padding: 0;
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
  gap: 14px;
  flex-direction: column;
}

.hero {
  position: relative;
  padding: 34px 0 38px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -18% -10% auto auto;
  width: 540px;
  height: 540px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.24), transparent 70%);
  pointer-events: none;
}

.hero-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 26px;
  align-items: stretch;
}

.hero-slider {
  position: relative;
  min-height: 520px;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.86;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.86), rgba(17, 24, 39, 0.45), rgba(17, 24, 39, 0.08)),
    linear-gradient(0deg, rgba(17, 24, 39, 0.8), transparent 44%);
}

.hero-copy {
  position: absolute;
  inset: auto 38px 40px 38px;
  z-index: 2;
  color: #fff;
}

.hero-copy h1 {
  margin: 14px 0 10px;
  font-size: clamp(36px, 5vw, 68px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.hero-copy p {
  max-width: 660px;
  margin: 0 0 24px;
  font-size: 17px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.82);
}

.eyebrow,
.hero-tags span,
.tag-line span,
.info-pill,
.category-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.eyebrow {
  padding: 8px 12px;
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
}

.hero-tags span,
.info-pill {
  padding: 7px 10px;
  color: #fff7ed;
  background: rgba(251, 146, 60, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

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

.hero-side {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.side-card,
.page-hero,
.section-card,
.player-panel,
.detail-info,
.recommend-panel {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.side-card {
  padding: 22px;
}

.side-card h2,
.section-head h2,
.page-hero h1,
.detail-info h1 {
  margin: 0;
}

.hero-search-box form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 16px;
}

.hero-search-box input {
  min-width: 0;
}

.category-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.category-chip {
  padding: 10px 14px;
  color: #92400e;
  background: rgba(255, 247, 237, 0.92);
  border: 1px solid rgba(245, 158, 11, 0.28);
}

.hot-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.hot-link {
  display: grid;
  grid-template-columns: 64px 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255, 247, 237, 0.7);
  transition: 0.2s ease;
}

.hot-link:hover {
  transform: translateX(4px);
  background: #fff7ed;
}

.hot-link img {
  width: 64px;
  height: 82px;
  object-fit: cover;
  border-radius: 14px;
  background: linear-gradient(135deg, #fed7aa, #f87171);
}

.hot-link strong,
.hot-link em {
  display: block;
}

.hot-link em {
  margin-top: 6px;
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
}

.section {
  padding: 30px 0;
}

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

.section-head p,
.page-hero p,
.detail-info p,
.side-card p {
  color: var(--muted);
  line-height: 1.8;
}

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

.movie-card {
  min-width: 0;
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(251, 146, 60, 0.18);
  box-shadow: 0 12px 30px rgba(124, 45, 18, 0.1);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 22px 44px rgba(124, 45, 18, 0.16);
}

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

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

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

.poster-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.38), transparent 52%);
}

.rank-num {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 32px;
  padding: 0 8px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #dc2626, #f97316);
  box-shadow: 0 10px 24px rgba(220, 38, 38, 0.36);
}

.card-body {
  padding: 14px;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 800;
  color: #d97706;
}

.card-body h3 {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.35;
}

.card-body p {
  margin: 0 0 12px;
  min-height: 44px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.tag-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-line span {
  padding: 5px 8px;
  color: #92400e;
  background: #fff7ed;
}

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

.section-card {
  padding: 22px;
  transition: transform 0.24s ease;
}

.section-card:hover {
  transform: translateY(-5px);
}

.section-card h2,
.section-card h3 {
  margin: 0 0 10px;
}

.section-card p {
  color: var(--muted);
  line-height: 1.75;
}

.page-hero {
  margin-top: 28px;
  padding: 34px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 247, 237, 0.76)),
    radial-gradient(circle at 100% 0%, rgba(239, 68, 68, 0.18), transparent 26rem);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.filter-input {
  min-width: min(100%, 320px);
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-tabs button {
  padding: 9px 14px;
  color: #92400e;
  background: #fff7ed;
  box-shadow: none;
  border: 1px solid rgba(245, 158, 11, 0.24);
}

.filter-tabs button.active {
  color: #fff;
  background: linear-gradient(135deg, var(--brand-red), var(--brand-orange));
}

.detail-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 24px;
  padding: 28px 0;
}

.player-panel {
  overflow: hidden;
}

.video-box {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0f172a;
}

.video-box video {
  width: 100%;
  height: 100%;
  display: block;
  background: #0f172a;
}

.play-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.32));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-cover.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-btn {
  width: 82px;
  height: 82px;
  padding: 0;
  font-size: 30px;
}

.player-title {
  padding: 20px 22px;
}

.player-title h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 46px);
}

.player-title p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.detail-info,
.recommend-panel {
  padding: 22px;
}

.detail-info h2,
.recommend-panel h2 {
  margin: 22px 0 10px;
}

.detail-info h2:first-child,
.recommend-panel h2:first-child {
  margin-top: 0;
}

.info-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.info-pills .info-pill {
  color: #92400e;
  background: #fff7ed;
  border-color: rgba(245, 158, 11, 0.24);
}

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

.compact-card .card-body p {
  display: none;
}

.breadcrumb {
  margin-bottom: 16px;
  color: #b45309;
  font-size: 14px;
  font-weight: 800;
}

.site-footer {
  margin-top: 36px;
  padding: 34px 0 26px;
  color: #78350f;
  background: linear-gradient(135deg, rgba(255, 247, 237, 0.95), rgba(254, 243, 199, 0.86));
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 28px;
}

.footer-inner p {
  color: #92400e;
  line-height: 1.7;
}

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

.footer-links a {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
}

.copyright {
  width: min(1180px, calc(100% - 32px));
  margin: 22px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(146, 64, 14, 0.12);
  color: #92400e;
  font-size: 13px;
}

.empty-state {
  display: none;
  padding: 26px;
  border-radius: 22px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.74);
}

@media (max-width: 1120px) {
  .movie-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

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

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

  .hero-shell,
  .detail-wrap,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero-slider {
    min-height: 480px;
  }

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

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

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .nav-wrap,
  .footer-inner,
  .section,
  .hero-shell,
  .page-hero,
  .detail-wrap,
  .copyright {
    width: min(100% - 22px, 1180px);
  }

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

  .hero-copy {
    inset: auto 20px 24px 20px;
  }

  .hero-slider {
    min-height: 430px;
    border-radius: 26px;
  }

  .movie-grid {
    gap: 12px;
  }

  .card-body {
    padding: 12px;
  }

  .card-body p {
    min-height: 0;
  }

  .category-grid {
    grid-template-columns: 1fr;
  }
}
