:root {
  --bg: #020617;
  --panel: #0f172a;
  --panel-soft: rgba(15, 23, 42, 0.72);
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --cyan: #06b6d4;
  --cyan-deep: #0891b2;
  --green: #22c55e;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 0%, rgba(8, 145, 178, 0.22), transparent 30rem),
    radial-gradient(circle at 90% 10%, rgba(34, 197, 94, 0.12), transparent 25rem),
    linear-gradient(180deg, #020617 0%, #0f172a 48%, #020617 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100;
  background: rgba(2, 6, 23, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  color: white;
  box-shadow: 0 12px 28px rgba(6, 182, 212, 0.35);
}

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

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

.nav-link {
  padding: 9px 13px;
  color: #cbd5e1;
  border-radius: 999px;
  font-size: 14px;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
  background: rgba(6, 182, 212, 0.16);
}

.site-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px;
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.75);
  border-radius: 999px;
}

.site-search input,
.filter-panel input,
.filter-panel select {
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font: inherit;
}

.site-search input {
  width: 210px;
  padding: 7px 6px 7px 12px;
}

.site-search button,
.btn,
.section-link,
.text-link {
  cursor: pointer;
  border: 0;
  border-radius: 999px;
  font-weight: 700;
}

.site-search button {
  padding: 8px 15px;
  color: #ffffff;
  background: var(--cyan);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.9);
}

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

.mobile-panel {
  display: none;
  border-top: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.96);
}

.mobile-links {
  max-width: 1240px;
  margin: 0 auto;
  padding: 12px 22px 18px;
  display: grid;
  gap: 10px;
}

.mobile-links a {
  padding: 10px 0;
  color: #cbd5e1;
}

.hero-carousel {
  position: relative;
  height: 72vh;
  min-height: 560px;
  overflow: hidden;
  background: #020617;
}

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

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(2, 6, 23, 0.55), rgba(2, 6, 23, 0.2)),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.05) 45%, rgba(2, 6, 23, 0.2) 100%);
}

.hero-copy {
  position: absolute;
  left: max(26px, calc((100vw - 1240px) / 2 + 22px));
  bottom: 88px;
  width: min(720px, calc(100vw - 52px));
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 14px;
  color: #67e8f9;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.hero-copy h1,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  color: #ffffff;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-copy h1 {
  max-width: 780px;
  font-size: clamp(40px, 7vw, 76px);
}

.hero-copy p {
  max-width: 650px;
  margin: 22px 0 0;
  color: #dbeafe;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.72;
}

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  padding: 6px 11px;
  color: #e0f2fe;
  background: rgba(6, 182, 212, 0.16);
  border: 1px solid rgba(103, 232, 249, 0.22);
  border-radius: 999px;
  font-size: 12px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  transition: transform 0.2s ease, background 0.2s ease, border 0.2s ease;
}

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

.btn.primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--cyan-deep));
  box-shadow: 0 16px 34px rgba(6, 182, 212, 0.28);
}

.btn.ghost {
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid var(--line);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.45);
  font-size: 32px;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.68);
}

.hero-arrow.prev {
  left: 18px;
}

.hero-arrow.next {
  right: 18px;
}

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

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

.hero-dot.active {
  width: 36px;
  background: var(--cyan);
}

.page-shell,
.detail-shell {
  width: min(1240px, calc(100% - 44px));
  margin: 0 auto;
}

.top-space {
  padding-top: 108px;
}

.quick-categories {
  width: min(1240px, calc(100% - 44px));
  margin: 46px auto 0;
}

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

.section-head h2,
.page-hero h1,
.article-section h2,
.player-section h2 {
  margin: 0;
  color: #ffffff;
}

.section-head h2 {
  font-size: clamp(26px, 3vw, 36px);
}

.section-head p,
.page-hero p,
.category-card p,
.article-section p,
.footer-inner p {
  color: var(--muted);
  line-height: 1.8;
}

.section-head p {
  margin: 8px 0 0;
}

.section-link,
.text-link {
  display: inline-flex;
  align-items: center;
  color: #67e8f9;
}

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

.category-tile {
  position: relative;
  min-height: 190px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

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

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.92));
}

.category-tile:hover img {
  opacity: 0.74;
  transform: scale(1.06);
}

.category-tile span,
.category-tile small {
  position: relative;
  z-index: 1;
}

.category-tile span {
  font-size: 20px;
  font-weight: 800;
}

.category-tile small {
  margin-top: 8px;
  color: #cbd5e1;
  line-height: 1.6;
}

.content-section {
  margin-top: 58px;
}

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  border-color: rgba(103, 232, 249, 0.38);
  box-shadow: 0 26px 64px rgba(0, 0, 0, 0.38);
  transform: translateY(-5px);
}

.poster {
  position: relative;
  display: block;
  aspect-ratio: 16 / 22;
  overflow: hidden;
  background: #0f172a;
}

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

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

.poster-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(2, 6, 23, 0.92));
}

.play-chip,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.play-chip {
  right: 12px;
  bottom: 12px;
  padding: 7px 11px;
  background: rgba(6, 182, 212, 0.92);
}

.rank-badge {
  left: 12px;
  top: 12px;
  padding: 7px 10px;
  background: linear-gradient(135deg, #f97316, #ef4444);
}

.card-body {
  padding: 16px;
}

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

.card-body h3 a:hover {
  color: #67e8f9;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 10px;
  color: #94a3b8;
  font-size: 13px;
}

.card-body p {
  min-height: 52px;
  margin: 12px 0 14px;
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.7;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.72);
  transition: border 0.2s ease, transform 0.2s ease;
}

.rank-row:hover {
  border-color: rgba(103, 232, 249, 0.42);
  transform: translateY(-2px);
}

.rank-num {
  color: #67e8f9;
  font-weight: 900;
}

.rank-title {
  font-weight: 800;
}

.rank-info {
  color: var(--muted);
  font-size: 13px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 54px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    radial-gradient(circle at 15% 15%, rgba(6, 182, 212, 0.24), transparent 28rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.9));
  box-shadow: var(--shadow);
}

.page-hero h1 {
  font-size: clamp(34px, 5vw, 58px);
}

.page-hero p {
  max-width: 760px;
  margin: 16px 0 0;
  font-size: 17px;
}

.category-overview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 34px;
}

.category-card {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 20px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.72);
}

.category-cover {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.category-cover img {
  width: 100%;
  aspect-ratio: 1 / 1.25;
  object-fit: cover;
  border-radius: 12px;
}

.category-card h2 {
  margin: 0 0 10px;
}

.filter-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 22px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.72);
}

.filter-panel input,
.filter-panel select {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.62);
}

.filter-panel input {
  flex: 1 1 280px;
}

.filter-panel select {
  flex: 0 0 150px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 20px;
  color: #cbd5e1;
  font-size: 14px;
}

.breadcrumb a {
  color: #67e8f9;
}

.detail-hero {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 34px;
  align-items: center;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    radial-gradient(circle at 20% 20%, rgba(6, 182, 212, 0.2), transparent 24rem),
    rgba(15, 23, 42, 0.78);
  box-shadow: var(--shadow);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 16 / 22;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.4);
}

.detail-info h1 {
  font-size: clamp(36px, 5vw, 64px);
}

.lead {
  margin: 18px 0 0;
  color: #dbeafe;
  font-size: 19px;
  line-height: 1.85;
}

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

.detail-meta span {
  padding: 8px 12px;
  color: #cbd5e1;
  background: rgba(148, 163, 184, 0.1);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.tag-row.large {
  margin-top: 18px;
}

.player-section,
.article-section,
.neighbor-links {
  margin-top: 34px;
}

.player-section h2,
.article-section h2 {
  font-size: 26px;
}

.player-box {
  position: relative;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #000000;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.player-box video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000000;
}

.play-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.18), rgba(0, 0, 0, 0.58));
  cursor: pointer;
}

.play-circle {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  padding-left: 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  box-shadow: 0 22px 42px rgba(6, 182, 212, 0.28);
  font-size: 34px;
}

.play-layer strong {
  max-width: 90%;
  font-size: 22px;
}

.player-box.is-playing .play-layer {
  display: none;
}

.article-section {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(15, 23, 42, 0.72);
}

.article-section h2 + p {
  margin-top: 12px;
}

.article-section p {
  font-size: 17px;
}

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

.neighbor-links a {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: #e0f2fe;
  background: rgba(15, 23, 42, 0.72);
}

.site-footer {
  margin-top: 70px;
  border-top: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.74);
}

.footer-inner {
  width: min(1240px, calc(100% - 44px));
  margin: 0 auto;
  padding: 42px 0;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 34px;
}

.footer-brand {
  margin-bottom: 12px;
  color: #ffffff;
  font-size: 22px;
  font-weight: 900;
}

.footer-inner h3 {
  margin: 0 0 14px;
}

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

.footer-links a {
  color: #cbd5e1;
}

.footer-links a:hover {
  color: #67e8f9;
}

.footer-bottom {
  padding: 18px 22px 26px;
  color: #64748b;
  text-align: center;
}

.movie-card.is-hidden {
  display: none;
}

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

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

  .category-overview {
    grid-template-columns: 1fr;
  }

  .detail-hero {
    grid-template-columns: 260px 1fr;
  }
}

@media (max-width: 820px) {
  .main-nav,
  .site-search {
    display: none;
  }

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

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

  .hero-carousel {
    min-height: 620px;
    height: 84vh;
  }

  .hero-copy {
    bottom: 74px;
  }

  .hero-arrow {
    display: none;
  }

  .section-head,
  .rank-row,
  .detail-hero,
  .footer-inner {
    display: block;
  }

  .section-link {
    margin-top: 12px;
  }

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

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

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

  .rank-info {
    display: block;
    margin-top: 8px;
  }

  .page-hero {
    padding: 34px 24px;
  }

  .category-card {
    grid-template-columns: 1fr;
  }

  .detail-poster {
    max-width: 280px;
    margin-bottom: 24px;
  }

  .footer-inner > div + div {
    margin-top: 26px;
  }
}

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

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

  .page-shell,
  .detail-shell,
  .quick-categories {
    width: min(100% - 28px, 1240px);
  }

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

  .hero-copy h1 {
    font-size: 36px;
  }

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

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

  .player-box {
    border-radius: 18px;
  }
}
