* {
  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: #111827;
  background: #f8fafc;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

img,
video {
  display: block;
  max-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;
  color: #ffffff;
  background: linear-gradient(90deg, #0f172a, #1e3a8a, #0f172a);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.26);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #0f172a;
  background: linear-gradient(135deg, #22d3ee, #ffffff);
  box-shadow: 0 0 28px rgba(34, 211, 238, 0.5);
}

.brand-text {
  font-size: 22px;
  background: linear-gradient(90deg, #60a5fa, #67e8f9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex: 1;
}

.nav-link,
.nav-dropdown > button {
  padding: 8px 0;
  color: rgba(255, 255, 255, 0.88);
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.nav-dropdown:hover > button {
  color: #67e8f9;
}

.nav-dropdown {
  position: relative;
}

.nav-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  min-width: 180px;
  padding: 8px;
  border-radius: 16px;
  background: #ffffff;
  color: #1f2937;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.24);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
}

.nav-dropdown:hover .nav-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-menu a {
  display: block;
  padding: 9px 12px;
  border-radius: 10px;
}

.nav-menu a:hover {
  color: #2563eb;
  background: #eff6ff;
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(360px, 34vw);
}

.header-search input,
.search-page-form input,
.filter-bar input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  outline: none;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 10px 14px;
}

.header-search input::placeholder,
.search-page-form input::placeholder,
.filter-bar input::placeholder {
  color: rgba(255, 255, 255, 0.65);
}

.header-search button,
.search-page-form button {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  color: #0f172a;
  background: #67e8f9;
  font-weight: 700;
  cursor: pointer;
}

.menu-button {
  display: none;
  margin-left: auto;
  border: 0;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 8px 11px;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 660px;
  color: #ffffff;
  background: linear-gradient(135deg, #172554 0%, #1e40af 45%, #0891b2 100%);
}

.hero-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(45px);
  opacity: 0.22;
  pointer-events: none;
}

.orb-a {
  width: 360px;
  height: 360px;
  left: 6%;
  top: 10%;
  background: #22d3ee;
}

.orb-b {
  width: 460px;
  height: 460px;
  right: -6%;
  bottom: -10%;
  background: #3b82f6;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 74px 0 64px;
}

.hero-slide {
  display: none;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.78fr);
  gap: 56px;
  align-items: center;
}

.hero-slide.is-active {
  display: grid;
  animation: fadeUp 0.55s ease both;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #67e8f9;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.hero-copy p {
  max-width: 720px;
  margin: 0 0 26px;
  color: #dbeafe;
  font-size: 20px;
}

.hero-tags,
.detail-meta,
.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.hero-tags span,
.detail-meta span {
  padding: 7px 11px;
  border-radius: 999px;
  color: #eff6ff;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  min-height: 46px;
  padding: 0 22px;
  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: #172554;
  background: #ffffff;
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.22);
}

.btn.glass {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(30, 64, 175, 0.48);
  backdrop-filter: blur(8px);
}

.hero-feature {
  position: relative;
  display: block;
  min-height: 430px;
  overflow: hidden;
  border-radius: 30px;
  box-shadow: 0 40px 90px rgba(15, 23, 42, 0.44);
  transform: translateZ(0);
}

.hero-feature img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero-feature:hover img {
  transform: scale(1.06);
}

.hero-feature-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.78));
}

.feature-label {
  position: absolute;
  top: 20px;
  left: 20px;
  padding: 6px 12px;
  border-radius: 999px;
  color: #ffffff;
  background: #ef4444;
  font-size: 13px;
  font-weight: 800;
}

.hero-feature strong {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  font-size: 28px;
  line-height: 1.25;
}

.hero-dots {
  display: flex;
  gap: 10px;
  margin-top: 34px;
}

.hero-dot {
  width: 34px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

.hero-dot.is-active {
  background: #ffffff;
}

.section {
  padding: 72px 0;
}

.section-warm {
  background: linear-gradient(135deg, #fff7ed, #fef2f2);
}

.section-green {
  background: linear-gradient(135deg, #f0fdf4, #ecfeff);
}

.section-blue {
  background: linear-gradient(135deg, #eff6ff, #eef2ff);
}

.section-muted {
  background: #f1f5f9;
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.15;
}

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

.section-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #2563eb;
  font-weight: 800;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.09);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 70px rgba(37, 99, 235, 0.18);
}

.poster-link,
.poster-wrap {
  display: block;
}

.poster-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #dbeafe;
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.48));
  opacity: 0;
  transition: opacity 0.25s ease;
}

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

.play-icon {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #2563eb;
  background: rgba(255, 255, 255, 0.92);
  opacity: 0;
  transform: scale(0.85);
  transition: all 0.25s ease;
}

.movie-card:hover .play-icon {
  opacity: 1;
  transform: scale(1);
}

.corner-label,
.rank-badge {
  position: absolute;
  z-index: 2;
  color: #ffffff;
  font-weight: 800;
  font-size: 12px;
  border-radius: 999px;
}

.corner-label {
  top: 10px;
  right: 10px;
  padding: 5px 9px;
  background: rgba(37, 99, 235, 0.92);
}

.rank-badge {
  top: 10px;
  left: 10px;
  min-width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  background: #ef4444;
}

.card-content {
  padding: 18px;
}

.card-content h3 {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: 18px;
  line-height: 1.35;
}

.card-content h3 a:hover {
  color: #2563eb;
}

.card-content p {
  min-height: 46px;
  margin: 0 0 12px;
  color: #64748b;
  font-size: 14px;
}

.card-meta {
  color: #64748b;
  font-size: 13px;
}

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

.tag-row span {
  padding: 4px 8px;
  border-radius: 999px;
  color: #2563eb;
  background: #eff6ff;
  font-size: 12px;
  font-weight: 700;
}

.large-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

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

.category-tile,
.category-panel {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  padding: 24px;
  min-height: 154px;
  color: #ffffff;
  background: linear-gradient(135deg, #1d4ed8, #0891b2);
  box-shadow: 0 22px 50px rgba(37, 99, 235, 0.2);
}

.category-tile:nth-child(3n + 1),
.category-panel:nth-child(3n + 1) {
  background: linear-gradient(135deg, #7c3aed, #db2777);
}

.category-tile:nth-child(3n + 2),
.category-panel:nth-child(3n + 2) {
  background: linear-gradient(135deg, #ea580c, #dc2626);
}

.category-tile span,
.category-panel h2 {
  position: relative;
  z-index: 1;
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 900;
}

.category-tile p,
.category-panel p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
}

.category-panel span {
  display: inline-flex;
  margin-top: 18px;
  font-weight: 800;
}

.category-preview {
  margin-bottom: 58px;
}

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

.page-hero {
  color: #ffffff;
  background: linear-gradient(135deg, #0f172a, #1e40af 54%, #0891b2);
}

.small-hero {
  padding: 74px 0 62px;
}

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

.page-hero p {
  max-width: 760px;
  color: #dbeafe;
  font-size: 18px;
}

.filter-bar,
.search-page-form {
  margin-top: 26px;
  max-width: 720px;
}

.filter-bar input,
.search-page-form input {
  color: #0f172a;
  background: #ffffff;
  border: 0;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.2);
}

.filter-bar input::placeholder,
.search-page-form input::placeholder {
  color: #94a3b8;
}

.search-page-form {
  display: flex;
  gap: 12px;
}

.search-page-form button {
  padding: 0 24px;
  color: #172554;
  background: #67e8f9;
}

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

.rank-list .movie-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
}

.rank-list .poster-wrap {
  height: 100%;
  aspect-ratio: auto;
}

.detail-main {
  background: #f8fafc;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: #0f172a;
}

.detail-bg {
  position: absolute;
  inset: 0;
  opacity: 0.28;
  filter: blur(12px);
  transform: scale(1.08);
}

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

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #0f172a 0%, rgba(15, 23, 42, 0.86) 48%, rgba(15, 23, 42, 0.55));
}

.detail-hero-inner {
  position: relative;
  z-index: 1;
  padding: 34px 0 62px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 34px;
  color: #bfdbfe;
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #67e8f9;
}

.detail-layout {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}

.detail-cover {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 36px 80px rgba(0, 0, 0, 0.36);
}

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

.detail-copy h1 {
  margin: 12px 0 16px;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.08;
}

.lead {
  max-width: 820px;
  color: #dbeafe;
  font-size: 19px;
}

.detail-copy .btn {
  margin-top: 28px;
}

.detail-section {
  padding-top: 54px;
}

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

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #020617;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.25);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #2563eb;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.12), rgba(15, 23, 42, 0.5));
  cursor: pointer;
}

.player-overlay span {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  padding-left: 5px;
  border-radius: 999px;
  color: #2563eb;
  background: rgba(255, 255, 255, 0.95);
  font-size: 32px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease;
}

.player-overlay:hover span {
  transform: scale(1.06);
}

.player-card.is-playing .player-overlay {
  display: none;
}

.article-card,
.side-card {
  margin-top: 24px;
  border-radius: 26px;
  padding: 28px;
  background: #ffffff;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

.article-card h2,
.side-card h2 {
  margin: 0 0 14px;
  color: #0f172a;
  font-size: 24px;
}

.article-card p {
  margin: 0 0 22px;
  color: #475569;
  font-size: 16px;
}

.info-table {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.info-table div {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid #e2e8f0;
}

.info-table strong {
  color: #0f172a;
}

.info-table span {
  color: #475569;
}

.content-side {
  position: sticky;
  top: 92px;
}

.side-card {
  margin-top: 0;
}

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

.side-list .movie-card {
  display: grid;
  grid-template-columns: 126px minmax(0, 1fr);
  border-radius: 18px;
  box-shadow: none;
  border: 1px solid #e2e8f0;
}

.side-list .poster-wrap {
  height: 100%;
  aspect-ratio: auto;
}

.side-list .card-content {
  padding: 12px;
}

.side-list .card-content h3 {
  font-size: 15px;
}

.side-list .card-content p,
.side-list .tag-row,
.side-list .card-meta {
  display: none;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 36px;
  border-radius: 22px;
  color: #64748b;
  background: #ffffff;
  text-align: center;
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08);
}

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

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

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

.footer-inner p {
  max-width: 560px;
  margin: 10px 0 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a:hover {
  color: #67e8f9;
}

.footer-copy {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-size: 14px;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

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

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

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

  .hero-slide,
  .detail-layout,
  .detail-content-grid {
    grid-template-columns: 1fr;
  }

  .detail-cover {
    width: min(320px, 100%);
  }

  .content-side {
    position: static;
  }
}

@media (max-width: 760px) {
  .header-inner {
    height: auto;
    min-height: 64px;
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .menu-button {
    display: block;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 10px 0 2px;
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-dropdown {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    padding: 42px 0 42px;
  }

  .hero-feature,
  .hero-feature img {
    min-height: 300px;
  }

  .movie-grid,
  .compact-grid,
  .category-grid,
  .category-panel-grid,
  .rank-list {
    grid-template-columns: 1fr;
  }

  .rank-list .movie-card,
  .side-list .movie-card {
    grid-template-columns: 132px minmax(0, 1fr);
  }

  .section {
    padding: 48px 0;
  }

  .section-heading,
  .footer-inner {
    display: block;
  }

  .footer-links {
    margin-top: 22px;
  }

  .search-page-form {
    display: grid;
  }

  .detail-hero-inner {
    padding-bottom: 40px;
  }
}
