* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #020617;
  color: #e5e7eb;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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

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

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 50;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.72));
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.nav-shell {
  max-width: 1180px;
  margin: 0 auto;
  min-height: 68px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

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

.brand-text,
.footer-brand span:last-child {
  font-size: 22px;
  background: linear-gradient(90deg, #fbbf24, #f97316, #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-mark {
  color: #fbbf24;
  filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.45));
}

.brand-spark {
  color: #60a5fa;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 700;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link.is-active,
.mobile-link:hover {
  color: #fbbf24;
}

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

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: rgba(30, 41, 59, 0.9);
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: #e5e7eb;
  border-radius: 2px;
}

.mobile-menu {
  display: none;
  padding: 10px 22px 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(2, 6, 23, 0.96);
}

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

.mobile-link {
  display: block;
  padding: 11px 14px;
  border-radius: 14px;
  color: #cbd5e1;
  font-weight: 700;
  background: rgba(15, 23, 42, 0.7);
}

main {
  min-height: 70vh;
}

.hero-carousel {
  position: relative;
  min-height: 680px;
  height: 78vh;
  overflow: hidden;
  background: #020617;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  transition: opacity 0.85s ease, transform 1.2s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 22% 28%, rgba(251, 191, 36, 0.18), transparent 30%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.92) 0%, rgba(15, 23, 42, 0.74) 44%, rgba(2, 6, 23, 0.2) 100%),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.4) 42%, rgba(2, 6, 23, 0.2) 100%);
}

.hero-content {
  position: relative;
  width: min(1180px, calc(100% - 44px));
  margin: 0 auto;
  padding-top: 78px;
  z-index: 2;
}

.hero-content h1 {
  width: min(760px, 100%);
  margin: 14px 0 16px;
  color: #ffffff;
  font-size: clamp(40px, 7vw, 78px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero-summary {
  width: min(640px, 100%);
  margin: 0 0 24px;
  color: #d1d5db;
  font-size: 19px;
}

.hero-meta,
.card-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  color: #94a3b8;
  font-size: 14px;
}

.hero-meta span:first-child,
.card-meta span:first-child,
.detail-meta span:first-child {
  color: #fbbf24;
  font-weight: 900;
}

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

.primary-button,
.secondary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.primary-button {
  color: #ffffff;
  background: linear-gradient(90deg, #f59e0b, #ea580c);
  box-shadow: 0 18px 35px rgba(245, 158, 11, 0.28);
}

.secondary-button,
.ghost-button {
  color: #e5e7eb;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(251, 191, 36, 0.26);
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 18px 42px rgba(245, 158, 11, 0.26);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.58);
  font-size: 34px;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

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

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

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

.content-section,
.detail-layout {
  width: min(1180px, calc(100% - 44px));
  margin: 0 auto;
  padding: 68px 0 0;
}

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

.section-head h2,
.text-section h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: -0.03em;
}

.section-head p,
.text-section p,
.footer-main p,
.category-tile p,
.rank-info p,
.movie-card p {
  color: #94a3b8;
}

.section-link {
  color: #fbbf24;
  font-weight: 900;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.78);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.26);
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(251, 191, 36, 0.36);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.42);
}

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

.poster img,
.rank-thumb img,
.detail-poster img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.score,
.play-dot {
  position: absolute;
  z-index: 2;
}

.score {
  top: 12px;
  right: 12px;
  padding: 4px 9px;
  border-radius: 999px;
  color: #0f172a;
  background: #fbbf24;
  font-size: 13px;
  font-weight: 950;
}

.play-dot {
  right: 14px;
  bottom: 14px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(249, 115, 22, 0.92);
  box-shadow: 0 12px 22px rgba(249, 115, 22, 0.32);
}

.card-body {
  padding: 16px;
}

.card-body h3 {
  min-height: 50px;
  margin: 9px 0 8px;
  color: #ffffff;
  font-size: 18px;
  line-height: 1.35;
}

.card-body p {
  min-height: 52px;
  margin: 0 0 13px;
  font-size: 14px;
}

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

.tag-row span {
  padding: 4px 10px;
  border: 1px solid rgba(251, 191, 36, 0.24);
  border-radius: 999px;
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.09);
  font-size: 12px;
  font-weight: 800;
}

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

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

.category-tile {
  min-height: 150px;
  padding: 22px;
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 24px;
  background:
    radial-gradient(circle at top left, rgba(251, 191, 36, 0.19), transparent 32%),
    linear-gradient(135deg, rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.76));
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(251, 191, 36, 0.42);
}

.category-tile span {
  display: block;
  margin-bottom: 8px;
  color: #ffffff;
  font-size: 22px;
  font-weight: 950;
}

.category-tile p {
  margin: 0;
  font-size: 14px;
}

.page-hero {
  min-height: 420px;
  padding: 146px 22px 80px;
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 22% 30%, rgba(251, 191, 36, 0.22), transparent 30%),
    radial-gradient(circle at 78% 20%, rgba(59, 130, 246, 0.2), transparent 28%),
    linear-gradient(135deg, #020617, #111827 52%, #0f172a);
}

.page-hero.slim {
  min-height: 360px;
}

.page-hero > div {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 10px;
  color: #fbbf24;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.page-hero h1 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: clamp(38px, 6vw, 64px);
  letter-spacing: -0.05em;
}

.page-hero p {
  width: min(720px, 100%);
  margin: 0;
  color: #cbd5e1;
  font-size: 18px;
}

.filter-panel {
  margin: 0 0 24px;
  padding: 16px;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 180px 180px auto;
  gap: 12px;
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.76);
}

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

.filter-panel input,
.filter-panel select {
  width: 100%;
  height: 44px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 15px;
  padding: 0 13px;
  color: #ffffff;
  background: rgba(2, 6, 23, 0.78);
  outline: 0;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: rgba(251, 191, 36, 0.7);
}

.ranking-list {
  display: grid;
  gap: 15px;
}

.rank-card {
  display: grid;
  grid-template-columns: 72px 90px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.78);
}

.rank-num {
  color: #fbbf24;
  font-size: 30px;
  font-weight: 950;
  text-align: center;
}

.rank-thumb {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 16px;
  background: #0f172a;
}

.rank-info h3 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 20px;
}

.rank-info p {
  margin: 0 0 9px;
}

.detail-layout {
  padding-top: 100px;
}

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

.breadcrumb a {
  color: #fbbf24;
}

.player-panel {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 28px;
  background: #000000;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
}

.video-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000000;
}

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

.play-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle at center, rgba(15, 23, 42, 0.28), rgba(2, 6, 23, 0.78));
  cursor: pointer;
}

.play-cover.is-hidden {
  display: none;
}

.big-play {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  box-shadow: 0 18px 42px rgba(245, 158, 11, 0.35);
  font-size: 34px;
}

.detail-main {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 28px;
}

.detail-poster {
  overflow: hidden;
  border-radius: 24px;
  aspect-ratio: 2 / 3;
  border: 1px solid rgba(148, 163, 184, 0.15);
  background: #0f172a;
}

.detail-copy h1 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.12;
  letter-spacing: -0.05em;
}

.lead {
  color: #d1d5db;
  font-size: 19px;
}

.detail-meta {
  margin: 20px 0;
}

.text-section {
  margin-top: 34px;
  padding: 26px;
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.76);
}

.text-section p {
  margin-bottom: 0;
  font-size: 17px;
}

.related-section {
  width: 100%;
  padding-top: 44px;
}

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

.movie-card.compact .card-body h3 {
  min-height: 44px;
  font-size: 16px;
}

.movie-card.compact .card-body p {
  display: none;
}

.site-footer {
  margin-top: 80px;
  border-top: 1px solid rgba(148, 163, 184, 0.15);
  background: #0f172a;
}

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

.footer-grid h3 {
  margin: 0 0 15px;
  color: #ffffff;
}

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

.footer-links a {
  color: #94a3b8;
}

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

.footer-bottom {
  width: min(1180px, calc(100% - 44px));
  margin: 0 auto;
  padding: 18px 0 30px;
  color: #64748b;
  font-size: 14px;
}

[data-card].is-filtered {
  display: none;
}

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

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

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

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

  .menu-button {
    display: block;
  }

  .hero-carousel {
    min-height: 620px;
    height: auto;
  }

  .hero-content h1 {
    font-size: 44px;
  }

  .hero-arrow {
    display: none;
  }

  .section-head,
  .detail-main {
    display: block;
  }

  .detail-poster {
    width: min(240px, 100%);
    margin-bottom: 22px;
  }

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

  .rank-card {
    grid-template-columns: 52px 74px 1fr;
    gap: 11px;
  }

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

@media (max-width: 620px) {
  .content-section,
  .detail-layout,
  .footer-grid,
  .footer-bottom {
    width: min(100% - 28px, 1180px);
  }

  .movie-grid,
  .movie-grid.full-list,
  .related-grid,
  .category-grid,
  .category-grid.large {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .hero-content {
    width: calc(100% - 28px);
  }

  .hero-content h1 {
    font-size: 36px;
  }

  .hero-summary,
  .page-hero p,
  .lead {
    font-size: 16px;
  }

  .card-body {
    padding: 13px;
  }

  .card-body h3 {
    font-size: 16px;
  }

  .card-meta {
    gap: 7px;
    font-size: 12px;
  }

  .rank-info p {
    display: none;
  }
}
