:root {
  color-scheme: light;
  --page: #f8fafc;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --card: #ffffff;
  --blue: #2563eb;
  --cyan: #06b6d4;
  --teal: #14b8a6;
  --rose: #f43f5e;
  --amber: #f59e0b;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 12px 30px rgba(15, 23, 42, 0.08);
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(135deg, #f8fafc 0%, #eef6ff 45%, #ecfeff 100%);
  color: var(--text);
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.84);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  backdrop-filter: blur(16px);
  box-shadow: 0 6px 22px rgba(15, 23, 42, 0.05);
}

.top-nav {
  width: min(1180px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.25);
  font-size: 15px;
}

.brand-text {
  font-size: 22px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

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

.nav-link {
  padding: 10px 16px;
  border-radius: 999px;
  color: #334155;
  font-size: 15px;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--blue);
  background: #eff6ff;
  transform: translateY(-1px);
}

.mobile-menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: #eff6ff;
  padding: 10px;
}

.mobile-menu-button span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--blue);
  border-radius: 999px;
}

.hero {
  position: relative;
  height: 640px;
  overflow: hidden;
  background: linear-gradient(135deg, #2563eb, #06b6d4, #14b8a6);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 18px 18px, rgba(255, 255, 255, 0.16) 0 2px, transparent 2px), radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.22), transparent 26%), radial-gradient(circle at 12% 86%, rgba(255, 255, 255, 0.22), transparent 28%);
  background-size: 60px 60px, 560px 560px, 660px 660px;
  pointer-events: none;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.8s ease, transform 1.8s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.1) contrast(1.02);
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.70) 38%, rgba(37, 99, 235, 0.28) 68%, rgba(6, 182, 212, 0.18) 100%), linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(15, 23, 42, 0.45));
}

.hero-content {
  position: absolute;
  z-index: 2;
  left: max(24px, calc((100vw - 1180px) / 2));
  top: 50%;
  transform: translateY(-50%);
  width: min(720px, calc(100% - 48px));
  color: #ffffff;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: max-content;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #dffbff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.section-kicker {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(6, 182, 212, 0.14));
  color: var(--blue);
}

.hero h1 {
  margin: 18px 0 0;
  font-size: clamp(42px, 8vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero h2 {
  margin: 16px 0 14px;
  font-size: clamp(28px, 4.5vw, 48px);
  line-height: 1.08;
}

.hero p {
  width: min(640px, 100%);
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(17px, 2.4vw, 24px);
  line-height: 1.7;
}

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

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

.hero-tags span,
.tag-row span {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 700;
}

.tag-row span {
  background: #eff6ff;
  color: #2563eb;
}

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

.primary-button,
.ghost-button,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  padding: 0 24px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  background: #ffffff;
  color: var(--blue);
  box-shadow: 0 14px 35px rgba(255, 255, 255, 0.20);
}

.ghost-button {
  border: 2px solid rgba(255, 255, 255, 0.50);
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  backdrop-filter: blur(10px);
}

.primary-button:hover,
.ghost-button:hover,
.section-more:hover {
  transform: translateY(-2px) scale(1.02);
}

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

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

.hero-dot.active {
  background: #ffffff;
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 76px 0;
}

.section-tint {
  width: 100%;
  max-width: none;
  padding-left: max(16px, calc((100vw - 1180px) / 2));
  padding-right: max(16px, calc((100vw - 1180px) / 2));
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.92), rgba(236, 254, 255, 0.95));
}

.section-gradient {
  width: 100%;
  max-width: none;
  padding-left: max(16px, calc((100vw - 1180px) / 2));
  padding-right: max(16px, calc((100vw - 1180px) / 2));
  background: linear-gradient(135deg, #1d4ed8, #0891b2, #0f766e);
  color: #ffffff;
}

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

.section-head.centered {
  justify-content: center;
  text-align: center;
}

.section-head h2 {
  margin: 12px 0 8px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.section-gradient .section-head p,
.section-gradient .section-kicker {
  color: rgba(255, 255, 255, 0.84);
}

.section-gradient .section-kicker {
  background: rgba(255, 255, 255, 0.14);
}

.section-more {
  color: var(--blue);
  background: #eff6ff;
}

.section-more.light {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
}

.featured-grid,
.movie-grid,
.category-grid,
.category-grid-large,
.ranking-grid {
  display: grid;
  gap: 24px;
}

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

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

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

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

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

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

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

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

.featured-card,
.movie-card,
.category-tile,
.category-card-large,
.ranking-item,
.related-panel,
.detail-article {
  border-radius: 24px;
  background: var(--card);
  box-shadow: var(--shadow-soft);
}

.featured-card {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.featured-card:hover,
.movie-card:hover,
.category-tile:hover,
.category-card-large:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.featured-card a,
.featured-card img,
.featured-shade {
  position: absolute;
  inset: 0;
}

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

.featured-card:hover img,
.movie-card:hover img,
.related-item:hover img {
  transform: scale(1.08);
}

.featured-shade {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.04), rgba(15, 23, 42, 0.88));
}

.featured-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px;
  color: #ffffff;
}

.featured-content h2 {
  margin: 14px 0 8px;
  font-size: 24px;
}

.featured-content p {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.80);
  line-height: 1.65;
}

.pill {
  display: inline-flex;
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.watch-link {
  font-weight: 800;
  color: #a7f3d0;
}

.movie-card {
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.movie-poster {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #dbeafe, #cffafe);
}

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

.play-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.84);
  color: var(--blue);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.18);
}

.movie-info {
  padding: 18px;
}

.movie-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.movie-info h2 {
  margin: 10px 0 8px;
  font-size: 19px;
  line-height: 1.3;
}

.movie-info p {
  min-height: 46px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card-small .movie-info h2 {
  font-size: 17px;
}

.category-tile,
.category-card-large a {
  display: block;
  padding: 28px;
}

.category-tile {
  background: linear-gradient(135deg, #ffffff, #f8fbff);
  border: 1px solid rgba(226, 232, 240, 0.92);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile span,
.category-card-large h2 {
  display: block;
  margin-bottom: 10px;
  font-size: 22px;
  font-weight: 900;
}

.category-tile p,
.category-card-large p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.category-card-large {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.90);
}

.category-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #ffffff;
}

.ranking-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  transition: transform 0.2s ease, background 0.2s ease;
}

.ranking-item:hover {
  transform: translateY(-3px);
  background: #ffffff;
}

.ranking-num {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #ffffff;
  font-size: 20px;
  font-weight: 900;
}

.ranking-item img {
  width: 70px;
  height: 96px;
  object-fit: cover;
  border-radius: 14px;
}

.ranking-text {
  min-width: 0;
}

.ranking-text strong,
.ranking-text em {
  display: block;
}

.ranking-text strong {
  margin-bottom: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-text em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #1d4ed8, #06b6d4, #14b8a6);
  color: #ffffff;
}

.soft-hero {
  background: linear-gradient(135deg, #eff6ff, #ecfeff);
  color: var(--text);
}

.rank-hero {
  background: linear-gradient(135deg, #1e3a8a, #155e75, #0f766e);
}

.page-hero-inner,
.detail-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

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

.page-hero h1 {
  margin: 16px 0 14px;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: inherit;
  opacity: 0.82;
  font-size: 18px;
  line-height: 1.8;
}

.filter-bar {
  display: grid;
  grid-template-columns: 1fr 220px 160px;
  gap: 12px;
  width: min(860px, 100%);
  margin-top: 28px;
}

.filter-bar input,
.filter-bar select {
  height: 52px;
  border: 1px solid rgba(148, 163, 184, 0.42);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--text);
  padding: 0 16px;
  outline: none;
}

.filter-bar input:focus,
.filter-bar select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.14);
}

.filter-card.is-hidden {
  display: none;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.soft-hero .breadcrumb {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--cyan);
}

.detail-inner {
  padding: 28px 0 54px;
}

.player-frame {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  box-shadow: 0 24px 70px rgba(2, 6, 23, 0.34);
}

.movie-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  border: 0;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  overflow: hidden;
}

.player-cover.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.player-cover-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(2, 6, 23, 0.76), rgba(37, 99, 235, 0.42), rgba(6, 182, 212, 0.32));
}

.player-play-button {
  position: relative;
  z-index: 1;
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--blue);
  font-size: 34px;
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.32);
}

.detail-title-block {
  padding-top: 32px;
}

.detail-title-block h1 {
  margin: 14px 0;
  font-size: clamp(34px, 6vw, 62px);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.detail-title-block p {
  max-width: 860px;
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
  line-height: 1.8;
}

.detail-meta span {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.88);
  padding: 8px 12px;
}

.detail-section {
  padding-top: 64px;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}

.detail-article,
.related-panel {
  padding: 30px;
}

.detail-article h2,
.related-panel h2 {
  margin: 0 0 18px;
  font-size: 24px;
}

.detail-article h2:not(:first-child) {
  margin-top: 34px;
}

.detail-article p {
  margin: 0;
  color: #334155;
  font-size: 17px;
  line-height: 1.95;
}

.detail-tags span {
  margin-bottom: 6px;
}

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

.related-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 14px;
  padding: 10px;
  border-radius: 18px;
  transition: background 0.2s ease;
}

.related-item:hover {
  background: #f8fafc;
}

.related-item img {
  width: 100px;
  height: 68px;
  object-fit: cover;
  border-radius: 14px;
  transition: transform 0.3s ease;
}

.related-item strong,
.related-item em {
  display: block;
}

.related-item strong {
  margin-bottom: 8px;
  line-height: 1.35;
}

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

.site-footer {
  background: linear-gradient(135deg, #0f172a, #1e293b, #082f49);
  color: #ffffff;
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0 34px;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr;
  gap: 34px;
}

.brand-footer .brand-text {
  color: #ffffff;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
}

.footer-brand p {
  max-width: 440px;
  margin: 18px 0 0;
  color: #cbd5e1;
  line-height: 1.8;
}

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

.footer-column a {
  display: block;
  width: max-content;
  margin: 9px 0;
  color: #cbd5e1;
  transition: color 0.2s ease;
}

.footer-column a:hover {
  color: #67e8f9;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  padding: 18px 16px 26px;
  text-align: center;
  color: #94a3b8;
}

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

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

@media (max-width: 900px) {
  .mobile-menu-button {
    display: block;
  }

  .nav-links {
    position: fixed;
    left: 16px;
    right: 16px;
    top: 76px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
  }

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

  .nav-link {
    text-align: center;
  }

  .hero {
    height: 720px;
  }

  .hero-content {
    top: auto;
    bottom: 86px;
    transform: none;
  }

  .featured-grid,
  .movie-grid,
  .library-grid,
  .category-grid-large,
  .ranking-grid,
  .ranking-grid-wide,
  .detail-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 620px) {
  .top-nav {
    width: min(100% - 20px, 1180px);
  }

  .brand-text {
    font-size: 18px;
  }

  .hero {
    height: 660px;
  }

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

  .hero h2 {
    font-size: 30px;
  }

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

  .hero-actions a {
    width: 100%;
  }

  .section,
  .section-tint,
  .section-gradient {
    padding-top: 52px;
    padding-bottom: 52px;
  }

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

  .movie-info {
    padding: 14px;
  }

  .movie-info h2 {
    font-size: 16px;
  }

  .movie-info p,
  .tag-row {
    display: none;
  }

  .detail-inner,
  .page-hero-inner {
    width: min(100% - 20px, 1180px);
  }

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

  .player-play-button {
    width: 68px;
    height: 68px;
    font-size: 25px;
  }

  .detail-article,
  .related-panel {
    padding: 22px;
  }

  .footer-inner {
    width: min(100% - 24px, 1180px);
  }
}
