* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background: #0a0a0a;
  color: #f5f5f5;
  line-height: 1.6;
}

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

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(23, 23, 23, 0.96);
  border-bottom: 1px solid #262626;
  backdrop-filter: blur(10px);
}

.header-inner {
  max-width: 1280px;
  height: 64px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #171717;
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  font-size: 14px;
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.2);
}

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

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

.brand-text small {
  margin-top: 4px;
  color: #a3a3a3;
  font-size: 12px;
}

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

.nav-link,
.mobile-link {
  display: inline-flex;
  align-items: center;
  border-radius: 10px;
  color: #d4d4d4;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link {
  padding: 9px 15px;
}

.nav-link:hover,
.mobile-link:hover {
  color: #ffffff;
  background: #262626;
}

.nav-link.is-active,
.mobile-link.is-active {
  color: #171717;
  background: #f59e0b;
}

.menu-toggle {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 10px;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: transparent;
  color: #ffffff;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  border-top: 1px solid #262626;
  padding: 10px 16px 16px;
}

.mobile-link {
  padding: 12px 14px;
  margin: 2px 0;
  display: flex;
}

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

main {
  min-height: 70vh;
}

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

.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%;
  object-fit: cover;
  transform: scale(1.03);
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, #000000 0%, rgba(0, 0, 0, 0.68) 42%, rgba(0, 0, 0, 0.08) 100%);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(0deg, #0a0a0a 0%, rgba(10, 10, 10, 0) 34%);
}

.hero-content {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  padding-top: 64px;
}

.hero-inner {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
}

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

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

.tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.92);
  color: #171717;
  font-size: 12px;
  font-weight: 700;
}

.hero h1 {
  margin: 18px 0 16px;
  color: #ffffff;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero p {
  max-width: 620px;
  margin: 0 0 28px;
  color: #d4d4d4;
  font-size: 18px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, border 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: #f59e0b;
  color: #171717;
}

.btn-primary:hover {
  background: #d97706;
}

.btn-ghost {
  background: rgba(38, 38, 38, 0.76);
  border-color: #404040;
  color: #ffffff;
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  border-color: #f59e0b;
  color: #f59e0b;
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #ffffff;
  font-size: 28px;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-control:hover {
  background: rgba(0, 0, 0, 0.78);
  transform: translateY(-2px);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
  width: 30px;
  background: #f59e0b;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.content-shell {
  padding-top: 112px;
  padding-bottom: 80px;
}

.home-sections {
  padding: 70px 0 90px;
}

.section {
  margin-bottom: 86px;
}

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

.section-head h2 {
  margin: 0 0 6px;
  font-size: 32px;
  line-height: 1.2;
}

.section-head p {
  margin: 0;
  color: #a3a3a3;
}

.section-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #f59e0b;
  font-weight: 700;
}

.section-more span {
  transition: transform 0.2s ease;
}

.section-more:hover span {
  transform: translateX(4px);
}

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

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

.movie-row {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 2px 0 18px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.movie-row::-webkit-scrollbar {
  display: none;
}

.movie-row .movie-card {
  flex: 0 0 280px;
  scroll-snap-align: start;
}

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid #262626;
  border-radius: 16px;
  background: #171717;
  transition: transform 0.25s ease, border 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-4px);
  border-color: #f59e0b;
  box-shadow: 0 20px 36px rgba(245, 158, 11, 0.1);
}

.feature-card {
  grid-column: span 2;
  grid-row: span 2;
}

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

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.08) 54%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .poster-shade {
  opacity: 1;
}

.type-badge,
.rank-badge {
  position: absolute;
  z-index: 3;
  top: 12px;
  border-radius: 8px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(6px);
}

.type-badge {
  right: 12px;
  background: rgba(0, 0, 0, 0.76);
  color: #ffffff;
}

.rank-badge {
  left: 12px;
  color: #171717;
  background: #f59e0b;
}

.card-body {
  padding: 16px;
}

.card-tags .tag {
  padding: 3px 8px;
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.18);
}

.movie-card h3 {
  margin: 12px 0 8px;
  color: #ffffff;
  font-size: 18px;
  line-height: 1.35;
}

.feature-card h3 {
  font-size: 24px;
}

.movie-card h3 a:hover {
  color: #f59e0b;
}

.movie-card p {
  margin: 0 0 14px;
  min-height: 44px;
  color: #a3a3a3;
  font-size: 14px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  color: #737373;
  font-size: 13px;
}

.card-meta a {
  color: #f59e0b;
}

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

.category-tile,
.overview-card {
  display: block;
  padding: 24px;
  border: 1px solid #262626;
  border-radius: 18px;
  background: linear-gradient(135deg, #171717, #262626);
  transition: transform 0.2s ease, border 0.2s ease;
}

.category-tile:hover,
.overview-card:hover {
  transform: translateY(-3px);
  border-color: #f59e0b;
}

.category-tile strong,
.overview-card strong {
  display: block;
  margin-bottom: 8px;
  color: #ffffff;
  font-size: 19px;
}

.category-tile span,
.overview-card span,
.overview-card p {
  color: #a3a3a3;
  font-size: 14px;
}

.search-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  padding: 18px;
  margin: 0 0 30px;
  border: 1px solid #262626;
  border-radius: 18px;
  background: #111111;
}

.search-input {
  width: 100%;
  min-height: 48px;
  border: 1px solid #262626;
  border-radius: 14px;
  padding: 0 16px;
  outline: none;
  background: #0a0a0a;
  color: #ffffff;
  font-size: 16px;
}

.search-input:focus {
  border-color: #f59e0b;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.filter-btn {
  border: 1px solid #262626;
  border-radius: 999px;
  padding: 9px 14px;
  color: #d4d4d4;
  background: #171717;
  cursor: pointer;
}

.filter-btn.is-active,
.filter-btn:hover {
  color: #171717;
  border-color: #f59e0b;
  background: #f59e0b;
}

.page-hero {
  padding: 142px 0 46px;
  background: radial-gradient(circle at top left, rgba(245, 158, 11, 0.2), transparent 35%), linear-gradient(135deg, #111111, #0a0a0a);
  border-bottom: 1px solid #262626;
}

.page-hero h1 {
  max-width: 820px;
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.1;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: #a3a3a3;
  font-size: 17px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: #a3a3a3;
  font-size: 14px;
}

.breadcrumb a {
  color: #f59e0b;
}

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

.player-box {
  position: relative;
  overflow: hidden;
  border: 1px solid #262626;
  border-radius: 18px;
  background: #000000;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.32);
}

.player-box video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.18));
  cursor: pointer;
}

.player-cover.is-hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.player-play {
  width: 82px;
  height: 82px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f59e0b;
  color: #171717;
  font-size: 30px;
  cursor: pointer;
  box-shadow: 0 18px 42px rgba(245, 158, 11, 0.35);
}

.detail-panel,
.info-panel {
  border: 1px solid #262626;
  border-radius: 18px;
  padding: 24px;
  background: #171717;
}

.detail-panel h2,
.info-panel h2 {
  margin: 0 0 16px;
  font-size: 24px;
}

.detail-panel p,
.info-panel p {
  color: #d4d4d4;
}

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

.info-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #262626;
  padding-bottom: 10px;
}

.info-list span {
  color: #a3a3a3;
}

.info-list strong {
  text-align: right;
}

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

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

.rank-item {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid #262626;
  border-radius: 16px;
  background: #171717;
}

.rank-number {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #171717;
  background: #f59e0b;
  font-weight: 900;
}

.rank-title {
  font-weight: 800;
}

.rank-title:hover {
  color: #f59e0b;
}

.rank-desc {
  display: block;
  margin-top: 4px;
  color: #a3a3a3;
  font-size: 14px;
}

.empty-state {
  display: none;
  padding: 34px;
  border: 1px dashed #404040;
  border-radius: 18px;
  color: #a3a3a3;
  text-align: center;
}

.empty-state.is-visible {
  display: block;
}

.site-footer {
  border-top: 1px solid #262626;
  background: #171717;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 44px 24px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 28px;
}

.footer-brand strong {
  display: block;
  margin-bottom: 10px;
  font-size: 22px;
}

.footer-brand p {
  max-width: 460px;
  margin: 0;
  color: #a3a3a3;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px 20px;
}

.footer-links a {
  color: #d4d4d4;
}

.footer-links a:hover {
  color: #f59e0b;
}

.footer-bottom {
  border-top: 1px solid #262626;
  padding: 18px 24px;
  color: #737373;
  text-align: center;
  font-size: 13px;
}

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

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

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

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

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

  .menu-toggle {
    display: inline-flex;
  }

  .brand-text strong {
    font-size: 17px;
  }

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

  .hero-slide::before {
    background: linear-gradient(0deg, #000000 0%, rgba(0, 0, 0, 0.72) 54%, rgba(0, 0, 0, 0.18) 100%);
  }

  .hero-content {
    align-items: flex-end;
    padding-bottom: 96px;
  }

  .hero-control {
    display: none;
  }

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

  .feature-card {
    grid-column: auto;
    grid-row: auto;
  }

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

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

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

  .footer-links {
    justify-content: flex-start;
  }

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

  .rank-item .btn {
    grid-column: 1 / -1;
  }
}
