:root {
  --brand: #f97316;
  --brand-dark: #ea580c;
  --hot: #ef4444;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #fff7ed;
  --bg: #f8fafc;
  --panel: #ffffff;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 320px, #f8fafc 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(249, 115, 22, 0.12);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

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

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #111827;
}

.logo-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--hot));
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(249, 115, 22, 0.28);
}

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

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

.nav-link {
  padding: 10px 15px;
  border-radius: 999px;
  color: #4b5563;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--hot));
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  border: 0;
  border-radius: 12px;
  background: #fff7ed;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--brand-dark);
  border-radius: 10px;
}

.mobile-menu {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 12px;
  padding: 10px;
  background: #fff;
  border: 1px solid #fed7aa;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.mobile-menu.is-open {
  display: grid;
  gap: 6px;
}

.mobile-menu .nav-link,
.mobile-sub-link {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
}

.mobile-subnav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.mobile-sub-link {
  color: var(--brand-dark);
  background: #fff7ed;
  font-weight: 700;
}

.hero-carousel {
  position: relative;
  min-height: 630px;
  overflow: hidden;
  background: #0f172a;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-bg,
.detail-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.1) contrast(1.05);
}

.hero-shade,
.detail-bg-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.72) 42%, rgba(15, 23, 42, 0.18)), linear-gradient(0deg, rgba(15, 23, 42, 0.82), rgba(15, 23, 42, 0.08) 42%, rgba(249, 115, 22, 0.18));
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) 360px;
  align-items: center;
  min-height: 630px;
  gap: 44px;
  padding: 70px 0;
}

.hero-copy {
  color: #fff;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 7px 12px;
  color: #ffedd5;
  background: rgba(249, 115, 22, 0.22);
  border: 1px solid rgba(253, 186, 116, 0.42);
  border-radius: 999px;
  font-weight: 800;
}

.hero-copy h1,
.page-hero h1 {
  margin: 0;
  font-size: clamp(36px, 7vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.06em;
}

.hero-copy h2 {
  margin: 14px 0 10px;
  font-size: clamp(26px, 4vw, 46px);
  color: #fed7aa;
  letter-spacing: -0.04em;
}

.hero-copy p,
.page-hero p {
  max-width: 760px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.9;
}

.hero-tags,
.detail-meta,
.tag-row,
.topic-tags,
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags {
  margin: 22px 0;
}

.hero-tags span,
.tag-row span {
  padding: 7px 11px;
  color: #9a3412;
  background: #ffedd5;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.hero-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.btn-primary,
.btn-ghost,
.btn-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--hot));
  box-shadow: 0 16px 36px rgba(249, 115, 22, 0.35);
}

.btn-primary:hover,
.btn-ghost:hover,
.btn-text:hover {
  transform: translateY(-2px);
}

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

.btn-text {
  color: #fed7aa;
}

.hero-poster {
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border: 6px solid rgba(255, 255, 255, 0.22);
  border-radius: 30px;
  background: linear-gradient(135deg, #fed7aa, #f97316);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.44);
  transform: rotate(2deg);
}

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

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

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

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

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

.section-block,
.quick-search-section {
  padding: 46px 0;
}

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

.section-head h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: -0.04em;
}

.section-head p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.section-head a {
  flex: 0 0 auto;
  color: var(--brand-dark);
  font-weight: 900;
}

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

.category-card,
.category-overview-card,
.topic-panel,
.detail-side,
.detail-article,
.filter-panel {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(249, 115, 22, 0.12);
  border-radius: 24px;
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.08);
}

.category-card,
.category-overview-card,
.topic-panel,
.detail-side,
.detail-article,
.filter-panel {
  padding: 22px;
}

.category-title,
.category-overview-title {
  display: inline-block;
  margin-bottom: 10px;
  color: #111827;
  font-size: 22px;
  font-weight: 950;
}

.category-card p,
.category-overview-card p,
.topic-panel p {
  color: var(--muted);
  line-height: 1.75;
}

.category-mini-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.category-mini-links a,
.topic-tags a,
.filter-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 11px;
  color: #9a3412;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

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

.movie-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(229, 231, 235, 0.95);
  border-radius: 22px;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.movie-card:hover {
  border-color: #fdba74;
  box-shadow: 0 22px 55px rgba(249, 115, 22, 0.16);
  transform: translateY(-5px);
}

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

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

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

.poster-badge,
.poster-type {
  position: absolute;
  top: 10px;
  z-index: 2;
  padding: 5px 8px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  background: rgba(15, 23, 42, 0.76);
  backdrop-filter: blur(8px);
}

.poster-badge {
  left: 10px;
}

.poster-type {
  right: 10px;
  background: rgba(249, 115, 22, 0.9);
}

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

.movie-card-title {
  display: block;
  overflow: hidden;
  color: #111827;
  font-size: 16px;
  font-weight: 950;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.movie-card-title:hover {
  color: var(--brand-dark);
}

.movie-card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 7px 0 8px;
  color: #6b7280;
  font-size: 12px;
}

.movie-card-meta span + span::before {
  content: "·";
  margin-right: 6px;
  color: #fdba74;
}

.movie-card-body p {
  display: -webkit-box;
  overflow: hidden;
  min-height: 46px;
  margin: 0 0 10px;
  color: #4b5563;
  font-size: 13px;
  line-height: 1.75;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-row {
  gap: 6px;
}

.tag-row span {
  padding: 5px 8px;
  font-size: 12px;
}

.two-col-section {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) 360px;
  gap: 24px;
}

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

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

.rank-item {
  display: grid;
  grid-template-columns: auto 58px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: #fff;
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-item:hover {
  border-color: #fdba74;
  transform: translateX(4px);
}

.rank-item img {
  width: 58px;
  height: 78px;
  object-fit: cover;
  border-radius: 12px;
  background: linear-gradient(135deg, #fed7aa, #fb7185);
}

.rank-num {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--hot));
  border-radius: 12px;
  font-weight: 950;
}

.rank-item strong {
  display: block;
  overflow: hidden;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-item em {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.topic-panel h2,
.detail-side h2,
.detail-article h2 {
  margin: 0 0 14px;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.topic-tags {
  margin-top: 18px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.18), transparent 28%), linear-gradient(135deg, #f97316, #ef4444 52%, #7c2d12);
}

.compact-hero,
.category-hero {
  padding: 84px 0 70px;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.88);
}

.filter-panel {
  display: grid;
  gap: 14px;
  margin-bottom: 24px;
}

.search-box {
  display: grid;
  gap: 8px;
  color: #9a3412;
  font-weight: 900;
}

.search-box input {
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  border: 1px solid #fed7aa;
  border-radius: 16px;
  outline: none;
  background: #fffaf5;
}

.search-box input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.14);
}

.filter-chip {
  cursor: pointer;
}

.filter-chip:hover,
.filter-chip.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--hot));
  border-color: transparent;
}

.filter-status {
  min-height: 22px;
  color: var(--muted);
  font-size: 14px;
}

.filter-card.is-hidden,
.rank-item.is-hidden {
  display: none;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 580px;
  color: #fff;
  background: #0f172a;
}

.detail-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  align-items: end;
  gap: 34px;
  min-height: 580px;
  padding: 70px 0;
}

.detail-poster {
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border: 6px solid rgba(255, 255, 255, 0.22);
  border-radius: 28px;
  background: linear-gradient(135deg, #fed7aa, #fb7185);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.44);
}

.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-bottom: 18px;
  color: #fed7aa;
  font-weight: 800;
}

.detail-copy h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

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

.detail-meta span {
  padding: 8px 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  font-weight: 800;
}

.detail-copy p {
  max-width: 780px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 1.9;
}

.detail-actions .btn-ghost {
  color: #fff;
}

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

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

.play-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  color: #fff;
  background: radial-gradient(circle at center, rgba(249, 115, 22, 0.32), rgba(15, 23, 42, 0.62));
  border: 0;
  cursor: pointer;
  font-size: 18px;
  font-weight: 950;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-circle {
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  padding-left: 5px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--hot));
  border-radius: 50%;
  box-shadow: 0 20px 44px rgba(249, 115, 22, 0.38);
  font-size: 34px;
}

.detail-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 24px;
  padding: 20px 0 46px;
}

.detail-article p {
  color: #374151;
  font-size: 16px;
  line-height: 2;
}

.detail-side dl {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 10px 14px;
  margin: 0;
}

.detail-side dt {
  color: #9a3412;
  font-weight: 900;
}

.detail-side dd {
  margin: 0;
  color: #374151;
}

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

.site-footer {
  margin-top: 34px;
  padding: 42px 0;
  color: #ffedd5;
  background: #111827;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) auto;
  gap: 22px;
}

.footer-inner p {
  margin: 8px 0 0;
  color: #d1d5db;
}

.footer-links,
.footer-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links a,
.footer-cats a {
  color: #fed7aa;
  font-weight: 800;
}

.footer-cats {
  grid-column: 1 / -1;
}

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

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

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

  .two-col-section,
  .detail-content-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-container {
    width: min(100% - 24px, 1180px);
  }

  .nav-menu {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .logo-text {
    font-size: 17px;
  }

  .hero-carousel,
  .hero-content {
    min-height: 720px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 24px;
    padding: 44px 0 86px;
  }

  .hero-poster {
    width: min(260px, 72vw);
    margin: 0 auto;
    transform: none;
  }

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

  .hero-copy p,
  .page-hero p,
  .detail-copy p {
    font-size: 15px;
  }

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

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

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

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

  .detail-layout {
    grid-template-columns: 1fr;
    align-items: center;
    min-height: auto;
    padding: 44px 0;
  }

  .detail-poster {
    width: min(250px, 70vw);
    margin: 0 auto;
  }

  .detail-hero {
    min-height: auto;
  }

  .player-shell {
    border-radius: 18px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 430px) {
  .movie-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .movie-card {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
  }

  .poster-wrap {
    height: 100%;
  }
}
