* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #f9fafb;
  color: #111827;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

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

.brand-mark {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #ea580c, #dc2626);
  color: #ffffff;
  font-size: 15px;
  box-shadow: 0 12px 28px rgba(234, 88, 12, 0.28);
}

.brand-copy {
  display: flex;
  flex-direction: column;
}

.brand-name {
  background: linear-gradient(90deg, #ea580c, #dc2626);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
}

.brand-subtitle {
  color: #4b5563;
  font-size: 12px;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  color: #374151;
  font-weight: 600;
}

.nav-links a,
.mobile-menu a {
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active,
.mobile-menu a:hover,
.mobile-menu a.active {
  color: #ea580c;
}

.nav-search {
  padding: 8px 16px;
  border-radius: 999px;
  background: #f3f4f6;
}

.menu-button {
  display: none;
  border: 0;
  border-radius: 12px;
  background: #f3f4f6;
  padding: 8px 12px;
  color: #374151;
}

.mobile-menu {
  display: none;
  border-top: 1px solid #e5e7eb;
  padding: 10px 16px 18px;
  background: #ffffff;
}

.mobile-menu.open {
  display: grid;
  gap: 10px;
}

.mobile-menu a {
  padding: 10px 6px;
  color: #374151;
  font-weight: 600;
}

.hero {
  position: relative;
  height: 70vh;
  min-height: 560px;
  overflow: hidden;
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-slide.active {
  opacity: 1;
}

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

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.08));
}

.hero-content-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
}

.hero-content {
  max-width: 760px;
  color: #ffffff;
}

.hero-pill {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  background: #ea580c;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 18px;
}

.hero h1,
.hero h2 {
  margin: 0 0 18px;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero p {
  max-width: 680px;
  margin: 0 0 24px;
  color: #e5e7eb;
  font-size: 20px;
}

.hero-meta,
.detail-meta-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
  color: #f9fafb;
  font-weight: 600;
}

.hero-meta span,
.detail-meta-inline span {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  padding: 6px 12px;
  backdrop-filter: blur(10px);
}

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

.primary-button,
.ghost-button,
.cta-links a,
.side-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.primary-button {
  padding: 14px 28px;
  background: #ea580c;
  color: #ffffff;
  box-shadow: 0 18px 34px rgba(234, 88, 12, 0.26);
}

.primary-button:hover {
  background: #c2410c;
  transform: translateY(-2px) scale(1.02);
}

.ghost-button {
  padding: 13px 22px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.08);
}

.ghost-button:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 34px;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
}

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

.section-block {
  padding: 64px 0;
}

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

.section-head h2,
.page-hero h1,
.detail-content h2,
.detail-side h2 {
  margin: 0 0 8px;
  color: #111827;
  font-size: 34px;
  line-height: 1.15;
  font-weight: 900;
}

.section-head p,
.page-hero p {
  margin: 0;
  color: #6b7280;
}

.section-head a {
  color: #ea580c;
  font-weight: 800;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 42px rgba(15, 23, 42, 0.13);
}

.poster {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #111827;
}

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

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

.poster-badge,
.ranking-number {
  position: absolute;
  top: 12px;
  left: 12px;
  border-radius: 999px;
  background: #ea580c;
  color: #ffffff;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 800;
}

.movie-body {
  padding: 18px;
}

.movie-body h3 {
  margin: 0 0 8px;
  color: #111827;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 900;
}

.movie-body h3 a:hover {
  color: #ea580c;
}

.movie-body p {
  min-height: 48px;
  margin: 0 0 14px;
  color: #6b7280;
  font-size: 14px;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
  color: #4b5563;
  font-size: 13px;
  font-weight: 700;
}

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

.tag-list span {
  border-radius: 999px;
  background: #fff7ed;
  color: #c2410c;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 800;
}

.movie-card-horizontal {
  display: grid;
  grid-template-columns: 42% 1fr;
}

.poster-wide {
  aspect-ratio: auto;
  min-height: 100%;
}

.category-band {
  padding: 64px 0;
  background: #f3f4f6;
}

.light-head h2 {
  color: #111827;
}

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

.category-tile {
  overflow: hidden;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.07);
}

.category-tile a {
  position: relative;
  display: block;
  height: 160px;
  overflow: hidden;
  color: #ffffff;
}

.category-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.category-tile span {
  position: absolute;
  inset: auto 14px 14px 14px;
  z-index: 2;
  font-size: 22px;
  font-weight: 900;
}

.category-tile a::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.74), rgba(0, 0, 0, 0.05));
}

.category-tile p {
  min-height: 76px;
  margin: 0;
  padding: 16px;
  color: #4b5563;
  font-size: 14px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 42px 72px 1fr;
  gap: 14px;
  align-items: center;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #ffffff;
  padding: 12px;
}

.rank-item > span {
  color: #ea580c;
  font-size: 18px;
  font-weight: 900;
}

.rank-item img {
  width: 72px;
  height: 52px;
  border-radius: 10px;
  object-fit: cover;
}

.rank-item strong {
  display: block;
  color: #111827;
  font-size: 16px;
}

.rank-item em {
  display: block;
  color: #6b7280;
  font-size: 12px;
  font-style: normal;
}

.cta-section {
  background: linear-gradient(90deg, #ea580c, #dc2626);
  color: #ffffff;
  padding: 70px 0;
  text-align: center;
}

.cta-content h2 {
  margin: 14px 0;
  font-size: 42px;
  font-weight: 900;
}

.cta-content p {
  max-width: 720px;
  margin: 0 auto 28px;
  color: #ffedd5;
  font-size: 18px;
}

.cta-icon {
  display: inline-grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 26px;
}

.cta-links {
  justify-content: center;
}

.cta-links a {
  padding: 10px 18px;
  background: #ffffff;
  color: #ea580c;
}

.page-main {
  min-height: 70vh;
}

.page-hero {
  padding: 54px 0 20px;
}

.small-hero h1 {
  font-size: 46px;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1fr 220px 220px;
  gap: 14px;
  margin-top: 26px;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 14px;
  background: #ffffff;
  padding: 13px 16px;
  color: #111827;
  outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: #ea580c;
  box-shadow: 0 0 0 4px rgba(234, 88, 12, 0.12);
}

.empty-state {
  display: none;
  margin: 40px 0;
  border-radius: 18px;
  background: #ffffff;
  padding: 30px;
  color: #6b7280;
  text-align: center;
}

.empty-state.show {
  display: block;
}

.movie-card.hidden {
  display: none;
}

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

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

.ranking-card a {
  position: relative;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 22px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: #ffffff;
  padding: 14px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.ranking-card img {
  width: 180px;
  height: 116px;
  border-radius: 14px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.ranking-card h2 {
  margin: 4px 0 8px;
  color: #111827;
  font-size: 24px;
  font-weight: 900;
}

.ranking-card p {
  margin: 0 0 14px;
  color: #4b5563;
}

.ranking-card span:not(.ranking-number) {
  color: #ea580c;
  font-weight: 800;
}

.detail-hero {
  position: relative;
  height: 520px;
  overflow: hidden;
  background: #111827;
}

.detail-hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.12));
}

.detail-hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  color: #ffffff;
}

.detail-hero-content > div {
  max-width: 820px;
}

.breadcrumb {
  display: inline-block;
  margin-bottom: 18px;
  border-radius: 999px;
  background: #ea580c;
  padding: 8px 16px;
  font-weight: 800;
}

.detail-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(40px, 6vw, 66px);
  line-height: 1.05;
  font-weight: 900;
}

.detail-hero p {
  max-width: 760px;
  margin: 0 0 22px;
  color: #e5e7eb;
  font-size: 18px;
}

.player-section {
  padding: 52px 0 28px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #000000;
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.28);
  aspect-ratio: 16 / 9;
}

.movie-player,
.player-cover,
.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.movie-player {
  background: #000000;
}

.player-cover {
  z-index: 3;
  border: 0;
  padding: 0;
  background: #000000;
}

.player-cover img {
  object-fit: cover;
  opacity: 0.72;
}

.player-cover span {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  width: 92px;
  height: 92px;
  place-items: center;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: #ea580c;
  color: #ffffff;
  font-size: 34px;
  box-shadow: 0 22px 42px rgba(234, 88, 12, 0.38);
}

.player-shell.is-playing .player-cover {
  display: none;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 32px;
  padding: 34px 0 20px;
}

.detail-content,
.detail-side {
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.07);
}

.detail-content {
  padding: 34px;
}

.detail-content h2,
.detail-side h2 {
  font-size: 28px;
}

.detail-content p {
  margin: 0 0 28px;
  color: #374151;
  font-size: 16px;
  line-height: 1.9;
}

.detail-tags {
  margin-top: 8px;
}

.detail-side {
  align-self: start;
  padding: 28px;
}

.detail-side ul {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
}

.detail-side li {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid #f3f4f6;
  padding: 12px 0;
}

.detail-side strong {
  color: #6b7280;
}

.detail-side span {
  color: #111827;
  font-weight: 800;
  text-align: right;
}

.side-link {
  width: 100%;
  margin-top: 10px;
  padding: 12px 16px;
  background: #fff7ed;
  color: #c2410c;
}

.side-link:hover {
  background: #ffedd5;
}

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

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

.footer-brand h2,
.site-footer h2 {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 20px;
  font-weight: 900;
}

.footer-brand p,
.footer-desc,
.site-footer p,
.site-footer a {
  color: #9ca3af;
  font-size: 14px;
}

.footer-desc {
  margin: 16px 0 0;
  line-height: 1.8;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin: 8px 0;
}

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

.footer-bottom {
  border-top: 1px solid #374151;
  padding: 20px 16px;
  color: #9ca3af;
  text-align: center;
  font-size: 14px;
}

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

  .horizontal-grid,
  .rank-list,
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .nav-links {
    display: none;
  }

  .menu-button {
    display: block;
  }

  .brand-name {
    font-size: 22px;
  }

  .brand-subtitle {
    font-size: 11px;
  }

  .hero {
    height: 78vh;
    min-height: 600px;
  }

  .hero-shade,
  .detail-hero-shade {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.25));
  }

  .hero-content-wrap,
  .detail-hero-content {
    align-items: end;
    padding-bottom: 72px;
  }

  .hero p,
  .detail-hero p {
    font-size: 16px;
  }

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

  .movie-grid,
  .horizontal-grid,
  .category-grid,
  .full-category-grid,
  .rank-list,
  .footer-grid,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .movie-card-horizontal {
    grid-template-columns: 1fr;
  }

  .filter-panel {
    grid-template-columns: 1fr;
  }

  .ranking-card a {
    grid-template-columns: 1fr;
  }

  .ranking-card img {
    width: 100%;
    height: 190px;
  }

  .detail-hero {
    height: 620px;
  }

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

  .detail-content,
  .detail-side {
    padding: 22px;
  }
}
