:root {
  --bg: #020617;
  --panel: rgba(15, 23, 42, 0.72);
  --panel-strong: rgba(15, 23, 42, 0.92);
  --line: rgba(34, 211, 238, 0.22);
  --line-strong: rgba(34, 211, 238, 0.46);
  --text: #f8fafc;
  --muted: #94a3b8;
  --soft: #cbd5e1;
  --cyan: #22d3ee;
  --cyan-deep: #0891b2;
  --accent: #67e8f9;
  --shadow: 0 22px 60px rgba(8, 145, 178, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.16), transparent 34rem),
    radial-gradient(circle at 80% 8%, rgba(59, 130, 246, 0.16), transparent 28rem),
    linear-gradient(180deg, #020617 0%, #0f172a 48%, #020617 100%);
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

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

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

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

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.logo-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #00111a;
  background: linear-gradient(135deg, var(--cyan), #7dd3fc);
  box-shadow: 0 0 28px rgba(34, 211, 238, 0.44);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  color: #cbd5e1;
  font-weight: 650;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--cyan);
}

.nav-link:hover {
  transform: translateY(-1px);
}

.mobile-toggle {
  display: none;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 11px;
  background: rgba(15, 23, 42, 0.75);
}

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

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

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

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

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  filter: saturate(1.05) contrast(1.05);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(15, 23, 42, 0.78) 48%, rgba(2, 6, 23, 0.28) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.98) 0%, transparent 42%);
}

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

.hero-copy {
  max-width: 720px;
  padding: 120px 0 92px;
}

.eyebrow,
.meta-pill,
.year-pill,
.rank-hot {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  background: rgba(34, 211, 238, 0.13);
  color: var(--accent);
  border-radius: 999px;
}

.eyebrow {
  padding: 8px 16px;
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 700;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.hero p {
  margin: 0 0 28px;
  color: #dbeafe;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.75;
}

.hero-actions,
.filter-row,
.hero-dots,
.player-actions,
.breadcrumb,
.meta-row,
.tag-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  color: #00111a;
  background: linear-gradient(135deg, var(--cyan), #7dd3fc);
  box-shadow: 0 12px 30px rgba(34, 211, 238, 0.28);
}

.btn-secondary {
  color: var(--text);
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid var(--line);
}

.btn-primary:hover,
.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.hero-controls {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 30px;
  width: min(1180px, calc(100% - 32px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.hero-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  color: var(--text);
  background: rgba(15, 23, 42, 0.68);
  cursor: pointer;
}

.hero-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 999px;
  border: 0;
  background: rgba(203, 213, 225, 0.42);
  cursor: pointer;
}

.hero-dots button.active {
  width: 30px;
  background: var(--cyan);
}

.main-content {
  padding: 52px 0 28px;
}

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

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.section-title-row h1,
.section-title-row h2,
.page-title h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.18;
}

.section-title-row h2 {
  display: flex;
  align-items: center;
  gap: 14px;
}

.section-title-row h2 span {
  width: 5px;
  height: 34px;
  border-radius: 999px;
  background: var(--cyan);
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.55);
}

.section-more {
  color: var(--cyan);
  font-weight: 750;
}

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

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

.movie-link,
.category-card,
.panel,
.filter-panel,
.detail-card,
.rank-list,
.player-shell {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 12px 32px rgba(2, 6, 23, 0.3);
  backdrop-filter: blur(14px);
}

.movie-link {
  display: block;
  height: 100%;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-link:hover {
  transform: translateY(-5px) scale(1.01);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

.poster-wrap {
  position: relative;
  height: 268px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.18), rgba(15, 23, 42, 0.9));
}

.movie-card-large .poster-wrap {
  height: 400px;
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.86) 0%, transparent 72%);
}

.year-pill {
  position: absolute;
  top: 13px;
  right: 13px;
  padding: 4px 11px;
  font-size: 12px;
  font-weight: 800;
  background: rgba(2, 6, 23, 0.72);
}

.play-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  transform: translate(-50%, -50%) scale(0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: white;
  background: rgba(34, 211, 238, 0.82);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.movie-info {
  padding: 17px;
}

.movie-info h3 {
  margin: 0 0 10px;
  font-size: 17px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-info p {
  margin: 0 0 13px;
  min-height: 44px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.58;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #64748b;
  font-size: 12px;
}

.movie-meta span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-hero {
  padding: 78px 0 38px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 15% 20%, rgba(34, 211, 238, 0.18), transparent 30rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.88));
}

.page-title {
  max-width: 860px;
}

.page-title p {
  margin: 16px 0 0;
  color: var(--soft);
  line-height: 1.8;
  font-size: 17px;
}

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

.category-card {
  padding: 22px;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

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

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

.meta-pill {
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 750;
}

.filter-panel {
  padding: 18px;
  margin-bottom: 28px;
}

.filter-row input,
.filter-row select {
  min-height: 46px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(2, 6, 23, 0.58);
  padding: 0 14px;
  outline: none;
}

.filter-row input {
  flex: 1 1 260px;
}

.filter-row select {
  flex: 0 1 180px;
}

.filter-row input:focus,
.filter-row select:focus {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.13);
}

.rank-list {
  overflow: hidden;
}

.rank-item {
  display: grid;
  grid-template-columns: 54px 98px minmax(0, 1fr) 110px;
  align-items: center;
  gap: 16px;
  padding: 15px;
  border-bottom: 1px solid rgba(34, 211, 238, 0.14);
  transition: background 0.22s ease;
}

.rank-item:hover {
  background: rgba(34, 211, 238, 0.08);
}

.rank-item:last-child {
  border-bottom: 0;
}

.rank-num {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--accent);
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid var(--line);
  font-weight: 900;
}

.rank-item img {
  width: 98px;
  height: 64px;
  object-fit: cover;
  border-radius: 12px;
}

.rank-copy {
  min-width: 0;
}

.rank-copy strong,
.rank-copy em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-copy em {
  margin-top: 6px;
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

.rank-hot {
  justify-content: center;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 850;
}

.detail-hero {
  padding: 34px 0 54px;
}

.breadcrumb {
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 14px;
}

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

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

.player-shell {
  position: relative;
  overflow: hidden;
}

.video-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-stage video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at center, rgba(34, 211, 238, 0.18), transparent 24rem),
    linear-gradient(0deg, rgba(2, 6, 23, 0.78), rgba(2, 6, 23, 0.28));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.big-play {
  width: 86px;
  height: 86px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  color: #00111a;
  background: linear-gradient(135deg, var(--cyan), #bfdbfe);
  box-shadow: 0 16px 44px rgba(34, 211, 238, 0.36);
  font-size: 32px;
}

.player-caption {
  padding: 18px 20px;
  border-top: 1px solid var(--line);
}

.player-caption h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 42px);
}

.meta-row {
  color: var(--soft);
}

.detail-card {
  padding: 24px;
  margin-bottom: 24px;
}

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

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

.side-poster {
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--panel);
}

.side-poster img {
  width: 100%;
  height: 520px;
  object-fit: cover;
}

.side-info {
  padding: 18px;
}

.tag-list {
  margin-top: 14px;
}

.tag-list span {
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--accent);
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid var(--line);
  font-size: 12px;
}

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

.empty-state {
  display: none;
  padding: 26px;
  text-align: center;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.62);
}

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

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 34px;
  padding: 42px 0;
}

.footer-grid p {
  color: var(--muted);
  line-height: 1.8;
}

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

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

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

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

.footer-bottom {
  padding: 18px;
  text-align: center;
  color: #64748b;
  border-top: 1px solid rgba(34, 211, 238, 0.14);
}

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

  .mobile-toggle {
    display: inline-flex;
  }

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

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

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

  .side-poster img {
    height: 420px;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .hero,
  .hero-content {
    min-height: 560px;
  }

  .hero-copy {
    padding-top: 96px;
  }

  .hero-controls {
    bottom: 18px;
  }

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

  .poster-wrap {
    height: 220px;
  }

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

  .rank-item {
    grid-template-columns: 42px 72px minmax(0, 1fr);
  }

  .rank-hot {
    grid-column: 2 / 4;
    width: fit-content;
  }

  .rank-item img {
    width: 72px;
    height: 52px;
  }

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

@media (max-width: 460px) {
  .movie-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
  }
}
