:root {
  --text: #1f2937;
  --muted: #6b7280;
  --soft: #f8fafc;
  --line: #e5e7eb;
  --dark: #111827;
  --orange: #f97316;
  --rose: #f43f5e;
  --pink: #ec4899;
  --amber: #f59e0b;
  --purple: #7c3aed;
  --blue: #2563eb;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.13);
  --card-shadow: 0 10px 25px rgba(15, 23, 42, 0.11);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 50%, #ecfeff 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

img,
video {
  max-width: 100%;
}

img {
  display: block;
  background: linear-gradient(135deg, #fb923c, #ec4899);
}

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
}

.site-nav {
  max-width: 1240px;
  margin: 0 auto;
  min-height: 68px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  white-space: nowrap;
}

.logo-mark {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  box-shadow: 0 10px 25px rgba(236, 72, 153, 0.28);
  transition: transform 0.25s ease;
}

.site-logo:hover .logo-mark {
  transform: scale(1.08) rotate(-3deg);
}

.logo-text {
  font-size: 21px;
  background: linear-gradient(90deg, var(--orange), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}

.nav-link {
  color: #374151;
  font-weight: 700;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--orange);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 260px;
}

.header-search input,
.search-panel input,
.filter-select {
  width: 100%;
  border: 1px solid rgba(249, 115, 22, 0.18);
  border-radius: 999px;
  padding: 11px 16px;
  color: #111827;
  background: #fff;
  outline: none;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}

.header-search input:focus,
.search-panel input:focus,
.filter-select:focus {
  border-color: rgba(249, 115, 22, 0.65);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.13);
}

.header-search button,
.primary-btn,
.secondary-btn,
.play-overlay,
.filter-chip {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, color 0.22s ease;
}

.header-search button,
.primary-btn {
  color: #fff;
  background: linear-gradient(90deg, var(--orange), var(--pink));
  box-shadow: 0 14px 30px rgba(236, 72, 153, 0.28);
}

.header-search button {
  padding: 10px 16px;
}

.primary-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
}

.secondary-btn {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.17);
  backdrop-filter: blur(12px);
}

.header-search button:hover,
.primary-btn:hover,
.secondary-btn:hover,
.filter-chip:hover,
.play-overlay:hover {
  transform: translateY(-2px);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  background: #fff7ed;
  color: var(--orange);
  border-radius: 12px;
  padding: 8px 11px;
  font-weight: 900;
}

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(115deg, #f97316 0%, #f43f5e 46%, #ec4899 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.22), transparent 26%),
    radial-gradient(circle at 82% 28%, rgba(255, 255, 255, 0.18), transparent 24%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.03));
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 70px;
  background: linear-gradient(0deg, #f8fafc, rgba(248, 250, 252, 0));
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  min-height: 560px;
  margin: 0 auto;
  padding: 76px 24px 98px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 44px;
  align-items: center;
}

.hero-kicker,
.detail-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  border-radius: 999px;
  padding: 9px 14px;
  background: rgba(255, 255, 255, 0.19);
  backdrop-filter: blur(14px);
  font-weight: 800;
}

.hero h1 {
  margin: 20px 0 18px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 0.98;
  letter-spacing: -2px;
  font-weight: 950;
}

.hero-lead {
  max-width: 720px;
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(18px, 2.3vw, 24px);
}

.hero-actions,
.hero-badges,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  align-items: center;
}

.hero-badges {
  margin-top: 26px;
}

.hero-badges span {
  border-radius: 999px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  font-weight: 750;
}

.hero-search {
  max-width: 610px;
  margin: 24px 0 0;
  display: flex;
  gap: 10px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.23);
  backdrop-filter: blur(16px);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  border-radius: 999px;
  padding: 13px 18px;
  outline: none;
  color: #111827;
  background: #fff;
}

.hero-search button {
  border: 0;
  border-radius: 999px;
  padding: 12px 20px;
  color: #fff;
  font-weight: 900;
  cursor: pointer;
  background: #111827;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(28px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.hero-card {
  height: 100%;
  overflow: hidden;
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.19);
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.26);
  backdrop-filter: blur(18px);
}

.hero-card a {
  display: grid;
  grid-template-columns: minmax(180px, 0.82fr) minmax(0, 1fr);
  min-height: 430px;
}

.hero-poster {
  position: relative;
  overflow: hidden;
}

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

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

.hero-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: 30px;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.36), rgba(17, 24, 39, 0.17));
}

.hero-info h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.1;
}

.hero-info p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
}

.hero-dot-list {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 38px;
  transform: translateX(-50%);
  display: flex;
  gap: 9px;
}

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

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

.main-section,
.page-hero,
.detail-page,
.search-page,
.category-page {
  max-width: 1240px;
  margin: 0 auto;
  padding: 56px 24px;
}

.page-hero {
  padding-top: 50px;
  padding-bottom: 26px;
}

.page-hero-panel {
  overflow: hidden;
  border-radius: 30px;
  padding: 46px;
  color: #fff;
  background: linear-gradient(135deg, #f97316, #f43f5e 48%, #a855f7);
  box-shadow: var(--shadow);
}

.page-hero-panel h1,
.detail-title h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
  font-weight: 950;
}

.page-hero-panel p {
  max-width: 850px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
}

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

.section-heading h2 {
  margin: 0 0 6px;
  color: #1f2937;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.15;
}

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

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

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

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

.movie-card {
  min-width: 0;
}

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

.movie-card-link {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--card-shadow);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card-link:hover {
  transform: translateY(-7px) scale(1.015);
  box-shadow: 0 25px 50px rgba(15, 23, 42, 0.18);
}

.poster-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #fb923c, #ec4899);
}

.featured .poster-wrap {
  aspect-ratio: 4 / 5;
}

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

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

.poster-wrap::after {
  content: "";
  position: absolute;
  inset: 40% 0 0;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0), rgba(17, 24, 39, 0.76));
}

.rating-badge,
.type-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #fff;
  font-weight: 900;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.22);
}

.rating-badge {
  top: 12px;
  right: 12px;
  padding: 5px 10px;
  background: var(--amber);
}

.type-badge {
  left: 12px;
  bottom: 12px;
  padding: 5px 10px;
  font-size: 12px;
  background: rgba(17, 24, 39, 0.76);
  backdrop-filter: blur(8px);
}

.rank-badge {
  top: 12px;
  left: 12px;
  min-width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #fbbf24, #f97316);
}

.movie-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 16px;
}

.movie-card-body h3 {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.28;
  color: #111827;
}

.featured .movie-card-body h3 {
  font-size: 24px;
}

.movie-card-body p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-meta {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: auto;
  color: #4b5563;
  font-size: 13px;
  font-weight: 750;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.tag-row span,
.detail-tag,
.filter-chip {
  border-radius: 999px;
  padding: 5px 10px;
  color: #be123c;
  background: #fff1f2;
  font-size: 12px;
  font-weight: 800;
}

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

.category-tile {
  display: flex;
  min-height: 190px;
  flex-direction: column;
  gap: 12px;
  border-radius: 24px;
  padding: 24px;
  color: #fff;
  background: linear-gradient(135deg, #fb923c, #ec4899);
  box-shadow: var(--card-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:nth-child(2n) {
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
}

.category-tile:nth-child(3n) {
  background: linear-gradient(135deg, #2563eb, #06b6d4);
}

.category-tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 45px rgba(15, 23, 42, 0.18);
}

.category-tile strong {
  font-size: 23px;
}

.category-tile p,
.category-tile div {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
}

.category-tile div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
}

.category-tile div span {
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 12px;
}

.soft-band {
  background: linear-gradient(90deg, #f3e8ff, #ffe4e6, #ffedd5);
}

.search-panel,
.filter-panel {
  margin: 0 0 30px;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 14px;
  align-items: center;
  border-radius: 24px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(14px);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-chip {
  border: 0;
  color: #9f1239;
  background: #fff1f2;
}

.filter-chip.is-active {
  color: #fff;
  background: linear-gradient(90deg, var(--orange), var(--pink));
}

.no-results {
  display: none;
  margin-top: 22px;
  padding: 24px;
  border-radius: 18px;
  color: var(--muted);
  background: #fff;
  box-shadow: var(--card-shadow);
}

.no-results.is-visible {
  display: block;
}

.detail-hero {
  overflow: hidden;
  border-radius: 32px;
  background: linear-gradient(135deg, #111827, #312e81 54%, #be123c);
  color: #fff;
  box-shadow: var(--shadow);
}

.detail-hero-inner {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr);
  gap: 34px;
  padding: 34px;
}

.detail-cover {
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 30px 55px rgba(0, 0, 0, 0.35);
}

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

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

.detail-title p {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
}

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

.detail-meta span {
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
  font-weight: 800;
}

.breadcrumbs {
  margin: 0 0 22px;
  color: var(--muted);
  font-weight: 700;
}

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

.player-section,
.content-panel {
  margin-top: 34px;
  border-radius: 28px;
  padding: 26px;
  background: #fff;
  box-shadow: var(--card-shadow);
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #020617;
  aspect-ratio: 16 / 9;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(2, 6, 23, 0.08), rgba(2, 6, 23, 0.62)),
    rgba(2, 6, 23, 0.08);
  font-size: 20px;
  z-index: 3;
}

.player-overlay span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border-radius: 999px;
  padding: 16px 26px;
  background: linear-gradient(90deg, var(--orange), var(--pink));
  box-shadow: 0 20px 40px rgba(236, 72, 153, 0.35);
}

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

.content-panel h2 {
  margin: 0 0 16px;
  font-size: 30px;
}

.content-panel p {
  margin: 0 0 18px;
  color: #4b5563;
  font-size: 16px;
}

.detail-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 16px;
}

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

.site-footer {
  margin-top: 42px;
  color: #fff;
  background: #111827;
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 44px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 30px;
  align-items: start;
}

.footer-brand p,
.footer-copy {
  max-width: 560px;
  margin: 14px 0 0;
  color: #9ca3af;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: flex-end;
}

.footer-links a {
  color: #d1d5db;
  font-weight: 800;
}

.footer-copy {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  padding-top: 18px;
}

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

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

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-stage {
    min-height: 430px;
  }
}

@media (max-width: 820px) {
  .site-nav {
    flex-wrap: wrap;
    padding: 12px 18px;
    gap: 12px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-menu {
    display: none;
    width: 100%;
    order: 4;
    margin-left: 0;
    padding: 12px;
    border-radius: 16px;
    background: #fff;
  }

  .nav-menu.is-open {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
  }

  .header-search {
    order: 3;
    width: 100%;
    min-width: 0;
  }

  .hero-inner {
    padding: 52px 18px 86px;
  }

  .hero-card a,
  .detail-hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-card a {
    min-height: unset;
  }

  .hero-poster {
    aspect-ratio: 16 / 10;
  }

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

  .movie-grid.featured,
  .category-grid,
  .search-panel,
  .filter-panel,
  .footer-inner {
    grid-template-columns: 1fr;
  }

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

  .page-hero-panel,
  .detail-hero-inner,
  .player-section,
  .content-panel {
    padding: 22px;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .logo-text {
    font-size: 18px;
  }

  .nav-menu.is-open {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-search {
    border-radius: 24px;
    flex-direction: column;
  }

  .hero-search button {
    width: 100%;
  }

  .hero-badges span {
    width: 100%;
    text-align: center;
  }

  .movie-grid,
  .related-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

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

  .movie-card-body h3 {
    font-size: 15px;
  }

  .movie-card-body p {
    font-size: 12px;
  }

  .main-section,
  .page-hero,
  .detail-page,
  .search-page,
  .category-page {
    padding-left: 14px;
    padding-right: 14px;
  }
}
