:root {
  --orange: #f97316;
  --red: #ef4444;
  --pink: #ec4899;
  --blue: #2563eb;
  --cyan: #06b6d4;
  --slate: #0f172a;
  --soft: #f8fafc;
  --text: #111827;
  --muted: #64748b;
  --line: #e5e7eb;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 44%, #f8fafc 100%);
  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%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  color: #fff;
  background: linear-gradient(90deg, var(--orange), var(--red), var(--pink));
  box-shadow: 0 12px 30px rgba(239, 68, 68, 0.28);
}

.header-inner {
  max-width: 1280px;
  height: 68px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.brand-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

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

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

.nav-link {
  font-size: 15px;
  font-weight: 700;
  opacity: 0.9;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.header-search,
.mobile-search {
  position: relative;
  display: flex;
  align-items: center;
}

.header-search input,
.mobile-search input {
  width: 250px;
  border: 0;
  outline: 0;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 12px 46px 12px 18px;
  font-size: 14px;
}

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

.header-search button {
  position: absolute;
  right: 12px;
  border: 0;
  color: #fff;
  background: transparent;
  font-size: 20px;
  cursor: pointer;
}

.mobile-menu-button {
  display: none;
  border: 0;
  color: #fff;
  background: transparent;
  font-size: 30px;
  cursor: pointer;
}

.mobile-panel {
  display: none;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 22px 18px;
}

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

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

.mobile-search button {
  margin-left: 10px;
  border: 0;
  color: var(--red);
  background: #fff;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 800;
}

.mobile-nav {
  display: grid;
  gap: 6px;
  margin-top: 12px;
}

.mobile-nav-link {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  font-weight: 700;
}

.hero {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: #111827;
}

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

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

.hero-image {
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.56) 46%, rgba(0, 0, 0, 0.08));
}

.hero-content {
  position: absolute;
  inset: 0;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  color: #fff;
}

.hero-content > * {
  max-width: 720px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 7px 14px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(90deg, var(--orange), var(--red));
  font-weight: 900;
  font-size: 14px;
  box-shadow: 0 15px 35px rgba(249, 115, 22, 0.35);
}

.spark {
  color: #facc15;
}

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

.hero p {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 20px;
  line-height: 1.75;
}

.hero-meta,
.badge-row,
.card-meta,
.meta-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-meta {
  margin-bottom: 18px;
}

.hero-meta span,
.badge-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 11px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  font-weight: 800;
  font-size: 13px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tag-list span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  color: #2563eb;
  background: #eff6ff;
  font-size: 12px;
  font-weight: 800;
}

.hero-tags {
  margin-bottom: 28px;
}

.hero-tags span {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
}

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

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

.primary-button {
  color: #fff;
  background: linear-gradient(90deg, var(--orange), var(--red));
  box-shadow: 0 18px 35px rgba(239, 68, 68, 0.35);
}

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

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

.soft-button {
  color: var(--red);
  background: #fff;
}

.outline-button {
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.88);
}

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

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

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

.section,
.page-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 72px 22px;
}

.section.alt {
  max-width: none;
  background: linear-gradient(90deg, #fff7ed, #fff1f2);
}

.section.alt > .section-inner,
.full-band > .section-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.full-band {
  padding: 72px 22px;
  background: linear-gradient(135deg, #eff6ff, #ecfeff, #f8fafc);
}

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

.section-heading > div {
  display: flex;
  align-items: center;
  gap: 14px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(27px, 3vw, 38px);
  letter-spacing: -0.03em;
}

.section-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 14px 30px rgba(249, 115, 22, 0.25);
}

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

.grid {
  display: grid;
  gap: 24px;
}

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

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

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

.movie-card,
.featured-card,
.category-card,
.rank-card,
.info-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

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

.poster-wrap,
.featured-media,
.rank-poster,
.compact-poster {
  position: relative;
  display: block;
  overflow: hidden;
  background: #0f172a;
}

.poster-wrap {
  aspect-ratio: 16 / 9;
}

.poster-wrap img,
.featured-media img,
.rank-poster img,
.compact-poster img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.movie-card:hover .poster-wrap img,
.featured-card:hover .featured-media img,
.rank-card:hover .rank-poster img {
  transform: scale(1.08);
}

.year-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 10px;
  color: #fff;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--orange), var(--red));
  font-weight: 900;
  font-size: 12px;
  box-shadow: 0 10px 22px rgba(239, 68, 68, 0.32);
}

.card-play,
.play-orb {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--orange);
  background: rgba(255, 255, 255, 0.92);
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.25s ease, transform 0.25s ease;
  font-weight: 900;
}

.movie-card:hover .card-play,
.featured-card:hover .play-orb {
  opacity: 1;
  transform: scale(1);
}

.card-body,
.featured-copy {
  padding: 18px;
}

.badge-row span:first-child {
  background: linear-gradient(90deg, var(--orange), var(--red));
}

.badge-row span:last-child {
  color: #475569;
  background: #f1f5f9;
}

.movie-card h3,
.featured-card h3,
.rank-card h3 {
  margin: 13px 0 9px;
  font-size: 19px;
  line-height: 1.35;
}

.movie-card h3 a:hover,
.featured-card h3 a:hover,
.rank-card h3 a:hover,
.compact-title:hover {
  color: var(--orange);
}

.movie-card p,
.featured-card p,
.rank-card p,
.info-card p,
.category-card p {
  color: var(--muted);
  line-height: 1.75;
}

.movie-card p,
.featured-card p,
.rank-card p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta,
.meta-line {
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

.featured-card {
  position: relative;
}

.featured-media {
  aspect-ratio: 16 / 9;
}

.compact-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 14px;
  padding: 10px;
  box-shadow: none;
  border-radius: 16px;
}

.compact-card:hover {
  background: #f8fafc;
  transform: none;
  box-shadow: none;
}

.compact-poster {
  border-radius: 14px;
  aspect-ratio: 16 / 10;
}

.compact-info p {
  margin: 6px 0;
  font-size: 13px;
  -webkit-line-clamp: 2;
}

.compact-title {
  font-weight: 900;
}

.category-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  color: #334155;
  background: #fff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.category-pill:hover {
  color: #fff;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 15px 30px rgba(37, 99, 235, 0.22);
}

.cta-panel {
  max-width: 1280px;
  margin: 0 auto;
  border-radius: 34px;
  padding: 54px 28px;
  color: #fff;
  text-align: center;
  background: linear-gradient(90deg, var(--orange), var(--red), var(--pink));
  box-shadow: 0 26px 60px rgba(239, 68, 68, 0.28);
}

.cta-panel h2 {
  margin: 0 0 14px;
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -0.04em;
}

.cta-panel p {
  margin: 0 auto 28px;
  max-width: 820px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 19px;
  line-height: 1.8;
}

.page-hero {
  color: #fff;
  background: linear-gradient(90deg, var(--orange), var(--red), var(--pink));
  padding: 68px 22px;
}

.page-hero.blue {
  background: linear-gradient(90deg, var(--blue), var(--cyan), #0d9488);
}

.page-hero.dark {
  background: linear-gradient(135deg, #111827, #1e293b, #0f172a);
}

.page-hero-inner {
  max-width: 1280px;
  margin: 0 auto;
}

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

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

.category-card {
  padding: 24px;
}

.category-card h2,
.category-card h3 {
  margin: 0 0 10px;
  font-size: 24px;
}

.category-card .sample-links {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.sample-links a {
  color: var(--blue);
  font-weight: 800;
}

.rank-layout {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 20px;
  align-items: stretch;
  margin-bottom: 22px;
}

.rank-number {
  border-radius: 22px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 1000;
  box-shadow: 0 18px 35px rgba(249, 115, 22, 0.25);
}

.rank-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 22px;
  padding: 14px;
}

.rank-poster {
  border-radius: 18px;
  aspect-ratio: 16 / 10;
}

.small-tags span {
  font-size: 11px;
}

.movie-detail-top {
  background: #050505;
}

.player-shell {
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-shell video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
}

.player-cover {
  position: absolute;
  inset: 0;
  cursor: pointer;
  overflow: hidden;
  background: #000;
}

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

.player-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.62;
}

.player-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 86px;
  height: 86px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  font-size: 36px;
  box-shadow: 0 20px 45px rgba(239, 68, 68, 0.4);
  cursor: pointer;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) 380px;
  gap: 30px;
}

.detail-card,
.related-card,
.content-card {
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  padding: 28px;
}

.breadcrumb {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

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

.detail-card h1 {
  margin: 12px 0 18px;
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -0.04em;
}

.detail-card h2,
.related-card h2,
.content-card h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.detail-card p,
.content-card p {
  color: #334155;
  line-height: 1.9;
  font-size: 16px;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.detail-actions a {
  color: #334155;
  background: #f1f5f9;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 900;
}

.related-card {
  position: sticky;
  top: 92px;
}

.search-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 18px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
  margin-bottom: 28px;
}

.search-panel input,
.filter-select {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 18px;
  outline: 0;
  font-size: 15px;
}

.search-panel button {
  border: 0;
  color: #fff;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  border-radius: 999px;
  padding: 0 26px;
  font-weight: 900;
  cursor: pointer;
}

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

.filter-chip {
  border: 0;
  color: #334155;
  background: #fff;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
  cursor: pointer;
}

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

.no-results {
  padding: 48px;
  text-align: center;
  color: var(--muted);
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
}

.pagination-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 36px;
}

.pagination-links a,
.pagination-links span {
  min-width: 42px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
  font-weight: 900;
}

.pagination-links span {
  color: #fff;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

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

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 56px 22px 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 34px;
}

.footer-brand {
  color: #fff;
  font-size: 22px;
  margin-bottom: 14px;
}

.site-footer p,
.site-footer li {
  color: #94a3b8;
  line-height: 1.8;
}

.site-footer h3 {
  color: #fff;
  margin: 0 0 16px;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}

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

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

  .related-card {
    position: static;
  }
}

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

  .mobile-menu-button {
    display: inline-flex;
    margin-left: auto;
  }

  .hero {
    height: 680px;
  }

  .hero-shade {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.9));
  }

  .hero-content {
    justify-content: flex-end;
    padding-bottom: 88px;
  }

  .grid.three,
  .grid.four,
  .grid.two,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .rank-layout,
  .rank-card {
    grid-template-columns: 1fr;
  }

  .rank-number {
    min-height: 72px;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

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

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

  .hero-content,
  .section,
  .page-section,
  .page-hero,
  .full-band {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-actions,
  .cta-actions {
    flex-direction: column;
    width: 100%;
  }

  .primary-button,
  .ghost-button,
  .soft-button,
  .outline-button {
    width: 100%;
  }

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

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

  .detail-card,
  .related-card,
  .content-card {
    padding: 20px;
  }

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

  .search-panel button {
    min-height: 48px;
  }
}
