* {
  box-sizing: border-box;
}

:root {
  --sky-50: #f0f9ff;
  --sky-100: #e0f2fe;
  --sky-200: #bae6fd;
  --sky-500: #0ea5e9;
  --sky-600: #0284c7;
  --sky-700: #0369a1;
  --blue-50: #eff6ff;
  --cyan-50: #ecfeff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #dbeafe;
  --card: #ffffff;
  --shadow: 0 18px 55px rgba(14, 116, 144, 0.14);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(135deg, var(--sky-50), var(--blue-50) 42%, var(--cyan-50));
  min-height: 100vh;
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(224, 242, 254, 0.94), rgba(239, 246, 255, 0.94), rgba(236, 254, 255, 0.94));
  border-bottom: 1px solid rgba(186, 230, 253, 0.8);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 32px rgba(2, 132, 199, 0.12);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.brand-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 14px;
  color: white;
  background: linear-gradient(135deg, #38bdf8, #0ea5e9, #06b6d4);
  box-shadow: 0 10px 24px rgba(14, 165, 233, 0.32);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-text strong {
  font-size: 21px;
  color: var(--sky-700);
  letter-spacing: 0.02em;
}

.brand-text small {
  color: var(--sky-500);
  font-size: 12px;
}

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

.nav-link {
  padding: 10px 13px;
  border-radius: 12px;
  color: #334155;
  font-size: 15px;
  font-weight: 700;
  transition: 0.22s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--sky-700);
  background: rgba(186, 230, 253, 0.65);
}

.top-search,
.mobile-search {
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--sky-200);
  border-radius: 999px;
  background: white;
}

.top-search input,
.mobile-search input,
.filter-bar input,
.quick-search-card input {
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.top-search input {
  width: 210px;
  padding: 11px 14px;
}

.top-search button,
.mobile-search button,
.quick-search-card button {
  border: 0;
  color: white;
  background: linear-gradient(135deg, var(--sky-500), #06b6d4);
  padding: 11px 16px;
  cursor: pointer;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--sky-700);
  background: rgba(186, 230, 253, 0.6);
  cursor: pointer;
}

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

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

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

.mobile-links a,
.mobile-cats a {
  padding: 9px 12px;
  border-radius: 12px;
  background: white;
  color: #334155;
  border: 1px solid var(--border);
}

.hero-wrap {
  position: relative;
  overflow: hidden;
  padding: 38px 0 26px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(14, 165, 233, 0.28), transparent 28%),
    radial-gradient(circle at 86% 10%, rgba(6, 182, 212, 0.24), transparent 30%),
    linear-gradient(120deg, rgba(224, 242, 254, 0.96), rgba(239, 246, 255, 0.92), rgba(207, 250, 254, 0.95));
}

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

.hero-slide {
  display: none;
  align-items: center;
  gap: 48px;
  min-height: 540px;
  padding: 42px;
  border: 1px solid rgba(186, 230, 253, 0.9);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(22px);
  box-shadow: var(--shadow);
}

.hero-slide.active {
  display: flex;
  animation: fadeUp 0.45s ease both;
}

.hero-copy {
  flex: 1 1 58%;
  min-width: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 16px;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--sky-700);
  background: rgba(224, 242, 254, 0.9);
  border: 1px solid rgba(186, 230, 253, 0.9);
  font-size: 14px;
  font-weight: 800;
}

.hero-copy h1 {
  margin: 0 0 20px;
  font-size: clamp(38px, 7vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.06em;
  color: #082f49;
}

.hero-copy p {
  max-width: 680px;
  margin: 0 0 24px;
  font-size: 18px;
  line-height: 1.9;
  color: #475569;
}

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

.primary-btn,
.ghost-btn,
.section-head a,
.rank-entry a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  transition: 0.22s ease;
}

.primary-btn {
  padding: 14px 24px;
  color: white;
  background: linear-gradient(135deg, var(--sky-500), #06b6d4);
  box-shadow: 0 14px 26px rgba(14, 165, 233, 0.32);
}

.ghost-btn {
  padding: 13px 22px;
  color: var(--sky-700);
  border: 1px solid var(--sky-200);
  background: rgba(255, 255, 255, 0.8);
}

.primary-btn:hover,
.ghost-btn:hover,
.movie-card:hover,
.category-card:hover,
.overview-card:hover,
.rank-item:hover {
  transform: translateY(-3px);
}

.hero-poster {
  flex: 0 0 min(360px, 36%);
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.26);
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(8, 47, 73, 0.18));
}

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

.hero-dots {
  position: absolute;
  left: 42px;
  bottom: 30px;
  display: flex;
  gap: 9px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.28);
  cursor: pointer;
}

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

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

.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--sky-700);
  background: var(--sky-100);
  font-size: 12px;
  font-weight: 800;
}

.quick-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.5fr);
  gap: 22px;
  margin-top: 34px;
}

.quick-search-card,
.rank-entry,
.tag-cloud,
.detail-content article,
.detail-content aside,
.ranking-hero,
.player-shell,
.overview-card,
.category-card,
.movie-card {
  border: 1px solid rgba(186, 230, 253, 0.86);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 38px rgba(14, 116, 144, 0.1);
}

.quick-search-card,
.rank-entry,
.tag-cloud {
  padding: 24px;
}

.quick-search-card h2,
.rank-entry strong,
.tag-cloud h2 {
  margin: 0 0 10px;
  color: #082f49;
}

.quick-search-card p,
.rank-entry p,
.section-head p,
.page-title p,
.movie-card p,
.card-meta,
.breadcrumb,
.detail-info .lead,
.detail-content p,
.detail-content li {
  color: var(--muted);
}

.quick-search-card form {
  display: flex;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--sky-200);
  border-radius: 999px;
  background: white;
}

.quick-search-card input {
  flex: 1;
  padding: 15px 18px;
}

.rank-entry span {
  display: block;
  margin-bottom: 10px;
  color: var(--sky-600);
  font-weight: 900;
}

.rank-entry strong {
  display: block;
  font-size: 26px;
}

.rank-entry a {
  color: white;
  background: var(--sky-600);
  padding: 10px 16px;
}

section.container {
  margin-top: 54px;
}

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

.section-head h2,
.page-title h1,
.detail-info h1 {
  margin: 0;
  color: #082f49;
  letter-spacing: -0.035em;
}

.section-head h2 {
  font-size: 34px;
}

.section-head p {
  margin: 8px 0 0;
}

.section-head a {
  color: var(--sky-700);
  background: white;
  border: 1px solid var(--sky-200);
  padding: 10px 16px;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 180px;
  padding: 20px;
  transition: 0.22s ease;
}

.category-card span,
.category-card strong,
.category-card small {
  position: relative;
  z-index: 2;
  display: block;
}

.category-card span {
  color: var(--sky-700);
  font-weight: 900;
}

.category-card strong {
  margin-top: 8px;
  font-size: 28px;
}

.category-card small {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.6;
}

.category-card img {
  position: absolute;
  right: -8px;
  bottom: -18px;
  width: 98px;
  height: 132px;
  object-fit: cover;
  border-radius: 18px;
  opacity: 0.28;
  transform: rotate(9deg);
}

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

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

.movie-card {
  overflow: hidden;
  transition: 0.22s ease;
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--sky-100);
}

.poster-link img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: 0.3s ease;
}

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

.play-dot {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: rgba(14, 165, 233, 0.92);
  box-shadow: 0 10px 22px rgba(14, 165, 233, 0.28);
}

.card-body {
  padding: 16px;
}

.card-meta {
  font-size: 12px;
  font-weight: 800;
}

.movie-card h3 {
  margin: 8px 0;
  font-size: 19px;
  line-height: 1.35;
}

.movie-card h3 a:hover {
  color: var(--sky-600);
}

.movie-card p {
  display: -webkit-box;
  min-height: 47px;
  margin: 0 0 14px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.65;
  font-size: 14px;
}

.movie-card.compact h3 {
  font-size: 16px;
}

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

.movie-card.compact p {
  display: none;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 42px 72px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: white;
  transition: 0.22s ease;
}

.rank-num {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 999px;
  color: var(--sky-700);
  background: var(--sky-100);
  font-weight: 900;
}

.rank-item.top .rank-num {
  color: white;
  background: linear-gradient(135deg, #facc15, #f97316);
}

.rank-item img {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  object-fit: cover;
}

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

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

.rank-info small {
  margin-top: 6px;
  color: var(--muted);
}

.tag-cloud div {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.tag-cloud a {
  padding: 8px 12px;
  border: 1px solid var(--sky-200);
  border-radius: 999px;
  color: var(--sky-700);
  background: white;
  font-weight: 800;
}

.page-main {
  padding: 42px 0 70px;
}

.page-title {
  margin-bottom: 28px;
}

.page-title span {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--sky-600);
  font-weight: 900;
  text-transform: uppercase;
}

.page-title h1 {
  font-size: clamp(38px, 6vw, 62px);
}

.page-title p {
  max-width: 760px;
  font-size: 17px;
  line-height: 1.8;
}

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

.overview-card {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 20px;
  padding: 18px;
  transition: 0.22s ease;
}

.overview-covers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.overview-covers img {
  height: 100px;
  border-radius: 14px;
  object-fit: cover;
}

.overview-card h2 {
  margin: 4px 0 8px;
  color: #082f49;
}

.overview-card p {
  color: var(--muted);
  line-height: 1.7;
}

.overview-card span {
  color: var(--sky-700);
  font-weight: 900;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 14px;
}

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

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding: 12px;
  border: 1px solid var(--sky-200);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 12px 28px rgba(14, 116, 144, 0.08);
}

.sticky-filter {
  position: sticky;
  top: 86px;
  z-index: 20;
}

.filter-bar input {
  flex: 1;
  padding: 12px 14px;
  border-radius: 14px;
  background: white;
  border: 1px solid var(--border);
}

.filter-bar span {
  color: var(--sky-700);
  font-weight: 900;
}

.ranking-hero {
  padding: 20px;
  margin-bottom: 42px;
}

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

.detail-hero {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  padding: 28px;
  border: 1px solid rgba(186, 230, 253, 0.86);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.24);
}

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

.detail-info h1 {
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.03;
}

.detail-info .lead {
  margin: 18px 0 20px;
  font-size: 18px;
  line-height: 1.9;
}

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

.movie-facts div {
  padding: 14px;
  border-radius: 18px;
  background: rgba(224, 242, 254, 0.75);
}

.movie-facts dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.movie-facts dd {
  margin: 8px 0 0;
  color: #082f49;
  font-weight: 900;
}

.player-section {
  margin: 34px 0;
}

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.player-shell video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #020617;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 14px;
  border: 0;
  color: white;
  background: linear-gradient(180deg, rgba(8, 47, 73, 0.22), rgba(2, 6, 23, 0.72));
  cursor: pointer;
  text-align: center;
}

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

.big-play {
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.92);
  box-shadow: 0 18px 45px rgba(14, 165, 233, 0.34);
  font-size: 32px;
}

.player-cover strong {
  font-size: 22px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  margin-bottom: 48px;
}

.detail-content article,
.detail-content aside {
  padding: 26px;
}

.detail-content h2 {
  margin: 0 0 14px;
  color: #082f49;
}

.detail-content p {
  margin: 0 0 24px;
  line-height: 2;
  font-size: 16px;
}

.detail-content ul {
  margin: 0;
  padding-left: 18px;
  line-height: 2;
}

.site-footer {
  margin-top: 72px;
  padding: 42px 0;
  border-top: 1px solid rgba(186, 230, 253, 0.86);
  background: rgba(255, 255, 255, 0.68);
}

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(180px, 0.5fr));
  gap: 28px;
}

.footer-about p,
.site-footer li {
  color: var(--muted);
  line-height: 1.8;
}

.site-footer h3 {
  margin: 0 0 12px;
  color: #082f49;
}

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

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

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

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

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

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

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

  .hero-slide,
  .quick-panel,
  .split-layout,
  .detail-hero,
  .detail-content,
  .footer-grid,
  .overview-card {
    grid-template-columns: 1fr;
  }

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

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

  .hero-inner {
    min-height: auto;
  }

  .hero-poster {
    width: min(320px, 100%);
    flex: none;
  }

  .hero-dots {
    position: static;
    margin: 16px 0 0 24px;
  }

  .overview-covers {
    max-width: 220px;
  }

  .movie-facts {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .brand-text strong {
    font-size: 18px;
  }

  .hero-wrap {
    padding-top: 22px;
  }

  .hero-slide {
    border-radius: 24px;
  }

  .hero-copy h1,
  .page-title h1,
  .detail-info h1 {
    letter-spacing: -0.04em;
  }

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

  .card-body {
    padding: 12px;
  }

  .movie-card h3 {
    font-size: 16px;
  }

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

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

  .filter-bar {
    align-items: stretch;
    flex-direction: column;
  }

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

  .rank-item img {
    width: 58px;
    height: 58px;
  }

  .detail-hero {
    padding: 18px;
    border-radius: 24px;
  }

  .big-play {
    width: 68px;
    height: 68px;
  }
}
