:root {
  --cyan: #06b6d4;
  --blue: #2563eb;
  --deep: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --soft: #f8fafc;
  --card: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  background: #f1f5f9;
  color: #111827;
  line-height: 1.7;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.28);
}

.nav-wrap {
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-icon {
  font-size: 30px;
  line-height: 1;
  transition: transform 0.25s ease;
}

.brand:hover .brand-icon {
  transform: scale(1.12) rotate(-6deg);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 15px;
}

.main-nav a,
.nav-menu button {
  color: #ffffff;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
  opacity: 0.96;
  padding: 8px 0;
}

.main-nav a:hover,
.nav-menu button:hover {
  opacity: 1;
  color: #cffafe;
}

.nav-menu {
  position: relative;
}

.nav-menu-list {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  width: 188px;
  padding: 8px;
  background: #ffffff;
  color: #1f2937;
  border-radius: 14px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: 0.22s ease;
}

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

.nav-menu-list a {
  display: block;
  color: #1f2937;
  padding: 8px 12px;
  border-radius: 10px;
}

.nav-menu-list a:hover {
  background: #ecfeff;
  color: #0891b2;
}

.nav-toggle {
  display: none;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 0;
  border-radius: 10px;
  width: 42px;
  height: 42px;
  font-size: 22px;
}

.hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: radial-gradient(circle at 16% 10%, rgba(34, 211, 238, 0.62), transparent 34%), linear-gradient(135deg, #0891b2, #2563eb 58%, #172554);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  filter: blur(4px);
}

.hero::before {
  width: 280px;
  height: 280px;
  top: 48px;
  right: 8%;
}

.hero::after {
  width: 160px;
  height: 160px;
  bottom: 36px;
  left: 9%;
}

.hero-inner {
  position: relative;
  z-index: 1;
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: 46px;
  padding: 64px 0;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  font-size: 14px;
}

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

.hero p {
  margin: 0;
  max-width: 650px;
  color: #e0f2fe;
  font-size: 18px;
}

.hero-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: 0.22s ease;
  cursor: pointer;
}

.btn-primary {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
}

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

.btn-ghost {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.08);
}

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

.hero-panel {
  position: relative;
  padding: 14px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.26);
  backdrop-filter: blur(16px);
}

.hero-slide {
  display: none;
}

.hero-slide.active {
  display: block;
  animation: fadeIn 0.46s ease both;
}

.hero-poster {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.55), rgba(30, 64, 175, 0.85));
}

.hero-poster img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.hero-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 70px 24px 24px;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0));
}

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

.hero-info p {
  font-size: 14px;
  color: #dbeafe;
}

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

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

.hero-dots button.active {
  background: #ffffff;
}

.section {
  padding: 48px 0;
}

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

.section-title {
  margin: 0;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.section-desc {
  margin: 8px 0 0;
  color: var(--muted);
}

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

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

.category-card,
.info-card {
  background: #ffffff;
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(226, 232, 240, 0.8);
  transition: 0.24s ease;
}

.category-card:hover,
.info-card:hover,
.movie-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.category-card h3,
.info-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.category-card p,
.info-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.category-count {
  display: inline-flex;
  margin-top: 18px;
  color: #0891b2;
  font-weight: 800;
}

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

.poster {
  display: block;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #67e8f9, #2563eb);
  overflow: hidden;
}

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

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

.card-body {
  padding: 16px;
}

.card-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: #64748b;
  font-size: 13px;
}

.card-meta span,
.detail-meta span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 9px;
  border-radius: 999px;
  background: #ecfeff;
  color: #0891b2;
  font-weight: 700;
}

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

.card-body h3 a:hover,
.rank-item h3 a:hover,
.breadcrumb a:hover {
  color: #0891b2;
}

.card-body p {
  margin: 0;
  color: #475569;
  font-size: 14px;
}

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

.tag-row span {
  background: #eff6ff;
  color: #2563eb;
  font-size: 12px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 52px 86px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  background: #ffffff;
  border-radius: 20px;
  padding: 14px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.rank-num {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
}

.rank-poster {
  height: 112px;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(135deg, #67e8f9, #2563eb);
}

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

.rank-item h3 {
  margin: 0 0 6px;
  font-size: 17px;
}

.rank-item p {
  margin: 0 0 8px;
  color: #475569;
  font-size: 14px;
}

.page-hero {
  background: linear-gradient(135deg, #0891b2, #2563eb);
  color: #ffffff;
  padding: 70px 0;
}

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

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

.breadcrumb {
  padding: 18px 0 0;
  color: #64748b;
  font-size: 14px;
}

.breadcrumb span {
  color: #0f172a;
  font-weight: 700;
}

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

.detail-poster {
  overflow: hidden;
  border-radius: 26px;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #67e8f9, #2563eb);
  box-shadow: var(--shadow);
}

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

.detail-card {
  padding: 30px;
  border-radius: 26px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.detail-card h1 {
  margin: 0 0 16px;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.12;
}

.detail-card .lead {
  margin: 0 0 22px;
  font-size: 18px;
  color: #334155;
}

.content-panel {
  margin-top: 28px;
  padding: 28px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.content-panel h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.content-panel p {
  margin: 0;
  color: #334155;
}

.player-wrap {
  margin-top: 34px;
  border-radius: 28px;
  overflow: hidden;
  background: #020617;
  box-shadow: var(--shadow);
}

.player-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 18px;
  color: #e2e8f0;
  background: linear-gradient(90deg, rgba(8, 145, 178, 0.52), rgba(37, 99, 235, 0.35));
}

.video-stage {
  position: relative;
  background: #000000;
}

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

.play-button {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border: 0;
  border-radius: 999px;
  padding: 16px 24px;
  color: #0f172a;
  background: #ffffff;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.34);
}

.play-button:hover {
  transform: translate(-50%, -50%) scale(1.04);
}

.video-stage.is-playing .play-button {
  display: none;
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px;
  gap: 14px;
  padding: 18px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
  margin-bottom: 28px;
}

.search-panel input,
.search-panel select {
  width: 100%;
  height: 48px;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  padding: 0 14px;
  font: inherit;
}

.empty-state {
  display: none;
  padding: 28px;
  border-radius: 22px;
  background: #ffffff;
  color: #64748b;
  text-align: center;
}

.site-footer {
  margin-top: 48px;
  color: #e5e7eb;
  background: linear-gradient(180deg, #1f2937, #111827);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 28px;
  padding: 44px 0;
}

.footer-logo {
  font-size: 22px;
  margin-bottom: 12px;
}

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

.site-footer h3 {
  margin: 0 0 12px;
}

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

.footer-links a {
  color: #cbd5e1;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.footer-links a:hover {
  color: #ffffff;
  background: rgba(6, 182, 212, 0.35);
}

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

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 30px;
}

.pagination a,
.pagination span {
  min-width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  background: #ffffff;
  color: #0f172a;
  font-weight: 800;
  border: 1px solid #e2e8f0;
}

.pagination span {
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
}

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

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

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

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

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .main-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 66px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 16px;
    background: #2563eb;
  }

  .main-nav.open {
    display: flex;
  }

  .nav-menu-list {
    position: static;
    width: 100%;
    opacity: 1;
    visibility: visible;
    transform: none;
    margin-top: 8px;
  }

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

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

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

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

  .detail-card,
  .content-panel {
    padding: 22px;
  }
}

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

  .grid {
    gap: 14px;
  }

  .section {
    padding: 36px 0;
  }

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