:root {
  --primary-50: #fef3e2;
  --primary-400: #f7ad18;
  --primary-500: #d89410;
  --primary-600: #b6790d;
  --accent-50: #fff5ed;
  --accent-500: #f95c16;
  --accent-600: #ea420c;
  --secondary-50: #f5f7fa;
  --secondary-700: #3d486a;
  --secondary-800: #353d59;
  --secondary-900: #2f344c;
  --text: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft-shadow: 0 2px 15px -3px rgba(0, 0, 0, 0.07), 0 10px 20px -2px rgba(0, 0, 0, 0.04);
  --hover-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.15);
}

* {
  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(--text);
  background: linear-gradient(135deg, var(--secondary-50), #ffffff 42%, var(--accent-50));
  line-height: 1.65;
}

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

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

button,
input,
select {
  font: inherit;
}

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

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

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

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

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary-500), var(--accent-500));
  box-shadow: 0 10px 22px rgba(249, 92, 22, 0.22);
}

.brand-text,
.footer-brand {
  font-size: 20px;
  background: linear-gradient(90deg, var(--primary-600), var(--accent-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #374151;
  font-weight: 650;
  white-space: nowrap;
}

.nav-link {
  padding: 20px 0;
  transition: color 0.2s ease;
}

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

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #f3f4f6;
  cursor: pointer;
}

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

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 8px 0 16px;
  border-top: 1px solid var(--line);
}

.mobile-nav a {
  display: block;
  padding: 10px 14px;
  border-radius: 12px;
  color: #374151;
  font-weight: 650;
}

.mobile-nav a:hover {
  background: var(--primary-50);
  color: var(--primary-600);
}

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

.hero {
  position: relative;
  background: var(--secondary-900);
}

.hero-stage {
  position: relative;
  height: min(720px, 72vh);
  min-height: 520px;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hero-slide img,
.detail-hero > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}

.hero-overlay,
.detail-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(47, 52, 76, 0.95), rgba(47, 52, 76, 0.64) 45%, rgba(0, 0, 0, 0.18)), linear-gradient(0deg, rgba(0, 0, 0, 0.45), transparent 40%);
}

.hero-content {
  position: absolute;
  left: max(32px, calc((100% - 1180px) / 2));
  bottom: 92px;
  width: min(620px, calc(100% - 64px));
  color: #ffffff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--primary-300, #f9c052);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-content h1,
.sub-hero h1,
.detail-title-block h1 {
  margin: 0 0 18px;
  font-size: clamp(38px, 7vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.hero-content p,
.sub-hero p,
.detail-title-block p {
  margin: 0;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.86);
}

.hero-actions,
.sub-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.btn-primary,
.btn-ghost,
.more-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 20px;
  border-radius: 14px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary-500), var(--accent-500));
  box-shadow: 0 14px 28px rgba(249, 92, 22, 0.28);
}

.btn-ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(4px);
}

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

.hero-dots {
  position: absolute;
  left: max(32px, calc((100% - 1180px) / 2));
  bottom: 36px;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 34px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.36);
  cursor: pointer;
}

.hero-dot.is-active {
  background: var(--primary-400);
}

.hero-quick {
  width: min(1180px, calc(100% - 32px));
  margin: -42px auto 0;
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 18px;
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(10px);
}

.hero-quick strong {
  display: block;
  font-size: 18px;
}

.hero-quick span {
  color: var(--muted);
}

.hero-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-links a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--primary-700, #945f0a);
  background: var(--primary-50);
  font-weight: 700;
}

.section {
  padding: 78px 0;
}

.section-heading {
  margin-bottom: 26px;
}

.section-heading span {
  color: var(--accent-600);
  font-weight: 800;
}

.section-heading h2 {
  margin: 6px 0 8px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.16;
  letter-spacing: -0.04em;
}

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

.section-heading.compact h2 {
  font-size: 28px;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 34px;
  align-items: start;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 190px 190px;
  gap: 14px;
  margin: 0 0 24px;
  padding: 18px;
  border: 1px solid rgba(229, 231, 235, 0.92);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--soft-shadow);
}

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

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

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 4px rgba(216, 148, 16, 0.13);
}

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

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

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

.poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #e5e7eb, #f9fafb);
}

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

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

.poster-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(216, 148, 16, 0.92);
  font-size: 12px;
  font-weight: 800;
}

.card-body {
  padding: 16px;
}

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

.card-body h3 {
  margin: 8px 0 8px;
  font-size: 18px;
  line-height: 1.25;
}

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

.card-body p {
  min-height: 52px;
  margin: 0 0 12px;
  color: #4b5563;
  font-size: 14px;
}

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

.tag-row span {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--secondary-700);
  background: var(--secondary-50);
  font-size: 12px;
  font-weight: 700;
}

.ranking-panel,
.content-card,
.info-card,
.category-overview-card {
  border: 1px solid rgba(229, 231, 235, 0.86);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--soft-shadow);
}

.ranking-panel {
  padding: 22px;
}

.sticky-panel {
  position: sticky;
  top: 86px;
}

.rank-item {
  display: grid;
  grid-template-columns: auto 72px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.rank-item:last-of-type {
  border-bottom: 0;
}

.rank-number {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary-500), var(--accent-500));
  font-weight: 900;
}

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

.rank-copy strong,
.rank-copy em {
  display: block;
}

.rank-copy strong {
  line-height: 1.25;
}

.rank-copy em {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.more-link {
  margin-top: 18px;
  color: var(--primary-700, #945f0a);
  background: var(--primary-50);
}

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

.category-card {
  min-height: 178px;
  padding: 20px;
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), var(--accent-50));
  box-shadow: var(--soft-shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-card span {
  color: var(--primary-600);
  font-size: 20px;
  font-weight: 900;
}

.category-card p {
  margin: 10px 0;
  color: #4b5563;
}

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

.sub-hero {
  padding: 92px 0 84px;
  color: #ffffff;
  background: radial-gradient(circle at 20% 20%, rgba(249, 92, 22, 0.36), transparent 28%), linear-gradient(135deg, var(--secondary-900), var(--secondary-800));
}

.sub-hero .shell {
  max-width: 860px;
  margin-left: max(16px, calc((100% - 1180px) / 2));
}

.sub-hero h1 {
  font-size: clamp(40px, 6vw, 64px);
}

.sub-hero p {
  max-width: 760px;
}

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

.category-overview-card {
  padding: 26px;
}

.category-overview-card span {
  color: var(--accent-600);
  font-weight: 800;
}

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

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

.category-overview-card ul {
  display: grid;
  gap: 9px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.category-overview-card li a:hover {
  color: var(--primary-600);
}

.detail-hero {
  position: relative;
  height: min(640px, 70vh);
  min-height: 500px;
  overflow: hidden;
  color: #ffffff;
  background: var(--secondary-900);
}

.detail-hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 72px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.78);
}

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

.detail-title-block {
  max-width: 760px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 32px;
  align-items: start;
}

.detail-main {
  display: grid;
  gap: 24px;
}

.player-section {
  border-radius: 24px;
  overflow: hidden;
  background: #000000;
  box-shadow: var(--hover-shadow);
}

.player-shell {
  position: relative;
  background: #000000;
}

.site-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-start {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.25));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-start span {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  padding-left: 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary-500), var(--accent-500));
  box-shadow: 0 18px 40px rgba(249, 92, 22, 0.36);
  font-size: 34px;
}

.player-shell.is-started .player-start {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.content-card,
.info-card {
  padding: 26px;
}

.content-card h2,
.info-card h2 {
  margin: 0 0 14px;
  font-size: 26px;
}

.content-card p {
  margin: 0;
  color: #374151;
  font-size: 17px;
}

.detail-side {
  display: grid;
  gap: 18px;
  position: sticky;
  top: 86px;
}

.detail-poster {
  width: 100%;
  border-radius: 24px;
  box-shadow: var(--soft-shadow);
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.info-card dl {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px 14px;
  margin: 0 0 18px;
}

.info-card dt {
  color: var(--muted);
}

.info-card dd {
  margin: 0;
  font-weight: 700;
}

.info-card dd a {
  color: var(--primary-600);
}

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

.site-footer {
  margin-top: 40px;
  color: #d1d5db;
  background: linear-gradient(135deg, var(--secondary-900), var(--secondary-800));
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 52px 0;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 34px;
}

.footer-inner p {
  max-width: 440px;
  color: #d1d5db;
}

.footer-inner h3 {
  margin: 0 0 14px;
  color: #f9c052;
}

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

.footer-inner a:hover {
  color: var(--primary-400);
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #9ca3af;
}

@media (max-width: 1100px) {
  .desktop-nav {
    gap: 14px;
    font-size: 14px;
  }

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

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

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

  .ranking-panel,
  .detail-side,
  .sticky-panel {
    position: static;
  }

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

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

  .menu-button {
    display: block;
  }

  .hero-stage {
    min-height: 560px;
    height: 72vh;
  }

  .hero-content {
    left: 20px;
    bottom: 94px;
    width: calc(100% - 40px);
  }

  .hero-content h1,
  .sub-hero h1,
  .detail-title-block h1 {
    font-size: 42px;
  }

  .hero-dots {
    left: 20px;
  }

  .hero-quick {
    grid-template-columns: 1fr;
    margin-top: 0;
    border-radius: 0;
    width: 100%;
  }

  .section {
    padding: 54px 0;
  }

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

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

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

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

@media (max-width: 540px) {
  .header-inner {
    width: calc(100% - 24px);
  }

  .brand-text {
    font-size: 18px;
  }

  .shell {
    width: calc(100% - 24px);
  }

  .hero-stage,
  .detail-hero {
    min-height: 520px;
  }

  .hero-content p,
  .sub-hero p,
  .detail-title-block p {
    font-size: 16px;
  }

  .hero-actions,
  .sub-hero-actions {
    flex-direction: column;
  }

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

  .rank-item {
    grid-template-columns: auto 62px 1fr;
  }

  .rank-item img {
    width: 62px;
    height: 42px;
  }

  .content-card,
  .info-card,
  .ranking-panel {
    padding: 20px;
    border-radius: 18px;
  }
}
