:root {
  --accent: #f97316;
  --accent-dark: #ea580c;
  --accent-soft: #fff7ed;
  --red: #ef4444;
  --dark: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #f8fafc;
  --card: #ffffff;
  --shadow: 0 18px 45px rgba(17, 24, 39, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--dark);
  background: var(--bg);
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.08);
  backdrop-filter: blur(14px);
}

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

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

.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent), var(--red));
  box-shadow: 0 12px 30px rgba(249, 115, 22, 0.3);
}

.logo-text {
  font-size: 1.35rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link,
.mobile-link {
  border-radius: 999px;
  padding: 9px 15px;
  color: #374151;
  font-weight: 650;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: var(--accent-dark);
  background: var(--accent-soft);
}

.nav-link:hover {
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  border: 0;
  border-radius: 12px;
  padding: 9px 13px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  cursor: pointer;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 14px;
}

.mobile-nav.is-open {
  display: grid;
  gap: 6px;
}

.mobile-link {
  display: block;
  border-radius: 12px;
}

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #fb923c 0%, #f97316 44%, #ef4444 100%);
  color: #ffffff;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  filter: blur(6px);
}

.hero::before {
  width: 420px;
  height: 420px;
  right: -160px;
  top: -130px;
}

.hero::after {
  width: 360px;
  height: 360px;
  left: -120px;
  bottom: -160px;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  align-items: center;
  gap: 46px;
  padding: 72px 0;
}

.hero-copy h1 {
  margin: 0 0 18px;
  max-width: 780px;
  font-size: clamp(2.35rem, 5.4vw, 4.8rem);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.hero-copy p {
  margin: 0 0 24px;
  max-width: 680px;
  color: #fff7ed;
  font-size: clamp(1rem, 2vw, 1.35rem);
}

.hero-badges,
.hero-actions,
.card-tags,
.detail-tags,
.category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-badges span,
.category-chips a {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 9px 14px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  backdrop-filter: blur(10px);
}

.hero-actions {
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  padding: 0 20px;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

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

.btn-primary {
  background: #ffffff;
  color: var(--accent-dark);
  box-shadow: 0 14px 34px rgba(17, 24, 39, 0.18);
}

.btn-soft {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  backdrop-filter: blur(10px);
}

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

.hero-slide {
  display: none;
  border-radius: 28px;
  overflow: hidden;
  background: #111827;
  box-shadow: 0 30px 80px rgba(17, 24, 39, 0.32);
}

.hero-slide.is-active {
  display: block;
  animation: fadeIn 0.55s ease both;
}

.hero-slide a {
  display: block;
  position: relative;
  min-height: 570px;
}

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

.hero-slide-content {
  position: absolute;
  inset: auto 0 0;
  padding: 110px 26px 26px;
  background: linear-gradient(to top, rgba(17, 24, 39, 0.96), rgba(17, 24, 39, 0.54), transparent);
}

.hero-slide-content h2 {
  margin: 0 0 10px;
  font-size: 1.75rem;
  line-height: 1.16;
}

.hero-slide-content p {
  margin: 0 0 14px;
  color: #e5e7eb;
}

.slide-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #ffffff;
  font-size: 0.88rem;
}

.slide-meta span {
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(249, 115, 22, 0.82);
}

.hero-dots {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: -34px;
  display: flex;
  gap: 10px;
  justify-content: center;
}

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

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

.section {
  padding: 56px 0;
}

.section-alt {
  background: #ffffff;
}

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

.section-heading h2,
.page-title h1,
.detail-title h1 {
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.14;
  letter-spacing: -0.03em;
}

.section-heading p,
.page-title p,
.category-card p,
.detail-title p {
  margin: 8px 0 0;
  color: var(--muted);
}

.more-link {
  color: var(--accent-dark);
  font-weight: 800;
}

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

.movie-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: var(--card);
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.06);
}

.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  background: #e5e7eb;
  overflow: hidden;
}

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

.movie-card:hover .poster-link img {
  transform: scale(1.05);
}

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(17, 24, 39, 0.62), transparent 52%);
}

.score-badge {
  position: absolute;
  right: 12px;
  top: 12px;
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(17, 24, 39, 0.82);
  color: #facc15;
  font-weight: 800;
  font-size: 0.82rem;
}

.card-body {
  padding: 16px;
}

.card-tags span,
.detail-tags span {
  border-radius: 999px;
  padding: 4px 9px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 700;
}

.card-body h3 {
  margin: 10px 0 8px;
  font-size: 1.05rem;
  line-height: 1.32;
}

.card-body h3 a:hover,
.rank-content h3 a:hover,
.breadcrumb a:hover {
  color: var(--accent-dark);
}

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

.card-meta,
.rank-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: #6b7280;
  font-size: 0.86rem;
}

.filter-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.05);
}

.search-box {
  flex: 1;
  display: grid;
  gap: 6px;
  color: #374151;
  font-weight: 800;
}

.search-box input,
.filter-select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 14px;
  background: #f9fafb;
  color: #111827;
  outline: none;
}

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

.filter-selects {
  display: flex;
  gap: 10px;
}

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

.category-card {
  display: grid;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.06);
}

.category-card h2 {
  margin: 0;
  font-size: 1.35rem;
}

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

.category-preview img {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  object-fit: cover;
  background: #e5e7eb;
}

.page-hero {
  padding: 52px 0;
  background: linear-gradient(135deg, #fff7ed, #ffffff 55%, #eff6ff);
  border-bottom: 1px solid var(--line);
}

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

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

.rank-item {
  display: grid;
  grid-template-columns: 78px 58px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 12px;
}

.rank-cover img {
  width: 78px;
  height: 104px;
  border-radius: 14px;
  object-fit: cover;
  background: #e5e7eb;
}

.rank-number {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--red));
  color: #ffffff;
  font-weight: 900;
}

.rank-content h3 {
  margin: 0 0 6px;
  font-size: 1.1rem;
}

.rank-content p {
  margin: 0 0 10px;
  color: var(--muted);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #6b7280;
  font-size: 0.94rem;
  margin: 24px 0;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) 360px;
  gap: 28px;
  align-items: start;
}

.player-card,
.detail-side,
.article-box {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.06);
  overflow: hidden;
}

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

.player-video {
  width: 100%;
  height: 100%;
  display: block;
  background: #0b1020;
}

.play-trigger {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 84px;
  height: 84px;
  border: 0;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.92);
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 20px 45px rgba(17, 24, 39, 0.36);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.play-trigger span {
  display: inline-block;
  margin-left: 5px;
  font-size: 2rem;
  line-height: 1;
}

.play-trigger:hover {
  transform: translate(-50%, -50%) scale(1.08);
}

.play-trigger.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.player-info,
.detail-side,
.article-box {
  padding: 22px;
}

.detail-title h1 {
  margin-bottom: 10px;
}

.detail-meta {
  margin: 14px 0 18px;
}

.detail-cover {
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 18px;
  background: #e5e7eb;
}

.detail-cover img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.article-grid {
  display: grid;
  gap: 22px;
  margin-top: 28px;
}

.article-box h2 {
  margin: 0 0 14px;
  font-size: 1.35rem;
}

.article-box p {
  margin: 0 0 12px;
  color: #374151;
}

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

.site-footer {
  margin-top: 64px;
  background: #111827;
  color: #d1d5db;
}

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

.site-footer h2,
.site-footer h3 {
  margin: 0 0 12px;
  color: #ffffff;
}

.site-footer p {
  margin: 0;
  max-width: 460px;
}

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

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

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

.hidden-by-filter {
  display: none !important;
}

.empty-state {
  display: none;
  border: 1px dashed #fdba74;
  border-radius: 20px;
  padding: 28px;
  background: #fff7ed;
  color: #9a3412;
  text-align: center;
  font-weight: 800;
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1060px) {
  .grid-cards,
  .related-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .hero-slider {
    min-height: 460px;
  }

  .hero-slide a,
  .hero-slide img {
    min-height: 460px;
    height: 460px;
  }
}

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

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

  .hero-inner {
    padding: 52px 0 70px;
  }

  .hero-slider {
    min-height: 410px;
  }

  .hero-slide a,
  .hero-slide img {
    min-height: 410px;
    height: 410px;
  }

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

  .section-heading,
  .filter-panel,
  .filter-selects {
    align-items: stretch;
    flex-direction: column;
  }

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

  .rank-cover img {
    width: 68px;
    height: 92px;
  }

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

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

  .logo-text {
    font-size: 1.08rem;
  }

  .grid-cards,
  .related-grid {
    grid-template-columns: 1fr;
  }

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

  .play-trigger {
    width: 68px;
    height: 68px;
  }
}
