:root {
  --orange: #f97316;
  --orange-dark: #ea580c;
  --red: #dc2626;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.10);
  --shadow-lg: 0 18px 50px rgba(15, 23, 42, 0.18);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.5;
  color: var(--gray-900);
  background: linear-gradient(180deg, var(--gray-50), var(--gray-100));
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(229, 231, 235, 0.9);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  color: var(--gray-900);
  white-space: nowrap;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  font-size: 14px;
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 10px 20px rgba(249, 115, 22, 0.28);
}

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

.main-nav a {
  padding: 10px 13px;
  border-radius: 10px;
  font-weight: 650;
  color: var(--gray-700);
  transition: color 0.2s ease, background 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--orange-dark);
  background: #fff7ed;
}

.header-search {
  width: min(300px, 28vw);
  display: flex;
  align-items: center;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}

.header-search input {
  width: 100%;
  border: 0;
  outline: 0;
  padding: 10px 4px 10px 16px;
  color: var(--gray-700);
}

.header-search button {
  border: 0;
  color: #fff;
  background: var(--orange);
  padding: 10px 16px;
  cursor: pointer;
}

.mobile-toggle,
.mobile-panel {
  display: none;
}

.mobile-toggle {
  margin-left: auto;
  border: 0;
  border-radius: 10px;
  background: #fff7ed;
  color: var(--orange-dark);
  padding: 9px 12px;
  cursor: pointer;
}

.mobile-panel {
  border-top: 1px solid var(--gray-200);
  background: #fff;
  padding: 10px 16px 16px;
}

.mobile-panel a {
  display: block;
  padding: 12px 8px;
  border-radius: 10px;
  font-weight: 650;
}

.mobile-panel a:hover {
  background: #fff7ed;
  color: var(--orange-dark);
}

.hero {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: #000;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}

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

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

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.52) 45%, rgba(0, 0, 0, 0.06));
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding-bottom: 76px;
}

.hero-text {
  max-width: 760px;
  color: #fff;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  margin-bottom: 18px;
  border-radius: 999px;
  color: #fff7ed;
  background: rgba(249, 115, 22, 0.88);
  box-shadow: 0 12px 25px rgba(249, 115, 22, 0.28);
  font-weight: 700;
}

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 6vw, 60px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero p {
  max-width: 680px;
  margin: 0 0 22px;
  color: #e5e7eb;
  font-size: clamp(16px, 2.2vw, 20px);
}

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

.hero-tags span,
.tag-list span,
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 11px;
  font-style: normal;
  font-size: 13px;
  font-weight: 700;
}

.hero-tags span {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
}

.btn-primary,
.btn-ghost,
.btn-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 12px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  color: #fff;
  background: var(--orange-dark);
  box-shadow: 0 14px 30px rgba(234, 88, 12, 0.32);
}

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

.btn-ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.22);
}

.btn-light {
  color: var(--orange-dark);
  background: #fff7ed;
}

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

.hero-control:hover {
  background: rgba(0, 0, 0, 0.72);
  transform: translateY(-50%) scale(1.05);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

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

.hero-dots button.is-active {
  width: 34px;
  background: var(--orange);
}

.section-stack {
  padding: 56px 0 72px;
}

.section-block {
  margin-top: 54px;
}

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

.section-title h2,
.page-hero h1,
.detail-title h1 {
  margin: 0;
  color: var(--gray-900);
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.18;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-title p,
.page-hero p {
  margin: 8px 0 0;
  color: var(--gray-600);
}

.more-link {
  color: var(--orange-dark);
  font-weight: 800;
  white-space: nowrap;
}

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

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

.movie-card {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #111827, #374151);
}

.poster-wrap img,
.thumb img,
.detail-poster img,
.related-card img,
.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

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

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

.poster-play,
.play-float {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(249, 115, 22, 0.92);
  box-shadow: 0 14px 26px rgba(249, 115, 22, 0.35);
}

.poster-play {
  left: 50%;
  bottom: 18px;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  opacity: 0;
  transform: translateX(-50%) translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .poster-play {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.badge-corner {
  position: absolute;
  top: 12px;
  right: 12px;
  color: #fff;
  background: var(--orange);
  border-radius: 9px;
}

.card-info,
.card-body {
  display: block;
  padding: 16px;
}

.card-info strong,
.card-body strong,
.rank-item strong,
.related-card strong,
.category-card strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--gray-900);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 17px;
  line-height: 1.35;
  transition: color 0.2s ease;
}

.movie-card:hover strong,
.rank-item:hover strong,
.related-card:hover strong,
.category-card:hover strong {
  color: var(--orange-dark);
}

.card-info em,
.card-body em,
.rank-item em {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 8px;
  color: var(--gray-600);
  font-size: 14px;
  font-style: normal;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
  color: var(--gray-500);
  font-size: 13px;
}

.tag-line {
  display: block;
  overflow: hidden;
  margin-top: 10px;
  color: #9a3412;
  font-size: 12px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.orange-band {
  margin: 58px 0;
  padding: 48px 0;
  background: linear-gradient(90deg, #fff7ed, #fef2f2);
}

.horizontal-scroll {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding: 4px 0 20px;
  scroll-snap-type: x mandatory;
}

.horizontal-scroll .movie-card {
  width: 285px;
  min-width: 285px;
  scroll-snap-align: start;
}

.thumb {
  position: relative;
  display: block;
  overflow: hidden;
  height: 172px;
  background: linear-gradient(135deg, #111827, #374151);
}

.thumb-wide {
  aspect-ratio: 16 / 9;
  height: auto;
}

.play-float {
  top: 50%;
  left: 50%;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.92);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.rank-panel,
.soft-panel,
.detail-card,
.related-panel {
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}

.rank-panel,
.soft-panel {
  padding: 30px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 52px 92px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  transition: background 0.2s ease, transform 0.2s ease;
}

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

.rank-no {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  font-size: 18px;
  font-weight: 900;
}

.rank-item img {
  width: 92px;
  height: 62px;
  object-fit: cover;
  border-radius: 12px;
}

.rank-item small {
  display: block;
  margin-top: 6px;
  color: var(--gray-500);
}

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

.category-card {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 180px;
  border-radius: 22px;
  color: #fff;
  background: linear-gradient(135deg, var(--gray-900), var(--gray-700));
  box-shadow: var(--shadow);
}

.category-card img {
  position: absolute;
  inset: 0;
  opacity: 0.56;
}

.category-card span {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.18));
}

.category-card strong,
.category-card em {
  position: relative;
  z-index: 1;
  display: block;
  padding: 0 20px;
}

.category-card strong {
  padding-top: 96px;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
}

.category-card em {
  margin-top: 8px;
  color: #f3f4f6;
  font-style: normal;
  font-size: 14px;
}

.page-hero {
  color: #fff;
  background: linear-gradient(120deg, var(--orange-dark), var(--red));
  padding: 58px 0;
}

.page-hero h1 {
  color: #fff;
}

.page-hero p {
  max-width: 760px;
  color: #ffedd5;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  margin-bottom: 30px;
  padding: 16px;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow);
}

.filter-bar input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  padding: 0 16px;
  outline: 0;
}

.filter-bar input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.filter-bar button {
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: var(--orange-dark);
  padding: 0 22px;
  font-weight: 800;
  cursor: pointer;
}

.player-shell {
  background: #000;
}

.player-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

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

.player-box video {
  width: 100%;
  height: 100%;
  background: #000;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: rgba(0, 0, 0, 0.30);
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.2s ease, visibility 0.2s ease;
}

.player-cover:hover {
  background: rgba(0, 0, 0, 0.50);
}

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

.player-button {
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: var(--orange-dark);
  box-shadow: 0 18px 50px rgba(234, 88, 12, 0.45);
  font-size: 36px;
  transform: scale(1);
  transition: transform 0.2s ease, background 0.2s ease;
}

.player-cover:hover .player-button {
  transform: scale(1.08);
  background: #c2410c;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
  gap: 30px;
  padding: 36px 0 72px;
}

.detail-card,
.related-panel {
  padding: 30px;
}

.detail-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.detail-line {
  margin: 0 0 24px;
  border-radius: 16px;
  color: var(--gray-800);
  background: linear-gradient(90deg, var(--gray-50), var(--gray-100));
  padding: 16px;
  font-size: 18px;
  font-style: italic;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin: 20px 0;
  color: var(--gray-600);
  font-weight: 650;
}

.tag-list {
  margin-bottom: 24px;
}

.tag-list span {
  color: #c2410c;
  background: #ffedd5;
}

.prose h2,
.related-panel h2,
.soft-panel h2 {
  margin: 0 0 14px;
  color: var(--gray-900);
  font-size: 22px;
  font-weight: 900;
}

.prose p {
  margin: 0 0 20px;
  color: var(--gray-700);
  line-height: 1.85;
}

.review-box {
  margin-top: 14px;
  border-radius: 18px;
  background: linear-gradient(90deg, #fff7ed, #fef2f2);
  padding: 20px;
}

.related-panel {
  position: sticky;
  top: 92px;
}

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

.related-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 14px;
  padding: 12px;
  border-radius: 16px;
  transition: background 0.2s ease;
}

.related-card:hover {
  background: #fff7ed;
}

.related-card span:first-child {
  display: block;
  width: 112px;
  height: 80px;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(135deg, #111827, #374151);
}

.related-card small {
  display: block;
  margin-top: 8px;
  color: var(--gray-500);
}

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

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

.footer-brand {
  color: #fff;
}

.site-footer p {
  max-width: 420px;
  color: #cbd5e1;
}

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

.footer-links {
  display: grid;
  gap: 9px;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  padding: 18px 16px;
  text-align: center;
  color: #9ca3af;
  font-size: 14px;
}

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

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

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

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

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

  .related-panel {
    position: static;
  }
}

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

  .main-nav,
  .header-search {
    display: none;
  }

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

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

  .brand {
    font-size: 18px;
  }

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

  .hero {
    height: 540px;
  }

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

  .hero-control {
    width: 40px;
    height: 40px;
  }

  .hero-prev {
    left: 12px;
  }

  .hero-next {
    right: 12px;
  }

  .hero-actions {
    gap: 10px;
  }

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

  .section-stack {
    padding-top: 36px;
  }

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

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

  .card-info,
  .card-body {
    padding: 12px;
  }

  .card-info strong,
  .card-body strong {
    font-size: 15px;
  }

  .card-info em,
  .tag-line {
    display: none;
  }

  .rank-list {
    grid-template-columns: 1fr;
  }

  .rank-item {
    grid-template-columns: 42px 78px minmax(0, 1fr);
    gap: 10px;
  }

  .rank-no {
    width: 36px;
    height: 36px;
    font-size: 15px;
  }

  .rank-item img {
    width: 78px;
    height: 54px;
  }

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

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

  .filter-bar button {
    min-height: 46px;
  }

  .detail-card,
  .related-panel,
  .rank-panel,
  .soft-panel {
    padding: 20px;
    border-radius: 18px;
  }

  .detail-title {
    display: block;
  }

  .detail-line {
    font-size: 16px;
  }

  .player-button {
    width: 70px;
    height: 70px;
    font-size: 30px;
  }

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