:root {
  color-scheme: light;
  --brand-orange: #f97316;
  --brand-pink: #ec4899;
  --brand-red: #ef4444;
  --brand-blue: #2563eb;
  --ink: #182033;
  --muted: #667085;
  --line: #eceff5;
  --soft: #fff7ed;
  --card: #ffffff;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 26%, #f8fbff 100%);
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(249, 115, 22, 0.12);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: #111827;
}

.logo-mark {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  color: #ffffff;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand-orange), var(--brand-pink));
  box-shadow: 0 12px 30px rgba(249, 115, 22, 0.28);
}

.logo-text {
  font-size: 22px;
}

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

.main-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: #4b5563;
  font-weight: 700;
  transition: 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand-orange), var(--brand-pink));
  box-shadow: 0 10px 22px rgba(236, 72, 153, 0.2);
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #fff0e8;
  color: var(--brand-orange);
  font-size: 24px;
}

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

.mobile-nav a {
  display: block;
  padding: 12px 16px;
  margin: 6px 0;
  border-radius: 14px;
  background: #fff7ed;
  font-weight: 700;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  color: #ffffff;
  background: #0f172a;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(10px);
  opacity: 0.55;
  pointer-events: none;
}

.hero::before {
  left: -160px;
  top: -160px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.6), transparent 62%);
}

.hero::after {
  right: -140px;
  bottom: -120px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.58), transparent 62%);
}

.hero-slide {
  display: none;
  min-height: 620px;
  background-image: linear-gradient(90deg, rgba(2, 6, 23, 0.92) 0%, rgba(15, 23, 42, 0.74) 46%, rgba(15, 23, 42, 0.38) 100%), var(--hero-image);
  background-size: cover;
  background-position: center;
}

.hero-slide.is-active {
  display: block;
  animation: fadeIn 0.6s ease both;
}

.hero-layout {
  position: relative;
  z-index: 2;
  min-height: 620px;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: 48px;
  padding: 70px 0 48px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  font-weight: 800;
}

.hero h1 {
  margin: 20px 0 18px;
  font-size: clamp(42px, 7vw, 80px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.hero-summary {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.8;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 30px;
}

.hero-tags span,
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: inherit;
  font-size: 13px;
  font-weight: 700;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 20px;
  border: 0;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand-orange), var(--brand-pink));
  box-shadow: 0 18px 38px rgba(249, 115, 22, 0.34);
}

.button-light {
  color: #111827;
  background: rgba(255, 255, 255, 0.92);
}

.button-ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.hero-poster-card {
  justify-self: end;
  width: min(440px, 100%);
  padding: 16px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(20px);
}

.hero-poster-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 24px;
  background: linear-gradient(135deg, #fee2e2, #ffedd5);
}

.hero-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 8px 4px;
  font-weight: 800;
}

.hero-controls {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  width: min(1180px, calc(100% - 32px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.hero-arrow,
.hero-dot {
  pointer-events: auto;
}

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

.hero-arrow {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  font-size: 22px;
}

.hero-dots {
  display: flex;
  gap: 8px;
}

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

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

.section {
  padding: 68px 0;
}

.section-compact {
  padding: 42px 0;
}

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

.section-title h2 {
  margin: 0;
  font-size: clamp(26px, 3.4vw, 42px);
  letter-spacing: -0.03em;
}

.section-title p {
  max-width: 640px;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.tool-panel {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 14px;
  padding: 18px;
  margin-bottom: 28px;
  border: 1px solid rgba(249, 115, 22, 0.16);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.06);
}

.input,
.select {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #ffffff;
  color: #111827;
  outline: none;
  transition: 0.2s ease;
}

.input:focus,
.select:focus {
  border-color: var(--brand-orange);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

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

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

.poster-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.poster-card:hover {
  transform: translateY(-6px);
  border-color: rgba(249, 115, 22, 0.35);
  box-shadow: 0 24px 56px rgba(15, 23, 42, 0.16);
}

.poster-wrap {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #ffedd5, #fce7f3);
}

.poster-wrap img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.badge,
.type-badge,
.rank-badge,
.duration-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  backdrop-filter: blur(10px);
}

.badge {
  top: 10px;
  left: 10px;
  background: linear-gradient(135deg, var(--brand-orange), var(--brand-pink));
}

.type-badge {
  top: 10px;
  right: 10px;
  background: rgba(15, 23, 42, 0.62);
}

.duration-badge {
  right: 10px;
  bottom: 10px;
  background: rgba(15, 23, 42, 0.74);
}

.play-hover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 34px;
  background: rgba(15, 23, 42, 0.18);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.poster-card:hover .play-hover {
  opacity: 1;
}

.card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 15px;
}

.card-body h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.35;
}

.line-clamp-1,
.line-clamp-2,
.line-clamp-3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-1 {
  -webkit-line-clamp: 1;
}

.line-clamp-2 {
  -webkit-line-clamp: 2;
}

.line-clamp-3 {
  -webkit-line-clamp: 3;
}

.card-desc {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  color: #7c8495;
  font-size: 12px;
}

.card-meta span {
  padding: 5px 9px;
  border-radius: 999px;
  background: #f4f6fb;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border-radius: 24px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand-orange), var(--brand-pink));
  box-shadow: 0 20px 48px rgba(236, 72, 153, 0.18);
}

.category-card::after {
  content: "";
  position: absolute;
  right: -38px;
  bottom: -50px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.category-card h3,
.category-card p,
.category-card strong,
.category-card span {
  position: relative;
  z-index: 1;
}

.category-card h3 {
  margin: 0 0 10px;
  font-size: 26px;
}

.category-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
}

.category-count {
  display: inline-flex;
  width: fit-content;
  margin-top: 18px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-weight: 900;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 82px 1fr auto;
  gap: 15px;
  align-items: center;
  padding: 14px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
}

.rank-number {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
  background: linear-gradient(135deg, #f59e0b, var(--brand-orange));
}

.rank-cover {
  width: 82px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 14px;
  background: #ffedd5;
}

.rank-main h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.rank-main p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 78px 0 64px;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316 0%, #ec4899 55%, #7c3aed 100%);
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 18% 10%, rgba(255, 255, 255, 0.28), transparent 36%), radial-gradient(circle at 86% 18%, rgba(255, 255, 255, 0.2), transparent 32%);
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(36px, 5vw, 62px);
  letter-spacing: -0.04em;
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 700;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background-image: linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.78), rgba(15, 23, 42, 0.44)), var(--detail-image);
  background-size: cover;
  background-position: center;
}

.detail-hero .container {
  min-height: 520px;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 42px;
  align-items: end;
  padding-top: 76px;
  padding-bottom: 58px;
}

.detail-poster {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.42);
  background: #ffedd5;
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.detail-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.detail-one-line {
  max-width: 780px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 19px;
  line-height: 1.8;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

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

.player-section {
  margin-top: -38px;
  position: relative;
  z-index: 4;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.28);
}

.player-shell video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  font-size: clamp(20px, 3vw, 34px);
  font-weight: 900;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.15), rgba(2, 6, 23, 0.58));
  cursor: pointer;
}

.play-overlay span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand-orange), var(--brand-pink));
  box-shadow: 0 18px 42px rgba(249, 115, 22, 0.35);
}

.play-overlay.is-hidden {
  display: none;
}

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

.panel {
  border-radius: 24px;
  padding: 28px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08);
}

.panel + .panel {
  margin-top: 22px;
}

.panel h2,
.panel h3 {
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

.panel p {
  color: #3f4656;
  line-height: 1.9;
}

.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.tags-cloud span {
  padding: 8px 12px;
  border-radius: 999px;
  background: #f4f6fb;
  color: #4b5563;
  font-weight: 700;
  font-size: 13px;
}

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

.side-card {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: #f8fafc;
  transition: 0.2s ease;
}

.side-card:hover {
  background: #fff7ed;
  transform: translateX(3px);
}

.side-card img {
  width: 70px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 12px;
  background: #ffedd5;
}

.side-card h4 {
  margin: 0 0 6px;
  font-size: 15px;
}

.side-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

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

.sitemap-list {
  columns: 4 230px;
  column-gap: 32px;
}

.sitemap-list a {
  display: block;
  break-inside: avoid;
  padding: 8px 0;
  color: #374151;
  border-bottom: 1px dashed #e5e7eb;
}

.site-footer {
  margin-top: 40px;
  color: #d1d5db;
  background: linear-gradient(135deg, #111827, #020617);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
  padding: 50px 0 34px;
}

.footer-grid h3 {
  color: #ffffff;
  margin: 0 0 14px;
}

.footer-grid p,
.footer-grid li {
  color: #aeb7c8;
  line-height: 1.8;
}

.footer-grid ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer-grid a:hover {
  color: #fb923c;
}

.footer-bottom {
  padding: 20px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #98a2b3;
  font-size: 14px;
}

.empty-state {
  display: none;
  padding: 34px;
  border-radius: 20px;
  text-align: center;
  background: #ffffff;
  border: 1px dashed #fed7aa;
  color: var(--muted);
}

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

.hidden-by-filter {
  display: none !important;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

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

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

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

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

  .hero-layout,
  .detail-hero .container,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .hero-poster-card {
    justify-self: start;
    max-width: 340px;
  }

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

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

  .rank-list,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

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

  .hero,
  .hero-slide,
  .hero-layout {
    min-height: 760px;
  }

  .hero-controls {
    bottom: 16px;
  }

  .hero-arrows {
    display: none;
  }

  .section-title {
    display: block;
  }

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

  .category-grid,
  .rank-list,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .rank-item {
    grid-template-columns: 62px 1fr;
  }

  .rank-number {
    display: none;
  }

  .detail-hero .container {
    min-height: auto;
    padding-top: 44px;
  }

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

  .panel {
    padding: 20px;
  }
}
