html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: #f8fafc;
  background: #0f172a;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at top left, rgba(250, 204, 21, 0.12), transparent 28rem), radial-gradient(circle at 80% 10%, rgba(14, 165, 233, 0.12), transparent 26rem), linear-gradient(180deg, #0f172a 0%, #111827 55%, #020617 100%);
  z-index: -2;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(18px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  color: #111827;
  background: linear-gradient(135deg, #facc15, #fb923c);
  box-shadow: 0 16px 36px rgba(250, 204, 21, 0.26);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: #cbd5e1;
  font-size: 15px;
}

.desktop-nav a,
.mobile-nav a {
  transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
  color: #facc15;
}

.mobile-toggle {
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  padding: 8px 11px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

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

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

.hero-section {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 96px 0 56px;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0.72) 58%, #0f172a 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  gap: 46px;
  align-items: center;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 14px;
  border: 1px solid rgba(250, 204, 21, 0.35);
  border-radius: 999px;
  color: #fde68a;
  background: rgba(250, 204, 21, 0.08);
}

.hero-copy h1,
.page-hero h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
  text-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.hero-copy p,
.page-hero p {
  margin: 24px 0 0;
  color: #cbd5e1;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.85;
}

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

.primary-button,
.ghost-button,
.hero-search button,
.category-headline a,
.hero-slide-copy a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  min-height: 46px;
  padding: 0 22px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button,
.hero-search button,
.hero-slide-copy a {
  color: #111827;
  background: linear-gradient(135deg, #facc15, #fb923c);
  box-shadow: 0 18px 44px rgba(250, 204, 21, 0.2);
}

.ghost-button {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.09);
}

.primary-button:hover,
.ghost-button:hover,
.hero-search button:hover,
.category-headline a:hover,
.hero-slide-copy a:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 52px rgba(250, 204, 21, 0.26);
}

.hero-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  margin-top: 28px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.52);
  backdrop-filter: blur(16px);
}

.hero-search input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 13px 16px;
  color: #fff;
  background: rgba(15, 23, 42, 0.78);
  outline: none;
}

.hero-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: rgba(250, 204, 21, 0.72);
  box-shadow: 0 0 0 4px rgba(250, 204, 21, 0.12);
}

.quick-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.quick-cats a {
  padding: 7px 12px;
  border-radius: 999px;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.08);
}

.quick-cats a:hover {
  color: #facc15;
}

.hero-carousel {
  position: relative;
  min-height: 560px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 34px;
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  pointer-events: none;
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.42);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.08), rgba(2, 6, 23, 0.42) 36%, rgba(2, 6, 23, 0.9));
}

.hero-slide-copy {
  position: relative;
  z-index: 2;
  padding: 34px;
}

.hero-slide-copy span,
.poster-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 11px;
  color: #111827;
  font-size: 13px;
  font-weight: 800;
  background: rgba(250, 204, 21, 0.92);
}

.hero-slide-copy h2 {
  margin: 16px 0 10px;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
}

.hero-slide-copy p {
  max-width: 520px;
  margin: 0 0 22px;
  color: #dbeafe;
  line-height: 1.72;
}

.hero-dots {
  position: absolute;
  left: 34px;
  bottom: -28px;
  z-index: 3;
  display: flex;
  gap: 10px;
}

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

.hero-dot.is-active {
  width: 32px;
  background: #facc15;
}

.stat-section,
.content-section,
.footer-shell,
.detail-layout {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.stat-section {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  padding: 36px 0 18px;
}

.stat-card,
.detail-card,
.side-card,
.player-card,
.category-card,
.filter-panel,
.home-category {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.72), rgba(15, 23, 42, 0.82));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(14px);
}

.stat-card {
  border-radius: 20px;
  padding: 22px;
  text-align: center;
}

.stat-card strong {
  display: block;
  color: #fff;
  font-size: 26px;
}

.stat-card span {
  display: block;
  margin-top: 6px;
  color: #94a3b8;
}

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

.tinted-section {
  width: 100%;
  padding-left: max(16px, calc((100vw - 1180px) / 2));
  padding-right: max(16px, calc((100vw - 1180px) / 2));
  background: linear-gradient(90deg, rgba(30, 41, 59, 0.38), rgba(15, 23, 42, 0.18));
}

.section-heading {
  margin-bottom: 34px;
  text-align: center;
}

.section-heading h2,
.category-headline h2,
.home-category h2,
.detail-card h2,
.side-card h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-heading p,
.category-headline p,
.home-category p {
  margin: 10px 0 0;
  color: #94a3b8;
  font-size: 16px;
  line-height: 1.75;
}

.movie-grid {
  display: grid;
  gap: 24px;
}

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

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

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

.movie-card {
  min-width: 0;
}

.poster-link {
  position: relative;
  overflow: hidden;
  display: block;
  aspect-ratio: 2 / 3;
  border-radius: 18px;
  background: #1e293b;
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.22);
}

.feature-card .poster-link {
  aspect-ratio: 4 / 5;
  border-radius: 28px;
}

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

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

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

.movie-card:hover .poster-link::after {
  opacity: 0.95;
}

.poster-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
}

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  color: #111827;
  background: rgba(250, 204, 21, 0.92);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.82);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .poster-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.movie-card-body {
  padding: 13px 2px 0;
}

.movie-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #94a3b8;
  font-size: 13px;
}

.movie-meta span,
.detail-meta span,
.tag-list span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 9px;
  background: rgba(255, 255, 255, 0.08);
}

.movie-card h2 {
  margin: 9px 0 6px;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
}

.feature-card h2 {
  font-size: 22px;
}

.movie-card h2 a:hover {
  color: #facc15;
}

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

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  color: #cbd5e1;
  font-size: 12px;
}

.category-blocks {
  display: grid;
  gap: 26px;
}

.home-category {
  border-radius: 28px;
  padding: 24px;
}

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

.category-headline a {
  flex: 0 0 auto;
  color: #111827;
  background: #facc15;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 48px 64px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 12px;
  background: rgba(15, 23, 42, 0.56);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.rank-row:hover {
  border-color: rgba(250, 204, 21, 0.46);
  background: rgba(30, 41, 59, 0.78);
  transform: translateY(-2px);
}

.rank-num {
  color: #facc15;
  font-size: 26px;
  font-weight: 900;
  text-align: center;
}

.rank-row img {
  width: 64px;
  height: 86px;
  border-radius: 12px;
  object-fit: cover;
}

.rank-text {
  min-width: 0;
}

.rank-text strong,
.rank-text em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-text strong {
  color: #fff;
}

.rank-text em {
  margin-top: 6px;
  color: #94a3b8;
  font-size: 13px;
  font-style: normal;
}

.page-main {
  padding-top: 0;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 110px 0 54px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.64), rgba(15, 23, 42, 0.95));
}

.page-hero-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.compact-hero h1 {
  font-size: clamp(38px, 6vw, 64px);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-bottom: 22px;
  color: #94a3b8;
  font-size: 14px;
}

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

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

.category-card {
  overflow: hidden;
  border-radius: 26px;
}

.category-card > div {
  padding: 22px;
}

.category-cover {
  position: relative;
  display: block;
  height: 230px;
  overflow: hidden;
}

.category-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.78);
  transition: transform 0.45s ease;
}

.category-cover:hover img {
  transform: scale(1.08);
}

.category-cover span {
  position: absolute;
  left: 18px;
  bottom: 18px;
  border-radius: 999px;
  padding: 8px 14px;
  color: #111827;
  font-weight: 800;
  background: #facc15;
}

.category-card h2 {
  margin: 0 0 10px;
  font-size: 24px;
}

.category-card p {
  margin: 0;
  color: #94a3b8;
  line-height: 1.7;
}

.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.category-samples a {
  border-radius: 999px;
  padding: 6px 10px;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.08);
}

.category-samples a:hover {
  color: #facc15;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 160px auto;
  align-items: center;
  gap: 12px;
  border-radius: 24px;
  margin-bottom: 30px;
  padding: 14px;
}

.filter-status {
  color: #facc15;
  font-size: 14px;
  white-space: nowrap;
}

.movie-card.is-hidden {
  display: none;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  padding-top: 106px;
  padding-bottom: 76px;
}

.detail-primary {
  min-width: 0;
}

.player-card {
  overflow: hidden;
  border-radius: 24px;
  padding: 0;
}

.video-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #000;
}

.movie-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #111827;
  background: radial-gradient(circle, rgba(15, 23, 42, 0.12), rgba(2, 6, 23, 0.48));
  cursor: pointer;
}

.play-overlay span {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border-radius: 999px;
  padding-left: 5px;
  font-size: 34px;
  background: linear-gradient(135deg, #facc15, #fb923c);
  box-shadow: 0 18px 50px rgba(250, 204, 21, 0.32);
}

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

.detail-card {
  border-radius: 24px;
  margin-top: 24px;
  padding: 28px;
}

.detail-card h1 {
  margin: 18px 0 12px;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.08;
  font-weight: 900;
}

.detail-card h2 {
  margin-top: 28px;
  margin-bottom: 12px;
  font-size: 26px;
}

.detail-card p {
  color: #cbd5e1;
  line-height: 1.9;
  font-size: 16px;
}

.lead-text {
  color: #fde68a !important;
  font-size: 18px !important;
}

.detail-tags span {
  color: #e2e8f0;
  background: rgba(250, 204, 21, 0.12);
}

.detail-sidebar {
  position: relative;
}

.detail-sidebar > * {
  position: sticky;
  top: 94px;
}

.side-poster,
.side-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 16px;
  background: rgba(15, 23, 42, 0.72);
}

.side-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 18px;
  object-fit: cover;
}

.full-button {
  width: 100%;
  margin-top: 14px;
}

.side-card {
  margin-top: 18px;
}

.side-card h2 {
  margin-bottom: 16px;
  font-size: 22px;
}

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

.side-rank-list .rank-row {
  grid-template-columns: 40px 54px minmax(0, 1fr);
}

.side-rank-list .rank-row img {
  width: 54px;
  height: 72px;
}

.related-section {
  width: 100%;
  padding: 46px 0 0;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.92), #020617);
}

.footer-shell {
  padding: 56px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr 1fr;
  gap: 34px;
}

.footer-brand {
  margin-bottom: 16px;
}

.site-footer p,
.site-footer a,
.footer-bottom {
  color: #94a3b8;
  line-height: 1.75;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 18px;
}

.site-footer ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a:hover {
  color: #facc15;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 14px;
}

@media (max-width: 1080px) {
  .hero-content,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .hero-carousel {
    min-height: 500px;
  }

  .poster-grid,
  .compact-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

  .detail-sidebar > * {
    position: static;
  }
}

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

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

  .hero-section {
    min-height: auto;
    padding-top: 88px;
  }

  .hero-content {
    gap: 30px;
  }

  .hero-carousel {
    min-height: 430px;
  }

  .hero-slide-copy {
    padding: 24px;
  }

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

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

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

  .category-headline {
    align-items: flex-start;
    flex-direction: column;
  }

  .rank-row {
    grid-template-columns: 40px 54px minmax(0, 1fr);
  }

  .rank-row img {
    width: 54px;
    height: 72px;
  }

  .detail-card {
    padding: 22px;
  }

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

@media (max-width: 520px) {
  .brand {
    font-size: 17px;
  }

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

  .hero-actions {
    flex-direction: column;
  }

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

  .feature-grid,
  .poster-grid,
  .compact-grid,
  .category-grid,
  .rank-list,
  .stat-section {
    grid-template-columns: 1fr;
  }

  .movie-grid.poster-grid,
  .movie-grid.compact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .movie-card p,
  .tag-list {
    display: none;
  }
}
