:root {
  --bg: #f8fbff;
  --surface: #ffffff;
  --surface-soft: rgba(255, 255, 255, 0.78);
  --text: #0f172a;
  --muted: #64748b;
  --line: rgba(14, 165, 233, 0.16);
  --cyan: #06b6d4;
  --blue: #2563eb;
  --indigo: #4f46e5;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.10);
  --soft-shadow: 0 14px 35px rgba(14, 165, 233, 0.12);
  --radius: 24px;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.18), transparent 34rem),
    radial-gradient(circle at 90% 12%, rgba(59, 130, 246, 0.18), transparent 30rem),
    linear-gradient(180deg, #f8fdff 0%, #f6fbff 42%, #ffffff 100%);
  min-height: 100vh;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.02em;
  font-size: 24px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: white;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.28);
  font-size: 15px;
}

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

.site-nav a {
  color: #334155;
  font-weight: 700;
  padding: 11px 16px;
  border-radius: 14px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: #0369a1;
  background: rgba(14, 165, 233, 0.10);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  border: 0;
  background: rgba(14, 165, 233, 0.10);
  color: #0f172a;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  font-size: 22px;
  cursor: pointer;
}

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

.hero {
  position: relative;
  overflow: hidden;
  margin: 32px auto 34px;
  min-height: 610px;
  border-radius: 38px;
  padding: 36px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(236, 253, 255, 0.82)),
    radial-gradient(circle at 72% 30%, rgba(34, 211, 238, 0.35), transparent 22rem);
  border: 1px solid rgba(14, 165, 233, 0.16);
  box-shadow: var(--shadow);
}

.hero-glow {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 999px;
  filter: blur(40px);
  opacity: 0.34;
  pointer-events: none;
}

.hero-glow.one {
  left: -90px;
  top: 50px;
  background: #22d3ee;
}

.hero-glow.two {
  right: 30px;
  bottom: -100px;
  background: #2563eb;
}

.hero-slides {
  position: relative;
  z-index: 2;
}

.hero-slide {
  display: none;
  align-items: center;
  gap: 46px;
  min-height: 520px;
}

.hero-slide.is-active {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(310px, 0.72fr);
  animation: fadeIn 0.52s ease both;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: #0e7490;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(14, 165, 233, 0.18);
  padding: 8px 13px;
  border-radius: 999px;
  font-weight: 800;
  margin-bottom: 18px;
}

.hero-copy h1 {
  margin: 0 0 12px;
  max-width: 800px;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.06em;
  background: linear-gradient(135deg, #0f172a 8%, #0891b2 48%, #2563eb 92%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.hero-copy h2 {
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.06;
  margin: 0 0 16px;
}

.hero-copy p {
  color: #475569;
  font-size: 19px;
  line-height: 1.88;
  max-width: 680px;
  margin: 0 0 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.primary-button,
.ghost-button,
.small-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 16px;
  padding: 0 20px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: white;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 14px 30px rgba(14, 165, 233, 0.30);
}

.ghost-button {
  color: #075985;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(14, 165, 233, 0.18);
}

.primary-button:hover,
.ghost-button:hover,
.small-link:hover {
  transform: translateY(-2px);
}

.hero-visual {
  position: relative;
  border-radius: 34px;
  overflow: hidden;
  min-height: 460px;
  box-shadow: 0 32px 70px rgba(15, 23, 42, 0.20);
  transform: rotate(2deg);
  isolation: isolate;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(15, 23, 42, 0.78));
  z-index: 1;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  min-height: 460px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero-visual:hover img {
  transform: scale(1.06);
}

.hero-visual span {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 2;
  color: white;
  font-size: 24px;
  font-weight: 900;
}

.hero-dots {
  position: absolute;
  left: 36px;
  bottom: 30px;
  display: flex;
  gap: 8px;
  z-index: 4;
}

.hero-dots button {
  width: 34px;
  height: 8px;
  border-radius: 999px;
  border: 0;
  background: rgba(14, 165, 233, 0.22);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.is-active {
  width: 58px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
}

.search-strip,
.page-hero,
.content-section,
.player-section,
.detail-content {
  border: 1px solid var(--line);
  background: var(--surface-soft);
  backdrop-filter: blur(16px);
  border-radius: var(--radius);
  box-shadow: var(--soft-shadow);
}

.search-strip {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: center;
  gap: 22px;
  padding: 26px;
  margin-bottom: 34px;
}

.search-strip h2,
.side-panel h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.search-strip p,
.side-panel p,
.section-heading p,
.page-hero p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: white;
  border: 2px solid rgba(14, 165, 233, 0.14);
  border-radius: 20px;
  padding: 0 18px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.search-box span {
  color: #0891b2;
  font-size: 24px;
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  min-height: 58px;
  color: var(--text);
  font-size: 16px;
  background: transparent;
}

.page-search {
  margin-bottom: 24px;
}

.content-section {
  padding: 30px;
  margin: 0 0 34px;
}

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

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

.section-heading span {
  width: 6px;
  height: 34px;
  display: inline-block;
  background: linear-gradient(180deg, var(--cyan), var(--blue));
  border-radius: 999px;
  vertical-align: middle;
  margin-right: 12px;
}

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

.section-link {
  color: #0369a1;
  font-weight: 900;
  background: rgba(14, 165, 233, 0.10);
  border-radius: 14px;
  padding: 12px 16px;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: white;
  border: 1px solid rgba(14, 165, 233, 0.14);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 55px rgba(14, 165, 233, 0.20);
  border-color: rgba(14, 165, 233, 0.34);
}

.movie-poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.14), rgba(37, 99, 235, 0.12));
  overflow: hidden;
}

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

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

.poster-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  color: white;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(14, 165, 233, 0.28);
}

.movie-card-body {
  padding: 18px;
}

.movie-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  color: #0891b2;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 10px;
}

.movie-meta-line span {
  background: rgba(14, 165, 233, 0.10);
  border-radius: 999px;
  padding: 4px 8px;
}

.movie-card h3 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.35;
}

.movie-card h3 a:hover,
.rank-row h3 a:hover {
  color: #0891b2;
}

.movie-card p {
  margin: 0 0 14px;
  color: #64748b;
  line-height: 1.72;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.compact-card p {
  -webkit-line-clamp: 2;
}

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

.tag-row span,
.meta-chips span {
  color: #0369a1;
  background: rgba(14, 165, 233, 0.10);
  border: 1px solid rgba(14, 165, 233, 0.14);
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 800;
}

.hero-tags span {
  background: rgba(255, 255, 255, 0.80);
}

.split-section {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: start;
}

.side-panel {
  position: sticky;
  top: 98px;
  border-radius: 24px;
  padding: 24px;
  background: linear-gradient(135deg, rgba(236, 254, 255, 0.95), rgba(255, 255, 255, 0.95));
  border: 1px solid rgba(14, 165, 233, 0.14);
}

.pill-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.pill-links a {
  font-weight: 900;
  color: #075985;
  background: white;
  border: 1px solid rgba(14, 165, 233, 0.16);
  border-radius: 999px;
  padding: 9px 12px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 56px 74px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  background: white;
  border: 1px solid rgba(14, 165, 233, 0.13);
  border-radius: 22px;
  padding: 14px;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
}

.rank-number {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 950;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
}

.rank-thumb {
  width: 74px;
  height: 92px;
  overflow: hidden;
  border-radius: 16px;
  background: rgba(14, 165, 233, 0.10);
}

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

.rank-row h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.rank-row p {
  margin: 0 0 8px;
  color: #64748b;
  line-height: 1.6;
}

.small-link {
  min-height: 40px;
  color: #0369a1;
  background: rgba(14, 165, 233, 0.10);
  white-space: nowrap;
}

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

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  border-radius: 24px;
  color: white;
  background: #0f172a;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.14);
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.10), rgba(15, 23, 42, 0.78));
}

.category-card img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.category-card div {
  position: absolute;
  z-index: 2;
  left: 18px;
  right: 18px;
  bottom: 18px;
}

.category-card h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.category-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.65;
  font-size: 14px;
}

.page-hero {
  margin: 32px 0 34px;
  padding: 42px;
  background:
    radial-gradient(circle at 80% 20%, rgba(37, 99, 235, 0.16), transparent 24rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(236, 253, 255, 0.78));
}

.compact-hero h1 {
  margin: 0 0 16px;
  max-width: 850px;
  font-size: clamp(34px, 5vw, 56px);
  letter-spacing: -0.05em;
  line-height: 1.06;
}

.compact-hero p {
  max-width: 760px;
  font-size: 18px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  color: #64748b;
  font-weight: 800;
  margin: 28px 0 18px;
}

.breadcrumb a {
  color: #0369a1;
}

.detail-hero {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  border-radius: 34px;
  padding: 34px;
  background:
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.20), transparent 25rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(236, 253, 255, 0.82));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  margin-bottom: 34px;
}

.detail-poster {
  display: block;
  overflow: hidden;
  border-radius: 28px;
  aspect-ratio: 3 / 4;
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.18);
  background: rgba(14, 165, 233, 0.12);
}

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

.detail-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(36px, 5.4vw, 62px);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.detail-copy p {
  margin: 0 0 18px;
  color: #475569;
  font-size: 19px;
  line-height: 1.85;
}

.meta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 14px;
}

.player-section {
  padding: 28px;
  margin-bottom: 34px;
}

.player-frame {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  aspect-ratio: 16 / 9;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.24);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: radial-gradient(circle at center, rgba(15, 23, 42, 0.25), rgba(15, 23, 42, 0.68));
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.player-overlay span {
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  border-radius: 999px;
  font-size: 32px;
  padding-left: 5px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 20px 52px rgba(14, 165, 233, 0.45);
}

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

.detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  padding: 30px;
  margin-bottom: 34px;
}

.detail-content article {
  border-radius: 22px;
  background: white;
  border: 1px solid rgba(14, 165, 233, 0.12);
  padding: 24px;
}

.detail-content h2 {
  margin: 0 0 14px;
  font-size: 26px;
}

.detail-content p {
  color: #475569;
  line-height: 1.95;
  margin: 0;
  font-size: 16px;
}

.empty-state {
  display: none;
  text-align: center;
  padding: 34px;
  border-radius: 20px;
  color: #64748b;
  background: white;
  border: 1px solid rgba(14, 165, 233, 0.14);
  font-weight: 800;
}

.empty-state.is-visible {
  display: block;
}

.is-filter-hidden {
  display: none !important;
}

.site-footer {
  margin-top: 50px;
  padding: 46px 0 26px;
  background: linear-gradient(135deg, rgba(248, 253, 255, 0.98), rgba(236, 253, 255, 0.88));
  border-top: 1px solid var(--line);
}

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 1fr;
  gap: 36px;
}

.footer-brand {
  margin-bottom: 16px;
}

.site-footer p {
  color: #64748b;
  line-height: 1.85;
  margin: 0;
}

.site-footer h2 {
  font-size: 18px;
  margin: 0 0 16px;
}

.site-footer a:not(.brand) {
  display: block;
  color: #475569;
  margin: 10px 0;
  font-weight: 700;
}

.site-footer a:not(.brand):hover {
  color: #0891b2;
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(14, 165, 233, 0.13);
  color: #64748b;
  font-weight: 700;
}

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

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

  .hero-slide.is-active,
  .detail-hero,
  .split-section,
  .search-strip,
  .detail-content {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 380px;
    transform: none;
  }

  .hero-visual img {
    min-height: 380px;
  }

  .side-panel {
    position: static;
  }
}

@media (max-width: 760px) {
  .header-inner {
    height: auto;
    min-height: 70px;
    flex-wrap: wrap;
    padding: 14px 0;
  }

  .brand {
    font-size: 20px;
  }

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

  .site-nav {
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border-top: 1px solid rgba(14, 165, 233, 0.13);
    padding-top: 12px;
  }

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

  .site-nav a {
    padding: 13px 14px;
  }

  main,
  .header-inner,
  .footer-grid,
  .footer-bottom {
    width: min(100% - 20px, 1180px);
  }

  .hero,
  .page-hero,
  .content-section,
  .detail-hero,
  .player-section,
  .detail-content {
    border-radius: 22px;
    padding: 20px;
  }

  .hero {
    margin-top: 16px;
    min-height: auto;
  }

  .hero-slide {
    min-height: auto;
  }

  .hero-copy h1 {
    font-size: 38px;
  }

  .hero-copy p,
  .detail-copy p {
    font-size: 16px;
  }

  .hero-dots {
    position: static;
    margin-top: 18px;
  }

  .movie-grid,
  .featured-grid,
  .category-grid,
  .category-grid.large,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .rank-row {
    grid-template-columns: 42px 64px minmax(0, 1fr);
  }

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

  .rank-thumb {
    width: 64px;
    height: 84px;
  }

  .detail-poster {
    max-width: 320px;
  }

  .player-frame {
    border-radius: 18px;
  }

  .player-overlay span {
    width: 68px;
    height: 68px;
    font-size: 26px;
  }
}
