:root {
  color-scheme: light;
  --cyan: #06b6d4;
  --blue: #2563eb;
  --teal: #14b8a6;
  --indigo: #4f46e5;
  --purple: #7c3aed;
  --yellow: #fde047;
  --text: #111827;
  --muted: #64748b;
  --soft: #f8fafc;
  --line: #e5e7eb;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: #ffffff;
  line-height: 1.6;
}

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: 60;
  background: linear-gradient(90deg, rgba(6, 182, 212, 0.96), rgba(37, 99, 235, 0.96), rgba(20, 184, 166, 0.96));
  box-shadow: 0 12px 35px rgba(37, 99, 235, 0.22);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
}

.brand-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 22px;
  letter-spacing: 0.03em;
}

.brand-text small {
  margin-top: 4px;
  font-size: 12px;
  opacity: 0.9;
}

.desktop-nav,
.mobile-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-link {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 650;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--yellow);
  transform: translateY(-1px);
}

.nav-link-soft {
  opacity: 0.88;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-search,
.mobile-search {
  display: flex;
  align-items: center;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.header-search input,
.mobile-search input {
  width: 230px;
  min-width: 0;
  padding: 10px 14px;
  border: 0;
  color: #ffffff;
  background: transparent;
  outline: none;
}

.header-search input::placeholder,
.mobile-search input::placeholder {
  color: rgba(255, 255, 255, 0.76);
}

.header-search button,
.mobile-search button {
  padding: 10px 16px;
  border: 0;
  color: #ffffff;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.16);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  color: #ffffff;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.18);
}

.mobile-panel {
  display: none;
  padding: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.98), rgba(6, 182, 212, 0.98));
}

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

.mobile-search {
  margin-bottom: 14px;
}

.mobile-search input {
  width: 100%;
}

.mobile-nav {
  align-items: stretch;
  flex-direction: column;
  gap: 10px;
}

.hero-slider {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, #22d3ee, #2563eb 50%, #7c3aed);
}

.hero-stage {
  position: relative;
  min-height: 600px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.65s ease, transform 0.65s ease;
  pointer-events: none;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.34;
  filter: saturate(1.14) contrast(1.08);
}

.hero-slide::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.28;
  background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.24) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.24) 50%, rgba(255, 255, 255, 0.24) 75%, transparent 75%);
  background-size: 44px 44px;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.78), rgba(15, 23, 42, 0.42), rgba(37, 99, 235, 0.36));
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 56px;
  padding: 72px 0;
}

.hero-copy {
  max-width: 780px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 16px;
  padding: 7px 12px;
  border-radius: 999px;
  color: #ecfeff;
  font-size: 14px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.hero-copy h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 5.4vw, 66px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero-copy h2 {
  margin: 0 0 18px;
  font-size: clamp(24px, 3.4vw, 42px);
  line-height: 1.15;
}

.hero-copy p {
  max-width: 700px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
}

.hero-actions,
.center-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  color: #1d4ed8;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.2);
}

.btn-primary:hover {
  background: var(--yellow);
  transform: translateY(-2px) scale(1.02);
}

.btn-ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

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

.hero-poster {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 32px;
  box-shadow: 0 30px 80px rgba(2, 6, 23, 0.35);
  transform: rotate(2deg);
}

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

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

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

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

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

.content-section {
  padding: 70px 0;
  background: #ffffff;
}

.soft-section {
  background: linear-gradient(180deg, #f8fafc, #ffffff);
}

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

.section-heading h2 {
  margin: 0 0 7px;
  color: #1f2937;
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.15;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
}

.section-more {
  flex: 0 0 auto;
  color: var(--blue);
  font-weight: 800;
}

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

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

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

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

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

.poster-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #06b6d4, #2563eb);
}

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

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

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: grid;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #ef4444);
  box-shadow: 0 10px 24px rgba(239, 68, 68, 0.3);
}

.movie-card-body {
  display: flex;
  min-height: 218px;
  flex-direction: column;
  padding: 18px;
}

.movie-meta-line {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
}

.movie-card strong {
  display: -webkit-box;
  min-height: 54px;
  overflow: hidden;
  color: #111827;
  font-size: 20px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-desc {
  display: -webkit-box;
  min-height: 50px;
  margin-top: 10px;
  overflow: hidden;
  color: #475569;
  font-size: 14px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

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

.tag-row span,
.detail-tags span {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  color: #0369a1;
  font-size: 12px;
  font-weight: 700;
  background: #e0f2fe;
}

.card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 16px;
  color: #64748b;
  font-size: 13px;
}

.card-bottom em {
  color: #f97316;
  font-style: normal;
  font-weight: 800;
}

.card-bottom i {
  font-style: normal;
}

.movie-card-compact .movie-card-link {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
}

.movie-card-compact .poster-wrap {
  aspect-ratio: 3 / 4;
  height: 100%;
}

.movie-card-compact .movie-card-body {
  min-height: 0;
}

.movie-card-compact strong {
  min-height: auto;
  font-size: 17px;
}

.movie-card-compact .movie-desc {
  min-height: 42px;
}

.category-card {
  display: flex;
  min-height: 226px;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  overflow: hidden;
  border-radius: var(--radius);
  color: #ffffff;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
  transform: translateY(-7px) scale(1.02);
  box-shadow: var(--shadow);
}

.category-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 18px;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.18);
}

.category-card strong {
  margin-top: 18px;
  font-size: 22px;
}

.category-card p {
  margin: 9px 0 18px;
  color: rgba(255, 255, 255, 0.88);
}

.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.category-samples span {
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.2);
}

.tone-pink { background: linear-gradient(135deg, #ec4899, #f43f5e); }
.tone-blue { background: linear-gradient(135deg, #2563eb, #06b6d4); }
.tone-cyan { background: linear-gradient(135deg, #0891b2, #22d3ee); }
.tone-indigo { background: linear-gradient(135deg, #4f46e5, #7c3aed); }
.tone-red { background: linear-gradient(135deg, #ef4444, #f97316); }
.tone-violet { background: linear-gradient(135deg, #7c3aed, #db2777); }
.tone-rose { background: linear-gradient(135deg, #f43f5e, #fb7185); }
.tone-green { background: linear-gradient(135deg, #10b981, #14b8a6); }
.tone-orange { background: linear-gradient(135deg, #f97316, #f59e0b); }
.tone-teal { background: linear-gradient(135deg, #0f766e, #06b6d4); }

.filter-panel {
  display: flex;
  gap: 12px;
  margin-bottom: 26px;
}

.filter-panel input {
  width: min(560px, 100%);
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  outline: none;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

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

.search-page-panel input {
  width: 100%;
}

.no-results {
  padding: 24px;
  border-radius: 18px;
  color: #64748b;
  background: #f8fafc;
}

.page-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, #06b6d4, #2563eb 56%, #7c3aed);
}

.page-hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.2;
  background-image: radial-gradient(circle at 20% 20%, #ffffff 0, transparent 28%), radial-gradient(circle at 80% 30%, #ffffff 0, transparent 24%);
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  padding: 84px 0 78px;
}

.page-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.12;
}

.page-hero p {
  max-width: 760px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 19px;
}

.category-preview-section:nth-child(even) {
  background: #f8fafc;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: #020617;
}

.detail-hero-bg,
.detail-hero-bg img,
.detail-hero-shade {
  position: absolute;
  inset: 0;
}

.detail-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.34;
  filter: blur(2px) saturate(1.1);
  transform: scale(1.04);
}

.detail-hero-shade {
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(15, 23, 42, 0.68), rgba(37, 99, 235, 0.42));
}

.detail-hero-inner {
  position: relative;
  z-index: 1;
  padding: 38px 0 64px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.78);
}

.breadcrumb a:hover {
  color: #ffffff;
}

.detail-intro {
  display: grid;
  align-items: center;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 42px;
}

.detail-poster {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 30px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
}

.detail-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.1;
}

.detail-copy p {
  max-width: 820px;
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.detail-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.detail-stats span {
  padding: 8px 12px;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.16);
}

.player-content {
  padding-top: 48px;
  background: #020617;
}

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

.movie-video {
  display: block;
  width: 100%;
  height: 100%;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 0;
  color: #ffffff;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.28), rgba(2, 6, 23, 0.72));
}

.player-cover.hidden {
  display: none;
}

.player-play-icon {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  border-radius: 999px;
  color: #2563eb;
  font-size: 34px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.player-cover strong {
  font-size: 22px;
}

.detail-body-section {
  background: #f8fafc;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 34px;
}

.detail-article,
.detail-side {
  padding: 30px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.detail-article h2,
.detail-side h2 {
  margin: 0 0 16px;
  color: #1f2937;
  font-size: 28px;
}

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

.info-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.info-list div {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.info-list dt {
  color: #64748b;
  font-weight: 700;
}

.info-list dd {
  margin: 0;
}

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

.site-footer {
  color: #ffffff;
  background: #0f172a;
}

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

.footer-inner p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.72);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: rgba(255, 255, 255, 0.82);
}

.footer-links a:hover {
  color: #ffffff;
}

[hidden] {
  display: none !important;
}

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

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

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

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

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

@media (max-width: 860px) {
  .header-search {
    display: none;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-poster {
    display: none;
  }

  .featured-grid,
  .movie-grid,
  .compact-grid,
  .category-grid,
  .large-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-intro {
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 22px;
  }

  .detail-copy h1 {
    font-size: 34px;
  }

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

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

  .header-inner {
    min-height: 66px;
  }

  .brand-icon {
    width: 38px;
    height: 38px;
    border-radius: 14px;
  }

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

  .brand-text small {
    display: none;
  }

  .hero-slider,
  .hero-stage {
    min-height: 570px;
  }

  .hero-content {
    padding: 58px 0 72px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn-primary,
  .btn-ghost {
    width: 100%;
  }

  .content-section {
    padding: 48px 0;
  }

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

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

  .movie-card-compact .movie-card-link {
    grid-template-columns: 102px minmax(0, 1fr);
  }

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

  .detail-poster {
    width: min(230px, 100%);
  }

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

  .info-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
