:root {
  color-scheme: light;
  --page-bg: #f8fafc;
  --text-main: #111827;
  --text-soft: #6b7280;
  --brand: #ea580c;
  --brand-deep: #c2410c;
  --brand-light: #fff7ed;
  --line: #e5e7eb;
  --panel: #ffffff;
  --dark: #111827;
  --dark-soft: #1f2937;
  --shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--page-bg);
  color: var(--text-main);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
  backdrop-filter: blur(18px);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  gap: 20px;
}

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

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

.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #f97316, #dc2626);
  color: #fff;
  box-shadow: 0 12px 24px rgba(234, 88, 12, 0.28);
  font-size: 0.9rem;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}

.desktop-nav::-webkit-scrollbar {
  display: none;
}

.nav-link,
.mobile-nav-link {
  color: #374151;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-nav-link:hover,
.mobile-nav-link.is-active {
  color: var(--brand);
  background: var(--brand-light);
}

.search-form,
.mobile-search,
.wide-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-form input,
.mobile-search input,
.wide-search input {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 11px 16px;
  outline: none;
  background: #fff;
  min-width: 210px;
}

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

.search-form button,
.mobile-search button,
.wide-search button,
.primary-btn,
.inline-btn {
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 14px 24px rgba(234, 88, 12, 0.22);
  transition: transform 0.2s ease, background 0.2s ease;
}

.search-form button:hover,
.mobile-search button:hover,
.wide-search button:hover,
.primary-btn:hover,
.inline-btn:hover {
  background: var(--brand-deep);
  transform: translateY(-1px);
}

.ghost-btn,
.more-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 11px 18px;
  color: var(--brand);
  background: #fff;
  font-weight: 800;
  border: 1px solid rgba(249, 115, 22, 0.18);
}

.more-link.light,
.section-head.dark .more-link {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: var(--brand-light);
  color: var(--brand);
  font-size: 1.35rem;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 22px 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.mobile-nav.is-open {
  display: grid;
}

.mobile-search {
  grid-column: 1 / -1;
}

.mobile-search input {
  min-width: 0;
  flex: 1;
}

.hero-slider {
  position: relative;
  min-height: 650px;
  background: #111827;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.55s ease;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(194, 65, 12, 0.62)), var(--hero-image) center / cover no-repeat;
}

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

.hero-shade {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 72% 40%, rgba(249, 115, 22, 0.24), transparent 30%), linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.55));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  min-height: 650px;
  margin: 0 auto;
  padding: 80px 22px 92px;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  align-items: center;
  gap: 52px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  color: var(--brand);
  background: var(--brand-light);
  padding: 7px 12px;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}

.hero-copy h1,
.hero-copy h2,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  color: #fff;
  line-height: 1.08;
}

.hero-copy h1 {
  max-width: 760px;
  font-size: clamp(2.6rem, 6vw, 5.8rem);
}

.hero-copy h2 {
  margin-top: 18px;
  font-size: clamp(1.8rem, 3vw, 3.1rem);
}

.hero-copy p,
.page-hero p,
.detail-one-line {
  max-width: 780px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.13rem;
  line-height: 1.8;
}

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
}

.tag-row span {
  background: var(--brand-light);
  color: var(--brand-deep);
}

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

.hero-poster,
.detail-poster {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
  transform: rotate(2deg);
}

.hero-poster img,
.detail-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: #111827;
}

.hero-poster span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--brand);
  font-size: 1.6rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

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

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

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

.section-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 58px 22px;
}

.intro-panel {
  margin-top: -54px;
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.6fr);
  gap: 30px;
  align-items: center;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.intro-panel h2,
.section-head h2,
.detail-article h2,
.detail-side h2,
.category-overview-card h2 {
  margin: 0;
  color: var(--text-main);
  font-size: clamp(1.6rem, 3vw, 2.6rem);
}

.intro-panel p,
.category-overview-card p,
.movie-card p,
.detail-article p,
.detail-side dd,
.rank-item p {
  color: var(--text-soft);
  line-height: 1.72;
}

.wide-search input {
  min-width: 0;
  flex: 1;
}

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

.section-head.dark h2 {
  color: #fff;
}

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

.category-tile {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--dark);
  box-shadow: var(--shadow);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  isolation: isolate;
}

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

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(17, 24, 39, 0.9));
  z-index: -1;
}

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

.category-tile span {
  color: #fff;
  font-weight: 900;
  font-size: 1.35rem;
}

.category-tile p {
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 0;
  line-height: 1.6;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: var(--panel);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.09);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: #111827;
}

.poster-link img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.play-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.93);
  color: var(--brand);
  font-weight: 900;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
}

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

.movie-meta-line,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--text-soft);
  font-size: 0.84rem;
  margin-bottom: 8px;
}

.movie-meta-line span,
.detail-meta span {
  padding: 4px 8px;
  border-radius: 999px;
  background: #f3f4f6;
}

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

.movie-card h3 a:hover,
.rank-item h3 a:hover,
.category-overview-card h2 a:hover {
  color: var(--brand);
}

.ranking-panel {
  max-width: 1280px;
  border-radius: 28px;
  background: linear-gradient(135deg, #111827, #7c2d12);
  box-shadow: var(--shadow);
}

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

.rank-item {
  display: grid;
  grid-template-columns: auto 70px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.rank-list-full {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.rank-num {
  min-width: 38px;
  text-align: center;
  color: #fed7aa;
  font-size: 1.1rem;
  font-weight: 900;
}

.rank-thumb img {
  width: 70px;
  height: 96px;
  object-fit: cover;
  border-radius: 12px;
  background: #111827;
}

.rank-item h3 {
  margin: 0 0 6px;
  color: #fff;
}

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

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

.page-hero,
.detail-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.92), rgba(194, 65, 12, 0.64)), var(--hero-image) center / cover no-repeat;
  overflow: hidden;
}

.page-hero.slim {
  min-height: 320px;
  background: radial-gradient(circle at 80% 30%, rgba(249, 115, 22, 0.24), transparent 30%), linear-gradient(135deg, #111827, #7c2d12);
}

.page-hero-content,
.page-hero.slim {
  position: relative;
  z-index: 1;
}

.page-hero-content,
.page-hero.slim {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 78px 22px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: rgba(255, 255, 255, 0.74);
  margin-bottom: 18px;
}

.breadcrumb a:hover {
  color: #fff;
}

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

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

.category-overview-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding: 18px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.overview-thumbs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.overview-thumbs img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 14px;
  background: #111827;
}

.detail-hero {
  min-height: 620px;
}

.detail-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 70px 22px;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  align-items: center;
  gap: 42px;
}

.detail-poster {
  transform: rotate(-1deg);
}

.detail-copy h1 {
  font-size: clamp(2.2rem, 5vw, 5rem);
}

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

.detail-meta span {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.detail-tags {
  margin-bottom: 24px;
}

.player-section {
  padding-top: 42px;
}

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

.movie-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  cursor: pointer;
}

.player-start {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.56));
  cursor: pointer;
  z-index: 2;
}

.player-start span {
  width: 96px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--brand);
  font-size: 2.4rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.32);
}

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

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

.detail-article,
.detail-side {
  padding: 28px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.detail-article h2:not(:first-child) {
  margin-top: 30px;
}

.detail-article p {
  font-size: 1.05rem;
}

.detail-side dl {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px 16px;
}

.detail-side dt {
  color: var(--text-main);
  font-weight: 800;
}

.detail-side dd {
  margin: 0;
}

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

.search-results:empty::before {
  content: "输入关键词后显示匹配影片";
  grid-column: 1 / -1;
  display: block;
  padding: 32px;
  border-radius: 22px;
  background: #fff;
  color: var(--text-soft);
  text-align: center;
}

.site-footer {
  background: #111827;
  color: #d1d5db;
  margin-top: 40px;
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 54px 22px;
  display: grid;
  grid-template-columns: 1.1fr 1.2fr 0.8fr;
  gap: 32px;
}

.footer-brand {
  color: #fff;
  font-size: 1.3rem;
}

.site-footer h3 {
  color: #fff;
  margin-top: 0;
}

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

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 22px;
  text-align: center;
  color: #9ca3af;
}

@media (max-width: 1180px) {
  .search-form {
    display: none;
  }

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

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

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

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

  .header-inner {
    justify-content: space-between;
  }

  .hero-content,
  .intro-panel,
  .detail-hero-inner,
  .detail-content-grid,
  .footer-grid,
  .category-overview-card {
    grid-template-columns: 1fr;
  }

  .hero-slider,
  .hero-content {
    min-height: 760px;
  }

  .hero-poster,
  .detail-poster {
    max-width: 280px;
    transform: none;
  }

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

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

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

@media (max-width: 640px) {
  .header-inner {
    padding: 12px 14px;
  }

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

  .hero-content,
  .section-wrap,
  .page-hero-content,
  .page-hero.slim,
  .detail-hero-inner,
  .footer-grid {
    padding-left: 14px;
    padding-right: 14px;
  }

  .hero-slider,
  .hero-content {
    min-height: 700px;
  }

  .hero-copy h1 {
    font-size: 2.2rem;
  }

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

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

  .movie-card p,
  .tag-row {
    display: none;
  }

  .rank-item {
    grid-template-columns: auto 58px minmax(0, 1fr);
  }

  .rank-thumb img {
    width: 58px;
    height: 82px;
  }

  .player-start span {
    width: 72px;
    height: 72px;
    font-size: 1.8rem;
  }
}
