:root {
  --orange: #f97316;
  --orange-dark: #ea580c;
  --red: #dc2626;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #f9fafb;
  --footer: #111827;
  --shadow: 0 18px 45px rgba(17, 24, 39, 0.12);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #fff7ed 0, #ffffff 320px, #f9fafb 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.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;
  color: #ffffff;
  background: linear-gradient(90deg, var(--orange-dark), var(--red));
  box-shadow: 0 12px 28px rgba(127, 29, 29, 0.22);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  width: min(1240px, calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
}

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

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  color: var(--orange);
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

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

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

.nav-link {
  position: relative;
  padding: 8px 0;
  font-size: 15px;
  opacity: 0.92;
}

.nav-link::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  content: "";
  background: #ffedd5;
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.top-search {
  position: relative;
  display: flex;
  align-items: center;
  width: 260px;
}

.top-search input,
.mobile-search input,
.filter-search input {
  width: 100%;
  border: 0;
  outline: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
}

.top-search input {
  padding: 10px 44px 10px 18px;
}

.top-search button {
  position: absolute;
  right: 5px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: var(--orange);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  color: #ffffff;
  background: transparent;
  font-size: 28px;
}

.header-pills {
  background: rgba(124, 45, 18, 0.18);
}

.header-pills-inner {
  display: flex;
  gap: 10px;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 9px 0;
  overflow-x: auto;
}

.nav-pill {
  flex: 0 0 auto;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 13px;
}

.mobile-panel {
  display: none;
  padding: 0 16px 16px;
  background: #c2410c;
}

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

.mobile-panel nav {
  display: grid;
  gap: 4px;
  padding: 10px 0;
}

.mobile-panel .nav-link {
  padding: 9px 0;
}

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

.mobile-search input {
  padding: 11px 14px;
}

.mobile-search button {
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: #9a3412;
  padding: 0 18px;
}

.hero-section {
  position: relative;
  height: min(680px, calc(100vh - 70px));
  min-height: 560px;
  overflow: hidden;
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.015);
  pointer-events: none;
  transition: opacity 0.75s ease, transform 1.2s ease;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 30%, rgba(249, 115, 22, 0.34), transparent 34%),
    linear-gradient(90deg, rgba(17, 24, 39, 0.94) 0%, rgba(17, 24, 39, 0.72) 44%, rgba(17, 24, 39, 0.22) 100%),
    linear-gradient(0deg, rgba(17, 24, 39, 0.86) 0%, transparent 35%);
}

.hero-content {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 48px;
  width: min(1240px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  padding: 50px 0 80px;
}

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

.hero-kicker {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #fed7aa;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
}

.hero-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.hero-lead {
  max-width: 720px;
  margin: 0 0 16px;
  color: #fff7ed;
  font-size: clamp(18px, 2.4vw, 26px);
  font-weight: 700;
}

.hero-desc {
  max-width: 700px;
  margin: 0;
  color: #d1d5db;
  font-size: 16px;
}

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

.hero-tags {
  margin: 22px 0 30px;
}

.hero-tags span,
.tag-row span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: #9a3412;
  background: #ffedd5;
  font-size: 13px;
  line-height: 1;
}

.hero-tags span {
  padding: 8px 12px;
  color: #ffffff;
  background: rgba(249, 115, 22, 0.78);
}

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

.primary-btn,
.ghost-btn,
.section-more,
.load-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
  padding: 0 24px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--orange), var(--red));
  box-shadow: 0 18px 34px rgba(234, 88, 12, 0.28);
}

.ghost-btn {
  padding: 0 22px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}

.primary-btn:hover,
.ghost-btn:hover,
.section-more:hover,
.load-link:hover {
  transform: translateY(-2px);
}

.hero-poster {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.42);
}

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

.hero-poster span,
.play-hover,
.player-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.hero-poster span {
  position: absolute;
  right: 24px;
  bottom: 24px;
  width: 62px;
  height: 62px;
  color: #ffffff;
  background: var(--orange);
  font-size: 24px;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.35);
}

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

.hero-dot {
  width: 32px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
}

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

.main-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0;
}

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

.section-heading h1,
.section-heading h2,
.page-title h1 {
  margin: 0;
  color: #111827;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.16;
  letter-spacing: -0.035em;
}

.section-heading p,
.page-title p {
  max-width: 780px;
  margin: 8px 0 0;
  color: var(--muted);
}

.section-more,
.load-link {
  min-width: 112px;
  padding: 0 18px;
  color: var(--orange-dark);
  background: #ffedd5;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(229, 231, 235, 0.82);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.poster-wrap {
  position: relative;
  display: block;
  height: 260px;
  overflow: hidden;
  background: #111827;
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.66), transparent 58%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .poster-shade {
  opacity: 1;
}

.card-category {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--orange);
  font-size: 12px;
  font-weight: 700;
}

.play-hover {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50px;
  height: 50px;
  color: #ffffff;
  background: var(--orange);
  transform: translate(-50%, -50%) scale(0.7);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

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

.movie-card-body h3 {
  display: -webkit-box;
  min-height: 48px;
  margin: 0 0 8px;
  overflow: hidden;
  color: #111827;
  font-size: 17px;
  line-height: 1.42;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-card-body h3 a:hover {
  color: var(--orange-dark);
}

.movie-card-body p {
  display: -webkit-box;
  min-height: 44px;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  color: #6b7280;
  font-size: 13px;
}

.tag-row span,
.detail-tags span {
  padding: 6px 9px;
}

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

.category-tile {
  position: relative;
  min-height: 180px;
  overflow: hidden;
  border-radius: 22px;
  background: #111827;
  box-shadow: var(--shadow);
}

.category-tile img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.category-layer {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.82), rgba(234, 88, 12, 0.22));
}

.category-name,
.category-sample {
  position: absolute;
  left: 20px;
  right: 20px;
  color: #ffffff;
}

.category-name {
  bottom: 46px;
  font-size: 24px;
  font-weight: 900;
}

.category-sample {
  bottom: 20px;
  color: #fed7aa;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

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

.rank-panel {
  border: 1px solid rgba(229, 231, 235, 0.86);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.08);
  overflow: hidden;
}

.rank-panel h3 {
  margin: 0;
  padding: 18px 20px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--orange), var(--red));
}

.rank-list {
  display: grid;
  gap: 0;
}

.rank-link {
  display: grid;
  grid-template-columns: 42px 1fr 48px;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  border-bottom: 1px solid #f3f4f6;
}

.rank-link:hover {
  color: var(--orange-dark);
  background: #fff7ed;
}

.rank-number,
.rank-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #ffffff;
  background: #fb923c;
  font-weight: 800;
  font-size: 12px;
}

.rank-dot {
  width: 10px;
  height: 10px;
  color: transparent;
}

.rank-title {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-score {
  justify-self: end;
  color: #f59e0b;
  font-weight: 800;
}

.page-title {
  padding: 54px 0 22px;
}

.page-title .crumbs,
.detail-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--orange-dark);
  font-size: 14px;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(260px, 360px) 1fr;
  gap: 16px;
  align-items: center;
  margin: 0 0 24px;
  padding: 16px;
  border: 1px solid #fed7aa;
  border-radius: 20px;
  background: #fff7ed;
}

.filter-search input {
  padding: 12px 16px;
  border: 1px solid #fed7aa;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  color: #9a3412;
  background: #ffedd5;
  font-weight: 700;
}

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

.movie-card.is-hidden {
  display: none;
}

.detail-hero {
  position: relative;
  color: #ffffff;
  background: #111827;
  overflow: hidden;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.24;
  filter: blur(2px) saturate(1.2);
}

.detail-mask {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 20%, rgba(249, 115, 22, 0.24), transparent 32%),
    linear-gradient(90deg, rgba(17, 24, 39, 0.96), rgba(17, 24, 39, 0.62));
}

.detail-hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 36px;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 58px 0;
}

.detail-poster {
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
}

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

.detail-copy h1 {
  margin: 8px 0 14px;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.detail-copy p {
  max-width: 760px;
  color: #e5e7eb;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 22px;
}

.detail-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 28px;
}

.detail-main {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 64px;
}

.player-section,
.content-section {
  margin-bottom: 36px;
  border: 1px solid rgba(229, 231, 235, 0.86);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 14px 38px rgba(17, 24, 39, 0.08);
  overflow: hidden;
}

.section-title-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid #f3f4f6;
}

.section-title-line h2 {
  margin: 0;
  font-size: 22px;
}

.player-frame {
  position: relative;
  background: #030712;
  aspect-ratio: 16 / 9;
}

.player-video {
  width: 100%;
  height: 100%;
  background: #000000;
  object-fit: contain;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(3, 7, 18, 0.78), rgba(3, 7, 18, 0.24));
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 3;
}

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

.player-button {
  width: 86px;
  height: 86px;
  padding-left: 6px;
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 22px 50px rgba(220, 38, 38, 0.35);
  font-size: 34px;
}

.article-body {
  display: grid;
  gap: 22px;
  padding: 24px;
}

.article-body h2 {
  margin: 0;
  font-size: 24px;
}

.article-body p {
  margin: 0;
  color: #374151;
}

.relation-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 36px;
}

.relation-nav a {
  flex: 1;
  padding: 14px 16px;
  border-radius: 16px;
  background: #ffedd5;
  color: #9a3412;
  font-weight: 800;
}

.relation-nav a:last-child {
  text-align: right;
}

.site-footer {
  color: #d1d5db;
  background: linear-gradient(135deg, #111827, #1f2937 55%, #111827);
}

.footer-inner {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 46px 0 28px;
}

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

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

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

.site-footer p {
  margin: 12px 0 0;
  color: #9ca3af;
  font-size: 14px;
}

.site-footer ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a {
  color: #9ca3af;
}

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

.footer-bottom {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
}

.empty-state {
  display: none;
  padding: 38px;
  border-radius: 20px;
  text-align: center;
  color: #9a3412;
  background: #ffedd5;
}

.empty-state.is-visible {
  display: block;
}

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

@media (max-width: 980px) {
  .desktop-nav,
  .top-search,
  .header-pills {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

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

  .hero-poster {
    display: none;
  }

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

  .category-grid,
  .rank-board,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-bar,
  .detail-hero-inner {
    grid-template-columns: 1fr;
  }

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

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

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

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

  .hero-content {
    padding-bottom: 92px;
  }

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

  .poster-wrap {
    height: 230px;
  }

  .category-grid,
  .rank-board,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .relation-nav {
    align-items: stretch;
    flex-direction: column;
  }

  .relation-nav a:last-child {
    text-align: left;
  }

  .detail-hero-inner {
    padding: 36px 0;
  }

  .detail-poster img {
    height: 390px;
  }

  .article-body {
    padding: 20px;
  }
}

@media (max-width: 430px) {
  .movie-grid {
    grid-template-columns: 1fr;
  }

  .poster-wrap {
    height: 340px;
  }

  .hero-copy h1 {
    font-size: 36px;
  }
}
