* {
  box-sizing: border-box;
}

:root {
  --bg: #f8fafc;
  --bg-soft: #eef5ff;
  --surface: #ffffff;
  --surface-dark: #0f172a;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --cyan: #06b6d4;
  --green: #10b981;
  --orange: #f97316;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --radius: 20px;
}

body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(180deg, #f8fafc 0%, #eef5ff 48%, #ffffff 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.shell {
  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 0%, #1e3a8a 48%, #0f172a 100%);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.28);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
  background: linear-gradient(135deg, #60a5fa, #06b6d4);
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.36);
  transition: transform 0.28s ease;
}

.brand:hover .brand-mark {
  transform: scale(1.08) rotate(-2deg);
}

.brand-copy {
  display: flex;
  flex-direction: column;
}

.brand-copy strong {
  font-size: 20px;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, #dbeafe, #a5f3fc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-copy small {
  color: #93c5fd;
  font-size: 12px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link,
.mobile-link {
  border-radius: 12px;
  color: #dbeafe;
  font-weight: 700;
  transition: background 0.24s ease, color 0.24s ease, transform 0.24s ease;
}

.nav-link {
  padding: 10px 16px;
}

.nav-link:hover,
.mobile-link:hover,
.nav-link.is-active,
.mobile-link.is-active {
  color: #ffffff;
  background: rgba(37, 99, 235, 0.86);
}

.nav-link:hover {
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
}

.menu-toggle span {
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: #ffffff;
}

.mobile-panel {
  display: none;
  border-top: 1px solid rgba(147, 197, 253, 0.22);
}

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

.mobile-nav {
  display: grid;
  gap: 8px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 14px 0 18px;
}

.mobile-link {
  padding: 12px 14px;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 680px;
  color: #ffffff;
  background: radial-gradient(circle at top left, rgba(6, 182, 212, 0.34), transparent 32%), linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #111827 100%);
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.12;
  background-image: linear-gradient(rgba(255, 255, 255, 0.22) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.22) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero::after {
  position: absolute;
  inset: auto -12% -28% 42%;
  height: 380px;
  content: "";
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.22);
  filter: blur(60px);
}

.hero-wrap {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.78fr);
  gap: 46px;
  align-items: center;
  padding: 84px 0 60px;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 14px;
  border: 1px solid rgba(191, 219, 254, 0.28);
  border-radius: 999px;
  color: #bfdbfe;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero h1 span {
  display: block;
  background: linear-gradient(90deg, #dbeafe 0%, #a5f3fc 52%, #ffffff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  max-width: 620px;
  margin: 0 0 28px;
  color: #dbeafe;
  font-size: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(90deg, #2563eb, #06b6d4);
  box-shadow: 0 16px 36px rgba(37, 99, 235, 0.36);
}

.btn-secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

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

.hero-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  max-width: 620px;
  padding: 8px;
  border: 1px solid rgba(191, 219, 254, 0.25);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.34);
  backdrop-filter: blur(14px);
}

.hero-search input {
  min-height: 46px;
  border: 0;
  outline: none;
  color: #ffffff;
  background: transparent;
  padding: 0 12px;
}

.hero-search input::placeholder {
  color: #bfdbfe;
}

.hero-panel {
  position: relative;
}

.hero-slider {
  position: relative;
  min-height: 560px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: end;
  overflow: hidden;
  border: 1px solid rgba(191, 219, 254, 0.24);
  border-radius: 32px;
  background: #0f172a;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.36);
  opacity: 0;
  transform: scale(0.96) translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
  pointer-events: none;
}

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

.hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, #1e293b, #0f172a);
}

.hero-slide::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.05) 0%, rgba(15, 23, 42, 0.54) 46%, rgba(15, 23, 42, 0.94) 100%);
}

.hero-slide-content {
  position: relative;
  z-index: 2;
  padding: 28px;
}

.hero-slide-content strong {
  display: block;
  margin-bottom: 10px;
  font-size: 30px;
  line-height: 1.2;
}

.hero-slide-content p {
  margin: 0 0 18px;
  color: #dbeafe;
}

.hero-dots {
  position: absolute;
  z-index: 3;
  right: 24px;
  bottom: 24px;
  display: flex;
  gap: 8px;
}

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

.hero-dot.is-active {
  width: 28px;
  background: #22d3ee;
}

.quick-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.quick-picks a {
  padding: 8px 12px;
  border-radius: 999px;
  color: #dbeafe;
  background: rgba(255, 255, 255, 0.1);
}

.page-hero {
  color: #ffffff;
  background: radial-gradient(circle at 16% 12%, rgba(14, 165, 233, 0.3), transparent 26%), linear-gradient(135deg, #0f172a, #1e3a8a 54%, #0f172a);
}

.page-hero-inner {
  padding: 70px 0 58px;
}

.page-hero h1 {
  max-width: 850px;
  margin: 0 0 16px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.12;
}

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

.content-section {
  padding: 54px 0;
}

.content-section.tight {
  padding-top: 34px;
}

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

.section-heading h2 {
  margin: 0 0 6px;
  font-size: clamp(26px, 4vw, 36px);
}

.section-heading p {
  margin: 0;
  color: var(--muted);
}

.section-link {
  flex: 0 0 auto;
  color: var(--primary);
  font-weight: 800;
}

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

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

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

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(37, 99, 235, 0.32);
  box-shadow: var(--shadow);
}

.movie-poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #1e293b, #0f172a);
}

.movie-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.38s ease, filter 0.38s ease;
}

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

.poster-play {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.36);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.26s ease, transform 0.26s ease;
}

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

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  display: grid;
  min-width: 38px;
  height: 38px;
  place-items: center;
  padding: 0 10px;
  border-radius: 12px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, #f97316, #ef4444);
  box-shadow: 0 10px 24px rgba(239, 68, 68, 0.3);
}

.movie-body {
  padding: 16px;
}

.movie-title {
  display: -webkit-box;
  min-height: 48px;
  overflow: hidden;
  color: #0f172a;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-title:hover {
  color: var(--primary);
}

.movie-meta {
  margin: 8px 0 8px;
  color: var(--muted);
  font-size: 13px;
}

.movie-desc {
  display: -webkit-box;
  min-height: 45px;
  margin: 0 0 12px;
  overflow: hidden;
  color: #475569;
  font-size: 14px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-tags,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.movie-tags span,
.tag-list span {
  padding: 4px 8px;
  border-radius: 999px;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 700;
  background: #dbeafe;
}

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

.category-tile {
  position: relative;
  display: grid;
  align-content: end;
  min-height: 230px;
  overflow: hidden;
  padding: 20px;
  border-radius: 24px;
  color: #ffffff;
  background: #0f172a;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
}

.category-tile img,
.category-layer {
  position: absolute;
  inset: 0;
}

.category-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  transition: transform 0.38s ease;
}

.category-layer {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0.86));
}

.category-tile:hover img {
  transform: scale(1.08);
}

.category-tile strong,
.category-tile em {
  position: relative;
  z-index: 2;
}

.category-tile strong {
  margin-bottom: 8px;
  font-size: 22px;
}

.category-tile em {
  color: #dbeafe;
  font-style: normal;
  font-size: 14px;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 180px;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(14px);
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  min-height: 48px;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  outline: none;
  padding: 0 14px;
  color: var(--text);
  background: #ffffff;
}

.filter-bar input:focus,
.filter-bar select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

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

.rank-row {
  display: grid;
  grid-template-columns: 72px 92px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.rank-number {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 16px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
}

.rank-cover {
  display: block;
  overflow: hidden;
  border-radius: 14px;
  aspect-ratio: 2 / 3;
  background: #0f172a;
}

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

.rank-info h2 {
  margin: 0 0 4px;
  font-size: 19px;
}

.rank-info p {
  margin: 0;
  color: var(--muted);
}

.rank-heat {
  color: #ef4444;
  font-weight: 900;
}

.detail-hero {
  color: #ffffff;
  background: radial-gradient(circle at 22% 10%, rgba(6, 182, 212, 0.34), transparent 24%), linear-gradient(135deg, #0f172a 0%, #1e3a8a 54%, #111827 100%);
}

.detail-hero-inner {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 34px;
  align-items: end;
  padding: 58px 0;
}

.detail-cover {
  overflow: hidden;
  border: 1px solid rgba(191, 219, 254, 0.2);
  border-radius: 28px;
  aspect-ratio: 2 / 3;
  background: #0f172a;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.36);
}

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

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

.breadcrumb a:hover {
  color: #ffffff;
}

.detail-copy h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.08;
}

.detail-copy .detail-lead {
  max-width: 820px;
  margin: 0 0 18px;
  color: #dbeafe;
  font-size: 18px;
}

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

.detail-meta span {
  padding: 7px 11px;
  border-radius: 999px;
  color: #dbeafe;
  background: rgba(255, 255, 255, 0.12);
}

.player-section {
  padding: 48px 0 26px;
  background: #050a16;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000000;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
}

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

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.38);
  cursor: pointer;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.player-cover.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.player-cover span {
  display: grid;
  width: 92px;
  height: 92px;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  font-size: 34px;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  box-shadow: 0 20px 45px rgba(37, 99, 235, 0.44);
}

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

.article-card,
.side-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
}

.article-card {
  padding: 28px;
}

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

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

.side-card {
  padding: 18px;
  align-self: start;
}

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

.related-item {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 12px;
  align-items: center;
}

.related-item img {
  width: 70px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 12px;
  background: #0f172a;
}

.related-item strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: 15px;
  line-height: 1.36;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.related-item span {
  color: var(--muted);
  font-size: 13px;
}

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

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

.site-footer h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 20px;
}

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

.footer-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-list a:hover {
  color: #60a5fa;
}

.footer-bottom {
  padding: 18px 0 30px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.empty-state {
  display: none;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--muted);
  text-align: center;
  background: #ffffff;
}

@media (max-width: 1080px) {
  .movie-grid,
  .category-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

  .hero-panel {
    max-width: 620px;
  }
}

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

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

  .brand-copy small {
    display: none;
  }

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

  .filter-bar {
    grid-template-columns: 1fr;
  }

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

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

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

  .rank-heat {
    grid-column: 3;
  }

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

@media (max-width: 620px) {
  .shell {
    width: min(100% - 24px, 1180px);
  }

  .header-inner {
    min-height: 66px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    font-size: 21px;
  }

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

  .hero {
    min-height: auto;
  }

  .hero-wrap {
    padding: 54px 0 42px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero-lead {
    font-size: 17px;
  }

  .hero-search {
    grid-template-columns: 1fr;
  }

  .hero-slider {
    min-height: 460px;
  }

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

  .movie-body {
    padding: 13px;
  }

  .movie-title {
    min-height: 44px;
    font-size: 15px;
  }

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

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

  .rank-row {
    grid-template-columns: 42px 64px 1fr;
    gap: 12px;
    padding: 12px;
  }

  .rank-number {
    width: 42px;
    height: 42px;
    border-radius: 13px;
  }

  .player-cover span {
    width: 70px;
    height: 70px;
    font-size: 28px;
  }
}
