:root {
  --sky-50: #f0f9ff;
  --sky-100: #e0f2fe;
  --sky-500: #0ea5e9;
  --sky-600: #0284c7;
  --blue-600: #2563eb;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-500: #64748b;
  --slate-700: #334155;
  --slate-900: #0f172a;
  --white: #ffffff;
  --shadow-soft: 0 24px 70px rgba(14, 116, 144, 0.16);
  --shadow-card: 0 18px 42px rgba(15, 23, 42, 0.10);
  --radius-lg: 24px;
  --radius-xl: 32px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--slate-900);
  background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 38%, #eef2ff 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(226, 232, 240, 0.78);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
}

.header-inner,
.mobile-nav,
.footer-inner,
.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--white);
  border-radius: 14px;
  background: linear-gradient(135deg, var(--sky-500), var(--blue-600));
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.25);
}

.brand-text {
  font-size: 1.32rem;
  background: linear-gradient(135deg, var(--sky-600), var(--blue-600));
  background-clip: text;
  color: transparent;
}

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

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

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

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

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  border: 0;
  border-radius: 14px;
  background: var(--sky-50);
}

.mobile-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--sky-600);
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  padding: 0 0 16px;
}

.mobile-nav.is-open {
  display: grid;
  gap: 8px;
}

.mobile-link {
  display: block;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(240, 249, 255, 0.75);
}

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

.main-pad {
  padding: 34px 0 74px;
}

.hero-carousel {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  background: #0f172a;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 36px;
  align-items: center;
  padding: 70px 64px 92px;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.03);
  transition: opacity 0.7s ease, transform 0.7s ease;
  background-image: linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.62), rgba(14, 165, 233, 0.2)), var(--hero-image);
  background-size: cover;
  background-position: center;
}

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

.hero-shade {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(14, 165, 233, 0.32), transparent 32%), linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.36));
}

.hero-content,
.hero-poster {
  position: relative;
  z-index: 2;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 13px;
  color: var(--sky-600);
  border-radius: 999px;
  background: var(--sky-100);
  font-size: 0.86rem;
  font-weight: 800;
}

.hero-kicker {
  color: var(--white);
  background: rgba(14, 165, 233, 0.85);
}

.hero-content h1 {
  max-width: 780px;
  margin: 18px 0 18px;
  color: var(--white);
  font-size: clamp(2.45rem, 6vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.08em;
}

.hero-content p {
  max-width: 690px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.12rem;
  line-height: 1.78;
}

.hero-tags,
.detail-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags {
  margin-top: 22px;
}

.hero-tags span,
.detail-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
}

.hero-tags span {
  padding: 7px 12px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}

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

.primary-btn,
.ghost-btn,
.hero-search button,
.section-more,
.filter-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  font-weight: 900;
  transition: 0.2s ease;
}

.primary-btn,
.hero-search button,
.filter-button {
  color: var(--white);
  background: linear-gradient(135deg, var(--sky-500), var(--blue-600));
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.22);
}

.primary-btn:hover,
.hero-search button:hover,
.filter-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(37, 99, 235, 0.30);
}

.ghost-btn {
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.ghost-btn:hover {
  background: rgba(255, 255, 255, 0.28);
}

.hero-poster {
  align-self: center;
  justify-self: end;
  width: min(100%, 320px);
  overflow: hidden;
  border: 10px solid rgba(255, 255, 255, 0.24);
  border-radius: 28px;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.42);
  aspect-ratio: 2 / 3;
}

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

.hero-search-panel {
  position: absolute;
  left: 48px;
  right: 48px;
  bottom: 28px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(16px);
}

.hero-search {
  display: flex;
  flex: 1;
  gap: 10px;
}

.hero-search input,
.filter-input,
.filter-select {
  width: 100%;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 999px;
  outline: none;
  background: var(--white);
  color: var(--slate-900);
}

.hero-search-panel > a {
  color: var(--white);
  font-weight: 900;
  white-space: nowrap;
}

.hero-dots {
  position: absolute;
  right: 34px;
  bottom: 44px;
  z-index: 4;
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 11px;
  height: 11px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  transition: 0.2s ease;
}

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

.section {
  margin-top: 56px;
}

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

.section-heading h2,
.page-hero h1,
.detail-title h1 {
  margin: 12px 0 0;
  color: var(--slate-900);
  line-height: 1.1;
  letter-spacing: -0.055em;
}

.section-heading h2 {
  font-size: clamp(1.8rem, 4vw, 3.2rem);
}

.section-heading p,
.page-hero p,
.detail-title p {
  max-width: 720px;
  margin: 12px 0 0;
  color: var(--slate-500);
  line-height: 1.8;
}

.section-more {
  color: var(--sky-600);
  background: var(--sky-50);
  white-space: nowrap;
}

.section-more:hover {
  color: var(--white);
  background: var(--sky-600);
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-card);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(14, 165, 233, 0.42);
  box-shadow: 0 24px 54px rgba(14, 116, 144, 0.16);
}

.poster-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: var(--slate-100);
}

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

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

.poster-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 10px;
  color: var(--white);
  border-radius: 999px;
  background: rgba(2, 132, 199, 0.9);
  font-size: 0.78rem;
  font-weight: 900;
}

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

.movie-meta {
  margin: 0 0 7px;
  color: var(--sky-600);
  font-size: 0.82rem;
  font-weight: 900;
}

.movie-card h3 {
  margin: 0;
  color: var(--slate-900);
  font-size: 1.05rem;
  line-height: 1.36;
}

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

.movie-desc {
  display: -webkit-box;
  min-height: 3.36em;
  margin: 10px 0 14px;
  overflow: hidden;
  color: var(--slate-500);
  font-size: 0.92rem;
  line-height: 1.68;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-row span,
.detail-tags span {
  padding: 6px 10px;
  color: var(--slate-700);
  background: var(--sky-50);
}

.scroll-row {
  display: flex;
  gap: 18px;
  margin-inline: -12px;
  padding: 6px 12px 24px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
}

.scroll-row .movie-card {
  flex: 0 0 282px;
  scroll-snap-align: start;
}

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

.category-card {
  min-height: 220px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(37, 99, 235, 0.10)), var(--white);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(226, 232, 240, 0.82);
}

.category-card > a {
  display: block;
  padding: 24px 24px 12px;
}

.category-card span {
  color: var(--sky-600);
  font-weight: 900;
}

.category-card h3 {
  margin: 12px 0 8px;
  font-size: 1.55rem;
  letter-spacing: -0.04em;
}

.category-card p {
  margin: 0;
  color: var(--slate-500);
  line-height: 1.7;
}

.category-samples {
  display: grid;
  gap: 8px;
  padding: 0 24px 24px;
}

.category-samples a {
  color: var(--slate-700);
  font-weight: 700;
}

.category-samples a:hover {
  color: var(--sky-600);
}

.rank-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
}

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

.ranking-list li a {
  display: grid;
  grid-template-columns: 52px 58px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.06);
}

.ranking-list li a:hover {
  border-color: rgba(14, 165, 233, 0.4);
  transform: translateX(4px);
}

.rank-number {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--sky-600);
  border-radius: 15px;
  background: var(--sky-50);
  font-weight: 900;
}

.ranking-list img {
  width: 58px;
  height: 82px;
  object-fit: cover;
  border-radius: 12px;
}

.rank-body {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.rank-body strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-body small {
  color: var(--slate-500);
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.tag-cloud a {
  padding: 9px 13px;
  color: var(--slate-700);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--sky-50), #eff6ff);
  font-size: 0.92rem;
  font-weight: 800;
}

.tag-cloud a:hover {
  color: var(--white);
  background: linear-gradient(135deg, var(--sky-500), var(--blue-600));
}

.page-hero,
.detail-title {
  padding: 48px;
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(240, 249, 255, 0.92), rgba(255, 255, 255, 0.94));
  box-shadow: var(--shadow-soft);
}

.page-hero h1,
.detail-title h1 {
  font-size: clamp(2.2rem, 5vw, 4.5rem);
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px 150px auto;
  gap: 12px;
  margin: 28px 0;
  padding: 14px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
}

.empty-state {
  display: none;
  padding: 54px 24px;
  text-align: center;
  color: var(--slate-500);
  border-radius: var(--radius-lg);
  background: var(--white);
}

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

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--slate-500);
  font-size: 0.92rem;
  font-weight: 700;
}

.breadcrumbs a {
  color: var(--sky-600);
}

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

.player-card,
.detail-side,
.detail-copy,
.related-panel {
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.player-card {
  overflow: hidden;
}

.video-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #020617;
}

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

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: #020617;
  cursor: pointer;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.player-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.58;
}

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

.play-circle {
  position: absolute;
  display: grid;
  width: 92px;
  height: 92px;
  place-items: center;
  color: var(--white);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--sky-500), var(--blue-600));
  font-size: 2rem;
  box-shadow: 0 20px 60px rgba(14, 165, 233, 0.42);
}

.detail-side {
  padding: 24px;
}

.detail-side img {
  overflow: hidden;
  border-radius: 20px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.info-list {
  display: grid;
  gap: 12px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.info-list li {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--slate-500);
}

.info-list strong {
  color: var(--slate-900);
}

.detail-copy {
  margin-top: 28px;
  padding: 32px;
}

.detail-copy h2 {
  margin: 0 0 14px;
  font-size: 1.6rem;
  letter-spacing: -0.04em;
}

.detail-copy p {
  margin: 0 0 24px;
  color: var(--slate-700);
  line-height: 2;
}

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

.related-panel h2 {
  margin: 0 0 18px;
  font-size: 1.5rem;
}

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

.related-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--slate-200);
  border-radius: 18px;
  background: var(--slate-50);
}

.related-poster {
  overflow: hidden;
  border-radius: 14px;
  aspect-ratio: 2 / 3;
}

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

.related-card p,
.related-card span {
  margin: 0;
  color: var(--slate-500);
  font-size: 0.84rem;
  line-height: 1.55;
}

.related-card h3 {
  margin: 6px 0;
  font-size: 1rem;
  line-height: 1.35;
}

.site-footer {
  border-top: 1px solid rgba(226, 232, 240, 0.85);
  background: rgba(255, 255, 255, 0.78);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px 0;
}

.footer-copy {
  max-width: 600px;
  margin: 12px 0 0;
  color: var(--slate-500);
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

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

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

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

  .mobile-toggle {
    display: block;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    padding: 54px 34px 116px;
  }

  .hero-poster {
    display: none;
  }

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

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

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

@media (max-width: 760px) {
  .main-pad {
    padding-top: 22px;
  }

  .hero-carousel {
    min-height: 640px;
    border-radius: 24px;
  }

  .hero-content h1 {
    font-size: clamp(2.1rem, 12vw, 3.5rem);
  }

  .hero-search-panel {
    left: 18px;
    right: 18px;
    bottom: 18px;
    display: grid;
  }

  .hero-search {
    display: grid;
  }

  .hero-dots {
    left: 34px;
    right: auto;
    bottom: 154px;
  }

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

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

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

  .page-hero,
  .detail-title,
  .detail-copy {
    padding: 26px;
  }

  .related-card {
    grid-template-columns: 78px minmax(0, 1fr);
  }
}

@media (max-width: 480px) {
  .header-inner,
  .mobile-nav,
  .footer-inner,
  .container {
    width: min(100% - 22px, 1180px);
  }

  .hero-slide {
    padding: 38px 24px 128px;
  }

  .movie-grid,
  .category-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .scroll-row .movie-card {
    flex-basis: 246px;
  }
}
