:root {
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --indigo: #4f46e5;
  --rose: #f43f5e;
  --emerald: #10b981;
  --text: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #f8fafc;
  --card: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 55%, #eef2ff 100%);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
  gap: 22px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #ffffff;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue), var(--indigo));
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.28);
}

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

.brand-name {
  font-size: 21px;
  background: linear-gradient(90deg, var(--blue), var(--indigo));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-subtitle {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: 1;
}

.nav-link,
.mobile-link {
  padding: 10px 14px;
  color: #4b5563;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.quick-search,
.mobile-search {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: #ffffff;
}

.quick-search input,
.mobile-search input {
  width: 170px;
  border: 0;
  outline: 0;
  padding: 10px 12px 10px 16px;
  color: var(--text);
  background: transparent;
}

.quick-search button,
.mobile-search button {
  height: 100%;
  padding: 10px 16px;
  color: #ffffff;
  border: 0;
  background: linear-gradient(135deg, var(--blue), var(--indigo));
  cursor: pointer;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  color: #374151;
  border-radius: 12px;
  background: #f3f4f6;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.mobile-nav.open {
  display: grid;
  gap: 8px;
}

.hero {
  position: relative;
  height: 620px;
  overflow: hidden;
  background: #020617;
}

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

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

.hero-image,
.detail-backdrop {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 35%, rgba(37, 99, 235, 0.34), transparent 34%),
    linear-gradient(180deg, rgba(2, 6, 23, 0.3) 0%, rgba(2, 6, 23, 0.74) 58%, rgba(2, 6, 23, 0.92) 100%);
  backdrop-filter: blur(2px);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: min(1180px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  padding-bottom: 78px;
  color: #ffffff;
}

.hero-label,
.eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hero-label {
  margin-bottom: 20px;
  padding: 8px 16px;
  color: #bfdbfe;
  background: rgba(37, 99, 235, 0.26);
  backdrop-filter: blur(12px);
}

.hero h1 {
  width: min(760px, 100%);
  margin: 0 0 16px;
  font-size: clamp(42px, 6vw, 74px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero p {
  width: min(720px, 100%);
  margin: 0 0 24px;
  color: #e5e7eb;
  font-size: clamp(17px, 2vw, 22px);
}

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

.hero-meta span,
.detail-meta span {
  padding: 7px 12px;
  color: #e0e7ff;
  border: 1px solid rgba(224, 231, 255, 0.28);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.38);
  backdrop-filter: blur(8px);
  font-size: 14px;
}

.hero-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  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:hover {
  transform: translateY(-2px);
}

.btn.primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--indigo));
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.35);
}

.btn.ghost {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}

.btn.subtle {
  color: #dbeafe;
  background: rgba(15, 23, 42, 0.42);
}

.hero-dots {
  position: absolute;
  right: calc((100% - min(1180px, calc(100% - 32px))) / 2);
  bottom: 46px;
  z-index: 3;
  display: flex;
  gap: 9px;
}

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

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

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

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

.eyebrow {
  margin-bottom: 8px;
  color: var(--blue);
  text-transform: uppercase;
}

.section-head h2,
.page-hero h1,
.detail-copy h1,
.story-card h2 {
  margin: 0;
  color: var(--text);
  letter-spacing: -0.03em;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 40px);
}

.section-head p,
.page-hero p,
.story-card p,
.footer-inner p {
  margin: 8px 0 0;
  color: var(--muted);
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 24px;
  background: var(--card);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  border-color: rgba(37, 99, 235, 0.28);
  box-shadow: var(--shadow);
}

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

.poster-wrap {
  position: relative;
  display: block;
  height: 220px;
  overflow: hidden;
  background: #e5e7eb;
}

.movie-card.compact .poster-wrap {
  height: 170px;
}

.poster-wrap img,
.category-card img,
.category-panel img,
.rank-row img,
.detail-poster img,
.player-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.movie-card:hover .poster-wrap img,
.category-card:hover img,
.category-panel:hover img {
  transform: scale(1.08);
}

.poster-shade,
.category-shade,
.player-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 38%, rgba(2, 6, 23, 0.78) 100%);
}

.poster-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 10px;
  color: #ffffff;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.88);
  font-size: 13px;
  font-weight: 800;
}

.poster-play {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #ffffff;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(10px);
}

.movie-info {
  display: grid;
  gap: 9px;
  padding: 18px;
}

.movie-title {
  display: -webkit-box;
  min-height: 1.5em;
  overflow: hidden;
  color: var(--text);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.32;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.movie-desc {
  display: -webkit-box;
  min-height: 3.1em;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

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

.category-card {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
}

.category-title,
.category-intro {
  position: absolute;
  left: 18px;
  right: 18px;
  z-index: 2;
  color: #ffffff;
}

.category-title {
  bottom: 54px;
  font-size: 22px;
  font-weight: 900;
}

.category-intro {
  bottom: 18px;
  display: -webkit-box;
  overflow: hidden;
  color: #e5e7eb;
  font-size: 13px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.page-hero {
  min-height: 310px;
  padding: 84px 0 66px;
  color: #ffffff;
  background:
    radial-gradient(circle at 18% 24%, rgba(96, 165, 250, 0.45), transparent 32%),
    linear-gradient(135deg, #1d4ed8, #4f46e5 52%, #111827);
}

.page-hero.small-hero {
  min-height: 260px;
}

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

.page-hero .eyebrow,
.page-hero h1,
.page-hero p {
  color: #ffffff;
}

.page-hero h1 {
  max-width: 800px;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.08;
}

.page-hero p {
  max-width: 760px;
  color: #dbeafe;
  font-size: 18px;
}

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

.category-panel {
  overflow: hidden;
  border-radius: 26px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.category-panel a {
  display: grid;
  grid-template-columns: 170px 1fr;
  min-height: 190px;
}

.category-panel-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 22px;
}

.category-panel-copy strong {
  font-size: 22px;
  font-weight: 900;
}

.category-panel-copy em {
  color: var(--muted);
  font-style: normal;
}

.category-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.category-preview span,
.tag-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  color: var(--blue);
  border-radius: 999px;
  background: #eff6ff;
  font-size: 12px;
  font-weight: 800;
}

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
  padding: 16px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-soft);
}

.prominent-filter {
  padding: 22px;
}

.filter-bar input {
  width: min(380px, 100%);
  border: 1px solid var(--line);
  border-radius: 999px;
  outline: none;
  padding: 12px 18px;
  background: #ffffff;
}

.filter-bar input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-buttons button {
  border: 0;
  padding: 10px 14px;
  color: #475569;
  border-radius: 999px;
  background: #f1f5f9;
  cursor: pointer;
  font-weight: 800;
}

.filter-buttons button.active,
.filter-buttons button:hover {
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--indigo));
}

.empty-state {
  display: none;
  margin-top: 22px;
  padding: 36px;
  color: var(--muted);
  text-align: center;
  border-radius: 24px;
  background: #ffffff;
}

.empty-state.show {
  display: block;
}

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

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

.rank-row {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.rank-row a {
  display: grid;
  grid-template-columns: 66px 96px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 12px 18px 12px 12px;
}

.rank-no {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: var(--blue);
  border-radius: 16px;
  background: #eff6ff;
  font-size: 20px;
  font-weight: 900;
}

.rank-row img {
  width: 96px;
  height: 70px;
  border-radius: 14px;
}

.rank-copy {
  display: grid;
  gap: 4px;
}

.rank-copy strong {
  font-size: 17px;
}

.rank-copy em {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.rank-copy small {
  color: #64748b;
  font-weight: 800;
}

.rank-action {
  color: var(--blue);
  font-weight: 900;
}

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

.detail-backdrop {
  position: absolute;
  inset: 0;
  filter: blur(3px);
  transform: scale(1.03);
}

.detail-mask {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 32%, rgba(37, 99, 235, 0.38), transparent 34%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.88) 0%, rgba(2, 6, 23, 0.72) 42%, rgba(2, 6, 23, 0.35) 100%);
}

.detail-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 42px;
  align-items: end;
  width: min(1180px, calc(100% - 32px));
  min-height: 620px;
  margin: 0 auto;
  padding: 70px 0;
}

.detail-poster {
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: #cbd5e1;
  font-size: 14px;
}

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

.detail-copy h1 {
  color: #ffffff;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.08;
}

.detail-line {
  max-width: 760px;
  margin: 16px 0 22px;
  color: #e5e7eb;
  font-size: 20px;
}

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

.player-section {
  width: min(1180px, calc(100% - 32px));
  margin: -80px auto 0;
  position: relative;
  z-index: 5;
}

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 30px;
  background: #000000;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.28);
}

.movie-video,
.player-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.movie-video {
  z-index: 1;
  background: #000000;
}

.player-cover {
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: #000000;
}

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

.big-play {
  position: relative;
  z-index: 3;
  display: grid;
  width: 92px;
  height: 92px;
  place-items: center;
  color: #ffffff;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue), var(--indigo));
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.42);
  font-size: 34px;
}

.detail-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 320px;
  gap: 22px;
  width: min(1180px, calc(100% - 32px));
  margin: 36px auto 0;
}

.story-card {
  padding: 28px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.story-card h2 {
  font-size: 24px;
}

.story-card p {
  font-size: 16px;
}

.info-card dl {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px 14px;
  margin: 18px 0 0;
}

.info-card dt {
  color: var(--muted);
  font-weight: 800;
}

.info-card dd {
  margin: 0;
  color: var(--text);
}

.related-section {
  padding-top: 42px;
}

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

.site-footer {
  margin-top: 50px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #f8fafc, #eef2ff);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 36px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 38px 0;
}

.footer-brand {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--blue);
  font-size: 22px;
}

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

.footer-links a {
  color: #475569;
  font-weight: 700;
}

.footer-links a:hover {
  color: var(--blue);
}

.footer-copy {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 26px;
  color: #64748b;
  border-top: 1px solid rgba(226, 232, 240, 0.9);
  font-size: 14px;
}

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

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

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

  .short-list,
  .category-panel-grid,
  .detail-body {
    grid-template-columns: 1fr;
  }

  .detail-inner {
    grid-template-columns: 240px minmax(0, 1fr);
  }

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

@media (max-width: 760px) {
  .header-inner {
    height: 66px;
  }

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

  .hero {
    height: 560px;
  }

  .hero-content {
    padding-bottom: 82px;
  }

  .hero-dots {
    left: 16px;
    right: auto;
  }

  .hero-actions,
  .filter-bar,
  .section-head,
  .footer-inner {
    align-items: stretch;
    flex-direction: column;
  }

  .filter-bar {
    display: grid;
  }

  .filter-bar input {
    width: 100%;
  }

  .movie-grid,
  .category-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .poster-wrap {
    height: 260px;
  }

  .category-panel a,
  .rank-row a,
  .detail-inner,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .category-panel img {
    height: 180px;
  }

  .rank-row a {
    gap: 12px;
  }

  .rank-row img {
    width: 100%;
    height: 150px;
  }

  .rank-action {
    display: none;
  }

  .detail-inner {
    padding: 38px 0 96px;
  }

  .detail-poster {
    width: min(260px, 80vw);
  }

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

  .player-shell {
    border-radius: 20px;
  }

  .detail-body {
    margin-top: 26px;
  }

  .story-card {
    padding: 22px;
  }

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

@media (max-width: 460px) {
  .header-inner,
  .content-section,
  .page-hero > div,
  .detail-inner,
  .player-section,
  .detail-body,
  .footer-inner,
  .footer-copy {
    width: min(100% - 22px, 1180px);
  }

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

  .hero p,
  .detail-line {
    font-size: 16px;
  }

  .btn {
    width: 100%;
  }
}
