* {
  box-sizing: border-box;
}

:root {
  --sky-50: #f0f9ff;
  --sky-100: #e0f2fe;
  --sky-500: #0ea5e9;
  --sky-600: #0284c7;
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-card: 0 10px 30px rgba(15, 23, 42, 0.10);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--gray-800);
  background:
    radial-gradient(circle at 12% 8%, rgba(14, 165, 233, 0.16), transparent 32%),
    radial-gradient(circle at 88% 12%, rgba(245, 158, 11, 0.18), transparent 28%),
    linear-gradient(180deg, var(--white) 0%, var(--sky-50) 46%, var(--amber-50) 100%);
}

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

img {
  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;
  border-bottom: 1px solid rgba(125, 211, 252, 0.38);
  background: linear-gradient(90deg, rgba(240, 249, 255, 0.94), rgba(255, 251, 235, 0.94), rgba(240, 249, 255, 0.94));
  box-shadow: 0 10px 35px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 14px 0;
}

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

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: var(--white);
  font-size: 22px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--sky-500), var(--amber-400));
  box-shadow: 0 12px 24px rgba(14, 165, 233, 0.24);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.brand:hover .brand-mark {
  transform: scale(1.08) rotate(-3deg);
  box-shadow: 0 18px 34px rgba(245, 158, 11, 0.30);
}

.brand-text {
  display: grid;
  line-height: 1.15;
}

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

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

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

.nav-link {
  padding: 10px 15px;
  border-radius: 12px;
  color: var(--gray-700);
  transition: background 0.25s ease, transform 0.25s ease, color 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--sky-700, #0369a1);
  background: linear-gradient(90deg, var(--sky-100), var(--amber-100));
  transform: translateY(-1px);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 270px;
}

.header-search input,
.search-box input,
.filter-box input {
  width: 100%;
  border: 1px solid rgba(125, 211, 252, 0.86);
  border-radius: 999px;
  outline: none;
  color: var(--gray-700);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.26);
}

.header-search input {
  padding: 10px 16px;
}

.header-search button,
.search-box button,
.primary-btn,
.secondary-btn,
.hero-arrow,
.play-mask,
.category-pill,
.cta-button {
  border: none;
  cursor: pointer;
}

.header-search button,
.primary-btn,
.cta-button {
  color: var(--white);
  border-radius: 999px;
  background: linear-gradient(90deg, var(--sky-500), var(--amber-500));
  box-shadow: 0 14px 28px rgba(14, 165, 233, 0.22);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.header-search button {
  padding: 10px 16px;
  white-space: nowrap;
}

.header-search button:hover,
.primary-btn:hover,
.cta-button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 18px 36px rgba(245, 158, 11, 0.26);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 12px;
  color: var(--gray-700);
  background: rgba(224, 242, 254, 0.85);
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 14px;
}

.mobile-panel a,
.mobile-panel form {
  display: block;
  margin-top: 8px;
}

.mobile-panel a {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.76);
}

.mobile-panel form {
  display: flex;
  gap: 8px;
}

.mobile-panel input {
  flex: 1;
  padding: 11px 14px;
  border: 1px solid rgba(125, 211, 252, 0.86);
  border-radius: 999px;
}

.mobile-panel button {
  padding: 10px 14px;
  border: none;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(90deg, var(--sky-500), var(--amber-500));
}

.hero {
  position: relative;
  height: 600px;
  overflow: hidden;
  color: var(--white);
  background: var(--gray-900);
}

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

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

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

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.55) 48%, rgba(0, 0, 0, 0.10) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.42), transparent 42%);
}

.hero-content {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  align-items: center;
}

.hero-copy {
  width: min(650px, 100%);
  animation: fade-in 0.9s ease both;
}

.eyebrow,
.label-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 15px;
  border-radius: 999px;
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  background: linear-gradient(90deg, rgba(14, 165, 233, 0.82), rgba(245, 158, 11, 0.82));
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(10px);
}

.hero h1,
.hero h2 {
  margin: 24px 0 18px;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.06;
  letter-spacing: -0.04em;
  text-shadow: 0 12px 36px rgba(0, 0, 0, 0.46);
}

.hero p {
  margin: 0;
  max-width: 640px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.8;
  text-shadow: 0 10px 26px rgba(0, 0, 0, 0.40);
}

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

.primary-btn,
.secondary-btn,
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  font-weight: 800;
}

.secondary-btn {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.30);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  transition: transform 0.25s ease, background 0.25s ease;
}

.secondary-btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.24);
}

.hero-arrow {
  position: absolute;
  z-index: 4;
  top: 50%;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: var(--white);
  font-size: 30px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  transition: background 0.25s ease, transform 0.25s ease;
}

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

.hero-prev {
  left: 22px;
  transform: translateY(-50%);
}

.hero-next {
  right: 22px;
  transform: translateY(-50%);
}

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

.hero-dots button {
  width: 12px;
  height: 12px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  transition: width 0.25s ease, background 0.25s ease;
}

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

.section {
  padding: 70px 0;
}

.section.tint {
  background: linear-gradient(90deg, rgba(224, 242, 254, 0.60), rgba(254, 243, 199, 0.62));
}

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

.section-heading {
  display: flex;
  align-items: center;
  gap: 14px;
}

.section-heading::before {
  content: "";
  width: 5px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--sky-500), var(--amber-500));
}

.section-heading h2,
.page-hero h1,
.detail-title h1 {
  margin: 0;
  color: var(--gray-800);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
}

.section-title p,
.page-hero p,
.detail-title p {
  margin: 10px 0 0;
  color: var(--gray-600);
  line-height: 1.8;
}

.view-more {
  flex: 0 0 auto;
  color: var(--sky-600);
  font-weight: 800;
}

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-card);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-soft);
}

.card-link {
  display: block;
  height: 100%;
}

.card-poster {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--sky-100), var(--amber-100));
}

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

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

.card-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.58), transparent 58%);
  transition: opacity 0.3s ease;
}

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

.card-category,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--white);
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.card-category {
  top: 12px;
  right: 12px;
  padding: 6px 11px;
  font-size: 12px;
  background: linear-gradient(90deg, rgba(14, 165, 233, 0.90), rgba(245, 158, 11, 0.90));
}

.rank-badge {
  top: 12px;
  left: 12px;
  width: 34px;
  height: 34px;
  background: rgba(17, 24, 39, 0.70);
}

.card-body {
  padding: 18px;
}

.card-body h2,
.card-body h3 {
  display: -webkit-box;
  overflow: hidden;
  min-height: 48px;
  margin: 0 0 10px;
  color: var(--gray-800);
  font-size: 18px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color 0.25s ease;
}

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

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

.card-meta,
.detail-meta,
.library-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  color: var(--gray-500);
  font-size: 13px;
}

.card-meta span,
.detail-meta span,
.library-meta span {
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(224, 242, 254, 0.72);
}

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

.tag-row span,
.detail-tags span {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--gray-600);
  font-size: 12px;
  background: linear-gradient(90deg, var(--sky-100), var(--amber-100));
}

.scroller {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 4px 0 18px;
  scroll-snap-type: x mandatory;
}

.scroller .movie-card {
  width: 340px;
  min-width: 340px;
  scroll-snap-align: start;
}

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

.category-card {
  min-height: 190px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.category-card h2 {
  margin: 0 0 10px;
  color: var(--gray-800);
  font-size: 22px;
}

.category-card p {
  margin: 0;
  color: var(--gray-600);
  line-height: 1.65;
}

.category-card span {
  display: inline-flex;
  margin-top: 18px;
  color: var(--sky-600);
  font-weight: 800;
}

.cta-panel {
  overflow: hidden;
  position: relative;
  padding: 48px;
  border-radius: 32px;
  color: var(--white);
  text-align: center;
  background: linear-gradient(90deg, var(--sky-500), var(--amber-500));
  box-shadow: 0 24px 48px rgba(14, 165, 233, 0.22);
}

.cta-panel h2 {
  margin: 0 0 14px;
  font-size: clamp(30px, 5vw, 48px);
}

.cta-panel p {
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.90);
  font-size: 18px;
}

.cta-panel .cta-button {
  color: var(--sky-600);
  background: var(--white);
}

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

.page-hero-card {
  padding: 42px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(12px);
}

.filter-box,
.search-box {
  display: flex;
  gap: 12px;
  margin: 28px 0 0;
}

.filter-box input,
.search-box input {
  padding: 14px 18px;
}

.search-box button {
  flex: 0 0 auto;
  padding: 0 22px;
  color: var(--white);
  border-radius: 999px;
  background: linear-gradient(90deg, var(--sky-500), var(--amber-500));
}

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

.library-row {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.library-row img {
  width: 92px;
  height: 62px;
  border-radius: 12px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--sky-100), var(--amber-100));
}

.library-row h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

.library-row p {
  margin: 0;
  color: var(--gray-600);
  font-size: 14px;
  line-height: 1.55;
}

.library-row .primary-btn {
  padding: 10px 15px;
  font-size: 14px;
}

.detail-hero {
  padding: 42px 0 24px;
}

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

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  box-shadow: 0 28px 55px rgba(2, 6, 23, 0.24);
  aspect-ratio: 16 / 9;
}

.video-player {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #020617;
}

.play-mask {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--white);
  background:
    radial-gradient(circle at center, rgba(14, 165, 233, 0.24), transparent 40%),
    linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.66));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  font-size: 34px;
  color: var(--white);
  background: linear-gradient(135deg, var(--sky-500), var(--amber-500));
  box-shadow: 0 18px 42px rgba(14, 165, 233, 0.42);
}

.detail-card,
.side-card,
.article-panel {
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.90);
  box-shadow: var(--shadow-card);
}

.detail-card {
  padding: 26px;
}

.detail-title h1 {
  margin-bottom: 12px;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.article-panel {
  margin-top: 24px;
  padding: 28px;
}

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

.article-panel p {
  margin: 0 0 16px;
  color: var(--gray-700);
  line-height: 1.9;
}

.side-card {
  padding: 20px;
}

.detail-cover {
  overflow: hidden;
  margin-bottom: 18px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--sky-100), var(--amber-100));
}

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

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

.compact-card {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  transition: background 0.25s ease, transform 0.25s ease;
}

.compact-card:hover {
  background: linear-gradient(90deg, var(--sky-50), var(--amber-50));
  transform: translateX(3px);
}

.compact-card img {
  width: 104px;
  height: 70px;
  border-radius: 12px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--sky-100), var(--amber-100));
}

.compact-card strong,
.compact-card small {
  display: block;
}

.compact-card strong {
  color: var(--gray-800);
  line-height: 1.45;
}

.compact-card small {
  margin-top: 5px;
  color: var(--gray-500);
  font-size: 12px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--gray-500);
  font-size: 14px;
}

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

.site-footer {
  margin-top: 70px;
  border-top: 1px solid var(--gray-200);
  background: linear-gradient(180deg, rgba(249, 250, 251, 0.92), rgba(243, 244, 246, 0.98));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 36px;
  padding: 44px 0;
}

.footer-grid p,
.footer-grid a {
  color: var(--gray-600);
  line-height: 1.8;
}

.footer-grid a {
  display: block;
  margin-top: 8px;
}

.footer-grid h2 {
  margin: 0 0 12px;
  font-size: 18px;
}

.footer-bottom {
  padding: 18px 0;
  color: var(--gray-500);
  text-align: center;
  border-top: 1px solid var(--gray-200);
}

.empty-state {
  display: none;
  padding: 36px;
  border-radius: 24px;
  color: var(--gray-600);
  text-align: center;
  background: rgba(255, 255, 255, 0.80);
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1040px) {
  .main-nav,
  .header-search {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

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

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

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

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

  .brand-text strong {
    font-size: 20px;
  }

  .hero {
    height: 560px;
  }

  .hero-arrow {
    display: none;
  }

  .hero-actions,
  .filter-box,
  .search-box {
    flex-direction: column;
  }

  .grid.cards,
  .grid.cards.three,
  .category-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 48px 0;
  }

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

  .page-hero-card,
  .cta-panel {
    padding: 28px;
  }

  .library-row {
    grid-template-columns: 82px 1fr;
  }

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

  .scroller .movie-card {
    width: 285px;
    min-width: 285px;
  }
}
