* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, 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 {
  display: block;
  max-width: 100%;
}

button,
input,
select {
  font: inherit;
}

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

.nav-shell {
  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;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #111;
  font-weight: 900;
  background: linear-gradient(135deg, #f59e0b, #fde68a);
  box-shadow: 0 10px 28px rgba(245, 158, 11, 0.35);
}

.brand strong {
  display: block;
  color: #fff;
  font-size: 20px;
  letter-spacing: 0.04em;
}

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

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

.desktop-nav a,
.mobile-nav a {
  padding: 9px 14px;
  color: #d4d4d4;
  border-radius: 12px;
  font-size: 14px;
  transition: 0.25s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-nav a:hover,
.mobile-nav a.active {
  color: #111;
  background: #f59e0b;
}

.menu-toggle {
  display: none;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 0;
  border-radius: 12px;
  padding: 8px 12px;
}

.mobile-nav {
  display: none;
  padding: 10px 18px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.9s ease, transform 1.2s ease;
}

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.06) contrast(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 35%, rgba(245, 158, 11, 0.24), transparent 30%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.94) 0%, rgba(0, 0, 0, 0.68) 45%, rgba(0, 0, 0, 0.15) 100%),
    linear-gradient(0deg, #0a0a0a 0%, rgba(10, 10, 10, 0.1) 48%);
}

.hero-content {
  position: absolute;
  z-index: 3;
  left: max(24px, calc((100vw - 1280px) / 2 + 24px));
  bottom: 82px;
  width: min(660px, calc(100vw - 48px));
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  color: #fbbf24;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

.hero h1,
.page-hero h1,
.detail-info h1 {
  margin: 12px 0 16px;
  font-size: clamp(38px, 7vw, 78px);
  line-height: 0.96;
  letter-spacing: -0.06em;
  font-weight: 900;
}

.hero p,
.page-hero p,
.detail-info p {
  color: #d4d4d4;
  font-size: 18px;
  max-width: 760px;
}

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

.tag-row span {
  padding: 6px 10px;
  color: #f5f5f5;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  font-size: 12px;
}

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

.btn,
.quick-search button,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 14px;
  font-weight: 800;
  transition: 0.25s ease;
}

.btn.primary,
.quick-search button {
  color: #111;
  background: linear-gradient(135deg, #f59e0b, #fcd34d);
  box-shadow: 0 18px 40px rgba(245, 158, 11, 0.24);
}

.btn.ghost,
.section-more {
  color: #f5f5f5;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn:hover,
.quick-search button:hover,
.section-more:hover {
  transform: translateY(-2px);
}

.hero-control {
  position: absolute;
  z-index: 5;
  top: 50%;
  width: 44px;
  height: 44px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, 0.42);
  font-size: 34px;
  line-height: 1;
}

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

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

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

.hero-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
}

.hero-dots button.is-active {
  width: 28px;
  background: #f59e0b;
}

.quick-search,
.content-section,
.page-main,
.detail-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 24px;
}

.quick-search form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
}

.quick-search input,
.local-filter input,
.local-filter select {
  width: 100%;
  min-height: 48px;
  color: #fff;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  outline: 0;
  padding: 0 16px;
}

.category-strip {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.category-pill {
  min-width: 190px;
  padding: 16px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(255, 255, 255, 0.06));
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.category-pill strong,
.category-pill small {
  display: block;
}

.category-pill small {
  color: #a3a3a3;
  margin-top: 4px;
}

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

.section-head h2 {
  margin: 4px 0 6px;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-head p {
  color: #a3a3a3;
  max-width: 720px;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: #171717;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18);
  transition: 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(245, 158, 11, 0.48);
}

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

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

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

.poster strong {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #111;
  background: #f59e0b;
  font-size: 12px;
}

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

.movie-card-body .meta-line {
  color: #fbbf24;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.movie-card h3 {
  margin: 6px 0 6px;
  color: #fff;
  font-size: 17px;
  line-height: 1.28;
}

.movie-card p {
  min-height: 58px;
  color: #a3a3a3;
  font-size: 13px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card .tag-row {
  margin-top: 12px;
}

.movie-card .tag-row span:nth-child(n+4) {
  display: none;
}

.rank-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
}

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

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

.rank-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  transition: 0.25s ease;
}

.rank-item:hover {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.4);
}

.rank-item span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  color: #111;
  background: #f59e0b;
  font-weight: 900;
}

.rank-item strong,
.rank-item small {
  display: block;
}

.rank-item small {
  color: #a3a3a3;
}

.spotlight-card {
  overflow: hidden;
  display: grid;
  background: radial-gradient(circle at 30% 0%, rgba(245, 158, 11, 0.32), rgba(23, 23, 23, 1) 52%);
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: 28px;
}

.spotlight-card img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.spotlight-card div {
  padding: 24px;
}

.spotlight-card span {
  color: #fbbf24;
  font-weight: 800;
}

.spotlight-card h2 {
  margin: 8px 0;
  font-size: 34px;
  letter-spacing: -0.04em;
}

.spotlight-card p {
  color: #d4d4d4;
  margin-bottom: 18px;
}

.page-main,
.detail-main {
  padding-top: 96px;
}

.page-hero {
  padding: 56px;
  margin-bottom: 30px;
  border-radius: 32px;
  background:
    radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.24), transparent 34%),
    linear-gradient(135deg, #171717, #0a0a0a);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.page-hero.small-hero {
  margin-bottom: 24px;
}

.local-filter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 12px;
  margin-top: 24px;
  max-width: 800px;
}

.local-filter.wide {
  max-width: 100%;
}

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

.category-card {
  padding: 24px;
  border-radius: 26px;
  background: #171717;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.category-card span {
  color: #fbbf24;
  font-weight: 800;
}

.category-card h2 {
  margin: 8px 0;
  font-size: 30px;
}

.category-card p {
  color: #bdbdbd;
}

.category-sample {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.category-sample a {
  padding: 7px 10px;
  color: #ddd;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  font-size: 13px;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  border-radius: 0 0 34px 34px;
  margin: -96px calc(50% - 50vw) 0;
}

.detail-hero > img {
  width: 100%;
  height: 720px;
  object-fit: cover;
}

.detail-hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.22), transparent 35%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.72) 45%, rgba(0, 0, 0, 0.18) 100%),
    linear-gradient(0deg, #0a0a0a 0%, rgba(10, 10, 10, 0) 45%);
}

.detail-info {
  position: absolute;
  left: max(24px, calc((100vw - 1280px) / 2 + 24px));
  bottom: 72px;
  z-index: 2;
  max-width: 760px;
}

.player-section {
  padding: 34px 0;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000;
  border: 1px solid rgba(245, 158, 11, 0.24);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
}

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

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  color: #fff;
  background: radial-gradient(circle at 50% 45%, rgba(245, 158, 11, 0.28), rgba(0, 0, 0, 0.66));
  border: 0;
  text-align: center;
}

.player-cover span {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #111;
  background: #f59e0b;
  font-size: 36px;
  padding-left: 4px;
  box-shadow: 0 18px 50px rgba(245, 158, 11, 0.34);
}

.player-cover strong {
  font-size: 28px;
}

.player-cover em {
  color: #d4d4d4;
  font-style: normal;
}

.video-shell.is-playing .player-cover {
  display: none;
}

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

.detail-content article,
.detail-content aside {
  padding: 28px;
  border-radius: 26px;
  background: #171717;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.detail-content h2 {
  margin: 0 0 14px;
  font-size: 26px;
}

.detail-content p {
  color: #d4d4d4;
  margin-bottom: 24px;
}

.detail-content dl {
  display: grid;
  gap: 12px;
}

.detail-content dt {
  color: #a3a3a3;
  font-size: 13px;
}

.detail-content dd {
  margin: -8px 0 4px;
  color: #fff;
}

.site-footer {
  margin-top: 40px;
  background: #111;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 42px 24px;
  display: grid;
  grid-template-columns: 1fr 220px 220px;
  gap: 24px;
}

.footer-grid p {
  max-width: 560px;
  color: #a3a3a3;
  margin-top: 16px;
}

.footer-grid h3 {
  margin: 0 0 12px;
  color: #fff;
}

.footer-grid a:not(.brand) {
  display: block;
  color: #a3a3a3;
  margin: 7px 0;
}

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

[hidden] {
  display: none !important;
}

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

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

  .long-rank {
    grid-template-columns: 1fr;
  }
}

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

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

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

  .hero-content {
    bottom: 64px;
  }

  .hero-control {
    display: none;
  }

  .quick-search form,
  .local-filter,
  .footer-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

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

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

  .page-hero {
    padding: 28px;
  }

  .detail-hero > img {
    height: 640px;
  }
}

@media (max-width: 520px) {
  .nav-shell {
    padding: 0 14px;
  }

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

  .brand small {
    display: none;
  }

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

  .hero p,
  .page-hero p,
  .detail-info p {
    font-size: 15px;
  }

  .movie-grid,
  .all-grid {
    gap: 12px;
  }

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

  .movie-card h3 {
    font-size: 15px;
  }

  .movie-card p {
    min-height: 54px;
    font-size: 12px;
  }

  .quick-search,
  .content-section,
  .page-main,
  .detail-main {
    padding-left: 14px;
    padding-right: 14px;
  }
}
