:root {
  --bg: #f9fafb;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --brand: #ea580c;
  --brand-2: #f97316;
  --brand-3: #f59e0b;
  --dark: #111827;
  --card: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
  --shadow-strong: 0 28px 70px rgba(15, 23, 42, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.86);
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
}

.nav-shell {
  max-width: 1280px;
  margin: 0 auto;
  min-height: 72px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 22px;
}

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

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--brand-3));
  box-shadow: 0 10px 24px rgba(234, 88, 12, 0.32);
  font-size: 14px;
  padding-left: 2px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
}

.desktop-nav a,
.mobile-panel a {
  color: #374151;
  font-weight: 700;
  transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.mobile-panel a:hover {
  color: var(--brand);
  transform: translateY(-1px);
}

.nav-search {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  overflow: hidden;
  min-width: 260px;
}

.nav-search input,
.page-tools input,
.search-panel input,
.search-panel select {
  border: 0;
  outline: 0;
  background: #ffffff;
  color: var(--ink);
  font-size: 14px;
}

.nav-search input {
  width: 100%;
  padding: 12px 14px 12px 18px;
}

.nav-search button {
  border: 0;
  background: var(--brand);
  color: #ffffff;
  padding: 12px 18px;
  font-weight: 800;
  cursor: pointer;
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  font-size: 28px;
  color: var(--brand);
  cursor: pointer;
}

.mobile-panel {
  display: none;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.mobile-panel.open {
  display: grid;
}

.home-hero,
.page-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(120deg, #f97316 0%, #f59e0b 52%, #fb923c 100%);
}

.home-hero {
  min-height: 640px;
  display: flex;
  align-items: center;
}

.hero-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.28), transparent 30%), radial-gradient(circle at 80% 10%, rgba(255, 237, 213, 0.26), transparent 28%), rgba(0, 0, 0, 0.08);
}

.hero-stage {
  position: relative;
  z-index: 1;
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
}

.hero-slide {
  display: none;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.72fr);
  align-items: center;
  gap: 56px;
  padding: 72px 0;
}

.hero-slide.active {
  display: grid;
  animation: fadeIn 0.5s ease both;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: inherit;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.hero-copy h1,
.page-hero h1 {
  margin: 22px 0 20px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.hero-copy p,
.page-hero p {
  max-width: 760px;
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.90);
  font-size: clamp(18px, 2vw, 24px);
}

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.tag-row span {
  border-radius: 999px;
  padding: 6px 11px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
}

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

.primary-btn,
.ghost-btn,
.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--brand-3));
  box-shadow: 0 18px 34px rgba(234, 88, 12, 0.28);
}

.home-hero .primary-btn {
  background: #ffffff;
  color: var(--brand);
}

.ghost-btn {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.12);
}

.primary-btn:hover,
.ghost-btn:hover,
.section-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.primary-btn.small {
  min-height: 40px;
  padding: 0 18px;
  font-size: 14px;
}

.hero-poster {
  position: relative;
  min-height: 480px;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: 0 38px 90px rgba(92, 38, 8, 0.46);
  transform: rotate(1.5deg);
  background: rgba(255, 255, 255, 0.16);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  transition: transform 0.35s ease;
}

.hero-poster:hover img {
  transform: scale(1.06);
}

.hero-poster span {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 2;
  padding: 16px 18px;
  border-radius: 22px;
  background: rgba(17, 24, 39, 0.78);
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
  backdrop-filter: blur(14px);
}

.hero-poster:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.34), transparent 52%);
}

.hero-dots {
  display: flex;
  gap: 10px;
  position: absolute;
  left: 0;
  bottom: 24px;
}

.hero-dot {
  width: 44px;
  height: 8px;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.38);
  cursor: pointer;
}

.hero-dot.active {
  background: #ffffff;
}

.content-section {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
  padding: 76px 0;
}

.content-section.tinted {
  width: 100%;
  max-width: none;
  padding-left: max(24px, calc((100% - 1280px) / 2));
  padding-right: max(24px, calc((100% - 1280px) / 2));
  background: linear-gradient(135deg, #eff6ff, #fff7ed);
}

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

.section-head h2 {
  margin: 0 0 6px;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.18;
  font-weight: 950;
  letter-spacing: -0.04em;
}

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

.section-link {
  min-height: 42px;
  color: var(--brand);
  background: #fff7ed;
  border: 1px solid #fed7aa;
}

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

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

.movie-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 22px;
  background: var(--card);
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.movie-card .poster {
  position: relative;
  display: block;
  height: 320px;
  overflow: hidden;
  background: linear-gradient(135deg, #fed7aa, #fdba74);
}

.movie-card.compact .poster {
  height: 230px;
}

.movie-card .poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.movie-card .poster em {
  position: absolute;
  right: 14px;
  top: 14px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--brand-2);
  color: #ffffff;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.movie-info {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 18px;
}

.movie-info strong {
  color: var(--ink);
  font-size: 20px;
  line-height: 1.28;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-info small,
.rank-body small {
  color: var(--muted);
  font-weight: 700;
}

.one-line {
  color: #4b5563;
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-info .tag-row span,
.rank-body .tag-row span,
.detail-tags span {
  background: #fff7ed;
  color: var(--brand);
}

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

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

.rank-item {
  position: relative;
  display: grid;
  grid-template-columns: 60px 112px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 14px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
}

.rank-number {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-3));
  color: #ffffff;
  font-size: 20px;
  font-weight: 950;
}

.rank-item img {
  width: 112px;
  height: 144px;
  border-radius: 16px;
  object-fit: cover;
}

.rank-body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 7px;
}

.rank-body strong {
  font-size: 20px;
  font-weight: 950;
}

.rank-body > span:not(.tag-row) {
  color: #4b5563;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.category-card {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border-radius: 26px;
  color: #ffffff;
  box-shadow: var(--shadow);
}

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.category-card:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(17, 24, 39, 0.84), rgba(17, 24, 39, 0.18));
}

.category-card span {
  position: absolute;
  z-index: 2;
  left: 20px;
  right: 20px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.category-card strong {
  font-size: 24px;
  font-weight: 950;
}

.category-card small {
  color: rgba(255, 255, 255, 0.84);
}

.page-hero {
  padding: 84px max(24px, calc((100% - 1280px) / 2));
}

.mini-hero h1 {
  font-size: clamp(36px, 5vw, 58px);
}

.page-tools,
.search-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.page-tools input,
.search-panel input,
.search-panel select {
  min-height: 50px;
  border-radius: 999px;
  padding: 0 18px;
  box-shadow: 0 12px 24px rgba(92, 38, 8, 0.12);
}

.search-panel input {
  min-width: min(100%, 360px);
  flex: 1;
}

.search-panel select {
  min-width: 150px;
}

.category-overview-card {
  overflow: hidden;
  border-radius: 26px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.category-covers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 170px;
  overflow: hidden;
}

.category-covers img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-overview-body {
  padding: 22px;
}

.category-overview-body h1 {
  margin: 0 0 10px;
  font-size: 26px;
}

.category-overview-body p {
  min-height: 78px;
  color: var(--muted);
}

.detail-wrap {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
  padding: 34px 0 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--brand);
  font-weight: 800;
}

.detail-hero {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 36px;
  align-items: center;
  padding: 34px;
  border-radius: 34px;
  background: linear-gradient(135deg, #111827, #431407 56%, #ea580c);
  color: #ffffff;
  box-shadow: var(--shadow-strong);
}

.detail-poster {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.42);
}

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

.detail-copy h1 {
  margin: 18px 0 16px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.lead {
  max-width: 780px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 20px;
}

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

.meta-grid span {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
}

.meta-grid strong {
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
}

.player-section {
  padding-top: 54px;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000000;
  box-shadow: var(--shadow-strong);
  aspect-ratio: 16 / 9;
}

.player-box video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000000;
  object-fit: contain;
}

.player-overlay {
  position: absolute;
  inset: 0;
  border: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: #ffffff;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.74), rgba(0, 0, 0, 0.18));
  transition: opacity 0.2s ease;
}

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

.play-ring {
  width: 92px;
  height: 92px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-3));
  box-shadow: 0 24px 60px rgba(234, 88, 12, 0.44);
  font-size: 34px;
  padding-left: 6px;
}

.player-overlay strong {
  font-size: clamp(20px, 3vw, 34px);
}

.text-card {
  padding: 34px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.text-card h2 {
  margin: 0 0 12px;
  font-size: 28px;
  font-weight: 950;
}

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

.text-card p:last-child {
  margin-bottom: 0;
}

.site-footer {
  margin-top: 36px;
  background: #111827;
  color: #ffffff;
  padding: 56px max(24px, calc((100% - 1280px) / 2)) 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 42px;
}

.site-footer p,
.footer-links a {
  color: #9ca3af;
}

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

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

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

.copyright {
  margin: 34px 0 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  text-align: center;
  font-size: 14px;
}

[data-filter-list] .is-hidden {
  display: none;
}

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

@media (max-width: 1120px) {
  .desktop-nav,
  .nav-search {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

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

  .hero-poster {
    min-height: 420px;
  }

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

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

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

@media (max-width: 780px) {
  .nav-shell,
  .hero-stage,
  .content-section,
  .detail-wrap {
    width: calc(100% - 32px);
    padding-left: 0;
    padding-right: 0;
  }

  .home-hero {
    min-height: auto;
  }

  .hero-slide {
    padding: 54px 0 76px;
    gap: 30px;
  }

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

  .hero-poster {
    min-height: 360px;
    transform: none;
  }

  .hero-dots {
    bottom: 28px;
  }

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

  .movie-grid,
  .compact-grid,
  .category-grid,
  .category-overview-grid,
  .rank-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .movie-card .poster,
  .movie-card.compact .poster {
    height: 240px;
  }

  .movie-info {
    padding: 14px;
  }

  .movie-info strong {
    font-size: 17px;
  }

  .rank-item {
    grid-template-columns: 46px 88px minmax(0, 1fr);
    gap: 12px;
  }

  .rank-number {
    width: 38px;
    height: 38px;
    font-size: 16px;
  }

  .rank-item img {
    width: 88px;
    height: 116px;
  }

  .rank-body .tag-row {
    display: none;
  }

  .page-hero {
    padding: 58px 16px;
  }

  .detail-hero {
    padding: 20px;
    border-radius: 26px;
  }

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

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

@media (max-width: 520px) {
  .brand {
    font-size: 20px;
  }

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

  .movie-card .poster,
  .movie-card.compact .poster {
    height: 300px;
  }

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

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

  .rank-body > span:not(.tag-row) {
    -webkit-line-clamp: 1;
  }

  .search-panel input,
  .search-panel select,
  .page-tools input {
    width: 100%;
  }
}
