:root {
  --brand: #f97316;
  --brand-dark: #ea580c;
  --brand-soft: #fff7ed;
  --ink: #111827;
  --muted: #6b7280;
  --line: #fed7aa;
  --panel: #ffffff;
  --night: #111827;
}

body {
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 28%, #f9fafb 100%);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(254, 215, 170, 0.8);
}

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

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 24px;
  color: #1f2937;
  white-space: nowrap;
}

.logo-mark {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #f59e0b);
  border-radius: 14px;
  box-shadow: 0 14px 28px rgba(249, 115, 22, 0.28);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-weight: 700;
  color: #374151;
}

.main-nav a:hover {
  color: var(--brand-dark);
}

.search-form {
  width: min(320px, 100%);
  position: relative;
}

.search-form input {
  width: 100%;
  border: 1px solid var(--line);
  background: #ffffff;
  border-radius: 999px;
  padding: 12px 48px 12px 18px;
  outline: none;
  box-shadow: 0 6px 18px rgba(249, 115, 22, 0.08);
}

.search-form button {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--brand);
}

.mobile-nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: var(--brand-dark);
  background: var(--brand-soft);
}

.mobile-panel {
  display: none;
  padding: 0 0 18px;
}

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

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

.mobile-panel a:hover {
  color: var(--brand-dark);
  background: var(--brand-soft);
}

.hero {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  background: linear-gradient(135deg, #ffedd5 0%, #fffbeb 52%, #ffffff 100%);
}

.hero-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(64px);
  opacity: 0.58;
  animation: glowPulse 6s ease-in-out infinite;
}

.hero-glow.one {
  width: 260px;
  height: 260px;
  top: 88px;
  right: 9%;
  background: #fb923c;
}

.hero-glow.two {
  width: 360px;
  height: 360px;
  bottom: 52px;
  right: 22%;
  background: #fbbf24;
  animation-delay: 1.4s;
}

.hero-inner {
  position: relative;
  z-index: 3;
  min-height: 600px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: 56px;
  padding: 70px 0;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  color: #c2410c;
  background: rgba(255, 237, 213, 0.9);
  border: 1px solid rgba(253, 186, 116, 0.8);
  border-radius: 999px;
  font-weight: 800;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #111827;
  margin: 0 0 24px;
}

.hero h1 span {
  color: var(--brand);
}

.hero-lead {
  font-size: 20px;
  line-height: 1.8;
  color: #4b5563;
  max-width: 720px;
  margin-bottom: 30px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

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

.btn-primary {
  color: #ffffff;
  background: var(--brand);
  box-shadow: 0 18px 34px rgba(249, 115, 22, 0.3);
}

.btn-primary:hover {
  background: var(--brand-dark);
}

.btn-ghost {
  color: #c2410c;
  background: #ffffff;
  border: 2px solid var(--brand);
  box-shadow: 0 14px 30px rgba(249, 115, 22, 0.12);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 620px;
}

.hero-stat {
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(254, 215, 170, 0.9);
  box-shadow: 0 14px 28px rgba(17, 24, 39, 0.05);
}

.hero-stat strong {
  display: block;
  font-size: 28px;
  color: #111827;
}

.hero-stat span {
  color: #6b7280;
  font-size: 14px;
}

.hero-showcase {
  position: relative;
}

.hero-slider {
  position: relative;
  min-height: 470px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(14px) scale(0.98);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
}

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

.feature-card {
  overflow: hidden;
  border-radius: 30px;
  background: #ffffff;
  box-shadow: 0 30px 70px rgba(17, 24, 39, 0.18);
  border: 1px solid rgba(255, 237, 213, 0.95);
}

.feature-image {
  position: relative;
  height: 310px;
  background: linear-gradient(135deg, #fb923c, #f59e0b);
  overflow: hidden;
}

.feature-image img,
.poster-frame img,
.card-image img,
.related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-image::after,
.card-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0) 0%, rgba(17, 24, 39, 0.5) 100%);
}

.feature-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  padding: 7px 12px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(249, 115, 22, 0.95);
  font-weight: 800;
}

.feature-body {
  padding: 24px;
}

.feature-body h2,
.feature-body h3 {
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 10px;
}

.feature-body p {
  color: #4b5563;
  line-height: 1.75;
  margin-bottom: 18px;
}

.slider-dots {
  display: flex;
  gap: 9px;
  justify-content: center;
  margin-top: 20px;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #fed7aa;
}

.slider-dot.is-active {
  width: 28px;
  background: var(--brand);
}

.section {
  padding: 72px 0;
}

.section-soft {
  background: #fff7ed;
}

.section-title {
  text-align: center;
  margin-bottom: 44px;
}

.section-title h2,
.page-title h1 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 900;
  color: #111827;
  margin-bottom: 12px;
}

.section-title p,
.page-title p {
  font-size: 18px;
  color: #6b7280;
  line-height: 1.7;
}

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

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

.movie-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid rgba(254, 215, 170, 0.7);
  box-shadow: 0 14px 28px rgba(17, 24, 39, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 52px rgba(17, 24, 39, 0.14);
}

.card-image {
  position: relative;
  height: 220px;
  background: linear-gradient(135deg, #f97316, #f59e0b);
  overflow: hidden;
}

.card-tag {
  position: absolute;
  left: 14px;
  top: 14px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #c2410c;
  font-weight: 800;
  font-size: 13px;
}

.card-score {
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.75);
  color: #ffffff;
  font-weight: 800;
  font-size: 13px;
}

.card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.card-body h3 {
  font-size: 19px;
  line-height: 1.35;
  font-weight: 900;
  color: #111827;
}

.card-meta,
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: #6b7280;
  font-size: 14px;
}

.card-body p {
  color: #4b5563;
  line-height: 1.7;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-list span,
.category-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  color: #c2410c;
  background: #ffedd5;
  font-size: 13px;
  font-weight: 700;
}

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

.category-box {
  padding: 28px;
  border-radius: 28px;
  background: #ffffff;
  border: 1px solid rgba(254, 215, 170, 0.85);
  box-shadow: 0 16px 36px rgba(17, 24, 39, 0.07);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.category-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 48px rgba(17, 24, 39, 0.12);
}

.category-box strong {
  display: block;
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 10px;
}

.category-box p {
  color: #6b7280;
  line-height: 1.7;
  margin-bottom: 18px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 72px 116px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid rgba(254, 215, 170, 0.8);
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.06);
}

.rank-number {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #fbbf24);
  font-size: 22px;
  font-weight: 900;
}

.rank-thumb {
  height: 86px;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, #fb923c, #f59e0b);
}

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

.page-hero {
  padding: 74px 0 44px;
  background: linear-gradient(135deg, #fff7ed, #ffffff);
}

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

.filter-panel {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 14px;
  margin: 0 0 30px;
  padding: 18px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid rgba(254, 215, 170, 0.82);
  box-shadow: 0 14px 30px rgba(17, 24, 39, 0.06);
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fffaf5;
  outline: none;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 0.9fr);
  gap: 32px;
  align-items: start;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #0f172a;
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.26);
}

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

.play-cover {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(2, 6, 23, 0.88), rgba(124, 45, 18, 0.64));
  cursor: pointer;
}

.play-cover.is-hidden {
  display: none;
}

.play-panel {
  text-align: center;
  color: #ffffff;
  padding: 20px;
}

.play-button {
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: var(--brand);
  box-shadow: 0 20px 40px rgba(249, 115, 22, 0.42);
  font-size: 38px;
  margin-bottom: 18px;
}

.detail-card,
.side-card {
  border-radius: 28px;
  background: #ffffff;
  border: 1px solid rgba(254, 215, 170, 0.82);
  box-shadow: 0 16px 36px rgba(17, 24, 39, 0.08);
}

.detail-card {
  padding: 30px;
  margin-top: 24px;
}

.detail-card h1 {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.15;
  font-weight: 900;
  margin: 0 0 16px;
}

.detail-card h2 {
  font-size: 24px;
  font-weight: 900;
  margin: 28px 0 12px;
}

.detail-card p {
  color: #374151;
  line-height: 1.9;
  font-size: 17px;
  margin-bottom: 12px;
}

.side-card {
  padding: 22px;
}

.poster-frame {
  height: 360px;
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(135deg, #fb923c, #f59e0b);
  margin-bottom: 18px;
}

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

.related-link {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  color: #111827;
}

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

.related-thumb {
  height: 72px;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(135deg, #fb923c, #f59e0b);
}

.related-link strong {
  display: block;
  font-weight: 900;
  margin-bottom: 4px;
}

.related-link span {
  display: block;
  color: #6b7280;
  font-size: 13px;
}

.content-list {
  columns: 4 220px;
  column-gap: 24px;
}

.content-list a {
  display: block;
  break-inside: avoid;
  padding: 10px 0;
  color: #374151;
  border-bottom: 1px solid #ffedd5;
}

.content-list a:hover {
  color: var(--brand-dark);
}

.site-footer {
  color: #d1d5db;
  background: linear-gradient(180deg, #111827, #1f2937);
  margin-top: 72px;
}

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

.footer-grid h3 {
  color: #ffffff;
  font-weight: 900;
  margin-bottom: 14px;
}

.footer-grid p,
.footer-grid a {
  color: #d1d5db;
  line-height: 1.8;
}

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

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

.empty-results {
  display: none;
  padding: 28px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid #fed7aa;
  color: #6b7280;
}

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

@keyframes glowPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.55;
  }

  50% {
    transform: scale(1.08);
    opacity: 0.78;
  }
}

@media (max-width: 1100px) {
  .grid-cards,
  .grid-cards.compact,
  .search-results,
  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .hero-showcase {
    max-width: 620px;
  }
}

@media (max-width: 820px) {
  .main-nav,
  .header-inner > .search-form {
    display: none;
  }

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

  .hero {
    min-height: auto;
  }

  .hero-inner {
    min-height: auto;
    padding: 46px 0;
    gap: 30px;
  }

  .hero-stats,
  .filter-panel,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .grid-cards,
  .grid-cards.compact,
  .search-results,
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rank-item {
    grid-template-columns: 54px 92px 1fr;
  }

  .rank-score {
    grid-column: 3;
  }
}

@media (max-width: 560px) {
  .site-container {
    width: min(100% - 22px, 1280px);
  }

  .logo-link {
    font-size: 20px;
  }

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

  .hero-lead {
    font-size: 17px;
  }

  .grid-cards,
  .grid-cards.compact,
  .search-results,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .card-image {
    height: 240px;
  }

  .feature-image {
    height: 250px;
  }

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

  .rank-thumb {
    display: none;
  }
}
