:root {
  --blue-900: #102a75;
  --blue-800: #1d4ed8;
  --blue-700: #2563eb;
  --blue-100: #dbeafe;
  --orange-600: #ea580c;
  --orange-500: #f97316;
  --orange-100: #ffedd5;
  --gray-950: #111827;
  --gray-900: #1f2937;
  --gray-700: #374151;
  --gray-500: #6b7280;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 26px;
  font-weight: 800;
}

.logo-mark {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 14px;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-700), var(--orange-500));
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.28);
}

.logo-text {
  background: linear-gradient(90deg, var(--blue-800), var(--orange-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-link {
  position: relative;
  color: var(--gray-700);
  font-size: 17px;
  font-weight: 700;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--blue-700);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -9px;
  height: 3px;
  border-radius: 999px;
  background: var(--blue-700);
}

.menu-toggle {
  display: none;
  border: 0;
  color: var(--gray-700);
  background: transparent;
  font-size: 28px;
}

.mobile-menu {
  display: none;
  border-top: 1px solid var(--gray-200);
}

.mobile-menu-inner {
  padding: 16px 0 20px;
}

.mobile-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.mobile-cats a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--blue-800);
  background: var(--blue-100);
  font-weight: 700;
}

.hero-section {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 45%, #102a75 100%);
}

.hero-bg-shape {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.2), transparent 28%),
    radial-gradient(circle at 82% 12%, rgba(249, 115, 22, 0.32), transparent 26%),
    linear-gradient(90deg, rgba(15, 23, 42, 0.25), rgba(15, 23, 42, 0.05));
}

.hero-inner {
  position: relative;
  z-index: 2;
  min-height: 660px;
  padding: 86px 0 150px;
}

.hero-slide {
  display: none;
  align-items: center;
  grid-template-columns: minmax(0, 1.1fr) minmax(290px, 0.58fr);
  gap: 46px;
}

.hero-slide.active {
  display: grid;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 14px;
  padding: 7px 13px;
  border-radius: 999px;
  color: var(--blue-800);
  background: var(--blue-100);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hero-section .eyebrow {
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
}

.hero-copy h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero-title {
  margin: 20px 0 0;
  color: #fff7ed;
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 800;
}

.hero-desc {
  max-width: 720px;
  margin: 18px 0 0;
  color: #dbeafe;
  font-size: 20px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 14px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  color: var(--white);
  background: var(--orange-500);
  box-shadow: 0 14px 28px rgba(249, 115, 22, 0.28);
}

.btn.primary:hover {
  background: var(--orange-600);
}

.btn.ghost {
  color: var(--blue-800);
  background: var(--white);
}

.hero-poster {
  position: relative;
  display: block;
  border-radius: 34px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 30px 60px rgba(3, 7, 18, 0.32);
  transform: rotate(2deg);
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(15, 23, 42, 0.34));
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.hero-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 44px;
}

.hero-search {
  display: flex;
  width: min(620px, 100%);
  overflow: hidden;
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 16px 34px rgba(3, 7, 18, 0.18);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 18px;
  color: var(--gray-900);
}

.hero-search button {
  border: 0;
  padding: 16px 24px;
  color: var(--white);
  background: var(--orange-500);
  font-weight: 800;
}

.hero-dots {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
}

.hero-dot.active {
  width: 36px;
  background: var(--white);
}

.hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: 120px;
}

.section-block {
  padding: 66px 0;
}

.section-soft {
  padding: 66px 0;
  background: linear-gradient(180deg, #f8fafc, #eff6ff);
}

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

.section-head h2 {
  margin: 0;
  color: var(--gray-950);
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.18;
}

.section-head p {
  margin: 8px 0 0;
  color: var(--gray-500);
  font-size: 17px;
}

.section-more {
  flex: none;
  color: var(--blue-700);
  font-weight: 800;
}

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: #e2e8f0;
}

.poster-link img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.poster-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(15, 23, 42, 0.76);
  font-size: 13px;
  font-weight: 800;
}

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

.movie-meta-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--blue-700);
  font-size: 13px;
  font-weight: 800;
}

.movie-meta-row span {
  color: var(--gray-500);
}

.movie-card h3 {
  display: -webkit-box;
  min-height: 52px;
  margin: 0;
  overflow: hidden;
  color: var(--gray-950);
  font-size: 18px;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-card p {
  display: -webkit-box;
  min-height: 46px;
  margin: 8px 0 12px;
  overflow: hidden;
  color: var(--gray-500);
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.tag-list span {
  display: inline-flex;
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--orange-600);
  background: var(--orange-100);
  font-size: 12px;
  font-weight: 800;
}

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

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

.category-card {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.category-card > a {
  display: block;
  min-height: 160px;
  padding: 24px;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-700), var(--blue-900));
}

.category-card span {
  display: block;
  margin-bottom: 12px;
  color: #ffedd5;
  font-size: 22px;
  font-weight: 900;
}

.category-card strong {
  display: block;
  font-size: 15px;
  line-height: 1.7;
}

.mini-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 22px;
}

.mini-links a {
  display: block;
  overflow: hidden;
  color: var(--gray-700);
  font-size: 14px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-main {
  min-height: 60vh;
}

.page-hero {
  padding: 76px 0;
  background: linear-gradient(180deg, #eff6ff, #ffffff);
}

.page-hero.blue,
.category-hero {
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-700), var(--blue-900));
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.1;
}

.page-hero p {
  max-width: 760px;
  margin: 16px 0 0;
  color: var(--gray-500);
  font-size: 19px;
}

.page-hero.blue p,
.category-hero p {
  color: var(--blue-100);
}

.toolbar-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}

.toolbar-row a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--blue-800);
  background: var(--blue-100);
  font-weight: 800;
}

.rank-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rank-item {
  display: grid;
  grid-template-columns: 58px 88px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
}

.rank-number {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 15px;
  color: var(--white);
  background: linear-gradient(135deg, var(--orange-500), var(--blue-700));
  font-weight: 900;
}

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

.rank-content h3 {
  margin: 0;
  color: var(--gray-950);
  font-size: 18px;
}

.rank-content p {
  display: -webkit-box;
  margin: 6px 0 10px;
  overflow: hidden;
  color: var(--gray-500);
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.rank-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rank-meta span {
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--blue-800);
  background: var(--blue-100);
  font-size: 12px;
  font-weight: 800;
}

.filters {
  display: grid;
  grid-template-columns: 1fr 180px 160px;
  gap: 14px;
  margin-bottom: 18px;
}

.filters input,
.filters select {
  min-height: 52px;
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  outline: 0;
  padding: 0 14px;
  color: var(--gray-900);
  background: var(--white);
}

.search-summary {
  margin-bottom: 24px;
  color: var(--gray-500);
  font-weight: 700;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0;
  color: var(--gray-500);
  font-weight: 700;
}

.breadcrumb a {
  color: var(--blue-700);
}

.detail-layout {
  padding-bottom: 70px;
}

.detail-hero-card {
  display: grid;
  grid-template-columns: minmax(240px, 360px) minmax(0, 1fr);
  gap: 34px;
  padding: 30px;
  border-radius: 32px;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-700), var(--blue-900));
  box-shadow: var(--shadow);
}

.detail-poster img {
  width: 100%;
  border-radius: 24px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  box-shadow: 0 24px 48px rgba(3, 7, 18, 0.3);
}

.detail-info .eyebrow {
  color: var(--blue-900);
  background: var(--white);
}

.detail-info h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.1;
}

.detail-one-line {
  margin: 18px 0 0;
  color: var(--blue-100);
  font-size: 20px;
}

.detail-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 26px 0;
}

.detail-meta div {
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
}

.detail-meta dt {
  color: #bfdbfe;
  font-size: 13px;
  font-weight: 800;
}

.detail-meta dd {
  margin: 5px 0 0;
  font-size: 16px;
  font-weight: 800;
}

.large-tags span {
  color: var(--white);
  background: rgba(249, 115, 22, 0.72);
}

.player-card,
.article-card {
  margin-top: 34px;
  border: 1px solid var(--gray-200);
  border-radius: 28px;
  background: var(--white);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.player-frame {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
}

.player-frame video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.72));
}

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

.player-overlay button {
  border: 0;
  padding: 16px 30px;
  border-radius: 999px;
  color: var(--white);
  background: var(--orange-500);
  box-shadow: 0 18px 36px rgba(249, 115, 22, 0.38);
  font-size: 18px;
  font-weight: 900;
}

.article-card {
  padding: 32px;
}

.article-card h2 {
  margin: 0 0 14px;
  color: var(--gray-950);
  font-size: 28px;
}

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

.article-card p {
  margin: 0;
  color: var(--gray-700);
  font-size: 18px;
}

.related-block {
  padding-bottom: 0;
}

.site-footer {
  color: #d1d5db;
  background: var(--gray-950);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding: 46px 0;
}

.footer-logo {
  margin-bottom: 12px;
  color: var(--white);
  font-size: 24px;
  font-weight: 900;
}

.site-footer p {
  margin: 0;
  color: #9ca3af;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: 18px;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li + li {
  margin-top: 9px;
}

.site-footer a:hover {
  color: var(--orange-500);
}

.footer-bottom {
  padding: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  color: #9ca3af;
}

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

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

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

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

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

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

  .mobile-menu .nav-link {
    display: block;
    padding: 10px 0;
  }

  .hero-inner {
    min-height: auto;
    padding: 56px 0 130px;
  }

  .hero-slide.active,
  .detail-hero-card {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    max-width: 360px;
    margin: 0 auto;
  }

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

  .rank-list,
  .footer-grid,
  .filters {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 620px) {
  .container {
    width: min(100% - 22px, 1180px);
  }

  .logo {
    font-size: 21px;
  }

  .hero-copy h1 {
    font-size: 34px;
  }

  .hero-title {
    font-size: 24px;
  }

  .hero-desc {
    font-size: 16px;
  }

  .hero-search {
    flex-direction: column;
    border-radius: 16px;
  }

  .hero-search input {
    min-height: 52px;
  }

  .movie-grid,
  .compact-grid,
  .category-list-grid,
  .category-grid,
  .category-grid.large {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

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

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

  .movie-card p {
    min-height: 40px;
    font-size: 13px;
  }

  .rank-item {
    grid-template-columns: 44px 74px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
  }

  .rank-number {
    width: 40px;
    height: 40px;
  }

  .rank-poster img {
    width: 74px;
  }

  .article-card {
    padding: 22px;
  }
}
