:root {
  --color-bg: #f8fafc;
  --color-surface: #ffffff;
  --color-text: #1f2937;
  --color-muted: #6b7280;
  --color-border: #e5e7eb;
  --color-orange: #f97316;
  --color-amber: #f59e0b;
  --shadow-card: 0 16px 40px rgba(15, 23, 42, 0.10);
  --shadow-soft: 0 8px 24px rgba(15, 23, 42, 0.08);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg, var(--color-orange), var(--color-amber));
  color: #ffffff;
  box-shadow: 0 8px 28px rgba(249, 115, 22, 0.28);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.logo-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.logo-text {
  font-size: 22px;
  white-space: nowrap;
}

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

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

.nav-link:hover,
.nav-link.active {
  background: rgba(255, 255, 255, 0.20);
  transform: translateY(-1px);
}

.header-search {
  width: min(300px, 28vw);
  display: flex;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

.header-search input {
  min-width: 0;
  width: 100%;
  padding: 10px 14px;
  border: 0;
  outline: 0;
  color: #ffffff;
  background: transparent;
}

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

.header-search button {
  border: 0;
  padding: 0 16px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.20);
  font-weight: 700;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.18);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #ffffff;
  border-radius: 999px;
}

.hero {
  position: relative;
  height: clamp(520px, 70vw, 720px);
  overflow: hidden;
  background: #111827;
}

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

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

.hero-slide > img,
.detail-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 40%, rgba(251, 191, 36, 0.28), transparent 28%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.42) 50%, rgba(0, 0, 0, 0.70)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.74));
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  align-items: center;
  gap: 54px;
  color: #ffffff;
}

.hero-copy {
  max-width: 760px;
}

.hero-kicker,
.poster-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-orange), var(--color-amber));
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(249, 115, 22, 0.35);
}

.hero h1 {
  margin: 20px 0 18px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: -0.05em;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.38);
}

.hero p {
  max-width: 680px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.7;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.38);
}

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

.hero-tags span,
.tag-row span,
.detail-meta span {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.20);
  backdrop-filter: blur(12px);
  font-size: 13px;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  color: #ffffff;
  background: linear-gradient(90deg, var(--color-orange), var(--color-amber));
  box-shadow: 0 18px 38px rgba(249, 115, 22, 0.36);
}

.btn-ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(10px);
}

.hero-poster {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.48);
  transform: rotate(2deg);
  transition: transform 0.3s ease;
}

.hero-poster:hover {
  transform: rotate(0deg) translateY(-4px);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.hero-poster span {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(14px);
  font-weight: 800;
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 14px;
  transform: translateX(-50%);
}

.hero-arrow,
.hero-dot {
  border: 0;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
}

.hero-arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 30px;
  line-height: 1;
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border-radius: 999px;
  transition: width 0.2s ease, background 0.2s ease;
}

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

.section {
  padding: 64px 0;
}

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

.section-head h2 {
  margin: 0;
  color: #111827;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-head p {
  margin: 10px 0 0;
  color: var(--color-muted);
  font-size: 16px;
}

.section-action {
  color: var(--color-orange);
  font-weight: 900;
}

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

.category-chip,
.category-card,
.content-card,
.rank-panel,
.filter-bar,
.video-shell,
.ranking-list-full,
.search-band-inner {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
}

.category-chip {
  min-height: 108px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(249, 115, 22, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-chip strong,
.category-card strong {
  color: #111827;
  font-size: 20px;
  font-weight: 900;
}

.category-chip span,
.category-card-desc {
  color: var(--color-muted);
  line-height: 1.6;
}

.search-band {
  padding: 54px 0;
  background: linear-gradient(135deg, rgba(255, 237, 213, 0.94), rgba(254, 243, 199, 0.94));
}

.search-band-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 460px);
  align-items: center;
  gap: 28px;
  padding: 32px;
}

.search-band h2,
.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1.06;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.search-band p,
.page-hero p {
  margin: 0;
  color: var(--color-muted);
  line-height: 1.8;
}

.big-search,
.filter-bar {
  display: flex;
  gap: 12px;
}

.big-search input,
.filter-bar input,
.filter-bar select,
.page-search input {
  min-width: 0;
  width: 100%;
  border: 1px solid var(--color-border);
  outline: 0;
  border-radius: 999px;
  padding: 14px 18px;
  color: var(--color-text);
  background: #ffffff;
}

.big-search button {
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  padding: 0 24px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--color-orange), var(--color-amber));
  font-weight: 900;
}

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

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

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

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

.movie-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.poster-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: #111827;
}

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

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

.poster-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 46%, rgba(0, 0, 0, 0.72));
}

.poster-badge {
  position: absolute;
  right: 12px;
  top: 12px;
  font-size: 12px;
}

.movie-card-body {
  min-height: 168px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 16px;
}

.movie-card-body strong {
  display: block;
  color: #111827;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 900;
}

.movie-card-body em,
.compact-card em,
.rank-item em,
.rank-line-main em {
  color: var(--color-muted);
  font-size: 13px;
  font-style: normal;
}

.line-clamp {
  color: #4b5563;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.55;
  font-size: 14px;
}

.movie-card .tag-row span {
  color: #9a3412;
  background: #ffedd5;
  border: 0;
  backdrop-filter: none;
  font-size: 12px;
}

.warm-section {
  background: linear-gradient(135deg, #fff7ed, #fffbeb);
}

.two-column-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 34px;
  align-items: start;
}

.rank-panel {
  position: sticky;
  top: 96px;
  padding: 24px;
}

.rank-panel h2 {
  margin: 0 0 18px;
  font-size: 28px;
  font-weight: 900;
}

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

.rank-item,
.compact-card,
.rank-line {
  display: grid;
  align-items: center;
  gap: 14px;
}

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

.rank-num,
.rank-line-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(180deg, var(--color-orange), var(--color-amber));
  font-weight: 900;
}

.rank-num {
  width: 34px;
  height: 34px;
}

.rank-item img,
.compact-card img {
  width: 56px;
  height: 74px;
  border-radius: 12px;
  object-fit: cover;
}

.rank-item strong,
.compact-card strong {
  display: block;
  overflow: hidden;
  color: #111827;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 900;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0;
  color: #ffffff;
  background:
    radial-gradient(circle at 80% 20%, rgba(251, 191, 36, 0.40), transparent 24%),
    linear-gradient(135deg, #9a3412, #f97316 54%, #f59e0b);
}

.slim-hero p,
.ranking-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.88);
}

.breadcrumb {
  margin-bottom: 14px !important;
  color: rgba(255, 255, 255, 0.76) !important;
  font-weight: 700;
}

.breadcrumb a {
  color: #ffffff;
}

.category-card {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.category-card-head em {
  color: var(--color-orange);
  font-style: normal;
  font-weight: 900;
}

.category-mini-posters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: auto;
}

.category-mini-posters img {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  object-fit: cover;
}

.filter-bar {
  align-items: center;
  margin-bottom: 28px;
  padding: 16px;
}

.filter-bar select {
  max-width: 180px;
}

.is-hidden {
  display: none !important;
}

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

.movie-card-wide .poster-wrap {
  aspect-ratio: 16 / 10;
}

.ranking-list-full {
  display: grid;
  gap: 12px;
  padding: 22px;
}

.rank-line {
  grid-template-columns: 54px 84px minmax(0, 1fr);
  padding: 14px;
  border-radius: 18px;
  transition: background 0.2s ease, transform 0.2s ease;
}

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

.rank-line-num {
  width: 44px;
  height: 44px;
  font-size: 18px;
}

.rank-line img {
  width: 84px;
  height: 112px;
  border-radius: 14px;
  object-fit: cover;
}

.rank-line-main strong {
  display: block;
  margin-bottom: 6px;
  font-size: 20px;
  font-weight: 900;
}

.rank-line-main .tag-row {
  margin-top: 10px;
}

.rank-line-main .tag-row span {
  color: #9a3412;
  background: #ffedd5;
  border: 0;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  color: #ffffff;
}

.detail-mask {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.54), rgba(0, 0, 0, 0.82)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.82));
  backdrop-filter: blur(2px);
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  padding: 58px 0;
}

.detail-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 42px;
  align-items: end;
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.48);
}

.detail-info h1 {
  margin: 0 0 18px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.detail-one-line {
  max-width: 820px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 20px;
  line-height: 1.7;
}

.detail-tags {
  margin-top: 16px;
}

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

.video-shell {
  position: relative;
  overflow: hidden;
  background: #020617;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.24);
}

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

.video-start {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.45));
  cursor: pointer;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.video-start span {
  width: 92px;
  height: 92px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 6px;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-orange), var(--color-amber));
  box-shadow: 0 22px 50px rgba(249, 115, 22, 0.46);
  font-size: 40px;
}

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

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

.content-card {
  padding: 30px;
}

.content-card h2 {
  margin: 0 0 14px;
  color: #111827;
  font-size: 26px;
  font-weight: 900;
}

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

.content-card p {
  color: #374151;
  line-height: 1.9;
  font-size: 16px;
}

.content-card dl {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 12px;
  margin: 0;
}

.content-card dt {
  color: var(--color-muted);
  font-weight: 800;
}

.content-card dd {
  margin: 0;
  color: #111827;
  font-weight: 800;
}

.compact-card {
  grid-template-columns: 62px minmax(0, 1fr);
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 34px;
}

.footer-grid p {
  max-width: 520px;
  color: #9ca3af;
  line-height: 1.8;
}

.footer-grid h2 {
  margin: 0 0 16px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
}

.footer-grid a:not(.footer-logo) {
  display: block;
  margin: 10px 0;
  color: #d1d5db;
}

.footer-logo {
  color: #ffffff;
  font-size: 24px;
}

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

#search-results:empty::before {
  content: "输入关键词后即可查看匹配影片";
  grid-column: 1 / -1;
  padding: 34px;
  border-radius: 24px;
  color: var(--color-muted);
  background: #ffffff;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

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

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

  .two-column-layout,
  .detail-content-grid,
  .search-band-inner {
    grid-template-columns: 1fr;
  }

  .rank-panel {
    position: static;
  }
}

@media (max-width: 820px) {
  .header-inner {
    min-height: 64px;
  }

  .site-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--color-orange), var(--color-amber));
    box-shadow: var(--shadow-card);
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-toggle {
    display: block;
    margin-left: auto;
  }

  .hero {
    height: 660px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 28px;
    padding-top: 30px;
    padding-bottom: 86px;
  }

  .hero-poster {
    width: min(210px, 54vw);
    justify-self: start;
  }

  .category-strip,
  .category-card-grid,
  .spotlight-grid,
  .footer-grid,
  .featured-grid,
  .small-grid {
    grid-template-columns: 1fr 1fr;
  }

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

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

  .filter-bar,
  .big-search {
    flex-direction: column;
  }

  .filter-bar select {
    max-width: none;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 22px, var(--container));
  }

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

  .hero {
    height: 700px;
  }

  .hero h1,
  .detail-info h1 {
    font-size: 40px;
  }

  .hero p,
  .detail-one-line {
    font-size: 16px;
  }

  .section {
    padding: 46px 0;
  }

  .section-head {
    display: block;
  }

  .section-action {
    display: inline-block;
    margin-top: 14px;
  }

  .movie-grid,
  .listing-grid,
  .category-strip,
  .category-card-grid,
  .spotlight-grid,
  .footer-grid,
  .featured-grid,
  .small-grid {
    grid-template-columns: 1fr;
  }

  .rank-line {
    grid-template-columns: 42px 68px minmax(0, 1fr);
  }

  .rank-line img {
    width: 68px;
    height: 92px;
  }

  .rank-line-main strong {
    font-size: 17px;
  }

  .content-card,
  .ranking-list-full {
    padding: 20px;
  }
}
