@font-face {
  font-family: "HongfenSystem";
  src: local("Inter"), local("Noto Sans SC"), local("Microsoft YaHei");
}

:root {
  --blue: #0096dc;
  --blue-dark: #0077b6;
  --blue-light: #4db8e8;
  --yellow: #ffd700;
  --yellow-dark: #ffc700;
  --red: #e63946;
  --cream: #fff9e6;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(17, 24, 39, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: HongfenSystem, Inter, "Noto Sans SC", "Microsoft YaHei", sans-serif;
  color: var(--gray-800);
  background: linear-gradient(180deg, var(--cream), var(--white) 420px, var(--gray-50));
}

body.menu-open {
  overflow: hidden;
}

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

img {
  display: block;
  width: 100%;
  height: auto;
}

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--white);
  background: linear-gradient(90deg, rgba(0, 150, 220, 0.98), rgba(77, 184, 232, 0.98));
  box-shadow: 0 10px 28px rgba(0, 119, 182, 0.2);
  backdrop-filter: blur(14px);
}

.nav-bar {
  display: flex;
  align-items: center;
  gap: 26px;
  min-height: 74px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  color: var(--blue-dark);
  background: var(--yellow);
  font-weight: 900;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.08);
}

.brand-text {
  display: grid;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 22px;
  letter-spacing: 0.02em;
}

.brand-text small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.9);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--blue-dark);
  background: var(--yellow);
  transform: translateY(-1px);
}

.nav-search,
.mobile-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.nav-search input,
.mobile-search input {
  width: 170px;
  border: 0;
  outline: 0;
  color: var(--white);
  background: transparent;
}

.nav-search input::placeholder,
.mobile-search input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.nav-search button,
.mobile-search button {
  border: 0;
  border-radius: 999px;
  padding: 7px 14px;
  color: var(--blue-dark);
  background: var(--yellow);
  font-weight: 800;
  cursor: pointer;
}

.menu-button {
  display: none;
  border: 0;
  border-radius: 999px;
  padding: 9px 14px;
  color: var(--blue-dark);
  background: var(--yellow);
  font-weight: 800;
}

.mobile-nav {
  display: none;
  padding: 0 16px 18px;
}

.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: radial-gradient(circle at 12% 18%, rgba(255, 215, 0, 0.26), transparent 28%), linear-gradient(120deg, var(--blue), var(--blue-light));
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
  align-items: center;
  gap: 42px;
  min-height: 660px;
  padding: 64px 0;
}

.hero-shape {
  position: absolute;
  border-radius: 999px;
  background: var(--yellow);
  opacity: 0.12;
  animation: bounce-slow 7s ease-in-out infinite;
}

.hero-shape-one {
  width: 150px;
  height: 150px;
  top: 80px;
  left: 7%;
}

.hero-shape-two {
  width: 240px;
  height: 240px;
  right: 6%;
  bottom: 60px;
  animation-delay: 1.2s;
}

.eyebrow,
.page-hero span,
.section-heading span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 7px 14px;
  color: var(--blue-dark);
  background: var(--yellow);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.hero-copy h1 {
  margin: 22px 0 20px;
  max-width: 680px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.hero-copy p {
  max-width: 650px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 20px;
  line-height: 1.8;
}

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

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

.primary-button {
  color: var(--blue-dark);
  background: var(--yellow);
  box-shadow: 0 14px 30px rgba(255, 199, 0, 0.28);
}

.ghost-button {
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

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

.hero-panel {
  overflow: hidden;
  border-radius: 30px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

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

.hero-slide {
  display: none;
  height: 520px;
  overflow: hidden;
  border-radius: 24px;
  color: var(--white);
  background: var(--gray-900);
}

.hero-slide.is-active {
  display: grid;
  animation: fade-in 0.45s ease both;
}

.hero-slide img {
  height: 100%;
  object-fit: cover;
}

.hero-slide div {
  position: absolute;
  inset: auto 0 0 0;
  padding: 120px 26px 26px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0));
}

.hero-slide span {
  display: inline-flex;
  margin-bottom: 8px;
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--blue-dark);
  background: var(--yellow);
  font-size: 12px;
  font-weight: 900;
}

.hero-slide h2 {
  margin: 0 0 8px;
  font-size: 28px;
}

.hero-slide p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
}

.hero-slide a {
  display: inline-flex;
  border-radius: 999px;
  padding: 10px 18px;
  color: var(--blue-dark);
  background: var(--yellow);
  font-weight: 900;
}

.hero-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding-top: 14px;
}

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

.hero-dots button.active {
  width: 30px;
  background: var(--yellow);
}

.section {
  padding: 72px 0;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 38px);
  color: var(--gray-800);
}

.section-heading a {
  margin-left: auto;
  border-radius: 999px;
  padding: 9px 16px;
  color: var(--blue-dark);
  background: rgba(0, 150, 220, 0.1);
  font-weight: 800;
}

.section-heading.light h2,
.section-heading.light a {
  color: var(--white);
}

.section-heading.light a {
  background: rgba(255, 255, 255, 0.18);
}

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

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

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

.movie-card {
  display: grid;
  overflow: hidden;
  border-radius: var(--radius);
  color: var(--gray-800);
  background: var(--white);
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.poster-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--blue);
}

.movie-card.compact .poster-wrap {
  aspect-ratio: 4 / 5;
}

.poster-wrap img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.poster-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--white);
  background: rgba(230, 57, 70, 0.92);
  font-size: 12px;
  font-weight: 900;
}

.poster-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--white);
  background: rgba(0, 0, 0, 0.34);
  opacity: 0;
  font-size: 42px;
  transition: opacity 0.25s ease;
}

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

.movie-card-body {
  display: grid;
  gap: 10px;
  padding: 18px;
}

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

.movie-card strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  min-height: 2.8em;
  font-size: 18px;
  line-height: 1.4;
}

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

.movie-card em {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  min-height: 3.2em;
  color: var(--gray-500);
  font-size: 13px;
  font-style: normal;
  line-height: 1.6;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  color: var(--gray-500);
  font-size: 12px;
}

.movie-meta span,
.tag-row span,
.tag-cloud span,
.info-pills span {
  display: inline-flex;
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(0, 150, 220, 0.1);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--blue-dark);
  font-size: 12px;
}

.category-band {
  color: var(--white);
  background: linear-gradient(90deg, var(--blue), var(--blue-light));
}

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

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

.category-tile {
  display: grid;
  gap: 12px;
  min-height: 180px;
  border-radius: 24px;
  padding: 24px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 24px rgba(0, 119, 182, 0.16);
  transition: transform 0.22s ease, background 0.22s ease;
}

.category-tile:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.24);
}

.category-tile span {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  color: var(--blue-dark);
  background: var(--yellow);
  font-weight: 900;
}

.category-tile strong {
  font-size: 22px;
}

.category-tile em {
  color: rgba(255, 255, 255, 0.78);
  font-style: normal;
  line-height: 1.65;
}

.ranking-band,
.popular-section {
  color: var(--white);
  background: var(--blue);
}

.ranking-band {
  background: linear-gradient(90deg, var(--yellow-dark), var(--yellow));
}

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

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

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

.rank-item {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  overflow: hidden;
  border-radius: 18px;
  padding: 14px;
  color: var(--gray-800);
  background: var(--white);
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.rank-poster {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  aspect-ratio: 4 / 3;
  background: var(--blue);
}

.rank-poster img {
  height: 100%;
  object-fit: cover;
}

.rank-number {
  position: absolute;
  z-index: 2;
  top: 8px;
  left: 8px;
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  border-radius: 999px;
  color: var(--white);
  background: var(--red);
  font-weight: 900;
}

.rank-number.small {
  background: rgba(0, 150, 220, 0.9);
}

.rank-copy {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.rank-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 18px;
}

.rank-copy em {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: var(--gray-500);
  font-style: normal;
  line-height: 1.6;
}

.rank-copy span {
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 700;
}

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

.cta-panel {
  border-radius: 30px;
  padding: 52px;
  color: var(--white);
  text-align: center;
  background: linear-gradient(90deg, var(--blue), var(--blue-light));
  box-shadow: var(--shadow);
}

.cta-panel h2 {
  margin: 0 0 12px;
  font-size: 36px;
}

.cta-panel p {
  max-width: 760px;
  margin: 0 auto 26px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
}

.page-hero {
  color: var(--white);
  background: radial-gradient(circle at 80% 20%, rgba(255, 215, 0, 0.22), transparent 26%), linear-gradient(100deg, var(--blue), var(--blue-light));
}

.page-hero .container {
  padding: 72px 0;
}

.page-hero h1 {
  margin: 20px 0 14px;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.05;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 19px;
  line-height: 1.8;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 18px;
  margin-bottom: 26px;
  border-radius: 24px;
  padding: 18px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.08);
}

.filter-panel label {
  display: grid;
  gap: 8px;
  color: var(--gray-700);
  font-weight: 800;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  padding: 0 16px;
  color: var(--gray-800);
  background: var(--gray-50);
  outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(0, 150, 220, 0.12);
}

.detail-page {
  padding: 34px 0 72px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin: 0 0 22px;
  color: var(--gray-500);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--blue-dark);
  font-weight: 800;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}

.detail-main {
  display: grid;
  gap: 24px;
}

.player-card,
.movie-info-panel,
.side-panel {
  overflow: hidden;
  border-radius: 26px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--gray-900);
}

.video-frame video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--gray-900);
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: var(--white);
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.22));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-overlay span {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  color: var(--blue-dark);
  background: var(--yellow);
  font-size: 34px;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.28);
}

.play-overlay strong {
  max-width: min(720px, calc(100% - 48px));
  font-size: clamp(24px, 4vw, 42px);
  line-height: 1.2;
}

.play-overlay em {
  border-radius: 999px;
  padding: 9px 18px;
  color: var(--blue-dark);
  background: var(--yellow);
  font-style: normal;
  font-weight: 900;
}

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

.movie-info-panel {
  padding: 28px;
}

.movie-info-panel h1 {
  margin: 0 0 16px;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.12;
}

.info-pills,
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.info-pills span {
  color: var(--blue-dark);
  font-weight: 800;
}

.lead-text {
  margin: 22px 0;
  color: var(--gray-700);
  font-size: 19px;
  line-height: 1.8;
}

.article-block {
  margin-top: 24px;
  border-top: 1px solid var(--gray-200);
  padding-top: 24px;
}

.article-block h2,
.side-panel h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.article-block p {
  margin: 0;
  color: var(--gray-700);
  line-height: 1.9;
}

.tag-cloud {
  margin-top: 24px;
}

.tag-cloud span {
  color: var(--blue-dark);
  font-weight: 700;
}

.side-panel {
  position: sticky;
  top: 96px;
  padding: 20px;
}

.side-panel .rank-item {
  grid-template-columns: 108px minmax(0, 1fr);
  padding: 10px;
  box-shadow: none;
  border: 1px solid var(--gray-200);
}

.side-panel .rank-copy strong {
  font-size: 15px;
}

.side-panel .rank-copy em {
  -webkit-line-clamp: 2;
  font-size: 12px;
}

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

.site-footer {
  color: var(--white);
  background: var(--gray-900);
}

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

.footer-brand {
  margin-bottom: 16px;
  font-size: 22px;
  font-weight: 900;
}

.site-footer p {
  max-width: 560px;
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.8;
}

.site-footer h2 {
  margin: 0 0 16px;
  color: var(--yellow);
  font-size: 18px;
}

.site-footer a,
.site-footer span {
  display: block;
  margin: 9px 0;
  color: rgba(255, 255, 255, 0.62);
}

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

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

[data-card][hidden] {
  display: none;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce-slow {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-24px);
  }
}

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

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    max-width: 620px;
  }

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

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

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

  .side-panel {
    position: static;
  }
}

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

  .main-nav {
    display: none;
  }

  .menu-button {
    display: inline-flex;
    margin-left: auto;
  }

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

  .mobile-nav .nav-link {
    display: block;
    text-align: center;
  }

  .mobile-search {
    display: flex;
  }

  .mobile-search input {
    width: 100%;
  }

  .hero-grid {
    min-height: auto;
    padding: 46px 0;
  }

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

  .hero-copy p,
  .page-hero p {
    font-size: 16px;
  }

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

  .section {
    padding: 48px 0;
  }

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

  .section-heading a {
    margin-left: 0;
  }

  .movie-grid,
  .featured-grid,
  .compact-grid,
  .popular-grid,
  .rank-grid,
  .rank-list.full,
  .category-grid,
  .category-grid.large,
  .footer-grid,
  .filter-panel {
    grid-template-columns: 1fr;
  }

  .rank-item {
    grid-template-columns: 108px minmax(0, 1fr);
  }

  .movie-info-panel,
  .cta-panel {
    padding: 24px;
  }

  .footer-grid {
    gap: 24px;
  }
}
