:root {
  --accent: #ea580c;
  --accent-dark: #c2410c;
  --accent-soft: #fff7ed;
  --red: #dc2626;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #fed7aa;
  --dark: #111827;
  --card: #ffffff;
  --shadow: 0 20px 45px rgba(124, 45, 18, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 36%, #fffaf5 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

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

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(254, 215, 170, 0.9);
  box-shadow: 0 10px 28px rgba(124, 45, 18, 0.08);
}

.nav-inner {
  width: min(1180px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, #fb923c, #ef4444);
  box-shadow: 0 12px 26px rgba(239, 68, 68, 0.25);
}

.brand-text {
  font-size: 22px;
  background: linear-gradient(90deg, #ea580c, #dc2626);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 15px;
  font-weight: 700;
}

.nav-link {
  color: #4b5563;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--accent);
  transform: translateY(-1px);
}

.header-search,
.mobile-search,
.hero-search,
.search-page-form {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  background: #ffffff;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(234, 88, 12, 0.08);
}

.header-search input,
.mobile-search input,
.hero-search input,
.search-page-form input {
  width: 210px;
  border: 0;
  outline: 0;
  padding: 10px 14px;
  color: var(--text);
  background: transparent;
}

.header-search button,
.mobile-search button,
.hero-search button,
.search-page-form button {
  border: 0;
  padding: 10px 18px;
  color: #ffffff;
  font-weight: 800;
  background: linear-gradient(135deg, #fb923c, #ef4444);
  cursor: pointer;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 12px;
  background: #fff7ed;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}

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

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

.mobile-link {
  padding: 10px 12px;
  border-radius: 12px;
  color: #4b5563;
  font-weight: 700;
}

.mobile-link:hover,
.mobile-link.is-active {
  color: var(--accent);
  background: var(--accent-soft);
}

.page-main {
  padding-top: 68px;
}

.hero {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  color: #ffffff;
  background: #111827;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(251, 146, 60, 0.36), transparent 28%),
    radial-gradient(circle at 80% 10%, rgba(239, 68, 68, 0.30), transparent 26%),
    linear-gradient(135deg, #111827, #1f2937 45%, #7c2d12);
}

.hero-track,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.55fr);
  align-items: center;
  gap: 48px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  margin-inline: calc((100vw - min(1180px, calc(100vw - 32px))) / -2);
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.92) 0%, rgba(17, 24, 39, 0.72) 45%, rgba(17, 24, 39, 0.44) 100%),
    var(--hero-image);
  background-size: cover;
  background-position: center;
  filter: saturate(1.12);
  transform: scale(1.04);
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.hero-copy,
.hero-poster {
  position: relative;
  z-index: 2;
}

.eyebrow,
.section-head span,
.page-hero span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  color: #ffedd5;
  background: rgba(249, 115, 22, 0.18);
  border: 1px solid rgba(251, 146, 60, 0.34);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hero h1 {
  max-width: 720px;
  margin: 24px 0 18px;
  font-size: clamp(42px, 6vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.hero p {
  max-width: 680px;
  margin: 0;
  color: #fed7aa;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.8;
}

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

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

.hero-tags span,
.detail-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.hero-tags span,
.detail-tags span {
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.tag-row span {
  color: var(--accent-dark);
  background: #ffedd5;
}

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

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

.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, #fb923c, #ef4444);
  box-shadow: 0 16px 34px rgba(239, 68, 68, 0.28);
}

.ghost-button {
  color: #fff7ed;
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.08);
}

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

.hero-poster,
.detail-cover,
.poster {
  background:
    linear-gradient(135deg, rgba(251, 146, 60, 0.22), rgba(239, 68, 68, 0.22)),
    var(--poster-image);
  background-size: cover;
  background-position: center;
}

.hero-poster {
  min-height: 520px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 34px;
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
  transform: rotate(2deg);
}

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

.poster.image-missing img,
.hero-poster.image-missing img,
.detail-cover.image-missing img {
  opacity: 0;
}

.hero-panel {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 42px;
  display: grid;
  grid-template-columns: minmax(320px, 520px) 1fr auto;
  gap: 18px;
  align-items: center;
  width: min(1180px, calc(100% - 32px));
  transform: translateX(-50%);
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 28px;
  background: rgba(17, 24, 39, 0.55);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.22);
}

.hero-search input {
  width: 100%;
  min-width: 0;
}

.hero-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-chip-row a {
  padding: 8px 12px;
  border-radius: 999px;
  color: #ffedd5;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 13px;
  font-weight: 800;
}

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

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

.hero-dots button.is-active {
  width: 28px;
  background: #fb923c;
}

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

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

.section-head.compact {
  align-items: start;
  flex-direction: column;
  gap: 8px;
}

.section-head span,
.page-hero span {
  color: var(--accent-dark);
  background: #ffedd5;
  border-color: #fed7aa;
}

.section-head h2,
.page-hero h1,
.rank-card h2,
.content-panel h2 {
  margin: 0;
  color: #111827;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.04em;
}

.section-head a {
  color: var(--accent);
  font-weight: 900;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(254, 215, 170, 0.9);
  border-radius: 24px;
  background: var(--card);
  box-shadow: 0 16px 38px rgba(124, 45, 18, 0.10);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: #fdba74;
  box-shadow: 0 24px 55px rgba(124, 45, 18, 0.16);
}

.poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4.25;
  overflow: hidden;
}

.poster img {
  transition: transform 0.35s ease;
}

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

.year-badge,
.rank-badge {
  position: absolute;
  top: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  background: rgba(17, 24, 39, 0.72);
  backdrop-filter: blur(8px);
}

.year-badge {
  left: 12px;
}

.rank-badge {
  right: 12px;
  background: linear-gradient(135deg, #fb923c, #ef4444);
}

.card-body {
  padding: 16px;
}

.card-meta {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.card-body h2 {
  margin: 8px 0 9px;
  color: #111827;
  font-size: 18px;
  line-height: 1.35;
}

.card-body h2 a:hover {
  color: var(--accent);
}

.card-body p {
  min-height: 48px;
  margin: 0 0 12px;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.65;
}

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

.category-tile {
  display: flex;
  min-height: 148px;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border: 1px solid rgba(254, 215, 170, 0.9);
  border-radius: 24px;
  background:
    radial-gradient(circle at right top, rgba(251, 146, 60, 0.20), transparent 36%),
    #ffffff;
  box-shadow: 0 16px 35px rgba(124, 45, 18, 0.08);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.category-tile:hover {
  transform: translateY(-5px);
  border-color: #fb923c;
}

.category-tile span {
  color: #111827;
  font-size: 22px;
  font-weight: 900;
}

.category-tile p {
  margin: 12px 0 0;
  color: #6b7280;
  line-height: 1.65;
}

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

.rank-card,
.content-panel {
  border: 1px solid rgba(254, 215, 170, 0.9);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.rank-card {
  padding: 24px;
  position: sticky;
  top: 92px;
}

.rank-card h2 {
  margin-bottom: 18px;
  font-size: 28px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  background: #fff7ed;
  transition: transform 0.2s ease, background 0.2s ease;
}

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

.rank-row span {
  grid-row: span 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  color: #ffffff;
  background: linear-gradient(135deg, #fb923c, #ef4444);
  font-weight: 900;
}

.rank-row strong {
  color: #111827;
  line-height: 1.3;
}

.rank-row em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.library-links,
.footer-pages div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.library-links a,
.footer-pages a,
.pagination a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--accent-dark);
  background: #ffedd5;
  font-weight: 800;
}

.page-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 78px 0 20px;
}

.small-hero {
  display: grid;
  gap: 14px;
}

.small-hero p {
  max-width: 820px;
  margin: 0;
  color: #6b7280;
  font-size: 18px;
  line-height: 1.8;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 170px 170px;
  gap: 12px;
  margin-bottom: 22px;
}

.filter-bar input,
.filter-bar select,
.search-page-form input {
  border: 1px solid var(--line);
  border-radius: 16px;
  outline: 0;
  background: #ffffff;
  padding: 13px 14px;
  color: var(--text);
  font-weight: 700;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
}

.pagination:last-child {
  margin: 24px 0 0;
}

.pagination a.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, #fb923c, #ef4444);
}

.breadcrumb {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #6b7280;
  font-size: 14px;
}

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

.detail-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 24px auto 0;
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  padding: 34px;
  border-radius: 36px;
  color: #ffffff;
  background:
    radial-gradient(circle at 80% 0%, rgba(251, 146, 60, 0.42), transparent 32%),
    linear-gradient(135deg, #111827, #7c2d12);
  box-shadow: var(--shadow);
}

.detail-cover {
  aspect-ratio: 3 / 4.18;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.32);
}

.detail-info h1 {
  margin: 18px 0 16px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.lead-text {
  max-width: 720px;
  color: #fed7aa;
  font-size: 19px;
  line-height: 1.85;
}

.player-section {
  scroll-margin-top: 96px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #020617;
  box-shadow: 0 28px 70px rgba(17, 24, 39, 0.22);
}

.video-shell video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle at center, rgba(251, 146, 60, 0.24), rgba(2, 6, 23, 0.68));
  cursor: pointer;
}

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

.play-icon {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fb923c, #ef4444);
  box-shadow: 0 18px 48px rgba(239, 68, 68, 0.35);
  position: relative;
}

.play-icon::after {
  content: "";
  position: absolute;
  left: 30px;
  top: 23px;
  width: 0;
  height: 0;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  border-left: 20px solid #ffffff;
}

.player-overlay strong {
  font-size: 20px;
}

.episode-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.episode-row button {
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  color: #ffffff;
  background: linear-gradient(135deg, #fb923c, #ef4444);
  font-weight: 900;
  cursor: pointer;
}

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

.content-panel {
  padding: 30px;
}

.content-panel h2 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 28px;
}

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

.content-panel p {
  margin: 0;
  color: #4b5563;
  font-size: 17px;
  line-height: 1.9;
}

.search-page-form {
  width: min(680px, 100%);
  margin-top: 8px;
}

.search-page-form input {
  flex: 1;
  width: auto;
}

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

.wide-rank {
  position: static;
}

.site-footer {
  margin-top: 72px;
  padding: 46px 0 24px;
  color: #d1d5db;
  background: linear-gradient(135deg, #111827, #1f2937 55%, #7c2d12);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 32px;
}

.footer-brand strong {
  display: inline-block;
  margin-left: 10px;
  color: #ffffff;
  font-size: 22px;
}

.footer-brand p {
  max-width: 420px;
  color: #cbd5e1;
  line-height: 1.75;
}

.footer-links h2 {
  margin: 0 0 16px;
  color: #fdba74;
  font-size: 18px;
}

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

.footer-links a {
  color: #e5e7eb;
  font-size: 14px;
}

.footer-copy {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #9ca3af;
  font-size: 14px;
}

[data-card].is-hidden {
  display: none;
}

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

  .menu-toggle {
    display: inline-flex;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    align-content: center;
    padding-bottom: 170px;
  }

  .hero-poster {
    display: none;
  }

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

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

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

  .rank-card {
    position: static;
  }
}

@media (max-width: 760px) {
  .nav-inner {
    width: min(100% - 22px, 1180px);
  }

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

  .hero {
    min-height: 700px;
  }

  .hero-slide,
  .section,
  .page-hero,
  .breadcrumb,
  .detail-hero,
  .footer-inner,
  .footer-copy {
    width: min(100% - 22px, 1180px);
  }

  .hero h1 {
    font-size: 46px;
  }

  .hero-panel {
    bottom: 20px;
    width: min(100% - 22px, 1180px);
  }

  .hero-chip-row {
    max-height: 88px;
    overflow: auto;
  }

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

  .filter-bar {
    grid-template-columns: 1fr;
  }

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

  .detail-cover {
    width: min(300px, 100%);
    margin: 0 auto;
  }

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

@media (max-width: 460px) {
  .movie-grid,
  .compact-grid,
  .list-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .detail-actions {
    flex-direction: column;
  }

  .primary-button,
  .ghost-button {
    width: 100%;
  }
}
