:root {
  --blue: #2563eb;
  --cyan: #06b6d4;
  --orange: #f97316;
  --red: #ef4444;
  --green: #16a34a;
  --yellow: #eab308;
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.10);
  --shadow-card: 0 10px 28px rgba(15, 23, 42, 0.10);
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--slate-50);
  color: #111827;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
}

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

main {
  min-height: 72vh;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(18px);
}

.navbar {
  width: min(1280px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--slate-900);
  font-size: 21px;
  font-weight: 900;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.logo-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.32);
}

.logo-mark span {
  width: 0;
  height: 0;
  margin-left: 3px;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 12px solid var(--white);
}

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

.nav-link,
.mobile-link {
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--slate-600);
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease;
}

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

.top-search,
.mobile-search,
.filter-panel {
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--slate-200);
  border-radius: 999px;
  background: var(--white);
}

.top-search {
  width: 330px;
  flex-shrink: 0;
}

.top-search input,
.mobile-search input,
.filter-panel input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 12px 16px;
  background: transparent;
  color: var(--slate-800);
}

.top-search button,
.mobile-search button,
.filter-panel button {
  border: 0;
  padding: 12px 18px;
  background: var(--blue);
  color: var(--white);
  font-weight: 800;
  white-space: nowrap;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border: 0;
  border-radius: 12px;
  background: #eff6ff;
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: var(--blue);
}

.mobile-panel {
  display: none;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
}

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

.masthead {
  position: relative;
  min-height: 610px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--slate-950), var(--slate-800));
  color: var(--white);
}

.spotlight-slide {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  min-height: 610px;
}

.spotlight-slide.is-active {
  display: flex;
}

.spotlight-slide > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.58;
  transform: scale(1.04);
}

.spotlight-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 30%, rgba(6, 182, 212, 0.35), transparent 32%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.92) 0%, rgba(15, 23, 42, 0.70) 52%, rgba(2, 6, 23, 0.28) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.74), transparent 42%);
}

.spotlight-copy {
  position: relative;
  z-index: 2;
  width: min(760px, calc(100% - 32px));
  margin-left: max(16px, calc((100vw - 1240px) / 2));
  padding: 80px 0 110px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  margin-bottom: 12px;
  color: var(--blue);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.spotlight-copy .eyebrow {
  color: #93c5fd;
}

.spotlight-copy h1 {
  margin: 0 0 16px;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.spotlight-copy h2 {
  margin: 0 0 14px;
  font-size: clamp(24px, 3.2vw, 40px);
  line-height: 1.18;
  font-weight: 900;
}

.spotlight-copy p {
  max-width: 690px;
  margin: 0 0 24px;
  color: #dbeafe;
  font-size: 18px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

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

.primary-button {
  background: var(--white);
  color: var(--blue);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.28);
}

.ghost-button {
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
}

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

.spotlight-dots {
  position: absolute;
  z-index: 4;
  left: max(16px, calc((100vw - 1240px) / 2));
  bottom: 42px;
  display: flex;
  gap: 10px;
}

.spotlight-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  transition: width 0.2s ease, background 0.2s ease;
}

.spotlight-dot.is-active {
  width: 34px;
  background: var(--white);
}

.section {
  padding: 64px 0;
}

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

.section-heading h2,
.page-cover h1,
.detail-panel h1 {
  margin: 0;
  color: var(--slate-900);
  font-weight: 950;
  letter-spacing: -0.03em;
}

.section-heading h2 {
  font-size: clamp(28px, 3vw, 38px);
}

.section-heading > a {
  color: var(--blue);
  font-weight: 900;
}

.light-heading h2,
.light-heading a,
.light-heading .section-kicker {
  color: var(--white);
}

.slim-heading {
  margin-bottom: 20px;
}

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

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.16);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #dbeafe, #cffafe);
}

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

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

.category-pill,
.rank-badge {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: var(--white);
  font-weight: 900;
}

.category-pill {
  top: 12px;
  right: 12px;
  padding: 5px 10px;
  background: rgba(37, 99, 235, 0.92);
  font-size: 12px;
}

.rank-badge {
  left: 12px;
  top: 12px;
  min-width: 36px;
  height: 36px;
  justify-content: center;
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 12px 24px rgba(239, 68, 68, 0.35);
}

.movie-body {
  padding: 18px;
}

.movie-body h3 {
  margin: 0 0 8px;
  color: var(--slate-900);
  font-size: 18px;
  line-height: 1.35;
  font-weight: 900;
}

.movie-body h3 a:hover {
  color: var(--blue);
}

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

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--slate-500);
  font-size: 13px;
}

.movie-meta span {
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--slate-100);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag-list span,
.tag-cloud a {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #eff6ff;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  padding: 4px 8px;
}

.light-tags span {
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
}

.movie-card.is-compact .movie-body {
  padding: 14px;
}

.movie-card.is-compact .movie-body h3 {
  font-size: 16px;
}

.hot-band {
  padding: 64px 0;
  background: linear-gradient(115deg, var(--orange), var(--red));
  color: var(--white);
}

.hot-grid,
.row-list {
  display: grid;
  gap: 16px;
}

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

.media-row {
  position: relative;
  display: flex;
  gap: 14px;
  min-width: 0;
  padding: 14px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  backdrop-filter: blur(12px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.media-row:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.2);
}

.media-row img {
  width: 118px;
  height: 78px;
  flex: 0 0 auto;
  border-radius: 12px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.15);
}

.media-row h3 {
  display: -webkit-box;
  margin: 0 0 4px;
  overflow: hidden;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 900;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.media-row p {
  display: -webkit-box;
  margin: 0 0 6px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.media-row span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
}

.row-list .media-row {
  background: var(--white);
  color: var(--slate-900);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
}

.row-list .media-row p,
.row-list .media-row span {
  color: var(--slate-500);
}

.hot-index {
  position: absolute;
  right: 14px;
  top: 14px;
  display: grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  color: var(--white) !important;
  font-weight: 900;
}

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

.category-tile {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  color: var(--white);
  box-shadow: var(--shadow-card);
}

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.category-tile:hover img {
  transform: scale(1.08);
}

.category-tile > span {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.92), rgba(15, 23, 42, 0.36));
}

.category-tile > div {
  position: absolute;
  inset: auto 18px 18px;
}

.category-tile h3 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 950;
}

.category-tile p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

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

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

.page-cover {
  padding: 54px 0;
  background: linear-gradient(115deg, #2563eb, #06b6d4);
  color: var(--white);
}

.rank-cover {
  background: linear-gradient(115deg, #f97316, #ef4444);
}

.category-cover {
  background: linear-gradient(115deg, #0f172a, #2563eb);
}

.page-cover h1 {
  margin-top: 12px;
  color: var(--white);
  font-size: clamp(34px, 4vw, 52px);
}

.page-cover p {
  max-width: 720px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  font-weight: 800;
}

.breadcrumb a:hover {
  color: var(--white);
  text-decoration: underline;
}

.breadcrumb span::before,
.breadcrumb a + a::before,
.breadcrumb a + span::before {
  content: "/";
  margin-right: 8px;
  opacity: 0.65;
}

.detail-breadcrumb {
  margin: 26px 0;
  color: var(--slate-600);
}

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

.filter-panel {
  width: min(720px, 100%);
  margin: 0 auto 28px;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
}

.detail-shell {
  padding-bottom: 64px;
}

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

.detail-main,
.related-panel,
.detail-panel,
.player-card {
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.detail-main {
  overflow: hidden;
}

.player-card {
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: none;
}

.player-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.68), rgba(2, 6, 23, 0.24));
  transition: opacity 0.2s ease;
}

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

.play-disc {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 22px 42px rgba(0, 0, 0, 0.36);
}

.play-disc span {
  width: 0;
  height: 0;
  margin-left: 6px;
  border-top: 16px solid transparent;
  border-bottom: 16px solid transparent;
  border-left: 23px solid var(--blue);
}

.detail-panel {
  padding: 28px;
  box-shadow: none;
}

.detail-panel h1 {
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1.16;
}

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

.detail-meta span,
.detail-meta a {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--slate-100);
  color: var(--slate-600);
  font-size: 13px;
  font-weight: 800;
}

.detail-meta a {
  background: #eff6ff;
  color: var(--blue);
}

.detail-section {
  padding-top: 24px;
  margin-top: 24px;
  border-top: 1px solid var(--slate-200);
}

.detail-section h2,
.related-panel h2 {
  margin: 0 0 12px;
  color: var(--slate-900);
  font-size: 22px;
  font-weight: 950;
}

.detail-section p {
  margin: 0;
  color: var(--slate-700);
  font-size: 16px;
}

.review-box p {
  padding: 18px;
  border-left: 5px solid var(--blue);
  border-radius: 0 16px 16px 0;
  background: #eff6ff;
}

.tag-cloud div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-cloud a {
  font-size: 13px;
}

.related-panel {
  position: sticky;
  top: 92px;
  padding: 22px;
}

.related-list .media-row {
  padding: 10px;
}

.related-list .media-row img {
  width: 104px;
  height: 70px;
}

.site-footer {
  padding: 46px 0;
  background: var(--slate-900);
  color: #cbd5e1;
}

.footer-inner {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-logo {
  color: var(--white);
}

.site-footer p {
  margin: 12px 0 0;
  max-width: 620px;
  color: #94a3b8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links a {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  font-weight: 800;
}

.footer-links a:hover {
  background: rgba(255, 255, 255, 0.14);
}

[data-filter-list] .movie-card.is-hidden {
  display: none;
}

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

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

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

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

  .related-panel {
    position: static;
  }
}

@media (max-width: 860px) {
  .navbar {
    height: auto;
    min-height: 64px;
    padding: 10px 0;
  }

  .nav-links {
    display: none;
  }

  .menu-button {
    display: block;
    margin-left: auto;
  }

  .masthead,
  .spotlight-slide {
    min-height: 580px;
  }

  .spotlight-copy {
    padding: 72px 0 100px;
  }

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

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

@media (max-width: 560px) {
  .container,
  .navbar,
  .mobile-panel,
  .footer-inner {
    width: min(100% - 24px, 1240px);
  }

  .site-logo {
    font-size: 18px;
  }

  .logo-mark {
    width: 34px;
    height: 34px;
  }

  .masthead,
  .spotlight-slide {
    min-height: 600px;
  }

  .spotlight-copy {
    width: min(100% - 24px, 760px);
    margin-left: 12px;
  }

  .spotlight-copy p {
    font-size: 16px;
  }

  .spotlight-dots {
    left: 12px;
  }

  .section {
    padding: 42px 0;
  }

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

  .movie-grid,
  .catalog-grid,
  .category-grid,
  .hot-grid,
  .featured-grid,
  .two-columns,
  .category-overview {
    grid-template-columns: 1fr;
  }

  .media-row img {
    width: 98px;
    height: 68px;
  }

  .page-cover {
    padding: 38px 0;
  }

  .detail-panel {
    padding: 20px;
  }

  .filter-panel {
    border-radius: 18px;
  }

  .filter-panel button {
    padding: 12px 14px;
  }
}
