:root {
  --blue: #0a62b8;
  --blue-deep: #073b7a;
  --blue-soft: #0b8bdc;
  --yellow: #ffd84d;
  --yellow-deep: #f4b400;
  --red: #ef4444;
  --ink: #162033;
  --muted: #667085;
  --line: #e6edf7;
  --paper: #ffffff;
  --bg: #f5f8fd;
  --shadow: 0 18px 45px rgba(7, 59, 122, 0.15);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(120deg, var(--blue-deep), var(--blue));
  color: #ffffff;
  box-shadow: 0 8px 28px rgba(7, 59, 122, 0.22);
}

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

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

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--blue-deep);
  background: var(--yellow);
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.12);
}

.brand-name {
  font-size: 24px;
  letter-spacing: 1px;
}

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

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

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

.header-search,
.mobile-search {
  display: flex;
  align-items: center;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.header-search input,
.mobile-search input {
  width: 210px;
  padding: 11px 14px;
  border: 0;
  outline: 0;
  color: #ffffff;
  background: transparent;
}

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

.header-search button,
.mobile-search button {
  border: 0;
  padding: 11px 16px;
  color: var(--blue-deep);
  background: var(--yellow);
  font-weight: 800;
  cursor: pointer;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.15);
  cursor: pointer;
}

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

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

.mobile-panel nav {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: radial-gradient(circle at 18% 0%, rgba(255, 216, 77, 0.35), transparent 28%), linear-gradient(135deg, #052d60, #0b75c9 55%, #0a62b8);
}

.hero-track {
  position: relative;
  min-height: 650px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 420px);
  align-items: center;
  gap: 42px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0 98px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(32px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.18;
  filter: blur(18px) saturate(1.2);
  transform: scale(1.08);
}

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

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--yellow);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: -2px;
}

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

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 11px;
  border-radius: 999px;
  color: var(--blue-deep);
  background: rgba(255, 216, 77, 0.92);
  font-size: 13px;
  font-weight: 800;
}

.hero-tags {
  margin-top: 22px;
}

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

.primary-btn,
.ghost-btn,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 900;
  transition: 0.25s ease;
}

.primary-btn {
  color: var(--blue-deep);
  background: var(--yellow);
  box-shadow: 0 12px 30px rgba(255, 216, 77, 0.32);
}

.primary-btn:hover {
  transform: translateY(-2px);
  background: #ffe780;
}

.ghost-btn {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.26);
}

.ghost-btn:hover {
  background: rgba(255, 255, 255, 0.24);
}

.hero-poster {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
  transform: rotate(2deg);
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: auto 22px 22px 22px;
  height: 48px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 216, 77, 0.85), rgba(255, 255, 255, 0.2));
  filter: blur(18px);
}

.hero-poster img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 32px;
  z-index: 4;
  width: min(1180px, calc(100% - 32px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-prev,
.hero-next,
.hero-dot {
  border: 0;
  cursor: pointer;
}

.hero-prev,
.hero-next {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  font-size: 30px;
  line-height: 1;
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  transition: 0.25s ease;
}

.hero-dot.active {
  width: 34px;
  background: var(--yellow);
}

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

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

.section-heading h2,
.panel-title h2,
.story-panel h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(24px, 3vw, 36px);
}

.section-heading p {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.section-more,
.text-link {
  color: var(--blue);
  background: rgba(10, 98, 184, 0.08);
}

.section-more {
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 900;
  white-space: nowrap;
}

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--paper);
  box-shadow: 0 10px 28px rgba(7, 59, 122, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.card-poster {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
}

.card-poster img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.card-type,
.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--blue-deep);
  background: var(--yellow);
  font-size: 12px;
  font-weight: 900;
}

.rank-badge {
  min-width: 32px;
  text-align: center;
}

.card-play {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(239, 68, 68, 0.9);
  box-shadow: 0 12px 28px rgba(239, 68, 68, 0.3);
}

.card-body {
  padding: 16px;
}

.card-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.card-meta span,
.detail-meta span {
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef5ff;
}

.card-body h3,
.card-body h2 {
  margin: 12px 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

.card-body p {
  min-height: 68px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.card-body .tag-row span {
  color: var(--blue);
  background: #edf6ff;
}

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

.category-chip {
  display: block;
  padding: 20px;
  border-radius: 20px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--blue-soft));
  box-shadow: 0 14px 32px rgba(10, 98, 184, 0.18);
}

.category-chip span {
  display: block;
  font-size: 20px;
  font-weight: 900;
}

.category-chip small {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.78);
}

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

.ranking-panel {
  position: sticky;
  top: 96px;
  padding: 22px;
  border-radius: 26px;
  background: linear-gradient(180deg, #ffffff, #edf6ff);
  box-shadow: var(--shadow);
}

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.panel-title a {
  color: var(--blue);
  font-weight: 900;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 32px 72px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: #ffffff;
  transition: 0.2s ease;
}

.rank-row:hover {
  transform: translateX(4px);
  box-shadow: 0 10px 24px rgba(7, 59, 122, 0.12);
}

.rank-number {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: var(--blue-deep);
  background: var(--yellow);
  font-weight: 900;
}

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

.rank-info strong,
.rank-info em {
  display: block;
}

.rank-info strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-info em {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: radial-gradient(circle at 20% 0%, rgba(255, 216, 77, 0.28), transparent 25%), linear-gradient(135deg, var(--blue-deep), var(--blue));
}

.simple-hero,
.search-hero {
  padding: 82px max(16px, calc((100% - 1180px) / 2)) 70px;
}

.page-hero p {
  max-width: 760px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
}

.page-tools,
.big-search {
  margin-top: 26px;
}

.inline-filter,
.big-search input {
  width: min(720px, 100%);
  min-height: 52px;
  border: 0;
  border-radius: 999px;
  outline: 0;
  padding: 0 22px;
  color: var(--ink);
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
}

.big-search {
  display: flex;
  gap: 12px;
  align-items: center;
  max-width: 820px;
}

.big-search input {
  flex: 1;
}

.big-search button {
  min-height: 52px;
  border: 0;
  border-radius: 999px;
  padding: 0 24px;
  color: var(--blue-deep);
  background: var(--yellow);
  font-weight: 900;
  cursor: pointer;
}

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

.category-card {
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(7, 59, 122, 0.08);
}

.category-cover-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--blue-deep);
}

.category-cover-strip img {
  height: 150px;
  object-fit: cover;
}

.category-card-body {
  padding: 20px;
}

.category-card-body h2 {
  margin: 0 0 10px;
}

.category-card-body p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.7;
}

.detail-hero {
  min-height: 560px;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.16;
  filter: blur(18px) saturate(1.1);
  transform: scale(1.06);
}

.detail-backdrop img {
  height: 100%;
  object-fit: cover;
}

.detail-wrap {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 560px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 44px;
  align-items: center;
  padding: 58px 0;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.32);
}

.detail-poster img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
}

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

.detail-one-line {
  margin: 22px 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 20px;
  line-height: 1.8;
}

.detail-meta span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
}

.detail-tags {
  margin: 24px 0 30px;
}

.player-section {
  padding-bottom: 24px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000000;
  box-shadow: 0 22px 60px rgba(7, 59, 122, 0.24);
}

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

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: #000000;
}

.player-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.56;
}

.player-cover.hidden {
  display: none;
}

.player-play {
  position: absolute;
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--blue-deep);
  background: var(--yellow);
  font-size: 36px;
  box-shadow: 0 16px 44px rgba(255, 216, 77, 0.38);
}

.detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.story-panel {
  padding: 28px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(7, 59, 122, 0.08);
}

.story-panel p {
  margin: 16px 0 0;
  color: #344054;
  line-height: 1.95;
  font-size: 16px;
}

.compact-card .card-body p {
  min-height: 58px;
}

.site-footer {
  margin-top: 40px;
  color: #ffffff;
  background: #0b1220;
}

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 46px 0;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.4fr;
  gap: 32px;
}

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

.site-footer p {
  max-width: 440px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.8;
}

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

.footer-links {
  display: grid;
  gap: 8px;
}

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

.footer-links a {
  color: rgba(255, 255, 255, 0.74);
}

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

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.62);
  text-align: center;
  font-size: 14px;
}

.no-results {
  grid-column: 1 / -1;
  padding: 48px;
  border-radius: 24px;
  color: var(--muted);
  background: #ffffff;
  text-align: center;
}

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

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

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

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

  .ranking-panel {
    position: static;
  }
}

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

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .hero-track {
    min-height: 720px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 38px;
  }

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

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

  .detail-poster {
    max-width: 260px;
  }

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

@media (max-width: 640px) {
  .header-inner {
    min-height: 64px;
  }

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

  .hero h1,
  .page-hero h1,
  .detail-info h1 {
    letter-spacing: -1px;
  }

  .hero-text,
  .detail-one-line {
    font-size: 17px;
  }

  .hero-actions,
  .big-search,
  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .movie-grid,
  .small-grid,
  .category-movie-grid,
  .category-grid,
  .category-chip-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .card-body {
    padding: 13px;
  }

  .card-body h3,
  .card-body h2 {
    font-size: 16px;
  }

  .card-body p {
    display: none;
  }

  .tag-row span {
    font-size: 12px;
  }

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

  .simple-hero,
  .search-hero {
    padding-top: 54px;
    padding-bottom: 50px;
  }

  .player-play {
    width: 64px;
    height: 64px;
    font-size: 28px;
  }
}
