:root {
  --bg: #0f172a;
  --bg-deep: #020617;
  --panel: #1e293b;
  --panel-soft: #263247;
  --line: #334155;
  --text: #f8fafc;
  --muted: #94a3b8;
  --orange: #f97316;
  --red: #dc2626;
  --yellow: #facc15;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: radial-gradient(circle at top left, rgba(249, 115, 22, 0.16), transparent 34%), var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

img {
  max-width: 100%;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.96));
  border-bottom: 1px solid rgba(51, 65, 85, 0.9);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px);
}

.header-inner,
.footer-inner,
.page-shell,
.detail-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

.header-row {
  height: 68px;
  display: flex;
  align-items: center;
  gap: 18px;
}

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

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--orange), var(--red));
  color: #ffffff;
  box-shadow: 0 10px 26px rgba(249, 115, 22, 0.35);
}

.brand-text {
  font-size: 21px;
  color: #ffffff;
}

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

.nav-link,
.mobile-link {
  padding: 9px 12px;
  border-radius: 10px;
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 600;
  transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: #ffffff;
  background: rgba(51, 65, 85, 0.9);
}

.header-search,
.mobile-search,
.big-search,
.filter-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-search input,
.mobile-search input,
.big-search input,
.category-filter-input {
  width: 250px;
  min-height: 42px;
  padding: 0 14px;
  color: #ffffff;
  background: #334155;
  border: 1px solid #475569;
  border-radius: 12px;
  outline: none;
}

.header-search input:focus,
.mobile-search input:focus,
.big-search input:focus,
.category-filter-input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.2);
}

.header-search button,
.mobile-search button,
.big-search button,
.primary-btn,
.outline-btn,
.ghost-btn {
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  font-weight: 800;
  cursor: pointer;
}

.header-search button,
.mobile-search button,
.big-search button,
.primary-btn {
  color: #ffffff;
  background: linear-gradient(90deg, var(--orange), var(--red));
  box-shadow: 0 14px 28px rgba(249, 115, 22, 0.24);
}

.ghost-btn,
.outline-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(15, 23, 42, 0.52);
}

.category-strip {
  display: flex;
  gap: 10px;
  padding: 0 0 14px;
  overflow-x: auto;
}

.nav-chip,
.filter-pill,
.tag-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border-radius: 999px;
  color: #cbd5e1;
  background: #334155;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition: 0.2s ease;
}

.nav-chip:hover,
.filter-pill:hover,
.filter-pill.is-active,
.tag-chip:hover {
  color: #ffffff;
  background: var(--orange);
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: #ffffff;
  background: #334155;
  font-size: 24px;
}

.mobile-panel {
  display: none;
  padding: 16px 20px 20px;
  background: #1e293b;
  border-top: 1px solid #334155;
}

.mobile-panel.is-open {
  display: block;
}

.mobile-nav {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.hero-carousel {
  position: relative;
  min-height: 72vh;
  overflow: hidden;
  background: #020617;
}

.hero-stage,
.hero-slide,
.hero-bg,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

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

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-shade {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.93), rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.18)), linear-gradient(0deg, rgba(15, 23, 42, 0.92), transparent 42%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  height: 72vh;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--orange);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.hero-content h1,
.page-hero h1,
.player-title-block h1 {
  max-width: 780px;
  margin: 18px 0 16px;
  color: #ffffff;
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.06;
  font-weight: 900;
}

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

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 24px 0 30px;
  color: #ffffff;
  font-weight: 700;
}

.hero-meta span,
.hero-meta a {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(51, 65, 85, 0.82);
}

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

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.48);
  font-size: 34px;
  cursor: pointer;
}

.hero-prev {
  left: 20px;
}

.hero-next {
  right: 20px;
}

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

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

.hero-dot.is-active {
  width: 34px;
  background: var(--orange);
}

.page-shell {
  padding-top: 56px;
  padding-bottom: 72px;
}

.content-section {
  margin-bottom: 64px;
}

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

.section-heading h2,
.detail-card h2,
.aside-card h2 {
  margin: 0;
  color: #ffffff;
  font-size: 26px;
  line-height: 1.2;
  font-weight: 900;
}

.section-more {
  color: var(--orange);
  font-weight: 800;
}

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: 18px;
  background: var(--panel);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.26);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.movie-link {
  display: block;
  height: 100%;
}

.movie-poster,
.movie-thumb {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #111827, #334155);
}

.movie-poster {
  aspect-ratio: 3 / 4;
}

.movie-poster-wide {
  aspect-ratio: 16 / 9;
}

.movie-thumb {
  width: 150px;
  min-height: 112px;
  flex: 0 0 auto;
}

.movie-poster img,
.movie-thumb img,
.category-tile img,
.category-cover img,
.ranking-item img,
.detail-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.movie-card:hover img,
.category-tile:hover img,
.category-cover:hover img {
  transform: scale(1.08);
}

.movie-poster::after,
.movie-thumb::after,
.category-tile::after,
.category-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent 55%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .movie-poster::after,
.movie-card:hover .movie-thumb::after,
.category-tile:hover::after,
.category-cover:hover::after {
  opacity: 1;
}

.movie-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  padding: 6px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--orange);
  font-size: 12px;
  font-weight: 900;
}

.movie-badge.soft {
  position: static;
  align-self: flex-start;
  margin-bottom: 8px;
  background: rgba(249, 115, 22, 0.16);
  color: #fdba74;
}

.play-float {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: var(--orange);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.82);
  transition: 0.25s ease;
}

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

.movie-info {
  padding: 16px;
}

.movie-info h3 {
  display: -webkit-box;
  margin: 0 0 10px;
  overflow: hidden;
  color: #ffffff;
  font-size: 17px;
  line-height: 1.45;
  font-weight: 900;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color 0.2s ease;
}

.movie-card:hover .movie-info h3 {
  color: #fb923c;
}

.movie-info p {
  display: -webkit-box;
  min-height: 44px;
  margin: 0 0 12px;
  overflow: hidden;
  color: #94a3b8;
  font-size: 14px;
  line-height: 1.58;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-meta,
.movie-submeta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: #cbd5e1;
  font-size: 13px;
}

.movie-meta span:first-child {
  color: var(--yellow);
  font-weight: 900;
}

.movie-submeta {
  margin-top: 8px;
  color: #64748b;
}

.movie-card-horizontal .movie-link {
  display: flex;
  min-height: 150px;
}

.movie-card-horizontal .movie-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
}

.feature-block {
  padding: 30px;
  border: 1px solid rgba(51, 65, 85, 0.8);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(51, 65, 85, 0.88));
}

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

.category-feature,
.category-overview-card,
.detail-card,
.aside-card,
.filter-panel {
  border: 1px solid rgba(51, 65, 85, 0.78);
  border-radius: 24px;
  background: rgba(30, 41, 59, 0.84);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
}

.category-feature,
.category-overview-card,
.detail-card,
.aside-card,
.filter-panel {
  padding: 22px;
}

.mini-title {
  margin-bottom: 16px;
  color: #ffffff;
  font-size: 20px;
  font-weight: 900;
}

.category-feature .movie-card + .movie-card,
.category-preview-list .movie-card + .movie-card,
.related-list .movie-card + .movie-card {
  margin-top: 14px;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: 30px;
}

.rank-list,
.ranking-list {
  overflow: hidden;
  border: 1px solid rgba(51, 65, 85, 0.8);
  border-radius: 22px;
  background: rgba(30, 41, 59, 0.76);
}

.rank-row,
.ranking-item {
  display: grid;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(51, 65, 85, 0.62);
}

.rank-row {
  grid-template-columns: 46px 1fr auto;
}

.rank-row:last-child,
.ranking-item:last-child {
  border-bottom: 0;
}

.rank-num,
.ranking-number {
  color: #fb923c;
  font-size: 20px;
  font-weight: 950;
}

.rank-name,
.ranking-title {
  color: #ffffff;
  font-weight: 800;
}

.rank-score,
.ranking-rating {
  color: var(--yellow);
  font-weight: 900;
}

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

.category-tile,
.category-cover {
  position: relative;
  min-height: 170px;
  display: block;
  overflow: hidden;
  border-radius: 22px;
  background: var(--panel);
}

.category-tile span,
.category-cover span {
  position: absolute;
  left: 18px;
  bottom: 62px;
  z-index: 3;
  color: #ffffff;
  font-size: 20px;
  font-weight: 950;
}

.category-tile p {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  z-index: 3;
  margin: 0;
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.5;
}

.category-overview-card p {
  color: #cbd5e1;
  line-height: 1.75;
}

.category-cover {
  min-height: 190px;
  margin-bottom: 16px;
}

.category-cover span {
  bottom: 22px;
}

.scroll-row {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding-bottom: 12px;
  scrollbar-width: none;
}

.scroll-row::-webkit-scrollbar,
.category-strip::-webkit-scrollbar {
  display: none;
}

.scroll-item {
  width: 250px;
  flex: 0 0 auto;
}

.page-hero {
  min-height: 330px;
  display: flex;
  align-items: center;
  padding: 56px 20px;
  background: radial-gradient(circle at 78% 20%, rgba(249, 115, 22, 0.22), transparent 30%), linear-gradient(135deg, #7c2d12, #991b1b 45%, #0f172a);
}

.page-hero > div {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

.small-hero,
.search-hero,
.ranking-hero,
.category-hero {
  min-height: 300px;
}

.filter-panel {
  margin-bottom: 34px;
}

.filter-row {
  align-items: stretch;
}

.filter-row .category-filter-input {
  width: 100%;
}

.filter-pills,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.ranking-item {
  grid-template-columns: 58px 78px minmax(0, 1fr) 100px 100px;
}

.ranking-item img {
  width: 78px;
  height: 96px;
  border-radius: 12px;
  background: #334155;
}

.ranking-title small {
  display: block;
  margin-top: 6px;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 600;
}

.ranking-watch {
  color: #cbd5e1;
  font-weight: 700;
}

.big-search {
  max-width: 650px;
  margin-top: 28px;
}

.big-search input {
  width: 100%;
  min-height: 54px;
  font-size: 16px;
}

.big-search button {
  min-height: 54px;
  padding: 0 28px;
}

.search-results-section.is-empty #search-results::before {
  content: "输入关键词后显示匹配内容";
  display: block;
  grid-column: 1 / -1;
  padding: 28px;
  border: 1px dashed #475569;
  border-radius: 18px;
  color: #94a3b8;
  text-align: center;
}

.detail-main {
  background: radial-gradient(circle at top right, rgba(249, 115, 22, 0.12), transparent 32%), var(--bg);
}

.detail-shell {
  padding-top: 28px;
  padding-bottom: 72px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0 24px;
  color: #94a3b8;
  font-size: 14px;
}

.breadcrumb a {
  color: #fb923c;
}

.player-section {
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.92));
  box-shadow: var(--shadow);
}

.player-box {
  position: relative;
  overflow: hidden;
  background: #000000;
}

.movie-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.66), rgba(0, 0, 0, 0.28));
  border: 0;
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.big-play {
  width: 92px;
  height: 92px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  font-size: 44px;
  box-shadow: 0 22px 48px rgba(249, 115, 22, 0.38);
}

.overlay-title {
  max-width: 90%;
  font-size: 22px;
  font-weight: 900;
  text-align: center;
}

.player-title-block {
  padding: 30px;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  margin-top: 32px;
}

.detail-content {
  display: grid;
  gap: 24px;
}

.intro-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
}

.detail-cover {
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  background: #334155;
}

.detail-card p {
  margin: 16px 0 0;
  color: #d1d5db;
  font-size: 16px;
  line-height: 1.9;
}

.meta-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.meta-list li {
  padding: 12px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.56);
}

.meta-list span {
  display: block;
  color: #94a3b8;
  font-size: 12px;
}

.meta-list strong {
  display: block;
  margin-top: 4px;
  color: #ffffff;
  font-size: 14px;
}

.detail-aside {
  position: relative;
}

.aside-card {
  position: sticky;
  top: 100px;
}

.site-footer {
  border-top: 1px solid #1e293b;
  background: linear-gradient(180deg, #0f172a, #020617);
}

.footer-inner {
  padding-top: 52px;
  padding-bottom: 34px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 34px;
}

.footer-brand {
  margin-bottom: 14px;
  color: #ffffff;
  font-size: 20px;
}

.site-footer p,
.site-footer li,
.site-footer a {
  color: #94a3b8;
  font-size: 14px;
  line-height: 1.8;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 16px;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.footer-bottom {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid #1e293b;
  color: #64748b;
  font-size: 13px;
  text-align: center;
}

.is-filtered-out {
  display: none;
}

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

  .movie-grid-large,
  .category-feature-grid,
  .overview-grid,
  .split-section,
  .detail-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .detail-aside .aside-card {
    position: static;
  }
}

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

  .mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }

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

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

  .hero-content h1,
  .page-hero h1,
  .player-title-block h1 {
    font-size: 38px;
  }

  .hero-arrow {
    display: none;
  }

  .movie-grid,
  .compact-grid,
  .movie-grid-large,
  .category-movie-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .feature-block,
  .category-feature,
  .category-overview-card,
  .detail-card,
  .aside-card,
  .filter-panel {
    padding: 18px;
    border-radius: 20px;
  }

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

  .filter-row,
  .big-search {
    flex-direction: column;
    align-items: stretch;
  }

  .ranking-item {
    grid-template-columns: 38px 62px 1fr;
  }

  .ranking-rating,
  .ranking-watch {
    display: none;
  }

  .intro-card {
    grid-template-columns: 1fr;
  }

  .detail-cover {
    max-width: 260px;
  }
}

@media (max-width: 520px) {
  .header-inner,
  .footer-inner,
  .page-shell,
  .detail-shell {
    padding-left: 14px;
    padding-right: 14px;
  }

  .hero-content {
    padding-left: 16px;
    padding-right: 16px;
  }

  .movie-grid,
  .compact-grid,
  .movie-grid-large,
  .category-movie-grid {
    grid-template-columns: 1fr;
  }

  .movie-card-horizontal .movie-link {
    flex-direction: column;
  }

  .movie-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
  }

  .meta-list {
    grid-template-columns: 1fr;
  }
}
