* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: #111827;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 54%, #e5e7eb 100%);
}

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;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(226, 232, 240, 0.92);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #111827;
}

.logo {
  font-size: 22px;
}

.logo-mark {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  color: #111827;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  border-radius: 12px;
  box-shadow: 0 14px 28px rgba(249, 115, 22, 0.28);
}

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

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: #4b5563;
  font-weight: 700;
  transition: all 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #111827;
  background: #fef3c7;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: #f8fafc;
  border-radius: 12px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #111827;
  border-radius: 99px;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 10px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
}

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

.hero-section {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: radial-gradient(circle at 15% 15%, rgba(245, 158, 11, 0.28), transparent 30%), linear-gradient(135deg, #020617 0%, #111827 48%, #1e293b 100%);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.24) 1px, transparent 1px);
  background-size: 24px 24px;
}

.hero-shell {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 78px 0 86px;
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(480px, 1.16fr);
  gap: 48px;
  align-items: center;
}

.hero-intro h1,
.page-hero h1 {
  margin: 16px 0;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.06em;
}

.hero-intro p,
.page-hero p {
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.8;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 14px;
  color: #fde68a;
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(251, 191, 36, 0.26);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.hero-search {
  display: flex;
  gap: 10px;
  max-width: 540px;
  margin-top: 30px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  backdrop-filter: blur(12px);
}

.hero-search input,
.search-input {
  flex: 1;
  width: 100%;
  border: 0;
  outline: 0;
  color: #111827;
  background: #ffffff;
  border-radius: 14px;
  padding: 14px 16px;
}

.hero-search button,
.section-more a,
.category-block-head a,
.watch-button {
  border: 0;
  color: #111827;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  border-radius: 14px;
  padding: 13px 18px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 18px 36px rgba(249, 115, 22, 0.24);
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.quick-links a {
  padding: 10px 14px;
  color: #e5e7eb;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
}

.hero-slider {
  position: relative;
  min-height: 440px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  border-radius: 28px;
  opacity: 0;
  transform: translateY(20px) scale(0.98);
  pointer-events: none;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.36);
  transition: all 0.6s ease;
}

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

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

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.84));
}

.hero-content {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
}

.hero-content h1 {
  margin: 14px 0 10px;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.08;
}

.hero-content p {
  max-width: 680px;
  color: #e5e7eb;
  line-height: 1.7;
}

.hero-tags,
.tag-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.tag-line span {
  padding: 6px 10px;
  color: #334155;
  background: #fef3c7;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.hero-action {
  display: inline-flex;
  margin-top: 18px;
  padding: 11px 18px;
  color: #111827;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  border-radius: 14px;
  font-weight: 900;
}

.hero-dots {
  position: absolute;
  left: 28px;
  top: 28px;
  display: flex;
  gap: 8px;
  z-index: 2;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  background: rgba(255, 255, 255, 0.42);
  border-radius: 99px;
  cursor: pointer;
}

.hero-dot.active {
  width: 28px;
  background: #fbbf24;
}

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

.tinted-section,
.page-hero {
  width: 100%;
  max-width: none;
  background: linear-gradient(135deg, #f8fafc, #e2e8f0);
}

.tinted-section > * {
  width: min(1180px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

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

.section-heading h2 {
  margin: 0 0 8px;
  font-size: clamp(26px, 3.4vw, 40px);
  letter-spacing: -0.04em;
}

.section-heading h2 span {
  color: #f59e0b;
  margin-right: 10px;
}

.section-heading p {
  margin: 0;
  color: #64748b;
}

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

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

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

.movie-card {
  display: block;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 22px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
  transition: all 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 158, 11, 0.34);
  box-shadow: 0 26px 58px rgba(15, 23, 42, 0.14);
}

.poster-wrap {
  position: relative;
  overflow: hidden;
  background: #0f172a;
}

.poster-wrap img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.compact-card .poster-wrap img,
.catalog-grid .poster-wrap img {
  aspect-ratio: 3 / 4;
}

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

.genre-pill,
.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 10px;
  color: #111827;
  background: #fbbf24;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.rank-badge {
  left: auto;
  right: 12px;
  color: #ffffff;
  background: #111827;
}

.card-body {
  padding: 18px;
}

.card-body h3 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.35;
}

.card-body p {
  min-height: 44px;
  margin: 0 0 18px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

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

.category-tile,
.category-block {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  align-items: center;
  padding: 22px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.06);
  transition: all 0.28s ease;
}

.category-tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 56px rgba(15, 23, 42, 0.12);
}

.tile-images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.tile-images img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 12px;
}

.category-tile h3,
.category-block h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.category-tile p,
.category-block p {
  margin: 0;
  color: #64748b;
  line-height: 1.7;
}

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

.section-more {
  text-align: center;
  margin-top: 30px;
}

.page-hero {
  color: #ffffff;
  background: radial-gradient(circle at 80% 0%, rgba(245, 158, 11, 0.22), transparent 32%), linear-gradient(135deg, #0f172a, #111827 52%, #1e293b);
}

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

.slim-hero h1 {
  font-size: clamp(36px, 5vw, 62px);
}

.category-listing {
  display: grid;
  gap: 30px;
}

.category-block {
  display: block;
}

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

.filter-panel {
  padding-top: 36px;
}

.search-panel {
  padding: 18px;
  margin-bottom: 28px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.06);
}

.search-input {
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}

.tag-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.tag-filter-row button {
  border: 0;
  padding: 9px 12px;
  color: #475569;
  background: #f1f5f9;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
}

.tag-filter-row button.active,
.tag-filter-row button:hover {
  color: #111827;
  background: #fef3c7;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 70px 92px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border-radius: 22px;
}

.rank-row strong {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: #111827;
  background: #fbbf24;
  border-radius: 16px;
}

.rank-row img {
  width: 92px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 14px;
}

.rank-row h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.rank-row p {
  margin: 0 0 10px;
  color: #64748b;
  line-height: 1.6;
}

.rank-meta {
  color: #64748b;
  font-weight: 800;
}

.detail-main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 64px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 10px 0 24px;
  color: #64748b;
  font-size: 14px;
}

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

.player-card,
.story-card,
.side-card {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 26px;
  box-shadow: 0 20px 54px rgba(15, 23, 42, 0.1);
}

.player-box {
  position: relative;
  background: #000000;
}

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

.play-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #111827;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.12), rgba(2, 6, 23, 0.62));
  cursor: pointer;
}

.play-cover span {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  padding-left: 6px;
  color: #111827;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  border-radius: 999px;
  font-size: 34px;
  box-shadow: 0 24px 60px rgba(249, 115, 22, 0.34);
}

.play-cover.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.detail-info {
  padding: 28px;
}

.detail-info h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 5vw, 48px);
  letter-spacing: -0.04em;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.detail-meta span {
  padding: 7px 12px;
  color: #334155;
  background: #f1f5f9;
  border-radius: 999px;
  font-weight: 800;
}

.lead-text {
  max-width: 900px;
  color: #475569;
  font-size: 17px;
  line-height: 1.8;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 26px;
  margin-top: 26px;
}

.story-card {
  padding: 30px;
}

.story-card h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.story-card h2:not(:first-child) {
  margin-top: 30px;
}

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

.side-card {
  align-self: start;
  padding: 16px;
}

.side-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 18px;
  margin-bottom: 16px;
}

.watch-button {
  display: flex;
  justify-content: center;
}

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

.site-footer {
  color: #cbd5e1;
  background: #0f172a;
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0;
  display: flex;
  justify-content: space-between;
  gap: 28px;
}

.footer-logo {
  color: #ffffff;
  font-size: 22px;
}

.site-footer p {
  max-width: 520px;
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-content: start;
  justify-content: flex-end;
}

.footer-links a {
  padding: 8px 12px;
  color: #e5e7eb;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
}

.is-hidden {
  display: none !important;
}

@media (max-width: 1024px) {
  .hero-shell {
    grid-template-columns: 1fr;
  }

  .hero-slider {
    min-height: 420px;
  }

  .movie-grid,
  .compact-grid,
  .catalog-grid,
  .rank-preview .rank-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .side-card {
    max-width: 360px;
  }
}

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

  .menu-toggle {
    display: block;
  }

  .header-inner {
    height: 64px;
  }

  .hero-shell {
    padding: 48px 0 58px;
    gap: 28px;
  }

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

  .hero-slider {
    min-height: 360px;
  }

  .hero-content {
    left: 18px;
    right: 18px;
    bottom: 18px;
  }

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

  .movie-grid,
  .compact-grid,
  .catalog-grid,
  .mini-grid,
  .rank-preview .rank-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .category-tile {
    grid-template-columns: 1fr;
  }

  .category-block-head,
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .rank-row {
    grid-template-columns: 48px 78px 1fr;
  }

  .rank-row img {
    width: 78px;
  }

  .rank-meta {
    grid-column: 2 / -1;
  }

  .detail-main {
    width: min(100% - 24px, 1180px);
  }

  .detail-info,
  .story-card {
    padding: 22px;
  }
}
