:root {
  --brand: #ea580c;
  --brand-dark: #c2410c;
  --brand-red: #dc2626;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #f8fafc;
  --card: #ffffff;
  --dark: #111827;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #fff7ed 0, #f9fafb 22rem, #ffffff 100%);
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: linear-gradient(90deg, var(--brand) 0, var(--brand-red) 55%, var(--brand-dark) 100%);
  box-shadow: 0 10px 28px rgba(194, 65, 12, 0.32);
}

.nav-shell {
  max-width: 1280px;
  height: 68px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.brand {
  color: #ffffff;
  min-width: max-content;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.brand-name {
  font-size: 1.2rem;
}

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

.desktop-nav a,
.mobile-panel a {
  color: rgba(255, 255, 255, 0.92);
  padding: 9px 14px;
  border-radius: 12px;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease;
}

.desktop-nav a:hover,
.mobile-panel a:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.header-search,
.mobile-search {
  display: flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.16);
  overflow: hidden;
}

.header-search input,
.mobile-search input {
  width: 180px;
  border: 0;
  outline: 0;
  color: #ffffff;
  background: transparent;
  padding: 9px 12px;
}

.header-search input::placeholder,
.mobile-search input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.header-search button,
.mobile-search button {
  border: 0;
  color: #ffffff;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.15);
  padding: 9px 13px;
}

.menu-toggle {
  display: none;
  border: 0;
  color: #ffffff;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 9px 12px;
}

.mobile-panel {
  display: none;
  padding: 10px 24px 18px;
  background: rgba(154, 52, 18, 0.96);
}

.mobile-panel.is-open {
  display: grid;
  gap: 8px;
}

.page-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 36px 24px 64px;
}

.hero-carousel {
  position: relative;
  overflow: hidden;
  background: #111827;
}

.hero-stage {
  position: relative;
  min-height: 620px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
  background-image: linear-gradient(90deg, rgba(17, 24, 39, 0.95), rgba(17, 24, 39, 0.72), rgba(17, 24, 39, 0.36)), var(--hero-image);
  background-position: center;
  background-size: cover;
}

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

.hero-inner {
  max-width: 1280px;
  min-height: 620px;
  margin: 0 auto;
  padding: 82px 24px 96px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 430px);
  gap: 48px;
  align-items: center;
}

.hero-copy {
  color: #ffffff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  font-size: 0.9rem;
  font-weight: 800;
}

.hero-copy h1,
.hero-copy h2 {
  margin: 22px 0 18px;
  font-size: clamp(2.4rem, 6vw, 5.6rem);
  line-height: 1.04;
  letter-spacing: -0.06em;
}

.hero-copy p {
  max-width: 760px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 1.8vw, 1.28rem);
}

.hero-actions,
.section-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  border-radius: 14px;
  padding: 12px 18px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--brand-red));
  box-shadow: 0 12px 28px rgba(234, 88, 12, 0.32);
}

.btn-light {
  color: var(--brand-dark);
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(255, 255, 255, 0.22);
}

.btn-ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.17);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.btn-soft {
  color: var(--brand-dark);
  background: #ffedd5;
}

.hero-poster {
  position: relative;
  display: grid;
  gap: 16px;
  padding: 18px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(18px);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(234, 88, 12, 0.4), rgba(220, 38, 38, 0.24));
}

.hero-poster-card {
  color: #ffffff;
}

.hero-poster-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.32rem;
}

.hero-poster-card span {
  color: rgba(255, 255, 255, 0.78);
}

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

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

.hero-dot.is-active {
  background: #ffffff;
}

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

.section-kicker {
  display: inline-block;
  margin-bottom: 7px;
  color: var(--brand);
  font-weight: 900;
}

.section-head h2,
.page-title h1,
.detail-title h1,
.category-header h1 {
  margin: 0;
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  letter-spacing: -0.04em;
}

.section-head p,
.page-title p,
.category-header p,
.detail-title p {
  max-width: 760px;
  margin: 8px 0 0;
  color: var(--muted);
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(234, 88, 12, 0.28);
  box-shadow: var(--shadow);
}

.poster-frame {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #fed7aa, #fecaca);
}

.poster-frame img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.movie-card:hover .poster-frame img {
  transform: scale(1.055);
  filter: saturate(1.12);
}

.poster-frame::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 50%;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.7));
}

.poster-badge,
.poster-year {
  position: absolute;
  z-index: 2;
  padding: 5px 8px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
}

.poster-badge {
  top: 12px;
  left: 12px;
  background: rgba(234, 88, 12, 0.92);
}

.poster-year {
  right: 12px;
  bottom: 12px;
  background: rgba(17, 24, 39, 0.84);
}

.play-dot {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%) scale(0.82);
  border-radius: 50%;
  color: #ffffff;
  background: rgba(234, 88, 12, 0.84);
  opacity: 0;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

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

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

.movie-card h3 {
  margin: 0 0 9px;
  font-size: 1.05rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card p {
  margin: 0 0 12px;
  min-height: 3.1em;
  color: var(--muted);
  font-size: 0.92rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  color: #9ca3af;
  font-size: 0.82rem;
}

.movie-meta span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-card .movie-card-body {
  padding: 12px;
}

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

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

.category-tile {
  position: relative;
  overflow: hidden;
  min-height: 180px;
  border-radius: 24px;
  padding: 22px;
  display: flex;
  align-items: end;
  color: #ffffff;
  background: #111827;
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.14);
  isolation: isolate;
}

.category-tile img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.52;
  transition: transform 0.35s ease;
}

.category-tile:hover img {
  transform: scale(1.07);
}

.tile-glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.05), rgba(17, 24, 39, 0.88));
}

.category-tile strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.35rem;
}

.category-tile p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.rank-section {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: stretch;
}

.rank-feature {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  min-height: 420px;
  color: #ffffff;
  background: #111827;
  display: flex;
  align-items: end;
  padding: 32px;
  box-shadow: var(--shadow);
}

.rank-feature img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.58;
}

.rank-feature::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.08), rgba(17, 24, 39, 0.92));
}

.rank-feature div {
  position: relative;
  z-index: 1;
}

.rank-feature h3 {
  margin: 8px 0 12px;
  font-size: 2.2rem;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 48px 72px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.rank-item:hover {
  transform: translateX(4px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
}

.rank-number {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--brand-red));
  font-weight: 900;
}

.rank-item img {
  width: 72px;
  height: 96px;
  border-radius: 12px;
  object-fit: cover;
  background: #fed7aa;
}

.rank-item h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.rank-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.page-title,
.category-header,
.detail-hero {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  margin: 28px 0 30px;
  padding: 38px;
  background: linear-gradient(135deg, #fff7ed, #ffffff 55%, #fee2e2);
  box-shadow: 0 18px 38px rgba(234, 88, 12, 0.1);
}

.category-toolbar,
.search-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 24px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #ffffff;
}

.category-toolbar input,
.search-panel input {
  flex: 1 1 260px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: 0;
  padding: 12px 14px;
}

.filter-chip {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--brand-dark);
  background: #ffedd5;
  font-weight: 800;
}

.filter-chip.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--brand-red));
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.breadcrumb a {
  color: var(--brand-dark);
  font-weight: 800;
}

.detail-hero {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 30px;
  align-items: center;
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: var(--shadow);
  background: #fed7aa;
}

.detail-title h1 {
  margin-bottom: 12px;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 18px 0 22px;
}

.detail-tags span {
  border-radius: 999px;
  padding: 7px 11px;
  color: var(--brand-dark);
  background: #ffedd5;
  font-size: 0.9rem;
  font-weight: 800;
}

.info-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
}

.info-pills span {
  padding: 8px 12px;
  border-radius: 999px;
  color: #374151;
  background: #f3f4f6;
  font-weight: 700;
}

.player-section {
  margin: 34px 0;
  border-radius: 30px;
  background: #111827;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(17, 24, 39, 0.28);
}

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

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

.video-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.58));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.video-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.big-play {
  width: 86px;
  height: 86px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #ffffff;
  cursor: pointer;
  background: linear-gradient(135deg, var(--brand), var(--brand-red));
  box-shadow: 0 20px 42px rgba(234, 88, 12, 0.36);
  font-size: 2rem;
}

.player-caption {
  padding: 22px 26px;
  color: #ffffff;
}

.player-caption h2 {
  margin: 0 0 8px;
}

.player-caption p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
}

.article-panel,
.side-panel {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 26px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
}

.article-panel h2,
.side-panel h2 {
  margin: 0 0 14px;
}

.article-panel p {
  color: #374151;
  font-size: 1.04rem;
}

.side-list {
  display: grid;
  gap: 14px;
}

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

.no-result {
  display: none;
  padding: 28px;
  border-radius: 20px;
  background: #ffffff;
  color: var(--muted);
  text-align: center;
}

.site-footer {
  color: rgba(255, 255, 255, 0.82);
  background: linear-gradient(180deg, #111827, #020617);
  margin-top: 44px;
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 36px;
}

.footer-brand {
  color: #ffffff;
  font-size: 1.25rem;
}

.site-footer p {
  color: rgba(255, 255, 255, 0.62);
  max-width: 420px;
}

.site-footer h2 {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 1.02rem;
}

.footer-links {
  display: grid;
  gap: 9px;
}

.footer-links a:hover {
  color: #fb923c;
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 24px 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.46);
}

@media (max-width: 1100px) {
  .movie-grid,
  .search-result-grid,
  .category-strip,
  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-inner,
  .rank-section,
  .content-grid {
    grid-template-columns: 1fr;
  }
}

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

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .nav-shell {
    padding: 0 16px;
  }

  .hero-inner {
    min-height: auto;
    padding: 58px 18px 82px;
  }

  .hero-stage {
    min-height: 780px;
  }

  .hero-poster {
    max-width: 360px;
  }

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

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

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

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

@media (max-width: 640px) {
  .movie-grid,
  .search-result-grid,
  .category-strip,
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .page-shell {
    padding: 24px 14px 48px;
  }

  .page-title,
  .category-header,
  .detail-hero {
    padding: 24px;
    border-radius: 24px;
  }

  .rank-item {
    grid-template-columns: 38px 58px 1fr;
  }

  .rank-item img {
    width: 58px;
    height: 78px;
  }

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

  .movie-card h3 {
    font-size: 0.98rem;
  }

  .movie-card p,
  .movie-meta {
    font-size: 0.8rem;
  }
}
