:root {
  --brand: #ea580c;
  --brand-dark: #c2410c;
  --brand-red: #dc2626;
  --brand-soft: #fff7ed;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --page: #f9fafb;
  --panel: #ffffff;
  --shadow: 0 18px 45px rgba(17, 24, 39, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.08);
  backdrop-filter: blur(16px);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--brand);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

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

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

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: #374151;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

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

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

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: var(--brand-soft);
  cursor: pointer;
}

.mobile-menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: var(--brand);
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--line);
  background: #ffffff;
}

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

.mobile-nav {
  display: grid;
  gap: 6px;
  padding: 12px 20px 18px;
}

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

.mobile-category-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.mobile-sub-link {
  padding: 10px 12px;
  border-radius: 12px;
  color: #4b5563;
  background: #f3f4f6;
  font-weight: 700;
}

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(120deg, var(--brand), var(--brand-red));
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 12%, rgba(253, 224, 71, 0.42), transparent 28%),
    radial-gradient(circle at 16% 86%, rgba(255, 255, 255, 0.18), transparent 32%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.26), rgba(0, 0, 0, 0.08));
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.hero-slide-inner {
  position: relative;
  z-index: 2;
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.75fr);
  align-items: center;
  gap: 48px;
  padding: 82px 0 88px;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border-radius: 999px;
  color: #fffbeb;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.24);
  font-size: 14px;
  font-weight: 800;
  backdrop-filter: blur(14px);
}

.hero h1,
.page-hero h1,
.detail-info h1 {
  margin: 18px 0 18px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.06;
  letter-spacing: -0.06em;
  font-weight: 900;
}

.hero h1 span {
  display: block;
  color: #fde047;
}

.hero p {
  max-width: 680px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(17px, 2.2vw, 22px);
}

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

.btn-primary,
.btn-secondary,
.btn-ghost,
.card-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 14px;
  border: 0;
  cursor: pointer;
  font-weight: 850;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn-primary {
  color: var(--brand);
  background: #ffffff;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.18);
}

.btn-secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.30);
}

.btn-ghost {
  color: var(--brand);
  background: var(--brand-soft);
}

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

.hero-poster-card {
  position: relative;
  width: min(420px, 100%);
  margin-left: auto;
  padding: 14px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 32px 80px rgba(17, 24, 39, 0.32);
  backdrop-filter: blur(20px);
}

.hero-poster-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 22px;
  background: rgba(0, 0, 0, 0.18);
}

.hero-poster-info {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(17, 24, 39, 0.76);
  backdrop-filter: blur(12px);
}

.hero-poster-info strong {
  display: block;
  font-size: 19px;
}

.hero-poster-info span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.hero-controls {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
}

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

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

.hero-search {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  gap: 10px;
  max-width: 600px;
  margin-top: 26px;
  padding: 8px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(14px);
}

.hero-search input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 0 14px;
  color: var(--ink);
  background: #ffffff;
  outline: none;
}

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

.hero-search button {
  min-height: 46px;
  border: 0;
  border-radius: 13px;
  padding: 0 18px;
  color: #ffffff;
  background: #111827;
  font-weight: 850;
  cursor: pointer;
}

.section {
  padding: 72px 0;
}

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

.section-kicker {
  margin: 0 0 6px;
  color: var(--brand);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.section-header h2,
.detail-content h2,
.player-section h2,
.related-section h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.2;
  letter-spacing: -0.04em;
}

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

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

.stat-card,
.category-tile,
.info-panel,
.movie-card,
.rank-item,
.filter-panel,
.detail-content,
.player-panel {
  background: var(--panel);
  border: 1px solid rgba(229, 231, 235, 0.82);
  box-shadow: var(--shadow);
}

.stat-card {
  padding: 24px;
  border-radius: 22px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover,
.category-tile:hover,
.movie-card:hover,
.rank-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 58px rgba(17, 24, 39, 0.14);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  background: var(--brand-soft);
  font-size: 22px;
}

.stat-card strong {
  display: block;
  margin-top: 14px;
  font-size: 23px;
  line-height: 1.2;
}

.stat-card span {
  color: var(--muted);
  font-size: 14px;
}

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

.category-tile {
  display: grid;
  min-height: 170px;
  padding: 22px;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: auto -28px -28px auto;
  width: 108px;
  height: 108px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(234, 88, 12, 0.20), rgba(220, 38, 38, 0.18));
}

.category-tile strong {
  position: relative;
  z-index: 2;
  font-size: 21px;
}

.category-tile span {
  position: relative;
  z-index: 2;
  color: var(--muted);
  font-size: 14px;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.poster-link {
  display: block;
}

.poster-frame {
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #111827, #7c2d12);
}

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

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

.card-body {
  padding: 18px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.card-meta span {
  padding: 4px 8px;
  border-radius: 999px;
  background: #f3f4f6;
}

.card-body h3 {
  margin: 13px 0 8px;
  font-size: 19px;
  line-height: 1.28;
}

.card-body h3 a:hover {
  color: var(--brand);
}

.card-body p {
  min-height: 48px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 15px;
}

.tag-row span,
.detail-tags span,
.rank-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--brand);
  background: var(--brand-soft);
  font-size: 12px;
  font-weight: 800;
}

.card-action {
  width: 100%;
  min-height: 40px;
  color: var(--brand);
  background: var(--brand-soft);
}

.movie-card-row {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
}

.movie-card-row .poster-frame {
  height: 100%;
  aspect-ratio: auto;
}

.page-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(120deg, var(--brand), var(--brand-red));
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(253, 224, 71, 0.32), transparent 28%), rgba(0, 0, 0, 0.12);
}

.page-hero-inner {
  position: relative;
  z-index: 2;
  padding: 86px 0;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.90);
  font-size: 19px;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 180px;
  gap: 14px;
  align-items: end;
  margin-top: -34px;
  padding: 18px;
  border-radius: 22px;
  position: relative;
  z-index: 5;
}

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

.no-result {
  display: none;
  padding: 28px;
  border-radius: 20px;
  color: var(--muted);
  background: #ffffff;
  border: 1px dashed var(--line);
  text-align: center;
}

.no-result.is-visible {
  display: block;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 54px 92px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 22px;
}

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

.rank-cover {
  width: 92px;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  object-fit: cover;
  background: #111827;
}

.rank-main h2,
.rank-main h3 {
  margin: 0 0 6px;
  font-size: 20px;
}

.rank-main p {
  margin: 0;
  color: var(--muted);
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: #111827;
}

.detail-bg {
  position: absolute;
  inset: 0;
  opacity: 0.26;
}

.detail-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(12px) saturate(1.12);
  transform: scale(1.08);
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.94), rgba(17, 24, 39, 0.62), rgba(17, 24, 39, 0.82));
}

.detail-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
  padding: 70px 0;
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.36);
  background: #1f2937;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
}

.breadcrumb a:hover {
  color: #fde047;
}

.detail-info h1 {
  margin-top: 12px;
}

.detail-info p {
  max-width: 820px;
  color: rgba(255, 255, 255, 0.90);
  font-size: 18px;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 26px;
}

.detail-tags span {
  color: #ffedd5;
  background: rgba(255, 255, 255, 0.16);
}

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

.player-panel {
  margin-top: 20px;
  padding: 18px;
  border-radius: 28px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #000000;
  aspect-ratio: 16 / 9;
}

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

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.56));
  cursor: pointer;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

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

.player-cover-button {
  width: 88px;
  height: 88px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--brand-red));
  font-size: 32px;
  cursor: pointer;
  box-shadow: 0 20px 54px rgba(234, 88, 12, 0.35);
}

.detail-content {
  padding: 32px;
  border-radius: 26px;
}

.detail-content h2 {
  margin-top: 0;
  font-size: 28px;
}

.detail-content p {
  color: #374151;
  font-size: 17px;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
}

.info-panel {
  padding: 26px;
  border-radius: 26px;
  align-self: start;
}

.info-panel h2 {
  margin: 0 0 14px;
  font-size: 22px;
}

.info-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.info-list div {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f3f4f6;
}

.info-list dt {
  color: var(--muted);
  font-weight: 800;
}

.info-list dd {
  margin: 0;
  color: #111827;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 1fr;
  gap: 38px;
  padding: 54px 0;
}

.footer-brand {
  color: #ffffff;
  margin-bottom: 14px;
}

.site-footer p {
  max-width: 460px;
  margin: 0;
  color: #9ca3af;
}

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

.site-footer a:not(.footer-brand) {
  display: block;
  margin: 8px 0;
  color: #d1d5db;
}

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

.footer-bottom {
  padding: 20px;
  color: #9ca3af;
  border-top: 1px solid #1f2937;
  text-align: center;
}

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

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

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

  .hero-poster-card {
    margin: 0;
  }

  .detail-poster {
    max-width: 280px;
  }
}

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

  .mobile-menu-button {
    display: block;
  }

  .hero,
  .hero-slider,
  .hero-slide-inner {
    min-height: 720px;
  }

  .hero-slide-inner {
    padding: 52px 0 88px;
    gap: 28px;
  }

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

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

  .movie-card-row,
  .rank-item {
    grid-template-columns: 86px minmax(0, 1fr);
  }

  .rank-num,
  .rank-badge {
    display: none;
  }

  .rank-cover {
    width: 86px;
  }

  .section-header {
    display: block;
  }

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

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

  .brand {
    font-size: 20px;
  }

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

  .hero h1,
  .page-hero h1,
  .detail-info h1 {
    font-size: 36px;
  }

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