* {
  box-sizing: border-box;
}

:root {
  --bg: #0a0a0a;
  --panel: #171717;
  --panel-soft: #1f1f1f;
  --line: #2a2a2a;
  --text: #f5f5f5;
  --muted: #a3a3a3;
  --dim: #737373;
  --amber: #f59e0b;
  --amber-strong: #d97706;
  --shadow: 0 26px 80px rgba(245, 158, 11, 0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: radial-gradient(circle at top left, rgba(245, 158, 11, 0.12), transparent 34rem), var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  background: rgba(23, 23, 23, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
}

.nav-bar {
  max-width: 1280px;
  height: 68px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #111;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.25);
  font-weight: 900;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 20px;
  letter-spacing: 0.04em;
}

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

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

.nav-link,
.mobile-link {
  color: #d4d4d4;
  border-radius: 12px;
  padding: 10px 15px;
  font-size: 14px;
  font-weight: 700;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.mobile-link:hover,
.nav-link.active,
.mobile-link.active {
  color: #111;
  background: var(--amber);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  padding: 10px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--text);
  border-radius: 8px;
}

.mobile-nav {
  display: none;
  padding: 8px 24px 18px;
  border-top: 1px solid var(--line);
}

.mobile-nav.is-open {
  display: grid;
  gap: 8px;
}

.page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 104px 24px 48px;
}

.hero {
  position: relative;
  min-height: 70vh;
  margin-top: 68px;
  overflow: hidden;
  background: #000;
}

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

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  min-height: 70vh;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.7) 36%, rgba(0, 0, 0, 0.14) 100%);
  z-index: 2;
}

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

.hero-inner {
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: 0 24px;
}

.hero-copy {
  max-width: 720px;
  animation: liftIn 0.9s ease both;
}

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

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 10px;
  border-radius: 999px;
  color: #111;
  background: rgba(245, 158, 11, 0.92);
  font-size: 12px;
  font-weight: 800;
}

.hero h1 {
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.05;
  margin: 18px 0;
  letter-spacing: -0.06em;
}

.hero p {
  max-width: 620px;
  color: #d4d4d4;
  font-size: clamp(16px, 2vw, 21px);
  margin: 0 0 34px;
}

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

.primary-button,
.secondary-button,
.section-more,
.play-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  border-radius: 13px;
  padding: 0 20px;
  border: 1px solid transparent;
  font-weight: 900;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.primary-button {
  color: #111;
  background: var(--amber);
}

.primary-button:hover,
.section-more:hover,
.play-link:hover {
  background: var(--amber-strong);
  transform: translateY(-2px);
}

.secondary-button {
  color: #f5f5f5;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

.secondary-button:hover {
  border-color: var(--amber);
  color: var(--amber);
  transform: translateY(-2px);
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 8;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  transform: translateY(-50%);
}

.hero-control:hover {
  background: rgba(0, 0, 0, 0.74);
}

.hero-control.prev {
  left: 24px;
}

.hero-control.next {
  right: 24px;
}

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

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

.hero-dot.is-active {
  width: 34px;
  background: var(--amber);
}

.content-section {
  margin: 54px 0;
}

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

.section-kicker {
  display: inline-flex;
  color: var(--amber);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-heading h1,
.section-heading h2,
.page-title h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.16;
}

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

.section-more,
.play-link {
  color: #111;
  background: var(--amber);
  white-space: nowrap;
}

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

.movie-card {
  background: rgba(23, 23, 23, 0.94);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 158, 11, 0.84);
  box-shadow: var(--shadow);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #111;
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72), transparent 60%);
  opacity: 0.72;
}

.type-badge,
.rank-badge,
.score-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  backdrop-filter: blur(12px);
}

.type-badge {
  right: 12px;
  bottom: 12px;
}

.rank-badge {
  left: 12px;
  top: 12px;
  color: #111;
  background: var(--amber);
}

.score-badge {
  right: 12px;
  top: 12px;
  color: #111;
  background: var(--amber);
}

.movie-card-body {
  padding: 17px;
}

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

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

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

.meta-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 16px;
  color: var(--dim);
  font-size: 13px;
}

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

.category-tile {
  min-height: 154px;
  padding: 22px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(23, 23, 23, 0.98));
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  border-color: var(--amber);
}

.category-tile strong {
  display: block;
  font-size: 21px;
  margin-bottom: 8px;
}

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

.search-panel {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 180px 180px;
  gap: 14px;
  margin: 28px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(23, 23, 23, 0.84);
}

.search-panel label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

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

.search-panel input:focus,
.search-panel select:focus {
  border-color: var(--amber);
}

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

.rank-item {
  display: grid;
  grid-template-columns: 70px 210px minmax(0, 1fr) 120px;
  align-items: center;
  gap: 20px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(23, 23, 23, 0.9);
}

.rank-num {
  color: var(--amber);
  font-size: 24px;
  font-weight: 1000;
  text-align: center;
}

.rank-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 14px;
  background: #111;
}

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

.rank-info h2,
.rank-info h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

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

.rank-score {
  text-align: right;
  color: var(--amber);
  font-size: 28px;
  font-weight: 1000;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(320px, 44%) minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}

.detail-poster {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: #111;
  box-shadow: var(--shadow);
}

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

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

.detail-info p {
  color: #d4d4d4;
  font-size: 17px;
}

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

.detail-meta span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 13px;
  color: #d4d4d4;
  background: rgba(255, 255, 255, 0.04);
  font-size: 14px;
  font-weight: 800;
}

.player-section {
  margin-top: 48px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(245, 158, 11, 0.25);
  background: #000;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
}

.movie-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  cursor: pointer;
}

.play-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #111;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.66));
}

.play-layer span {
  width: 82px;
  height: 82px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--amber);
  font-size: 32px;
  font-weight: 1000;
  box-shadow: 0 18px 50px rgba(245, 158, 11, 0.34);
}

.play-layer.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.article-panel {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px;
  background: rgba(23, 23, 23, 0.88);
}

.article-panel h2 {
  margin: 0 0 14px;
  font-size: 26px;
}

.article-panel p {
  color: #d4d4d4;
  margin: 0 0 16px;
}

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

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

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(17, 17, 17, 0.95);
  margin-top: 70px;
  padding: 48px 24px 24px;
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 34px;
}

.footer-grid p {
  max-width: 460px;
  color: var(--muted);
}

.footer-grid h3 {
  margin: 0 0 14px;
}

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

.footer-links a {
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--amber);
}

.copyright {
  max-width: 1280px;
  margin: 28px auto 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  text-align: center;
  font-size: 14px;
}

@keyframes liftIn {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

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

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

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

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

  .rank-score {
    grid-column: 3;
    text-align: left;
    font-size: 20px;
  }
}

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

  .nav-toggle {
    display: block;
  }

  .hero-control {
    display: none;
  }

  .hero {
    min-height: 620px;
  }

  .hero-slide img {
    min-height: 620px;
  }

  .movie-grid,
  .category-strip,
  .footer-grid,
  .detail-hero {
    grid-template-columns: 1fr;
  }

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

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

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

  .rank-cover {
    grid-column: 1 / -1;
  }

  .rank-score {
    grid-column: 2;
  }
}

@media (max-width: 560px) {
  .nav-bar,
  .page,
  .hero-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .brand-text em {
    display: none;
  }

  .movie-grid {
    gap: 16px;
  }

  .movie-card-body {
    padding: 15px;
  }

  .site-footer {
    padding-left: 16px;
    padding-right: 16px;
  }
}
