:root {
  --bg: #f8fafc;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --card: #ffffff;
  --teal: #14b8a6;
  --cyan: #06b6d4;
  --amber: #f59e0b;
  --orange: #f97316;
  --slate: #111827;
  --radius: 20px;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.65;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: linear-gradient(90deg, #0f172a, #1e293b, #0f172a);
  color: #fff;
  box-shadow: 0 12px 30px rgba(2, 6, 23, 0.22);
}

.nav-wrap {
  max-width: 1180px;
  height: 68px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  box-shadow: 0 12px 24px rgba(20, 184, 166, 0.28);
}

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

.nav-links a {
  color: #e2e8f0;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: #2dd4bf;
}

.search-form {
  position: relative;
  width: 260px;
}

.search-form input {
  width: 100%;
  border: 0;
  outline: 0;
  border-radius: 999px;
  background: rgba(51, 65, 85, 0.92);
  color: #fff;
  padding: 11px 45px 11px 17px;
  transition: box-shadow 0.2s ease, background 0.2s ease;
}

.search-form input::placeholder {
  color: #94a3b8;
}

.search-form input:focus {
  background: rgba(30, 41, 59, 1);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.28);
}

.search-form button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  color: #cbd5e1;
  background: transparent;
  cursor: pointer;
}

.menu-button {
  display: none;
  border: 0;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
}

.mobile-panel {
  display: none;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px 18px;
}

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

.mobile-panel a {
  display: block;
  padding: 11px 0;
  color: #e2e8f0;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.hero {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  background: #020617;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.015);
  transition: opacity 0.8s ease, transform 1.2s ease;
  pointer-events: none;
}

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.04) contrast(1.05);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 30%, rgba(20, 184, 166, 0.22), transparent 32%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(15, 23, 42, 0.62) 47%, rgba(2, 6, 23, 0.32)),
    linear-gradient(0deg, rgba(2, 6, 23, 0.94), transparent 42%);
}

.hero-content {
  position: absolute;
  left: 50%;
  bottom: 72px;
  z-index: 2;
  width: min(1180px, calc(100% - 40px));
  transform: translateX(-50%);
  color: #fff;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  margin-bottom: 18px;
  border: 1px solid rgba(45, 212, 191, 0.35);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.48);
  color: #99f6e4;
  font-weight: 700;
  backdrop-filter: blur(12px);
}

.hero h1 {
  max-width: 860px;
  margin: 0 0 18px;
  font-size: clamp(40px, 7vw, 78px);
  line-height: 1.05;
  letter-spacing: -0.05em;
  text-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
}

.hero p {
  max-width: 760px;
  margin: 0 0 24px;
  color: #dbeafe;
  font-size: clamp(16px, 2.2vw, 21px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 18px;
  border-radius: 999px;
  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: #042f2e;
  background: linear-gradient(135deg, #5eead4, #22d3ee);
  box-shadow: 0 16px 36px rgba(20, 184, 166, 0.28);
}

.btn-dark {
  color: #fff;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 4;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

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

.hero-dot.active {
  background: #2dd4bf;
}

.page-hero {
  color: #fff;
  background: linear-gradient(100deg, #0f172a, #0f766e, #0891b2);
}

.page-hero.orange {
  background: linear-gradient(100deg, #9a3412, #ea580c, #f59e0b);
}

.page-hero.blue {
  background: linear-gradient(100deg, #1d4ed8, #0891b2, #14b8a6);
}

.page-hero .container {
  padding-top: 58px;
  padding-bottom: 58px;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  margin: 64px 0;
}

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

.section-head h2,
.page-hero h1,
.detail-title {
  margin: 0;
  line-height: 1.18;
}

.section-head h2 {
  font-size: clamp(26px, 4vw, 38px);
}

.section-head p,
.page-hero p {
  margin: 8px 0 0;
  color: #64748b;
}

.page-hero p {
  max-width: 820px;
  color: rgba(255, 255, 255, 0.88);
}

.more-link {
  color: #0f766e;
  font-weight: 800;
  white-space: nowrap;
}

.grid {
  display: grid;
  gap: 22px;
}

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(20, 184, 166, 0.32);
  box-shadow: var(--shadow);
}

.poster {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a, #164e63);
}

.poster.tall {
  aspect-ratio: 3 / 4;
}

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

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

.badge-row {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 12px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  z-index: 2;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  color: #fff;
  background: rgba(15, 23, 42, 0.72);
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.badge.score {
  color: #111827;
  background: #fbbf24;
}

.poster-text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 36px 14px 14px;
  color: #fff;
  opacity: 0;
  transform: translateY(8px);
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.88), transparent);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .poster-text {
  opacity: 1;
  transform: translateY(0);
}

.card-body {
  padding: 16px;
}

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

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  color: #64748b;
  font-size: 13px;
}

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

.category-band {
  padding: 34px;
  border-radius: 28px;
  background: linear-gradient(135deg, #ecfeff, #fff7ed);
}

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

.category-tile {
  display: flex;
  min-height: 140px;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border: 1px solid rgba(20, 184, 166, 0.15);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(20, 184, 166, 0.5);
}

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

.category-tile span {
  color: #64748b;
  font-size: 14px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 64px 138px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
}

.rank-no {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  font-weight: 900;
}

.rank-row img {
  width: 138px;
  height: 86px;
  object-fit: cover;
  border-radius: 16px;
}

.rank-row h3 {
  margin: 0 0 6px;
}

.rank-row p {
  margin: 0;
  color: #64748b;
}

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

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

.breadcrumb a {
  color: #0f766e;
  font-weight: 700;
}

.player-card,
.detail-card,
.sidebar-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}

.player-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #020617;
  cursor: pointer;
}

.player-frame video {
  width: 100%;
  height: 100%;
  display: block;
  background: #020617;
}

.play-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.28));
  z-index: 2;
}

.play-layer.hidden {
  display: none;
}

.play-button {
  width: 88px;
  height: 88px;
  border: 0;
  border-radius: 50%;
  color: #042f2e;
  background: linear-gradient(135deg, #5eead4, #22d3ee);
  font-size: 34px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 24px 52px rgba(20, 184, 166, 0.32);
}

.detail-card {
  padding: 28px;
  margin-top: 24px;
}

.detail-title {
  font-size: clamp(34px, 5vw, 52px);
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 24px;
}

.detail-meta span,
.tag {
  display: inline-flex;
  border-radius: 999px;
  padding: 7px 12px;
  color: #0f172a;
  background: #f1f5f9;
  font-size: 13px;
  font-weight: 700;
}

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

.article h2 {
  margin: 28px 0 10px;
  font-size: 24px;
}

.article p {
  margin: 0 0 16px;
  color: #334155;
}

.sidebar-card {
  padding: 18px;
  position: sticky;
  top: 90px;
}

.side-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.side-item:first-of-type {
  border-top: 0;
}

.side-item img {
  width: 112px;
  height: 70px;
  object-fit: cover;
  border-radius: 12px;
  flex-shrink: 0;
}

.side-item strong {
  display: block;
  line-height: 1.35;
}

.side-item span {
  color: #64748b;
  font-size: 13px;
}

.search-panel {
  max-width: 820px;
  margin: 38px auto 0;
  padding: 22px;
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow);
}

.search-panel input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 15px 20px;
  font-size: 17px;
  outline: 0;
}

.search-panel input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.14);
}

.search-results {
  margin-top: 24px;
}

.site-footer {
  margin-top: 80px;
  color: #cbd5e1;
  background: linear-gradient(180deg, #0f172a, #020617);
}

.footer-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 46px 20px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 28px;
}

.footer-wrap h2,
.footer-wrap h3 {
  color: #fff;
  margin-top: 0;
}

.footer-wrap p,
.footer-wrap a {
  color: #94a3b8;
}

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

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  padding: 18px 20px;
  color: #64748b;
  text-align: center;
  font-size: 14px;
}

.empty-note {
  padding: 32px;
  border-radius: 22px;
  color: #64748b;
  background: #fff;
  text-align: center;
}

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

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

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

  .sidebar-card {
    position: static;
  }
}

@media (max-width: 820px) {
  .nav-links,
  .site-header .search-form {
    display: none;
  }

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

  .hero {
    min-height: 560px;
  }

  .hero-content {
    bottom: 58px;
  }

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

  .rank-row {
    grid-template-columns: 42px 96px 1fr;
  }

  .rank-row .btn {
    grid-column: 1 / -1;
  }

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

@media (max-width: 540px) {
  .nav-wrap {
    height: 62px;
    padding: 0 14px;
  }

  .container {
    padding: 0 14px;
  }

  .hero {
    min-height: 520px;
  }

  .hero-content {
    width: calc(100% - 28px);
  }

  .grid.cards-large,
  .grid.cards-medium,
  .grid.cards-small,
  .category-grid {
    grid-template-columns: 1fr;
  }

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

  .category-band {
    padding: 22px;
  }

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

  .rank-row img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .detail-card {
    padding: 20px;
  }
}