:root {
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --orange-50: #fff7ed;
  --orange-100: #ffedd5;
  --orange-200: #fed7aa;
  --orange-400: #fb923c;
  --orange-500: #f97316;
  --orange-600: #ea580c;
  --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-soft: 0 10px 28px rgba(234, 88, 12, 0.12);
  --shadow-strong: 0 22px 55px rgba(234, 88, 12, 0.2);
  --radius-lg: 18px;
  --radius-xl: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--gray-800);
  background: linear-gradient(180deg, var(--orange-50), #ffffff 34%, var(--amber-50));
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(255, 251, 235, 0.96), rgba(255, 247, 237, 0.96), rgba(255, 251, 235, 0.96));
  box-shadow: 0 8px 24px rgba(217, 119, 6, 0.12);
  backdrop-filter: blur(18px);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 76px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--amber-400), var(--orange-500));
  box-shadow: 0 10px 22px rgba(249, 115, 22, 0.28);
  font-size: 17px;
  transition: transform 0.25s ease;
}

.brand:hover .brand-icon {
  transform: scale(1.08) rotate(-3deg);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong,
.footer-brand strong {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: transparent;
  background: linear-gradient(90deg, var(--amber-600), var(--orange-600));
  -webkit-background-clip: text;
  background-clip: text;
}

.brand-text em {
  margin-top: 4px;
  font-size: 12px;
  font-style: normal;
  color: var(--gray-500);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-link {
  position: relative;
  padding: 8px 0;
  font-size: 14px;
  font-weight: 650;
  color: var(--gray-700);
  transition: color 0.25s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: var(--orange-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--orange-600);
}

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

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--orange-100);
  color: var(--gray-700);
  font-size: 22px;
  cursor: pointer;
}

.mobile-panel {
  display: none;
  border-top: 1px solid rgba(251, 146, 60, 0.22);
}

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

.mobile-links {
  display: grid;
  gap: 8px;
  padding: 12px 0 18px;
}

.mobile-link {
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--gray-700);
  font-weight: 650;
}

.mobile-link:hover,
.mobile-link.is-active {
  color: var(--orange-600);
  background: var(--orange-100);
}

.hero {
  padding: 54px 0 72px;
  overflow: hidden;
  background: radial-gradient(circle at top left, rgba(251, 191, 36, 0.26), transparent 34%), radial-gradient(circle at 75% 18%, rgba(249, 115, 22, 0.2), transparent 28%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.88fr);
  gap: 48px;
  align-items: center;
}

.hero-copy {
  display: grid;
  gap: 24px;
}

.hero-badge,
.section-kicker,
.page-kicker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--orange-600);
  background: linear-gradient(90deg, var(--orange-100), var(--amber-100));
  font-size: 14px;
  font-weight: 750;
}

.hero h1,
.page-hero h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1.03;
  letter-spacing: -0.06em;
}

.gradient-text {
  color: transparent;
  background: linear-gradient(90deg, var(--amber-600), var(--orange-600), var(--amber-600));
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-lead,
.page-hero p {
  margin: 0;
  color: var(--gray-600);
  font-size: 18px;
  line-height: 1.8;
}

.hero-actions,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 14px;
  font-weight: 750;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(90deg, var(--orange-500), var(--amber-500));
  box-shadow: 0 14px 28px rgba(249, 115, 22, 0.26);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow-strong);
}

.btn-secondary {
  color: var(--gray-700);
  background: #fff;
  border: 2px solid var(--orange-200);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

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

.hero-pills a,
.tag-list span,
.filter-button {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--gray-700);
  font-size: 13px;
  font-weight: 650;
  border: 1px solid rgba(251, 146, 60, 0.2);
  box-shadow: 0 8px 20px rgba(251, 146, 60, 0.08);
}

.hero-pills a:hover,
.filter-button:hover,
.filter-button.is-active {
  color: #fff;
  background: linear-gradient(90deg, var(--orange-500), var(--amber-500));
}

.hero-carousel {
  position: relative;
  min-height: 476px;
}

.hero-glow {
  position: absolute;
  inset: -18px;
  border-radius: 34px;
  background: linear-gradient(90deg, var(--orange-400), var(--amber-400));
  opacity: 0.2;
  filter: blur(28px);
}

.hero-stage {
  position: relative;
  height: 476px;
  overflow: hidden;
  border-radius: 30px;
  background: var(--gray-900);
  box-shadow: var(--shadow-strong);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide-layer {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.84));
}

.hero-slide-content {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  color: #fff;
}

.hero-slide-content span {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--orange-500);
  font-size: 13px;
  font-weight: 700;
}

.hero-slide-content h2 {
  margin: 0 0 10px;
  font-size: 30px;
  line-height: 1.18;
}

.hero-slide-content p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.75;
}

.hero-slide-content a {
  display: inline-flex;
  padding: 10px 16px;
  border-radius: 12px;
  color: var(--orange-600);
  background: #fff;
  font-weight: 750;
}

.hero-dots {
  position: absolute;
  left: 24px;
  top: 24px;
  display: flex;
  gap: 8px;
  z-index: 4;
}

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  cursor: pointer;
}

.hero-dot.is-active {
  width: 26px;
  background: #fff;
}

.main-section {
  padding: 58px 0;
}

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

.section-head h2 {
  margin: 10px 0 6px;
  color: var(--gray-800);
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.15;
}

.section-head p {
  margin: 0;
  color: var(--gray-500);
}

.section-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--orange-600);
  font-weight: 750;
}

.section-more span {
  transition: transform 0.25s ease;
}

.section-more:hover span {
  transform: translateX(4px);
}

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

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

.movie-list {
  display: grid;
  gap: 16px;
}

.movie-card {
  display: flex;
  min-width: 0;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.poster-frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--gray-100);
}

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

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

.card-body {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.card-badges em {
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--orange-100);
  color: var(--orange-600);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.card-title {
  display: -webkit-box;
  overflow: hidden;
  color: var(--gray-800);
  font-size: 17px;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

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

.card-desc {
  display: -webkit-box;
  overflow: hidden;
  min-height: 42px;
  color: var(--gray-600);
  font-size: 14px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--gray-500);
  font-size: 13px;
}

.movie-card-horizontal {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  align-items: stretch;
}

.movie-card-horizontal .poster-frame {
  aspect-ratio: auto;
  height: 100%;
}

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

.category-card {
  position: relative;
  display: grid;
  gap: 16px;
  overflow: hidden;
  min-height: 206px;
  padding: 24px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #ffffff, var(--orange-50));
  box-shadow: var(--shadow-soft);
}

.category-card::before {
  content: "";
  position: absolute;
  right: -46px;
  top: -46px;
  width: 140px;
  height: 140px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange-400), var(--amber-400));
  opacity: 0.18;
}

.category-card h2,
.category-card h3 {
  margin: 0;
  font-size: 24px;
}

.category-card p {
  margin: 0;
  color: var(--gray-600);
  line-height: 1.7;
}

.category-card span {
  color: var(--orange-600);
  font-weight: 800;
}

.page-hero {
  padding: 48px 0;
  color: #fff;
  background: linear-gradient(90deg, var(--orange-500), var(--amber-500), var(--orange-500));
}

.page-hero .page-kicker {
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
}

.page-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.92);
}

.toolbar {
  display: grid;
  gap: 18px;
  margin-bottom: 26px;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.search-input {
  width: 100%;
  min-height: 54px;
  border: 2px solid var(--orange-200);
  border-radius: 16px;
  padding: 0 18px;
  color: var(--gray-700);
  font-size: 16px;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

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

.filter-button {
  border: 0;
  cursor: pointer;
}

.result-status {
  color: var(--gray-500);
  font-size: 14px;
}

.rank-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 54px 136px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.07);
}

.rank-num {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange-500), var(--amber-500));
  font-weight: 850;
}

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

.rank-copy h2,
.rank-copy h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.rank-copy p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 8px;
  color: var(--gray-600);
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.rank-copy span {
  color: var(--gray-500);
  font-size: 13px;
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--gray-500);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: var(--orange-600);
}

.panel {
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.panel-padding {
  padding: 24px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #000;
  box-shadow: var(--shadow-strong);
}

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

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: #fff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.58));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-circle {
  display: inline-flex;
  width: 72px;
  height: 72px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
  font-size: 28px;
}

.player-cover strong {
  font-size: 18px;
}

.detail-title {
  margin: 0 0 12px;
  color: var(--gray-800);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
}

.detail-lead {
  margin: 0 0 18px;
  color: var(--gray-600);
  font-size: 18px;
  line-height: 1.75;
}

.info-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0;
  padding: 18px 0;
  border-top: 1px solid var(--gray-100);
  border-bottom: 1px solid var(--gray-100);
}

.info-row span {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--gray-600);
  background: var(--gray-50);
  font-size: 14px;
}

.article-block h2,
.sidebar h2 {
  margin: 0 0 16px;
  font-size: 24px;
}

.article-block p {
  margin: 0;
  color: var(--gray-700);
  font-size: 16px;
  line-height: 1.9;
}

.sidebar {
  display: grid;
  gap: 20px;
}

.sidebar-card {
  padding: 22px;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.brand-card {
  color: #fff;
  background: linear-gradient(135deg, var(--orange-500), var(--amber-500));
}

.brand-card p {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.75;
}

.brand-card a {
  display: inline-flex;
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  color: var(--orange-600);
  background: #fff;
  font-weight: 750;
}

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

.related-item {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.related-item img {
  width: 112px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
}

.related-item strong {
  display: -webkit-box;
  overflow: hidden;
  margin-bottom: 5px;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.related-item:hover strong {
  color: var(--orange-600);
}

.related-item span {
  color: var(--gray-500);
  font-size: 13px;
}

.static-page {
  max-width: 860px;
}

.static-page h2 {
  margin-top: 28px;
}

.static-page p,
.static-page li {
  color: var(--gray-700);
  line-height: 1.9;
}

.site-footer {
  margin-top: 50px;
  border-top: 1px solid rgba(251, 146, 60, 0.2);
  background: linear-gradient(180deg, var(--amber-50), var(--orange-50));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 34px;
  padding: 44px 0;
}

.footer-grid p {
  color: var(--gray-600);
  line-height: 1.75;
}

.footer-grid h2 {
  margin: 0 0 14px;
  font-size: 18px;
}

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

.footer-links a {
  color: var(--gray-600);
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--orange-600);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0 28px;
  color: var(--gray-500);
  font-size: 14px;
  border-top: 1px solid rgba(251, 146, 60, 0.18);
}

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

@media (max-width: 1024px) {
  .hero-grid,
  .detail-layout,
  .rank-layout {
    grid-template-columns: 1fr;
  }

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

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

  .mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .hero {
    padding-top: 34px;
  }

  .hero-grid {
    gap: 30px;
  }

  .hero-stage,
  .hero-carousel {
    min-height: 390px;
    height: 390px;
  }

  .section-head,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .movie-grid,
  .movie-grid.compact,
  .category-grid,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .detail-layout {
    gap: 20px;
  }
}

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

  .brand-text strong {
    font-size: 20px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 40px;
  }

  .hero-stage,
  .hero-carousel {
    min-height: 340px;
    height: 340px;
  }

  .hero-slide-content {
    left: 18px;
    right: 18px;
    bottom: 18px;
  }

  .hero-slide-content h2 {
    font-size: 24px;
  }

  .movie-grid,
  .movie-grid.compact,
  .category-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .movie-card-horizontal,
  .rank-item,
  .related-item {
    grid-template-columns: 1fr;
  }

  .movie-card-horizontal .poster-frame,
  .rank-item img,
  .related-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
  }
}

.mini-posters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.mini-posters img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  object-fit: cover;
}
