:root {
  --color-primary: #f17925;
  --color-primary-dark: #bc3e18;
  --color-accent: #f04f1f;
  --color-ink: #1c1917;
  --color-muted: #78716c;
  --color-soft: #fef7ed;
  --color-line: #e7e5e4;
  --color-card: #ffffff;
  --shadow-soft: 0 18px 45px rgba(28, 25, 23, 0.10);
  --shadow-strong: 0 30px 80px rgba(28, 25, 23, 0.22);
  --radius-large: 28px;
  --radius-medium: 20px;
  --radius-small: 14px;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-ink);
  background: linear-gradient(180deg, #fffaf5 0%, #ffffff 34%, #fafaf9 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(231, 229, 228, 0.85);
  box-shadow: 0 10px 25px rgba(28, 25, 23, 0.06);
  backdrop-filter: blur(18px);
}

.nav-shell {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 72px;
}

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

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  border-radius: 14px;
  box-shadow: 0 14px 24px rgba(241, 121, 37, 0.28);
}

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

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: 10px;
  color: #44403c;
  font-weight: 700;
}

.desktop-nav a {
  transition: color 0.2s ease;
}

.desktop-nav a:hover {
  color: var(--color-primary-dark);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.header-search input,
.mobile-search input,
.large-search input,
.filter-panel input,
.filter-panel select {
  border: 1px solid #d6d3d1;
  border-radius: 999px;
  background: #ffffff;
  color: var(--color-ink);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
  width: 260px;
  padding: 11px 16px;
}

.header-search button,
.mobile-search button,
.large-search button,
.button,
.player-overlay {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search button,
.mobile-search button,
.large-search button,
.button-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  box-shadow: 0 14px 26px rgba(241, 121, 37, 0.28);
}

.header-search button {
  padding: 11px 18px;
}

.header-search input:focus,
.mobile-search input:focus,
.large-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(241, 121, 37, 0.13);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 0;
  background: transparent;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: var(--color-ink);
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--color-line);
  padding: 14px 18px 18px;
  background: #ffffff;
}

.mobile-nav a {
  display: block;
  padding: 12px 0;
  font-weight: 700;
  border-bottom: 1px solid #f5f5f4;
}

.mobile-search {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.mobile-search input {
  min-width: 0;
  flex: 1;
  padding: 11px 14px;
}

.mobile-search button {
  padding: 11px 16px;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 54px;
  align-items: center;
  padding: 76px max(36px, calc((100vw - 1180px) / 2)) 132px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

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

.hero-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.38;
  transform: scale(1.06);
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 42%, rgba(241, 121, 37, 0.38), transparent 34%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.58) 50%, rgba(0, 0, 0, 0.42) 100%);
}

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

.eyebrow {
  margin: 0 0 12px;
  color: var(--color-primary);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-content h1 {
  max-width: 780px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(2.6rem, 6vw, 5.5rem);
  line-height: 0.96;
  letter-spacing: -0.07em;
}

.hero-line {
  max-width: 680px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.90);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.75;
}

.hero-meta {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-weight: 700;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
}

.button:hover,
.header-search button:hover,
.large-search button:hover,
.player-overlay:hover {
  transform: translateY(-2px);
}

.button-ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.hero-poster {
  display: block;
  overflow: hidden;
  border-radius: 30px;
  box-shadow: var(--shadow-strong);
  transform: rotate(2deg);
}

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

.hero-dots {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 34px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  width: min(1180px, calc(100% - 36px));
  transform: translateX(-50%);
}

.hero-dot {
  min-width: 0;
  padding: 14px 16px;
  color: rgba(255, 255, 255, 0.76);
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: 16px;
  backdrop-filter: blur(14px);
}

.hero-dot span {
  margin-right: 8px;
  color: var(--color-primary);
  font-weight: 900;
}

.hero-dot.is-active {
  color: #ffffff;
  background: rgba(241, 121, 37, 0.72);
}

.page-main,
.section-block,
.shortcut-section,
.split-section {
  padding-top: 54px;
  padding-bottom: 54px;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

.section-head h1,
.section-title-row h2,
.search-hero h1,
.content-card h2 {
  margin: 0;
  color: var(--color-ink);
  letter-spacing: -0.045em;
}

.section-head h1,
.search-hero h1 {
  font-size: clamp(2.1rem, 4vw, 4rem);
  line-height: 1.05;
}

.section-head p,
.section-title-row p,
.content-card p {
  color: var(--color-muted);
  line-height: 1.8;
}

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

.section-title-row h2 {
  font-size: clamp(1.55rem, 3vw, 2.45rem);
}

.text-link {
  color: var(--color-primary-dark);
  font-weight: 900;
}

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

.shortcut-grid a,
.category-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px;
  background: #ffffff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-medium);
  box-shadow: 0 12px 28px rgba(28, 25, 23, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.shortcut-grid a:hover,
.category-chip:hover,
.movie-card:hover {
  border-color: rgba(241, 121, 37, 0.42);
  box-shadow: var(--shadow-soft);
  transform: translateY(-4px);
}

.shortcut-grid span,
.category-chip span {
  color: var(--color-muted);
  font-size: 0.9rem;
}

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

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

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

.movie-card {
  overflow: hidden;
  background: var(--color-card);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-medium);
  box-shadow: 0 12px 28px rgba(28, 25, 23, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.poster-link,
.poster-shell {
  display: block;
}

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

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

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

.poster-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 10px;
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 900;
  background: rgba(0, 0, 0, 0.56);
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.poster-play {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  border-radius: 999px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}

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

.movie-meta-line,
.card-foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--color-muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.movie-meta-line a {
  color: var(--color-primary-dark);
}

.movie-card h3 {
  min-height: 2.8em;
  margin: 10px 0 8px;
  font-size: 1.05rem;
  line-height: 1.38;
}

.movie-card h3 a:hover,
.rank-title:hover {
  color: var(--color-primary-dark);
}

.movie-card p {
  min-height: 4.9em;
  margin: 0;
  color: #57534e;
  font-size: 0.92rem;
  line-height: 1.65;
}

.card-foot {
  align-items: center;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #f5f5f4;
}

.card-foot span:last-child {
  max-width: 50%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-panel,
.content-card,
.ranking-table-card,
.filter-panel,
.search-hero {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-large);
  box-shadow: 0 16px 38px rgba(28, 25, 23, 0.07);
}

.ranking-panel {
  position: sticky;
  top: 96px;
  align-self: start;
  padding: 24px;
}

.ranking-panel h2 {
  margin: 0 0 18px;
}

.ranking-panel ol {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.ranking-panel li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid #f5f5f4;
}

.ranking-panel li span {
  color: var(--color-primary);
  font-weight: 900;
}

.ranking-panel li a {
  overflow: hidden;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-panel li em {
  grid-column: 2;
  color: var(--color-muted);
  font-size: 0.82rem;
  font-style: normal;
}

.filter-head {
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  align-items: start;
}

.filter-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 18px;
}

.filter-panel label {
  display: grid;
  gap: 8px;
  color: var(--color-muted);
  font-size: 0.85rem;
  font-weight: 800;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  padding: 11px 14px;
}

.result-count {
  align-self: end;
  margin: 0;
  color: var(--color-primary-dark);
  font-weight: 900;
}

.category-section {
  margin-bottom: 48px;
}

.ranking-table-card {
  overflow: hidden;
}

.ranking-table {
  width: 100%;
  border-collapse: collapse;
}

.ranking-table th,
.ranking-table td {
  padding: 18px;
  text-align: left;
  border-bottom: 1px solid #f5f5f4;
}

.ranking-table th {
  color: #57534e;
  background: #fff7ed;
  font-size: 0.9rem;
}

.rank-number {
  color: var(--color-primary);
  font-weight: 900;
}

.rank-title {
  font-weight: 900;
}

.ranking-table p {
  margin: 6px 0 0;
  color: var(--color-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.search-hero {
  padding: clamp(28px, 5vw, 56px);
  background:
    radial-gradient(circle at 85% 20%, rgba(241, 121, 37, 0.20), transparent 34%),
    linear-gradient(135deg, #ffffff, #fff7ed);
}

.large-search {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}

.large-search input {
  min-width: 0;
  flex: 1;
  padding: 15px 18px;
}

.large-search button {
  padding: 0 24px;
}

.detail-main {
  overflow: hidden;
}

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

.detail-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.34;
  filter: blur(2px);
  transform: scale(1.04);
}

.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 40%, rgba(241, 121, 37, 0.36), transparent 38%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.56));
}

.detail-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 44px;
  align-items: center;
  min-height: 560px;
  padding-top: 54px;
  padding-bottom: 54px;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow-strong);
}

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

.detail-copy h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(2.3rem, 5vw, 5rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

.detail-one-line {
  max-width: 820px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.16rem;
  line-height: 1.8;
}

.detail-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  max-width: 850px;
  margin: 28px 0 0;
}

.detail-meta div {
  padding: 14px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  backdrop-filter: blur(10px);
}

.detail-meta dt {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.78rem;
}

.detail-meta dd {
  margin: 6px 0 0;
  font-weight: 900;
}

.player-section,
.detail-content-grid {
  padding-top: 56px;
}

.player-frame {
  position: relative;
  overflow: hidden;
  background: #000000;
  border: 1px solid #292524;
  border-radius: var(--radius-large);
  box-shadow: var(--shadow-strong);
}

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

.player-overlay {
  position: absolute;
  inset: auto auto 34px 34px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 24px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
}

.player-overlay span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: var(--color-primary);
  background: #ffffff;
  border-radius: 999px;
}

.player-frame.is-playing .player-overlay {
  opacity: 0;
  pointer-events: none;
}

.player-message {
  position: absolute;
  right: 26px;
  bottom: 38px;
  max-width: 48%;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
  text-align: right;
}

.player-source-label {
  color: #ffffff;
  padding: 8px 12px;
  background: #1c1917;
  border-radius: 999px;
  font-weight: 900;
}

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

.content-card {
  padding: 26px;
}

.content-card p {
  margin-bottom: 0;
}

.link-tags,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.link-tags a,
.link-tags span,
.tag-list span {
  padding: 8px 12px;
  color: var(--color-primary-dark);
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  font-weight: 800;
}

.prose-page .content-card {
  max-width: 860px;
}

.prose-page a {
  color: var(--color-primary-dark);
  font-weight: 900;
}

.site-footer {
  margin-top: 72px;
  color: #d6d3d1;
  background: #1c1917;
}

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

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

.site-footer p {
  color: #a8a29e;
  line-height: 1.8;
}

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

.site-footer a:not(.footer-brand) {
  display: block;
  margin: 10px 0;
  color: #d6d3d1;
}

.site-footer a:hover {
  color: var(--color-primary);
}

.copyright {
  padding: 18px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.copyright p {
  margin: 0;
  font-size: 0.92rem;
}

.js-filter-card.is-hidden,
[data-search-featured].is-hidden {
  display: none;
}

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

  .header-search {
    margin-left: auto;
  }

  .menu-toggle {
    display: block;
  }

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

  .hero-slide {
    grid-template-columns: minmax(0, 1fr) 280px;
  }

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

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

  .ranking-panel {
    position: static;
  }

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

@media (max-width: 760px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .nav-shell {
    min-height: 64px;
  }

  .header-search {
    display: none;
  }

  .hero-carousel {
    min-height: 720px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 48px 18px 150px;
  }

  .hero-poster {
    width: min(230px, 68vw);
    transform: none;
  }

  .hero-dots {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    bottom: 18px;
  }

  .shortcut-grid,
  .category-chip-grid,
  .movie-grid,
  .dense-grid,
  .footer-grid,
  .detail-meta,
  .filter-panel {
    grid-template-columns: 1fr;
  }

  .section-title-row,
  .large-search {
    align-items: stretch;
    flex-direction: column;
  }

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

  .detail-poster {
    width: min(260px, 76vw);
  }

  .player-overlay {
    left: 18px;
    bottom: 18px;
  }

  .player-message {
    display: none;
  }

  .ranking-table-card {
    overflow-x: auto;
  }

  .ranking-table {
    min-width: 720px;
  }
}
