* {
  box-sizing: border-box;
}

:root {
  --accent: #ea580c;
  --accent-dark: #c2410c;
  --accent-soft: #ffedd5;
  --red: #dc2626;
  --ink: #111827;
  --muted: #6b7280;
  --paper: #ffffff;
  --soft: #f9fafb;
  --line: #e5e7eb;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --radius: 22px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: linear-gradient(180deg, #fff7ed 0%, #f9fafb 18%, #ffffff 100%);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", Arial, sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  color: #fff;
  background: linear-gradient(90deg, #d97706 0%, #ea580c 52%, #dc2626 100%);
  box-shadow: 0 12px 35px rgba(194, 65, 12, 0.28);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 25px;
  font-weight: 900;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

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

.nav-links a {
  opacity: 0.95;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.nav-links a:hover {
  color: #fde68a;
  opacity: 1;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  cursor: pointer;
}

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

.mobile-panel {
  display: none;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
}

.mobile-panel a {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 700;
}

.mobile-panel a:hover {
  background: rgba(255, 255, 255, 0.14);
}

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

.hero {
  position: relative;
  height: 560px;
  overflow: hidden;
  background: #020617;
}

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

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.66) 42%, rgba(2, 6, 23, 0.16) 100%);
}

.hero-content {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 2;
  width: min(1200px, calc(100% - 32px));
  padding: 48px 0 60px;
  color: #fff;
  transform: translateX(-50%);
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #fed7aa;
  background: rgba(234, 88, 12, 0.22);
  border: 1px solid rgba(251, 146, 60, 0.45);
  font-weight: 800;
}

.hero h1 {
  max-width: 830px;
  margin: 18px 0 16px;
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.hero p {
  max-width: 760px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
}

.hero-meta,
.card-meta,
.detail-meta,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.17);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.pill.hot {
  background: #ea580c;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: 13px;
  color: #fff;
  background: var(--accent);
  box-shadow: 0 12px 28px rgba(234, 88, 12, 0.32);
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  background: var(--accent-dark);
  box-shadow: 0 18px 35px rgba(234, 88, 12, 0.42);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, 0.42);
  cursor: pointer;
  transform: translateY(-50%);
}

.hero-control:hover {
  background: rgba(0, 0, 0, 0.68);
}

.hero-control.prev {
  left: 20px;
}

.hero-control.next {
  right: 20px;
}

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

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

.hero-dot.is-active {
  width: 34px;
  background: #fb923c;
}

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

.main-stack {
  display: grid;
  gap: 64px;
  padding: 56px 0 76px;
}

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

.section-title {
  margin: 0;
  font-size: clamp(25px, 3vw, 36px);
  line-height: 1.2;
}

.section-lead {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--muted);
}

.more-link {
  color: var(--accent);
  font-weight: 900;
  white-space: nowrap;
}

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

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

.movie-card {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

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

.poster-wrap.video {
  aspect-ratio: 16 / 9;
}

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

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

.poster-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 5px 10px;
  border-radius: 9px;
  color: #fff;
  background: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.poster-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.08));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.poster-play span {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(234, 88, 12, 0.92);
  font-size: 22px;
}

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

.card-body {
  padding: 16px;
}

.card-title {
  margin: 0 0 8px;
  color: #111827;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 900;
  transition: color 0.2s ease;
}

.movie-card:hover .card-title {
  color: var(--accent);
}

.card-desc {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
}

.card-meta {
  color: var(--muted);
  font-size: 13px;
  justify-content: space-between;
}

.mini-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 9px;
  color: #9a3412;
  background: #ffedd5;
  font-size: 12px;
  font-weight: 800;
}

.line-1,
.line-2,
.line-3 {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
}

.line-1 {
  -webkit-line-clamp: 1;
}

.line-2 {
  -webkit-line-clamp: 2;
}

.line-3 {
  -webkit-line-clamp: 3;
}

.scroll-shell {
  position: relative;
  margin-inline: calc((100vw - min(1200px, calc(100% - 32px))) / -2);
  padding: 42px max(16px, calc((100vw - 1200px) / 2));
  background: linear-gradient(90deg, #fff7ed, #fef2f2);
}

.scroll-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 264px;
  gap: 22px;
  overflow-x: auto;
  padding: 4px 0 18px;
  scroll-snap-type: x proximity;
}

.scroll-row .movie-card {
  scroll-snap-align: start;
}

.rank-list {
  display: grid;
  gap: 14px;
  padding: 20px;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 15px 40px rgba(15, 23, 42, 0.08);
}

.rank-item {
  display: grid;
  grid-template-columns: 54px 120px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  transition: background 0.2s ease, transform 0.2s ease;
}

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

.rank-no {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #f97316, #dc2626);
  font-weight: 900;
  font-size: 18px;
}

.rank-thumb {
  width: 120px;
  height: 72px;
  overflow: hidden;
  border-radius: 14px;
  background: #111827;
}

.rank-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-info h3 {
  margin: 0 0 4px;
  font-size: 18px;
}

.rank-info p {
  margin: 0;
  color: var(--muted);
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 170px;
  padding: 24px;
  border-radius: 24px;
  color: #fff;
  background: linear-gradient(135deg, #fb923c, #dc2626);
  box-shadow: 0 16px 38px rgba(234, 88, 12, 0.22);
}

.category-card:nth-child(3n + 2) {
  background: linear-gradient(135deg, #f59e0b, #ea580c);
}

.category-card:nth-child(3n) {
  background: linear-gradient(135deg, #ef4444, #991b1b);
}

.category-card h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 8px;
  font-size: 23px;
}

.category-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
}

.category-card::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -36px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.page-hero {
  padding: 58px 0 36px;
  color: #fff;
  background: radial-gradient(circle at top left, #fb923c 0, transparent 38%), linear-gradient(120deg, #111827, #7f1d1d);
}

.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.12;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
}

.breadcrumb a:hover {
  color: #fed7aa;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px 170px;
  gap: 14px;
  margin: 0 0 26px;
  padding: 18px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 14px;
  color: var(--ink);
  background: #fff;
  outline: none;
}

.filter-bar input:focus,
.filter-bar select:focus {
  border-color: #fb923c;
  box-shadow: 0 0 0 4px rgba(251, 146, 60, 0.18);
}

.empty-state {
  display: none;
  padding: 34px;
  border-radius: 22px;
  text-align: center;
  color: var(--muted);
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
}

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

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

.player-panel,
.side-card,
.text-panel,
.related-panel {
  overflow: hidden;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.1);
}

.player-panel h1 {
  margin: 0;
  padding: 22px 24px;
  font-size: clamp(26px, 4vw, 40px);
}

.player {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.player video {
  width: 100%;
  height: 100%;
  display: block;
  background: #020617;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.68), rgba(2, 6, 23, 0.18));
  cursor: pointer;
}

.player-cover span {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(234, 88, 12, 0.95);
  font-size: 30px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.34);
}

.player.is-playing .player-cover {
  display: none;
}

.watch-intro {
  padding: 22px 24px 26px;
}

.watch-intro p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.side-card {
  padding: 18px;
}

.side-card .poster-wrap {
  border-radius: 20px;
}

.detail-meta {
  margin: 18px 0 14px;
  color: var(--muted);
}

.tag-row a,
.tag-row span {
  padding: 6px 10px;
  border-radius: 999px;
  color: #9a3412;
  background: #ffedd5;
  font-size: 13px;
  font-weight: 800;
}

.text-panel,
.related-panel {
  padding: 28px;
}

.text-panel h2,
.related-panel h2 {
  margin: 0 0 14px;
  font-size: 26px;
}

.text-panel p {
  margin: 0 0 18px;
  color: #374151;
  font-size: 17px;
}

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

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 26px;
  padding: 42px 0;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
}

.footer-grid h3 {
  margin: 0 0 12px;
  color: #fff;
}

.footer-grid a {
  display: block;
  margin: 8px 0;
  color: #d1d5db;
}

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

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

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

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

  .nav-toggle {
    display: block;
  }

  .hero {
    height: 520px;
  }

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

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

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

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

@media (max-width: 640px) {
  .nav-wrap {
    width: min(100% - 24px, 1200px);
  }

  .brand {
    font-size: 21px;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
  }

  .hero {
    height: 560px;
  }

  .hero-content {
    padding: 36px 0 58px;
  }

  .hero-control {
    display: none;
  }

  .grid,
  .grid.wide,
  .category-board,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .scroll-row {
    grid-auto-columns: 78vw;
  }

  .rank-item {
    grid-template-columns: 42px 86px 1fr;
  }

  .rank-go {
    display: none;
  }

  .rank-thumb {
    width: 86px;
    height: 58px;
  }

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

  .text-panel,
  .related-panel {
    padding: 22px;
  }
}
