
:root {
  --bg: #020617;
  --bg-soft: rgba(15, 23, 42, 0.74);
  --panel: rgba(15, 23, 42, 0.62);
  --panel-strong: rgba(30, 41, 59, 0.78);
  --line: rgba(59, 130, 246, 0.28);
  --line-soft: rgba(148, 163, 184, 0.16);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-strong: #cbd5e1;
  --blue: #3b82f6;
  --cyan: #22d3ee;
  --gold: #f59e0b;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 12% 8%, rgba(37, 99, 235, 0.24), transparent 32rem),
    radial-gradient(circle at 88% 12%, rgba(14, 165, 233, 0.22), transparent 28rem),
    linear-gradient(135deg, #020617 0%, #0f172a 46%, #020617 100%);
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
  z-index: -1;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 64, 175, 0.88), rgba(15, 23, 42, 0.96));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 12px 28px rgba(59, 130, 246, 0.32);
}

.brand-name {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, #60a5fa, #67e8f9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link {
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--muted-strong);
  font-size: 14px;
  transition: color 0.22s ease, background 0.22s ease, transform 0.22s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #ffffff;
  background: rgba(37, 99, 235, 0.35);
  transform: translateY(-1px);
}

.site-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px;
  border: 1px solid rgba(96, 165, 250, 0.32);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.58);
}

.site-search input,
.search-large input {
  width: 220px;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
}

.site-search input::placeholder,
.search-large input::placeholder {
  color: #94a3b8;
}

.site-search button,
.search-large button {
  border: 0;
  color: #ffffff;
  border-radius: 10px;
  padding: 8px 14px;
  background: linear-gradient(135deg, var(--blue), #06b6d4);
  cursor: pointer;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.72);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 2px;
  background: #cbd5e1;
}

.mobile-nav {
  display: none;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.96);
}

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

.hero {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  isolation: isolate;
}

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

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

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
  filter: saturate(1.08) contrast(1.04);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.94) 0%, rgba(15, 23, 42, 0.76) 38%, rgba(15, 23, 42, 0.24) 68%, rgba(2, 6, 23, 0.72) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.98) 0%, transparent 45%);
}

.hero-content {
  position: absolute;
  left: max(24px, calc((100vw - 1280px) / 2 + 24px));
  bottom: 74px;
  width: min(680px, calc(100% - 48px));
  padding: 30px;
  border: 1px solid rgba(96, 165, 250, 0.22);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.78), rgba(15, 23, 42, 0.36));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-label,
.card-kicker,
.detail-kicker,
.category-info span,
.page-hero span,
.section-heading span {
  display: inline-flex;
  color: #67e8f9;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 12px 0 14px;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.07em;
}

.hero p {
  max-width: 620px;
  margin: 0;
  color: var(--muted-strong);
  font-size: 18px;
  line-height: 1.8;
}

.tag-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid rgba(96, 165, 250, 0.26);
  border-radius: 999px;
  color: #dbeafe;
  background: rgba(37, 99, 235, 0.16);
  font-size: 12px;
}

.hero-tags {
  margin-top: 18px;
}

.hero-actions,
.detail-info .primary-btn {
  margin-top: 26px;
}

.primary-btn,
.ghost-btn,
.text-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 13px;
  font-weight: 700;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

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

.ghost-btn {
  margin-left: 10px;
  color: #e0f2fe;
  border: 1px solid rgba(125, 211, 252, 0.32);
  background: rgba(15, 23, 42, 0.46);
}

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

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.58);
  transform: translateY(-50%);
  cursor: pointer;
  backdrop-filter: blur(14px);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

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

.hero-dot.is-active {
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.quick-panel {
  width: min(1180px, calc(100% - 32px));
  margin: -34px auto 72px;
  position: relative;
  z-index: 6;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.quick-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.86);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(18px);
}

.quick-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 22px;
}

.quick-card span {
  color: var(--muted);
}

.content-section,
.page-main {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

.content-section {
  margin-bottom: 72px;
}

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

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

.section-heading p {
  max-width: 720px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.section-link,
.text-btn {
  color: #93c5fd;
}

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

.page-grid {
  margin-bottom: 72px;
}

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

.grid-card,
.wide-card,
.movie-card-list,
.rank-row,
.category-tile,
.detail-section,
.player-card,
.search-panel {
  border: 1px solid var(--line-soft);
  background: var(--panel);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(14px);
}

.grid-card {
  overflow: hidden;
  border-radius: var(--radius-md);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.grid-card:hover,
.wide-card:hover,
.movie-card-list:hover,
.rank-row:hover,
.category-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(96, 165, 250, 0.55);
  background: rgba(30, 41, 59, 0.74);
}

.poster-link,
.wide-image,
.list-poster,
.rank-thumb,
.category-visual,
.detail-cover {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.9));
}

.poster-link {
  display: block;
  aspect-ratio: 16 / 10;
}

.poster-link img,
.wide-image img,
.list-poster img,
.rank-thumb img,
.category-visual img,
.detail-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.grid-card:hover img,
.wide-card:hover img,
.movie-card-list:hover img,
.rank-row:hover img,
.category-tile:hover img {
  transform: scale(1.06);
  filter: saturate(1.12);
}

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

.grid-card:hover .play-hover,
.wide-card:hover .play-hover,
.movie-card-list:hover .play-hover {
  opacity: 1;
}

.card-body,
.wide-info,
.list-body,
.rank-content,
.category-info {
  padding: 18px;
}

.grid-card h3,
.wide-card h3,
.list-title,
.rank-title,
.category-info h2 {
  margin: 8px 0 10px;
  color: #ffffff;
  font-size: 18px;
  line-height: 1.35;
}

.grid-card h3 a,
.wide-card h3 a,
.list-title,
.rank-title,
.category-info h2 a {
  transition: color 0.2s ease;
}

.grid-card h3 a:hover,
.wide-card h3 a:hover,
.list-title:hover,
.rank-title:hover,
.category-info h2 a:hover {
  color: #60a5fa;
}

.grid-card p,
.wide-card p,
.movie-card-list p,
.rank-row p,
.category-info p,
.detail-one-line,
.detail-section p {
  color: var(--muted-strong);
  line-height: 1.72;
}

.grid-card p,
.wide-card p,
.movie-card-list p,
.rank-row p {
  display: -webkit-box;
  min-height: 48px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin: 0;
  font-size: 14px;
}

.card-foot,
.meta-line,
.detail-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.card-foot {
  justify-content: space-between;
  margin-top: 18px;
}

.two-columns {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 30px;
}

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

.wide-card,
.movie-card-list,
.rank-row {
  display: grid;
  align-items: stretch;
  overflow: hidden;
  border-radius: var(--radius-md);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.wide-card {
  grid-template-columns: 190px 1fr;
}

.wide-image {
  min-height: 150px;
}

.movie-card-list {
  grid-template-columns: 170px 1fr;
}

.list-poster {
  min-height: 116px;
}

.rank-row {
  grid-template-columns: 48px 108px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
}

.rank-badge {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #ffffff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--gold), #ef4444);
}

.rank-thumb {
  width: 108px;
  height: 72px;
  border-radius: 12px;
}

.rank-title {
  display: inline-flex;
  margin-bottom: 6px;
  font-size: 17px;
  font-weight: 700;
}

.page-main {
  padding: 36px 0 0;
}

.page-hero {
  margin-bottom: 32px;
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 85% 20%, rgba(34, 211, 238, 0.22), transparent 26rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.88), rgba(30, 64, 175, 0.42));
  box-shadow: var(--shadow);
}

.page-hero h1 {
  margin: 10px 0 14px;
  font-size: clamp(34px, 4vw, 56px);
  letter-spacing: -0.06em;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--muted-strong);
  line-height: 1.8;
  font-size: 17px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 24px;
}

.filter-chip {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(96, 165, 250, 0.28);
  border-radius: 999px;
  color: var(--muted-strong);
  background: rgba(15, 23, 42, 0.58);
  cursor: pointer;
}

.filter-chip.is-active,
.filter-chip:hover {
  color: #ffffff;
  background: rgba(37, 99, 235, 0.45);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 76px;
}

.category-tile {
  display: grid;
  grid-template-columns: 220px 1fr;
  overflow: hidden;
  border-radius: var(--radius-lg);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.category-visual {
  min-height: 260px;
}

.category-samples {
  display: grid;
  gap: 8px;
  margin: 16px 0;
}

.category-samples a {
  color: #bfdbfe;
  font-size: 14px;
}

.search-panel {
  margin-bottom: 24px;
  padding: 18px;
  border-radius: var(--radius-md);
}

.search-large {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-large input {
  flex: 1;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid rgba(96, 165, 250, 0.28);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.7);
}

.search-large button {
  min-height: 48px;
  padding: 0 24px;
}

.detail-main {
  max-width: 1180px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #93c5fd;
}

.detail-hero {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 30px;
  align-items: stretch;
  margin-bottom: 32px;
}

.detail-cover {
  min-height: 460px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.detail-info {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 84% 18%, rgba(34, 211, 238, 0.18), transparent 20rem),
    rgba(15, 23, 42, 0.68);
}

.detail-info h1 {
  margin: 12px 0 16px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.06;
  letter-spacing: -0.06em;
}

.detail-one-line {
  margin: 0 0 18px;
  font-size: 18px;
}

.detail-tags {
  margin-top: 18px;
}

.player-section {
  margin-bottom: 34px;
}

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #000000;
}

.site-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 14px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(15, 23, 42, 0.22));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-circle {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  font-size: 34px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 20px 60px rgba(37, 99, 235, 0.42);
}

.detail-section {
  margin-bottom: 28px;
  padding: 28px;
  border-radius: var(--radius-md);
}

.detail-section h2 {
  margin: 0 0 12px;
  font-size: 26px;
}

.detail-section p {
  margin: 0;
  font-size: 16px;
}

.is-hidden-card {
  display: none !important;
}

.site-footer {
  margin-top: 78px;
  border-top: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.55), rgba(2, 6, 23, 0.96));
}

.footer-shell {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
  display: grid;
  grid-template-columns: 1.3fr 0.6fr 1fr;
  gap: 28px;
}

.footer-brand p {
  max-width: 460px;
  color: var(--muted);
  line-height: 1.7;
}

.footer-links {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-links a {
  color: var(--muted-strong);
}

.footer-links a:hover {
  color: #60a5fa;
}

.footer-copy {
  grid-column: 1 / -1;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 14px;
}

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

  .site-search {
    margin-left: auto;
  }

  .menu-toggle {
    display: block;
  }

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

  .two-columns,
  .category-grid,
  .detail-hero {
    grid-template-columns: 1fr;
  }

  .category-tile {
    grid-template-columns: 180px 1fr;
  }
}

@media (max-width: 780px) {
  .header-shell {
    height: auto;
    min-height: 64px;
    flex-wrap: wrap;
    padding: 10px 0;
  }

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

  .site-search {
    order: 3;
    width: 100%;
  }

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

  .hero {
    min-height: 560px;
  }

  .hero-content {
    left: 16px;
    right: 16px;
    bottom: 58px;
    width: auto;
    padding: 22px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero p {
    font-size: 15px;
  }

  .hero-arrow {
    display: none;
  }

  .quick-panel,
  .movie-grid,
  .footer-shell {
    grid-template-columns: 1fr;
  }

  .quick-panel {
    margin-top: 18px;
  }

  .section-heading {
    display: block;
  }

  .wide-card,
  .movie-card-list,
  .rank-row,
  .category-tile {
    grid-template-columns: 1fr;
  }

  .wide-image,
  .list-poster,
  .category-visual {
    min-height: 210px;
  }

  .rank-row {
    gap: 10px;
  }

  .rank-thumb {
    width: 100%;
    height: 190px;
  }

  .page-hero,
  .detail-info,
  .detail-section {
    padding: 24px;
  }

  .detail-cover {
    min-height: 360px;
  }

  .search-large {
    display: grid;
  }
}

@media (max-width: 520px) {
  .content-section,
  .page-main,
  .header-shell,
  .mobile-nav,
  .footer-shell,
  .quick-panel {
    width: min(100% - 24px, 1280px);
  }

  .hero-actions {
    display: grid;
    gap: 10px;
  }

  .ghost-btn {
    margin-left: 0;
  }

  .movie-grid {
    gap: 16px;
  }
}
