* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: #e2e8f0;
  background: linear-gradient(180deg, #020617 0%, #0f172a 45%, #020617 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 18% 18%, rgba(245, 158, 11, 0.16), transparent 34%),
    radial-gradient(circle at 78% 12%, rgba(249, 115, 22, 0.14), transparent 30%),
    radial-gradient(circle at 52% 88%, rgba(14, 165, 233, 0.09), transparent 36%);
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(51, 65, 85, 0.85);
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.96));
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.nav-shell {
  width: min(1180px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  box-shadow: 0 12px 30px rgba(234, 88, 12, 0.35);
}

.brand-text {
  font-size: 25px;
  letter-spacing: 0.02em;
  color: #f59e0b;
  background: linear-gradient(90deg, #fbbf24, #fb923c);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.nav-link {
  color: #e2e8f0;
  font-weight: 700;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #f59e0b;
}

.mobile-menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  border-radius: 12px;
  background: rgba(51, 65, 85, 0.75);
  cursor: pointer;
}

.mobile-menu-button span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  border-radius: 4px;
  background: #e2e8f0;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
}

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

.mobile-link {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.72);
}

.mobile-link:hover {
  color: #f59e0b;
  background: rgba(51, 65, 85, 0.86);
}

.hero {
  position: relative;
  min-height: 72vh;
  overflow: hidden;
  background: #020617;
}

.hero-track,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
}

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

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  filter: saturate(1.08) contrast(1.08);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(15, 23, 42, 0.68) 42%, rgba(15, 23, 42, 0.18) 100%),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.14) 42%, rgba(2, 6, 23, 0.46) 100%);
}

.hero-content {
  position: absolute;
  z-index: 2;
  left: max(32px, calc((100% - 1180px) / 2));
  bottom: 13vh;
  width: min(680px, calc(100% - 64px));
}

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

.hero h1,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(40px, 6vw, 82px);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.hero-subtitle {
  width: min(640px, 100%);
  margin: 22px 0 0;
  color: #cbd5e1;
  font-size: clamp(18px, 2vw, 24px);
}

.hero-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-meta span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 12px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 999px;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(14px);
}

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

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

.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  box-shadow: 0 18px 42px rgba(234, 88, 12, 0.28);
}

.ghost-button {
  border: 1px solid rgba(251, 191, 36, 0.38);
  color: #fef3c7;
  background: rgba(15, 23, 42, 0.58);
}

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px);
}

.primary-button:hover {
  box-shadow: 0 22px 54px rgba(234, 88, 12, 0.38);
}

.ghost-button:hover {
  border-color: rgba(251, 191, 36, 0.72);
  background: rgba(30, 41, 59, 0.82);
}

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

.hero-dot {
  width: 34px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.34);
  cursor: pointer;
}

.hero-dot.active {
  width: 54px;
  background: linear-gradient(90deg, #f59e0b, #fb923c);
}

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

.anchor-card {
  margin-top: -42px;
  padding: 28px;
  border: 1px solid rgba(51, 65, 85, 0.92);
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.84);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(18px);
}

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

.section-heading h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.15;
}

.section-heading p {
  margin: 8px 0 0;
  color: #94a3b8;
}

.section-more {
  flex: 0 0 auto;
  color: #f59e0b;
  font-weight: 900;
}

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

.movie-card {
  border: 1px solid rgba(51, 65, 85, 0.78);
  border-radius: 22px;
  overflow: hidden;
  background: rgba(30, 41, 59, 0.8);
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.22);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-6px) scale(1.012);
  border-color: rgba(245, 158, 11, 0.52);
  box-shadow: 0 22px 62px rgba(0, 0, 0, 0.34);
}

.card-link {
  display: block;
  height: 100%;
}

.poster-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(51, 65, 85, 0.72)),
    radial-gradient(circle at 50% 40%, rgba(245, 158, 11, 0.18), transparent 44%);
}

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

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

.poster-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.78), transparent 52%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

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

.play-badge {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.64);
  backdrop-filter: blur(10px);
}

.card-content {
  padding: 17px;
}

.card-title {
  margin: 0;
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.28;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  transition: color 0.2s ease;
}

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

.card-desc {
  display: -webkit-box;
  min-height: 46px;
  margin: 10px 0 0;
  overflow: hidden;
  color: #94a3b8;
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.card-meta span {
  padding: 3px 8px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.76);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.tag-list span {
  padding: 4px 9px;
  border-radius: 999px;
  color: #cbd5e1;
  font-size: 12px;
  background: rgba(51, 65, 85, 0.68);
}

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

.category-tile,
.category-card-large a {
  display: block;
  min-height: 138px;
  padding: 24px;
  border: 1px solid rgba(51, 65, 85, 0.84);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.88), rgba(15, 23, 42, 0.9));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-tile:hover,
.category-card-large a:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.55);
}

.category-tile span,
.category-card-large h2 {
  display: block;
  margin: 0;
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
}

.category-tile small,
.category-card-large p {
  display: block;
  margin-top: 10px;
  color: #94a3b8;
  font-size: 14px;
}

.category-card-large a {
  min-height: 260px;
}

.category-poster-stack {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}

.category-poster-stack img {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  object-fit: cover;
  background: #1e293b;
}

.category-card-large span {
  display: inline-flex;
  margin-top: 14px;
  color: #f59e0b;
  font-weight: 900;
}

.filter-panel {
  display: grid;
  gap: 16px;
  margin-bottom: 26px;
}

.site-search {
  width: 100%;
  min-height: 54px;
  padding: 0 18px;
  border: 1px solid rgba(71, 85, 105, 0.82);
  border-radius: 18px;
  outline: none;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.86);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18);
}

.site-search:focus {
  border-color: rgba(245, 158, 11, 0.82);
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-chip {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(71, 85, 105, 0.82);
  border-radius: 999px;
  color: #cbd5e1;
  background: rgba(30, 41, 59, 0.72);
  cursor: pointer;
}

.filter-chip.active,
.filter-chip:hover {
  color: #ffffff;
  border-color: rgba(245, 158, 11, 0.68);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.92), rgba(234, 88, 12, 0.92));
}

.empty-state {
  padding: 30px;
  border: 1px solid rgba(71, 85, 105, 0.8);
  border-radius: 20px;
  color: #94a3b8;
  text-align: center;
  background: rgba(15, 23, 42, 0.75);
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
}

.compact-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 86px 0 34px;
}

.compact-hero p:not(.eyebrow) {
  width: min(760px, 100%);
  margin: 18px 0 0;
  color: #94a3b8;
  font-size: 18px;
}

.ranking-strip {
  padding-bottom: 72px;
}

.rank-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.rank-item {
  display: grid;
  grid-template-columns: 48px 76px 1fr;
  align-items: center;
  gap: 14px;
  min-height: 86px;
  padding: 10px;
  border: 1px solid rgba(51, 65, 85, 0.8);
  border-radius: 18px;
  background: rgba(30, 41, 59, 0.76);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.rank-item:hover {
  transform: translateY(-3px);
  border-color: rgba(245, 158, 11, 0.55);
}

.rank-number {
  color: #f59e0b;
  font-size: 20px;
  font-weight: 900;
  text-align: center;
}

.rank-item img {
  width: 76px;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  object-fit: cover;
  background: #1e293b;
}

.rank-title {
  color: #ffffff;
  font-weight: 900;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-item small {
  display: block;
  grid-column: 3;
  margin-top: -20px;
  color: #94a3b8;
}

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

.detail-hero {
  min-height: 560px;
  padding: 74px 0 56px;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(22px) brightness(0.44) saturate(1.18);
  transform: scale(1.12);
}

.detail-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.64)),
    linear-gradient(0deg, #020617, rgba(2, 6, 23, 0.3));
}

.detail-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 370px 1fr;
  gap: 42px;
  align-items: center;
}

.detail-cover {
  border: 1px solid rgba(245, 158, 11, 0.32);
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.42);
  background: #1e293b;
}

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

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

.breadcrumb a:hover {
  color: #f59e0b;
}

.detail-info h1 {
  font-size: clamp(38px, 5vw, 68px);
}

.detail-one-line {
  margin: 18px 0 0;
  color: #dbeafe;
  font-size: 20px;
}

.detail-tags {
  margin-top: 18px;
}

.player-section {
  padding-top: 18px;
}

.video-stage {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(51, 65, 85, 0.9);
  border-radius: 28px;
  background: #000000;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle, rgba(2, 6, 23, 0.08), rgba(2, 6, 23, 0.45));
  cursor: pointer;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.player-overlay span {
  width: 92px;
  height: 92px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 36px;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  box-shadow: 0 18px 54px rgba(234, 88, 12, 0.42);
}

.player-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

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

.detail-copy {
  padding: 28px;
  border: 1px solid rgba(51, 65, 85, 0.84);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.76);
}

.detail-copy h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 26px;
}

.detail-copy p {
  margin: 0;
  color: #cbd5e1;
  font-size: 16px;
}

.site-footer {
  margin-top: 48px;
  border-top: 1px solid rgba(51, 65, 85, 0.82);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.68), rgba(2, 6, 23, 0.96));
}

.footer-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 30px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 34px;
}

.footer-brand p {
  width: min(560px, 100%);
  margin: 16px 0 0;
  color: #94a3b8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: #cbd5e1;
  font-weight: 700;
}

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

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

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

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

  .detail-shell {
    grid-template-columns: 280px 1fr;
  }
}

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

  .mobile-menu-button {
    display: block;
  }

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

  .hero {
    min-height: 78vh;
  }

  .hero-content {
    left: 18px;
    bottom: 12vh;
    width: calc(100% - 36px);
  }

  .hero h1,
  .page-hero h1 {
    font-size: 42px;
  }

  .hero-dots {
    left: 18px;
  }

  .content-section {
    padding: 38px 0;
  }

  .anchor-card {
    margin-top: -24px;
    padding: 20px;
  }

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

  .movie-grid,
  .rank-list,
  .full-rank-list,
  .category-grid,
  .category-overview-grid,
  .detail-text-grid {
    grid-template-columns: 1fr;
  }

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

  .detail-cover {
    max-width: 520px;
  }

  .detail-hero {
    padding-top: 48px;
  }

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

  .footer-shell {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .nav-shell,
  .content-section,
  .compact-hero,
  .detail-shell,
  .footer-shell,
  .footer-bottom,
  .mobile-nav {
    width: min(100% - 24px, 1180px);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .primary-button,
  .ghost-button {
    width: 100%;
  }

  .card-content {
    padding: 15px;
  }
}
