:root {
  --primary: #f0641f;
  --primary-dark: #e14915;
  --primary-soft: #fef6ee;
  --secondary: #14b895;
  --secondary-soft: #f0fdf9;
  --ink: #171717;
  --muted: #6b7280;
  --line: #e5e7eb;
  --paper: #ffffff;
  --soft: #f8fafc;
  --dark: #111827;
  --shadow-soft: 0 12px 30px rgba(15, 23, 42, 0.08);
  --shadow-hard: 0 24px 60px rgba(15, 23, 42, 0.18);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: #fafafa;
  color: var(--ink);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.05);
  backdrop-filter: blur(14px);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 30px rgba(240, 100, 31, 0.25);
}

.brand-text {
  display: grid;
  gap: 0;
}

.brand-text strong {
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.brand-text em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

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

.nav-link {
  color: #374151;
  font-weight: 700;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-dark);
}

.nav-dropdown {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  top: 42px;
  right: 0;
  width: 180px;
  padding: 10px;
  display: none;
  grid-template-columns: 1fr;
  gap: 4px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
}

.dropdown-panel a {
  padding: 9px 12px;
  color: #374151;
  border-radius: 12px;
  font-size: 14px;
}

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

.nav-dropdown:hover .dropdown-panel {
  display: grid;
}

.menu-toggle {
  width: 42px;
  height: 42px;
  display: none;
  place-items: center;
  gap: 4px;
  border: 0;
  border-radius: 12px;
  background: #f3f4f6;
  cursor: pointer;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  display: block;
  background: #111827;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.mobile-nav a {
  padding: 10px 12px;
  border-radius: 12px;
  background: #f9fafb;
  color: #374151;
  font-weight: 700;
}

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

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-soft) 0%, #fff 52%, var(--secondary-soft) 100%);
  border-bottom: 1px solid rgba(229, 231, 235, 0.75);
}

.hero-glow {
  position: absolute;
  width: 360px;
  height: 360px;
  filter: blur(12px);
  border-radius: 999px;
  pointer-events: none;
}

.hero-glow-one {
  left: -120px;
  top: -130px;
  background: rgba(240, 100, 31, 0.16);
}

.hero-glow-two {
  right: -120px;
  bottom: -120px;
  background: rgba(20, 184, 149, 0.18);
}

.hero-inner {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  min-height: 560px;
  margin: 0 auto;
  padding: 72px 0 54px;
}

.hero-slide {
  display: none;
  align-items: center;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.65fr);
  gap: 56px;
}

.hero-slide.active {
  display: grid;
  animation: fadeUp 0.55s ease both;
}

.hero-copy h1 {
  margin: 10px 0 18px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(240, 100, 31, 0.1);
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 800;
}

.hero-lead {
  max-width: 780px;
  margin: 0 0 14px;
  color: #374151;
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 700;
}

.hero-summary {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

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

.hero-tags {
  margin: 24px 0;
}

.hero-tags span,
.detail-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #fff;
  color: #374151;
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 700;
}

.hero-tags span,
.detail-tags span {
  padding: 7px 11px;
}

.tag-row span {
  padding: 5px 9px;
  background: #f3f4f6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.primary-button,
.secondary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 14px 30px rgba(240, 100, 31, 0.28);
}

.secondary-button {
  background: var(--dark);
  color: #fff;
}

.ghost-button {
  background: #fff;
  color: #374151;
  border: 1px solid var(--line);
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px);
}

.hero-poster {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border-radius: 30px;
  background: linear-gradient(135deg, #fff3, #0001);
  box-shadow: var(--shadow-hard);
}

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

.hero-year {
  position: absolute;
  right: 18px;
  top: 18px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  backdrop-filter: blur(12px);
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #d1d5db;
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.active {
  width: 30px;
  background: var(--primary);
}

.filter-panel {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 0;
  padding: 18px;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 0.8fr);
  gap: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
}

.filter-input,
.filter-select {
  display: grid;
  gap: 6px;
}

.filter-panel label {
  color: #374151;
  font-size: 13px;
  font-weight: 800;
}

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

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: rgba(240, 100, 31, 0.55);
  box-shadow: 0 0 0 4px rgba(240, 100, 31, 0.12);
}

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

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

.section-kicker {
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-heading h2,
.page-hero h1,
.detail-copy h1 {
  margin: 6px 0 8px;
  color: #111827;
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.section-heading h2 {
  font-size: clamp(26px, 3.2vw, 38px);
}

.section-heading p,
.page-hero p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
}

.text-link {
  color: var(--primary-dark);
  font-weight: 900;
}

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

.category-tile {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  border-radius: 22px;
  background: var(--dark);
  box-shadow: var(--shadow-soft);
}

.category-tile img {
  transition: transform 0.45s ease;
}

.category-tile strong,
.category-tile em {
  position: absolute;
  left: 18px;
  right: 18px;
  z-index: 2;
  color: #fff;
}

.category-tile strong {
  bottom: 58px;
  font-size: 22px;
  line-height: 1.1;
}

.category-tile em {
  bottom: 18px;
  opacity: 0.88;
  font-size: 13px;
  font-style: normal;
}

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

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

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

.movie-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-soft), var(--secondary-soft));
}

.featured-card .poster {
  aspect-ratio: 16 / 9;
}

.poster img {
  transition: transform 0.45s ease;
}

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

.type-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  color: #fff;
  font-weight: 900;
}

.type-badge {
  left: 12px;
  top: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--primary);
  font-size: 12px;
}

.rank-badge {
  right: 12px;
  top: 12px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
}

.card-body {
  padding: 16px;
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.meta-line span:not(:last-child)::after {
  margin-left: 8px;
  content: "·";
  color: #c4c4c4;
}

.card-body h2 {
  margin: 8px 0 6px;
  font-size: 17px;
  line-height: 1.25;
}

.card-body h2 a:hover,
.ranking-info h2 a:hover,
.category-overview-card h2 a:hover {
  color: var(--primary-dark);
}

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

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

.compact-card {
  display: grid;
  grid-template-columns: auto 72px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.compact-card img {
  height: 72px;
  border-radius: 14px;
}

.compact-rank,
.compact-dot {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-weight: 900;
}

.compact-dot {
  font-size: 10px;
}

.compact-card strong,
.compact-card em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-card em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.page-hero,
.detail-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 32px auto 0;
  border-radius: 30px;
  background: linear-gradient(135deg, var(--primary-soft), #fff 50%, var(--secondary-soft));
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.simple-hero,
.category-hero {
  padding: 46px;
}

.category-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  align-items: center;
  gap: 28px;
}

.page-hero h1 {
  font-size: clamp(34px, 5vw, 56px);
}

.page-hero-poster {
  display: block;
  height: 220px;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 20px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
}

.overview-cover {
  position: relative;
  min-height: 150px;
  overflow: hidden;
  border-radius: 18px;
}

.overview-cover span {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.45), transparent);
}

.category-overview-card h2 {
  margin: 8px 0;
  font-size: 24px;
}

.category-overview-card p {
  color: var(--muted);
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 120px 64px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
}

.ranking-poster {
  display: block;
  height: 88px;
  overflow: hidden;
  border-radius: 16px;
}

.ranking-index {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 18px;
  font-weight: 900;
}

.ranking-info h2 {
  margin: 0 0 6px;
  font-size: 22px;
}

.ranking-info p {
  margin: 0 0 8px;
  color: var(--muted);
}

.heat-score {
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--dark);
  color: #fff;
  font-weight: 900;
}

.breadcrumb {
  width: min(1180px, calc(100% - 32px));
  margin: 24px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: var(--primary-dark);
}

.detail-hero {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 34px;
  padding: 34px;
  overflow: hidden;
}

.detail-poster {
  min-height: 470px;
  overflow: hidden;
  border-radius: 26px;
  box-shadow: var(--shadow-hard);
}

.detail-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.detail-copy h1 {
  font-size: clamp(36px, 5vw, 64px);
}

.detail-lead {
  color: #374151;
  font-size: 20px;
  font-weight: 800;
}

.detail-tags {
  margin: 8px 0 18px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 4px 0 26px;
}

.detail-meta span {
  padding: 8px 12px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  color: #374151;
  font-size: 13px;
  font-weight: 800;
}

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

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #050505;
  box-shadow: var(--shadow-hard);
}

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

.player-button {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border: 0;
  border-radius: 999px;
  background: rgba(240, 100, 31, 0.94);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.player-button:hover {
  transform: translate(-50%, -50%) scale(1.04);
}

.player-shell.playing .player-button {
  opacity: 0;
  pointer-events: none;
}

.detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.detail-content article {
  padding: 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
}

.detail-content h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.detail-content p {
  margin: 0;
  color: #374151;
}

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

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0;
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.8fr;
  gap: 36px;
}

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

.site-footer p,
.site-footer ul {
  margin: 0;
  padding: 0;
  color: #9ca3af;
}

.site-footer li {
  margin: 7px 0;
  list-style: none;
}

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

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

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

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .menu-toggle {
    display: grid;
  }

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

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

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

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

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

  .compact-list,
  .overview-grid,
  .detail-content,
  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .header-inner,
  .content-section,
  .page-hero,
  .detail-hero,
  .player-section,
  .detail-content,
  .filter-panel,
  .breadcrumb {
    width: min(100% - 24px, 1180px);
  }

  .brand-text em {
    display: none;
  }

  .hero-inner {
    width: min(100% - 24px, 1180px);
    padding: 46px 0 54px;
  }

  .hero-slide {
    gap: 28px;
  }

  .hero-poster {
    min-height: 300px;
    border-radius: 24px;
  }

  .hero-dots {
    bottom: 18px;
  }

  .filter-panel,
  .category-grid,
  .movie-grid,
  .dense-grid,
  .compact-list,
  .overview-grid,
  .ranking-row {
    grid-template-columns: 1fr;
  }

  .category-tile {
    min-height: 180px;
  }

  .simple-hero,
  .category-hero,
  .detail-hero {
    padding: 24px;
    border-radius: 24px;
  }

  .category-overview-card {
    grid-template-columns: 1fr;
  }

  .detail-poster {
    min-height: 360px;
  }

  .ranking-row {
    align-items: start;
  }

  .ranking-poster {
    height: 190px;
  }

  .heat-score {
    width: fit-content;
  }
}
