:root {
  color-scheme: dark;
  --bg-0: #020617;
  --bg-1: #0f172a;
  --bg-2: #1e293b;
  --bg-3: #334155;
  --line: rgba(148, 163, 184, 0.16);
  --text: #f8fafc;
  --muted: #94a3b8;
  --soft: #cbd5e1;
  --cyan: #06b6d4;
  --cyan-2: #22d3ee;
  --orange: #f97316;
  --green: #22c55e;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 10%, rgba(6, 182, 212, 0.14), transparent 30rem),
    radial-gradient(circle at 85% 0%, rgba(249, 115, 22, 0.12), transparent 28rem),
    linear-gradient(180deg, var(--bg-1), var(--bg-0));
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--cyan-2);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.logo-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, var(--cyan), #2563eb);
  box-shadow: 0 0 28px rgba(6, 182, 212, 0.28);
}

.logo-text {
  font-size: 1.55rem;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--soft);
}

.desktop-nav a,
.nav-trigger {
  color: var(--soft);
  transition: color 0.2s ease;
}

.desktop-nav a:hover,
.nav-trigger:hover {
  color: var(--cyan-2);
}

.nav-group {
  position: relative;
}

.nav-trigger {
  border: 0;
  background: transparent;
  padding: 20px 0;
  cursor: pointer;
}

.nav-menu {
  position: absolute;
  top: 100%;
  left: -12px;
  width: 190px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.98);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

.nav-group:hover .nav-menu,
.nav-group:focus-within .nav-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.95rem;
}

.nav-menu a:hover {
  background: rgba(51, 65, 85, 0.82);
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.8);
  color: var(--text);
  cursor: pointer;
}

.mobile-panel {
  display: none;
  padding: 12px 0 18px;
  border-top: 1px solid var(--line);
}

.mobile-panel a {
  display: block;
  padding: 10px 0;
  color: var(--soft);
}

.mobile-label {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.88rem;
}

.hero {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  background: var(--bg-1);
}

.hero-bg {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.hero-bg-column {
  position: relative;
  overflow: hidden;
}

.hero-bg-column img {
  width: 100%;
  height: 100%;
  min-height: 600px;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.05);
}

.hero-bg-column::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.88), rgba(2, 6, 23, 0.06));
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.97), rgba(15, 23, 42, 0.63), rgba(15, 23, 42, 0.12)),
    linear-gradient(0deg, rgba(2, 6, 23, 0.92), transparent 44%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  min-height: 600px;
  display: flex;
  align-items: center;
}

.hero-content {
  max-width: 710px;
  padding: 84px 0;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 12px;
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.1);
  color: var(--cyan-2);
  font-weight: 700;
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.hero-summary {
  max-width: 620px;
  margin: 0 0 24px;
  color: var(--soft);
  font-size: 1.08rem;
  line-height: 1.85;
}

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

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.66);
  color: var(--soft);
  font-size: 0.92rem;
}

.hero-actions,
.section-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

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

.btn-primary {
  color: white;
  background: linear-gradient(135deg, var(--cyan), #2563eb);
  box-shadow: 0 12px 34px rgba(6, 182, 212, 0.22);
}

.btn-secondary {
  color: white;
  border-color: var(--line);
  background: rgba(51, 65, 85, 0.74);
  backdrop-filter: blur(12px);
}

.btn-secondary:hover {
  border-color: rgba(34, 211, 238, 0.42);
  background: rgba(51, 65, 85, 0.92);
}

.hero-panels {
  margin-top: 30px;
  display: grid;
  gap: 12px;
}

.hero-panel {
  display: none;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.68);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(12px);
}

.hero-panel.is-active {
  display: block;
}

.hero-panel-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  font-weight: 800;
}

.hero-panel-title a {
  color: white;
}

.hero-panel-title a:hover {
  color: var(--cyan-2);
}

.hero-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.hero-dots {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

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

.hero-dot.is-active {
  background: var(--cyan-2);
}

.main-content {
  padding: 70px 0;
}

.section {
  margin-bottom: 72px;
}

.section-panel {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(30, 41, 59, 0.5);
  box-shadow: 0 18px 58px rgba(0, 0, 0, 0.16);
}

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

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  line-height: 1.15;
}

.section-title .accent {
  color: var(--cyan-2);
}

.section-title .hot {
  color: var(--orange);
}

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

.search-box {
  width: min(100%, 430px);
  position: relative;
}

.site-search {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: 0;
  background: rgba(15, 23, 42, 0.82);
  color: var(--text);
}

.site-search:focus {
  border-color: rgba(34, 211, 238, 0.55);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.12);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.filter-button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 13px;
  background: rgba(30, 41, 59, 0.72);
  color: var(--soft);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.filter-button:hover,
.filter-button.is-active {
  color: white;
  border-color: rgba(34, 211, 238, 0.45);
  background: rgba(6, 182, 212, 0.2);
}

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

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

.movie-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(30, 41, 59, 0.68);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.2);
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, 0.4);
  box-shadow: 0 26px 65px rgba(0, 0, 0, 0.32);
}

.card-cover {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.18), rgba(249, 115, 22, 0.14));
}

.movie-card.card-large .card-cover {
  aspect-ratio: 16 / 9;
}

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

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

.card-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 34%, rgba(0, 0, 0, 0.68));
}

.card-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.9);
  color: white;
  transform: translate(-50%, -50%) scale(0.82);
  opacity: 0;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.movie-card:hover .card-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.card-badge,
.rank-badge {
  position: absolute;
  z-index: 3;
  top: 12px;
  right: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  color: white;
  background: rgba(249, 115, 22, 0.9);
  font-size: 0.78rem;
  font-weight: 800;
}

.rank-badge {
  left: 12px;
  right: auto;
  background: rgba(6, 182, 212, 0.9);
}

.card-body {
  padding: 16px;
}

.card-title {
  display: block;
  margin-bottom: 8px;
  color: white;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.35;
}

.card-title:hover {
  color: var(--cyan-2);
}

.card-line {
  display: -webkit-box;
  min-height: 3.2em;
  margin: 0 0 12px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.82rem;
}

.card-meta strong {
  color: var(--cyan-2);
  font-weight: 700;
}

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

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 8px;
  border: 1px solid rgba(6, 182, 212, 0.22);
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.08);
  color: var(--cyan-2);
  font-size: 0.76rem;
}

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

.category-card {
  min-height: 150px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.16), rgba(37, 99, 235, 0.12));
  transition: transform 0.24s ease, border-color 0.24s ease, background 0.24s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  border-color: rgba(34, 211, 238, 0.42);
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.24), rgba(37, 99, 235, 0.2));
}

.category-card h2,
.category-card h3 {
  margin: 0 0 12px;
  font-size: 1.3rem;
}

.category-card p {
  margin: 0;
  color: var(--soft);
  line-height: 1.7;
}

.page-hero {
  padding: 72px 0 36px;
  background:
    radial-gradient(circle at 20% 0%, rgba(6, 182, 212, 0.14), transparent 30rem),
    linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0));
}

.page-hero h1 {
  max-width: 980px;
  margin: 0;
  font-size: clamp(2.1rem, 5vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 820px;
  margin: 18px 0 0;
  color: var(--soft);
  font-size: 1.04rem;
  line-height: 1.9;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.94rem;
}

.breadcrumb a {
  color: var(--cyan-2);
}

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

.ranking-item {
  display: grid;
  grid-template-columns: 72px 138px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(30, 41, 59, 0.62);
}

.ranking-number {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: rgba(249, 115, 22, 0.18);
  color: var(--orange);
  font-size: 1.25rem;
  font-weight: 900;
}

.ranking-thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 14px;
  background: rgba(6, 182, 212, 0.12);
}

.ranking-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ranking-info h2,
.ranking-info h3 {
  margin: 0 0 6px;
  font-size: 1.1rem;
}

.ranking-info p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 28px;
  align-items: start;
}

.movie-player {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(6, 182, 212, 0.22);
  border-radius: 24px;
  background: black;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.movie-player video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: black;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 0;
  background:
    linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.86)),
    rgba(2, 6, 23, 0.24);
  color: white;
  text-align: center;
  cursor: pointer;
}

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

.player-icon {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan), #2563eb);
  color: white;
  font-size: 1.7rem;
  box-shadow: 0 18px 44px rgba(6, 182, 212, 0.3);
}

.player-overlay strong {
  max-width: 80%;
  font-size: clamp(1.2rem, 3vw, 2rem);
}

.detail-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(30, 41, 59, 0.62);
}

.detail-card h2 {
  margin: 0 0 14px;
  font-size: 1.45rem;
}

.detail-card p {
  margin: 0 0 16px;
  color: var(--soft);
  line-height: 1.9;
}

.meta-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
}

.meta-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.meta-list strong {
  color: var(--text);
}

.poster-card {
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(30, 41, 59, 0.62);
}

.poster-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.poster-card-body {
  padding: 18px;
}

.no-result {
  display: none;
  padding: 24px;
  border: 1px dashed rgba(148, 163, 184, 0.32);
  border-radius: 18px;
  color: var(--muted);
  text-align: center;
}

.no-result.is-visible {
  display: block;
}

.site-footer {
  padding: 34px 0;
  border-top: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.48);
  color: var(--muted);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

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

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

@media (max-width: 1024px) {
  .movie-grid,
  .movie-grid.large-grid,
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .ranking-item {
    grid-template-columns: 54px 112px minmax(0, 1fr);
  }

  .ranking-item .btn {
    grid-column: 3;
    width: fit-content;
  }
}

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

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

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

  .logo-text {
    font-size: 1.25rem;
  }

  .hero,
  .hero-inner,
  .hero-bg-column img {
    min-height: 660px;
  }

  .hero-bg {
    grid-template-columns: 1fr;
  }

  .hero-bg-column:not(:first-child) {
    display: none;
  }

  .hero-shade {
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.94), rgba(15, 23, 42, 0.58));
  }

  .hero-content {
    padding: 72px 0 46px;
  }

  .section-head {
    display: grid;
  }

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

  .section-panel {
    padding: 22px;
  }

  .ranking-item {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .ranking-thumb {
    display: none;
  }

  .ranking-item .btn {
    grid-column: 2;
  }

  .footer-inner {
    display: grid;
  }
}
