:root {
  --sky-50: #f0f9ff;
  --sky-100: #e0f2fe;
  --sky-500: #0ea5e9;
  --sky-600: #0284c7;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-500: #64748b;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --soft-shadow: 0 10px 26px rgba(14, 165, 233, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--gray-800);
  background: linear-gradient(180deg, var(--sky-50), var(--white) 42%, #eff6ff);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(240, 249, 255, 0.92);
  border-bottom: 1px solid rgba(14, 165, 233, 0.16);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(18px);
}

.header-inner {
  max-width: 1240px;
  height: 66px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: var(--white);
  background: linear-gradient(135deg, var(--sky-500), var(--blue-700));
  box-shadow: var(--soft-shadow);
}

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

.brand-text strong,
.footer-logo {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: transparent;
  background: linear-gradient(90deg, var(--sky-600), var(--blue-700));
  -webkit-background-clip: text;
  background-clip: text;
}

.brand-text small {
  margin-top: 3px;
  color: var(--gray-500);
  font-size: 12px;
}

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

.nav-link {
  color: var(--gray-700);
  font-weight: 700;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--sky-600);
}

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

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: var(--white);
  box-shadow: var(--soft-shadow);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--gray-700);
  border-radius: 2px;
}

.site-search {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 22px 14px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.search-label {
  color: var(--gray-500);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.search-box {
  position: relative;
  width: min(560px, 100%);
}

.search-box input,
.list-toolbar input {
  width: 100%;
  border: 1px solid rgba(14, 165, 233, 0.24);
  outline: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  padding: 12px 18px;
  color: var(--gray-800);
  box-shadow: 0 10px 28px rgba(14, 165, 233, 0.08);
}

.search-box input:focus,
.list-toolbar input:focus {
  border-color: var(--sky-500);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.12);
}

.search-results {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  display: none;
  padding: 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
  border: 1px solid rgba(14, 165, 233, 0.18);
  max-height: 430px;
  overflow: auto;
  z-index: 80;
}

.search-results.is-open {
  display: block;
}

.search-result-item {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
  padding: 9px;
  border-radius: 16px;
  transition: background 0.2s ease;
}

.search-result-item:hover {
  background: var(--sky-50);
}

.search-result-item img {
  width: 54px;
  height: 76px;
  object-fit: cover;
  border-radius: 12px;
  background: var(--gray-100);
}

.search-result-item strong {
  display: block;
  color: var(--gray-900);
  font-size: 14px;
}

.search-result-item span,
.search-empty {
  color: var(--gray-500);
  font-size: 12px;
}

.hero-carousel {
  position: relative;
  height: clamp(480px, 56vw, 620px);
  overflow: hidden;
  background: var(--gray-900);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-slide > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.82), rgba(2, 6, 23, 0.48) 46%, rgba(2, 6, 23, 0.18)), linear-gradient(0deg, rgba(2, 6, 23, 0.7), rgba(2, 6, 23, 0));
}

.hero-content {
  position: absolute;
  left: max(26px, calc((100vw - 1240px) / 2 + 22px));
  right: 22px;
  bottom: 72px;
  max-width: 780px;
  color: var(--white);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(90deg, var(--sky-500), var(--blue-600));
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hero-content h1,
.hero-content h2,
.page-hero h1,
.detail-info h1 {
  margin: 16px 0 14px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-content p,
.page-hero p,
.lead-text {
  max-width: 780px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(16px, 2vw, 20px);
}

.hero-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.hero-meta span,
.detail-meta span {
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(12px);
  font-size: 13px;
}

.hero-actions,
.detail-info .primary-btn {
  margin-top: 26px;
}

.primary-btn,
.ghost-btn,
.section-link,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.primary-btn {
  padding: 12px 24px;
  color: var(--white);
  background: linear-gradient(90deg, var(--sky-500), var(--blue-700));
  box-shadow: 0 14px 34px rgba(37, 99, 235, 0.28);
}

.ghost-btn {
  margin-left: 10px;
  padding: 11px 22px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
}

.primary-btn:hover,
.ghost-btn:hover,
.section-link:hover,
.text-link:hover {
  transform: translateY(-2px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  cursor: pointer;
  font-size: 34px;
  line-height: 1;
  transform: translateY(-50%);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.34);
  transform: translateY(-50%) scale(1.04);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

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

.hero-dot {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

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

.content-section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 58px 22px 0;
}

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

.section-head h2,
.article-section h2 {
  margin: 0 0 6px;
  color: var(--gray-900);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.18;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-head p {
  margin: 0;
  color: var(--gray-500);
}

.section-link,
.text-link {
  padding: 9px 16px;
  color: var(--sky-600);
  background: var(--sky-50);
  border: 1px solid rgba(14, 165, 233, 0.18);
  white-space: nowrap;
}

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

.rank-row {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(14, 165, 233, 0.12);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(14, 165, 233, 0.38);
  box-shadow: var(--shadow);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, var(--sky-100), #dbeafe);
}

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

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

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  min-width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: var(--white);
  background: linear-gradient(135deg, #f97316, #ef4444);
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(239, 68, 68, 0.26);
}

.card-body {
  padding: 16px;
}

.card-meta {
  display: flex;
  gap: 8px;
  color: var(--sky-600);
  font-size: 12px;
  font-weight: 800;
}

.card-body h3 {
  margin: 8px 0 8px;
  color: var(--gray-900);
  font-size: 18px;
  line-height: 1.25;
  font-weight: 900;
}

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

.card-body p {
  min-height: 46px;
  margin: 0;
  color: var(--gray-500);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.tag-row span {
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--gray-700);
  background: var(--gray-100);
  font-size: 12px;
  font-weight: 700;
}

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

.category-pill,
.category-card {
  border-radius: 22px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(240, 249, 255, 0.92));
  border: 1px solid rgba(14, 165, 233, 0.16);
  box-shadow: 0 12px 30px rgba(14, 165, 233, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-pill strong,
.category-title {
  display: block;
  color: var(--gray-900);
  font-size: 18px;
  font-weight: 900;
}

.category-pill span,
.category-card p {
  display: block;
  margin-top: 8px;
  color: var(--gray-500);
  font-size: 14px;
}

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

.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.category-samples a {
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--sky-600);
  background: var(--sky-50);
  font-size: 13px;
  font-weight: 700;
}

.page-hero {
  max-width: 1240px;
  margin: 30px auto 0;
  padding: 0 22px;
}

.compact-hero > div {
  overflow: hidden;
  border-radius: 34px;
  padding: clamp(34px, 6vw, 72px);
  color: var(--white);
  background: radial-gradient(circle at 10% 20%, rgba(125, 211, 252, 0.72), transparent 30%), linear-gradient(135deg, #0f172a, #075985 52%, #2563eb);
  box-shadow: var(--shadow);
}

.compact-hero p {
  color: rgba(255, 255, 255, 0.88);
}

.list-toolbar {
  margin-bottom: 24px;
}

.detail-layout {
  max-width: 1240px;
  margin: 30px auto 0;
  padding: 0 22px;
  display: grid;
  grid-template-columns: minmax(220px, 360px) 1fr;
  gap: 34px;
  align-items: stretch;
}

.detail-cover {
  overflow: hidden;
  border-radius: 30px;
  box-shadow: var(--shadow);
  background: var(--sky-100);
}

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

.detail-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 5vw, 58px);
  border-radius: 30px;
  color: var(--white);
  background: radial-gradient(circle at 80% 15%, rgba(14, 165, 233, 0.68), transparent 35%), linear-gradient(135deg, #0f172a, #1e3a8a 58%, #0284c7);
  box-shadow: var(--shadow);
}

.detail-info .lead-text {
  color: rgba(255, 255, 255, 0.88);
}

.wide-tags span {
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.16);
}

.breadcrumb {
  max-width: 1240px;
  margin: 22px auto 0;
  padding: 0 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--gray-500);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--sky-600);
  font-weight: 800;
}

.player-section {
  scroll-margin-top: 96px;
}

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #020617;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.movie-video,
.play-cover,
.play-cover img,
.play-cover-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.movie-video {
  background: #020617;
}

.play-cover {
  border: 0;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.play-cover img {
  object-fit: cover;
}

.play-cover-shade {
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.12), rgba(2, 6, 23, 0.72));
}

.play-button {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--white);
  background: linear-gradient(135deg, var(--sky-500), var(--blue-700));
  box-shadow: 0 16px 40px rgba(14, 165, 233, 0.35);
  transform: translate(-50%, -50%);
  font-size: 34px;
  line-height: 1;
}

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

.article-section {
  padding-top: 46px;
}

.article-section p {
  margin: 0 0 26px;
  color: var(--gray-700);
  font-size: 17px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(14, 165, 233, 0.1);
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.site-footer {
  margin-top: 70px;
  border-top: 1px solid rgba(14, 165, 233, 0.14);
  background: rgba(255, 255, 255, 0.82);
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 36px 22px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
}

.footer-inner p {
  max-width: 560px;
  color: var(--gray-500);
  margin: 10px 0 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-content: flex-start;
  gap: 10px 18px;
}

.footer-links a {
  color: var(--gray-600);
  font-weight: 700;
}

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

.is-filtered-out {
  display: none !important;
}

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

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

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

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

  .main-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border-radius: 22px;
    background: var(--white);
    box-shadow: var(--shadow);
  }

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

  .nav-link {
    padding: 12px 14px;
    border-radius: 14px;
  }

  .nav-link:hover,
  .nav-link.is-active {
    background: var(--sky-50);
  }

  .site-search {
    display: block;
  }

  .search-label {
    display: block;
    margin-bottom: 8px;
  }

  .search-box {
    width: 100%;
  }

  .hero-content {
    left: 22px;
    bottom: 62px;
  }

  .hero-arrow {
    display: none;
  }

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

  .movie-grid,
  .rank-row,
  .category-grid,
  .category-overview-grid,
  .detail-layout,
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .detail-layout {
    gap: 22px;
  }

  .detail-cover img {
    min-height: 380px;
  }
}

@media (max-width: 560px) {
  .brand-text small {
    display: none;
  }

  .hero-carousel {
    height: 560px;
  }

  .hero-content h1,
  .hero-content h2,
  .page-hero h1,
  .detail-info h1 {
    font-size: 34px;
  }

  .hero-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }

  .ghost-btn {
    margin-left: 0;
  }

  .movie-grid,
  .rank-row,
  .category-grid,
  .category-overview-grid,
  .detail-layout,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .content-section {
    padding-top: 42px;
  }

  .compact-hero > div,
  .detail-info {
    border-radius: 24px;
  }

  .detail-cover img {
    min-height: auto;
  }

  .footer-links {
    justify-content: flex-start;
  }
}
