:root {
  color-scheme: light;
  --page-bg: #f8fafc;
  --text: #111827;
  --muted: #64748b;
  --soft: #e2e8f0;
  --card: rgba(255, 255, 255, 0.94);
  --blue: #2563eb;
  --cyan: #06b6d4;
  --teal: #14b8a6;
  --pink: #ec4899;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--page-bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

button,
input,
select {
  font: inherit;
}

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

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

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--cyan), var(--teal));
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.25);
}

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

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

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

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: var(--blue);
  background: #eff6ff;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: #eff6ff;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.menu-button span {
  width: 20px;
  height: 2px;
  border-radius: 99px;
  background: var(--blue);
}

.mobile-nav {
  display: none;
  padding: 0 24px 16px;
  gap: 8px;
  flex-wrap: wrap;
}

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

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

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

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(15, 23, 42, 0.82), rgba(15, 23, 42, 0.34), rgba(15, 23, 42, 0.72)), var(--hero-image);
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 12% 20%, rgba(255, 255, 255, 0.16), transparent 28%), radial-gradient(circle at 80% 12%, rgba(20, 184, 166, 0.25), transparent 34%);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.52));
}

.hero-grid {
  position: relative;
  z-index: 3;
  height: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 84px 24px 72px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 380px;
  align-items: center;
  gap: 48px;
}

.hero-copy {
  color: #fff;
  animation: fadeUp 0.7s ease both;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow {
  color: rgba(255, 255, 255, 0.86);
}

.section-kicker {
  color: var(--blue);
}

.hero h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.98;
  font-weight: 950;
  letter-spacing: -0.08em;
}

.hero-summary {
  max-width: 720px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 20px;
  line-height: 1.75;
}

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

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

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

.hero-tags span {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

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

.primary-button,
.secondary-button,
.search-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button,
.search-form button {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 16px 36px rgba(37, 99, 235, 0.34);
}

.secondary-button {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.14);
}

.primary-button:hover,
.secondary-button:hover,
.search-form button:hover {
  transform: translateY(-2px);
}

.hero-panel {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.13);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-panel p {
  margin: 0 0 16px;
  color: #fff;
  font-weight: 900;
}

.hero-mini-card {
  display: grid;
  grid-template-columns: 82px 1fr;
  align-items: center;
  gap: 14px;
  padding: 10px;
  border-radius: 20px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  transition: transform 0.2s ease, background 0.2s ease;
}

.hero-mini-card + .hero-mini-card {
  margin-top: 12px;
}

.hero-mini-card:hover {
  transform: translateX(4px);
  background: rgba(255, 255, 255, 0.2);
}

.hero-mini-card img {
  aspect-ratio: 16 / 10;
  border-radius: 16px;
}

.hero-mini-card span {
  font-weight: 900;
  line-height: 1.35;
}

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

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

.hero-dot.active {
  width: 28px;
  background: #fff;
}

.quick-search,
.content-section,
.page-main {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.quick-search {
  margin-top: -42px;
  position: relative;
  z-index: 20;
}

.quick-search-inner {
  padding: 28px;
  border-radius: 30px;
  background: var(--card);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 520px);
  gap: 26px;
  align-items: center;
}

.quick-search h2,
.section-heading h2,
.page-hero h1,
.detail-copy h1,
.detail-text h2 {
  margin: 0;
  letter-spacing: -0.05em;
  line-height: 1.1;
}

.quick-search h2,
.section-heading h2 {
  font-size: clamp(26px, 3vw, 38px);
}

.search-form {
  display: flex;
  gap: 12px;
}

.search-form input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 48px;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  padding: 0 18px;
  color: var(--text);
  background: #fff;
  outline: 0;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

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

.content-section {
  padding-top: 70px;
  padding-bottom: 10px;
}

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

.section-heading a {
  color: var(--blue);
  font-weight: 900;
}

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

.category-tile,
.category-overview-card a {
  display: block;
  min-height: 150px;
  padding: 24px;
  border-radius: 26px;
  background: linear-gradient(135deg, #eff6ff, #ecfeff 55%, #f0fdfa);
  border: 1px solid #dbeafe;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-tile span,
.category-overview-card span {
  display: block;
  margin-bottom: 10px;
  font-size: 22px;
  font-weight: 950;
  letter-spacing: -0.04em;
}

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

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(219, 234, 254, 0.85);
  border-radius: 26px;
  background: var(--card);
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.movie-poster img {
  transition: transform 0.35s ease;
}

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

.poster-chip,
.rank-badge {
  position: absolute;
  top: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(10px);
}

.poster-chip {
  right: 12px;
}

.rank-badge {
  left: 12px;
  min-width: 36px;
  background: linear-gradient(135deg, var(--pink), var(--blue));
}

.movie-info {
  padding: 16px;
}

.movie-title {
  display: -webkit-box;
  min-height: 48px;
  overflow: hidden;
  color: #0f172a;
  font-size: 17px;
  font-weight: 950;
  line-height: 1.35;
  letter-spacing: -0.03em;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-title:hover {
  color: var(--blue);
}

.movie-meta,
.movie-line {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
}

.movie-meta {
  margin: 8px 0 0;
  color: #2563eb;
  font-size: 12px;
  font-weight: 800;
  -webkit-line-clamp: 1;
}

.movie-line {
  min-height: 46px;
  margin: 10px 0 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  -webkit-line-clamp: 2;
}

.movie-info .tag-row span,
.detail-copy .tag-row span {
  color: #0369a1;
  background: #e0f2fe;
}

.page-main {
  padding-top: 34px;
  padding-bottom: 50px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 56px;
  border-radius: 34px;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #06b6d4 52%, #14b8a6);
  box-shadow: var(--shadow);
}

.page-hero::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  right: -80px;
  top: -120px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.page-hero .section-kicker {
  color: rgba(255, 255, 255, 0.84);
}

.page-hero h1 {
  max-width: 860px;
  font-size: clamp(36px, 5vw, 62px);
}

.page-hero p:last-child {
  max-width: 760px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 1.8;
}

.filter-panel {
  margin-bottom: 28px;
  padding: 18px;
  border: 1px solid #dbeafe;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.08);
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 180px 180px auto;
  align-items: end;
  gap: 14px;
}

.filter-panel label {
  display: grid;
  gap: 8px;
}

.filter-panel label span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.filter-count {
  min-width: 90px;
  margin: 0;
  color: var(--blue);
  font-weight: 900;
}

.breadcrumb {
  margin-bottom: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-weight: 800;
}

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

.detail-hero {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 34px;
  align-items: stretch;
  padding: 28px;
  border-radius: 34px;
  background: linear-gradient(135deg, #ffffff, #eff6ff 56%, #ecfeff);
  box-shadow: var(--shadow);
}

.detail-poster {
  overflow: hidden;
  aspect-ratio: 2 / 2.85;
  border-radius: 26px;
  background: #dbeafe;
}

.detail-copy {
  align-self: center;
}

.detail-copy h1 {
  font-size: clamp(38px, 5vw, 66px);
}

.detail-line {
  max-width: 860px;
  margin: 18px 0 0;
  color: #334155;
  font-size: 20px;
  line-height: 1.75;
}

.detail-meta {
  margin: 22px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  color: #075985;
  background: #e0f2fe;
  font-weight: 900;
}

.detail-copy .primary-button {
  margin-top: 28px;
}

.player-section {
  margin-top: 34px;
}

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

.stream-player video {
  width: 100%;
  height: 100%;
  background: #020617;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  border: 0;
  color: #fff;
  text-align: center;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.72), rgba(37, 99, 235, 0.42));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-icon {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 18px 44px rgba(37, 99, 235, 0.46);
  position: relative;
}

.play-icon::after {
  content: "";
  position: absolute;
  left: 34px;
  top: 25px;
  width: 0;
  height: 0;
  border-top: 16px solid transparent;
  border-bottom: 16px solid transparent;
  border-left: 22px solid #fff;
}

.player-cover strong {
  max-width: min(760px, 86%);
  font-size: clamp(26px, 4vw, 48px);
  line-height: 1.12;
}

.player-cover em {
  font-style: normal;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 900;
}

.detail-text {
  max-width: 980px;
}

.detail-text h2 {
  margin-top: 30px;
  font-size: 30px;
}

.detail-text p {
  margin: 14px 0 0;
  color: #334155;
  font-size: 17px;
  line-height: 1.9;
}

.site-footer {
  margin-top: 70px;
  color: #cbd5e1;
  background: #0f172a;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 42px 24px;
  display: flex;
  justify-content: space-between;
  gap: 28px;
}

.footer-brand {
  color: #fff;
  font-size: 24px;
}

.footer-inner p {
  max-width: 560px;
  margin: 14px 0 0;
  line-height: 1.8;
}

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

.footer-links a {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.copyright {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 28px;
  color: #94a3b8;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

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

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

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) 320px;
  }
}

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

  .menu-button {
    display: inline-flex;
  }

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

  .hero {
    height: auto;
    min-height: 660px;
  }

  .hero-slide {
    min-height: 660px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    padding-top: 64px;
    gap: 28px;
  }

  .quick-search-inner,
  .detail-hero {
    grid-template-columns: 1fr;
  }

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

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

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

@media (max-width: 700px) {
  .header-inner {
    padding: 14px 16px;
  }

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

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

  .hero-summary,
  .detail-line {
    font-size: 17px;
  }

  .hero-grid,
  .quick-search,
  .content-section,
  .page-main {
    padding-left: 16px;
    padding-right: 16px;
  }

  .quick-search-inner,
  .page-hero,
  .detail-hero {
    padding: 22px;
    border-radius: 26px;
  }

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

  .movie-grid,
  .rank-grid,
  .compact-grid,
  .category-grid,
  .category-overview-grid,
  .filter-panel {
    grid-template-columns: 1fr;
  }

  .movie-card {
    display: grid;
    grid-template-columns: 120px 1fr;
  }

  .movie-poster {
    height: 100%;
    min-height: 184px;
  }

  .movie-title {
    min-height: auto;
  }
}
