/*
  Static movie site style sheet.
  The visual system follows the uploaded project's dark slate / blue gradient,
  cyan action buttons, rounded media cards, sticky navigation, hero focus area,
  rank list, and responsive card layout.
*/

:root {
  --bg: #020617;
  --bg-soft: #0f172a;
  --bg-card: rgba(15, 23, 42, 0.72);
  --bg-card-strong: rgba(15, 23, 42, 0.92);
  --line: rgba(59, 130, 246, 0.28);
  --line-strong: rgba(34, 211, 238, 0.55);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-strong: #cbd5e1;
  --cyan: #22d3ee;
  --blue: #2563eb;
  --orange: #f97316;
  --pink: #db2777;
  --green: #10b981;
  --shadow: 0 24px 80px rgba(8, 47, 73, 0.35);
  --radius: 24px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(14, 165, 233, 0.22), transparent 32rem),
    linear-gradient(180deg, #020617 0%, #0b1b42 45%, #020617 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid rgba(30, 64, 175, 0.35);
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 58, 138, 0.94), rgba(15, 23, 42, 0.96));
  backdrop-filter: blur(18px);
}

.nav-wrap {
  display: flex;
  min-height: 76px;
  align-items: center;
  gap: 20px;
}

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 800;
}

.logo-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 14px 35px rgba(34, 211, 238, 0.24);
}

.logo-text {
  display: flex;
  flex-direction: column;
  min-width: 168px;
  line-height: 1.15;
}

.logo-text small {
  margin-top: 3px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 600;
}

.desktop-nav,
.category-strip {
  display: flex;
  align-items: center;
  gap: 16px;
}

.desktop-nav {
  margin-left: auto;
}

.nav-link,
.category-strip a {
  color: var(--muted-strong);
  font-size: 15px;
  font-weight: 650;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.category-strip a:hover {
  color: var(--cyan);
  transform: translateY(-1px);
}

.category-strip {
  padding-left: 4px;
}

.category-strip a {
  font-size: 13px;
  color: #dbeafe;
}

.nav-search {
  position: relative;
  display: flex;
  min-width: 235px;
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, 0.2);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.78);
}

.nav-search input {
  width: 100%;
  border: 0;
  outline: 0;
  color: #fff;
  background: transparent;
  padding: 10px 12px 10px 16px;
}

.nav-search button {
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  padding: 0 15px;
  cursor: pointer;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.74);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: #fff;
}

.mobile-nav {
  display: none;
  border-top: 1px solid rgba(59, 130, 246, 0.25);
  background: rgba(15, 23, 42, 0.98);
  padding: 10px 16px 18px;
}

.mobile-nav a {
  display: block;
  padding: 11px 0;
  color: var(--muted-strong);
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

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

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

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

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

.hero-slide img.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
  transform: scale(1.03);
}

.hero-slide::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 78% 36%, rgba(34, 211, 238, 0.22), transparent 22rem),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.84) 38%, rgba(2, 6, 23, 0.18) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 360px;
  align-items: center;
  gap: 42px;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 7px 13px;
  border: 1px solid rgba(34, 211, 238, 0.32);
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(8, 47, 73, 0.45);
  font-size: 14px;
  font-weight: 700;
}

.hero-copy h1 {
  margin: 0 0 18px;
  color: #fff;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.hero-copy h1 span {
  display: block;
  margin-top: 8px;
  color: var(--cyan);
  font-size: 0.55em;
  letter-spacing: -0.02em;
}

.hero-copy p {
  max-width: 680px;
  margin: 0 0 28px;
  color: #d1d5db;
  font-size: clamp(17px, 2vw, 21px);
}

.hero-meta-row,
.detail-meta,
.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 0;
}

.hero-meta-row span,
.detail-meta span,
.page-meta span {
  display: inline-flex;
  border: 1px solid rgba(125, 211, 252, 0.18);
  border-radius: 999px;
  color: #dbeafe;
  background: rgba(15, 23, 42, 0.68);
  padding: 7px 11px;
  font-size: 13px;
}

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

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

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

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 18px 45px rgba(34, 211, 238, 0.25);
}

.btn-ghost {
  color: #dbeafe;
  border-color: rgba(34, 211, 238, 0.32);
  background: rgba(15, 23, 42, 0.6);
}

.hero-side-panel {
  position: relative;
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.72);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-side-panel img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.hero-side-panel .panel-body {
  padding: 20px;
}

.hero-side-panel strong {
  display: block;
  color: #fff;
  font-size: 20px;
}

.hero-side-panel em {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-style: normal;
}

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

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

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

.hero-search {
  display: flex;
  max-width: 570px;
  margin: 0 0 18px;
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, 0.26);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.46);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #fff;
  background: transparent;
  padding: 15px 18px;
}

.hero-search button {
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  padding: 0 22px;
  cursor: pointer;
  font-weight: 800;
}

.section {
  padding: 68px 0;
}

.section.compact-section {
  padding: 42px 0;
}

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

.section-title {
  margin: 0;
  color: #fff;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.section-subtitle {
  max-width: 680px;
  margin: 10px 0 0;
  color: var(--muted);
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--bg-card);
  box-shadow: 0 16px 42px rgba(2, 6, 23, 0.22);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  border-color: var(--line-strong);
  box-shadow: 0 24px 60px rgba(34, 211, 238, 0.16);
  transform: translateY(-5px);
}

.movie-poster {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background:
    radial-gradient(circle at 70% 20%, rgba(34, 211, 238, 0.28), transparent 15rem),
    linear-gradient(135deg, #0f172a, #1e3a8a 55%, #020617);
}

.movie-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, opacity 0.25s ease;
}

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

.poster-fallback img {
  opacity: 0;
}

.movie-year,
.movie-play-icon,
.rank-number {
  position: absolute;
  z-index: 2;
}

.movie-year {
  top: 13px;
  right: 13px;
  border-radius: 999px;
  color: #fff;
  background: rgba(2, 6, 23, 0.74);
  backdrop-filter: blur(12px);
  padding: 5px 10px;
  font-size: 13px;
  font-weight: 800;
}

.movie-play-icon {
  left: 50%;
  top: 50%;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: rgba(34, 211, 238, 0.88);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.88);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.movie-card-body {
  padding: 17px;
}

.movie-card-meta {
  display: flex;
  gap: 9px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
}

.movie-card h3 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 18px;
  line-height: 1.35;
}

.movie-card h3 a:hover {
  color: var(--cyan);
}

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

.movie-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.movie-tags span,
.tag-list span {
  display: inline-flex;
  border-radius: 999px;
  color: #bae6fd;
  background: rgba(8, 47, 73, 0.58);
  padding: 5px 8px;
  font-size: 12px;
}

.feature-band {
  border: 1px solid rgba(59, 130, 246, 0.22);
  border-radius: 32px;
  background:
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.12), transparent 18rem),
    linear-gradient(90deg, rgba(30, 58, 138, 0.32), rgba(15, 23, 42, 0.2));
  padding: 34px;
}

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

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

.rank-item:hover {
  border-color: var(--line-strong);
  transform: translateX(4px);
}

.rank-number {
  position: static;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  font-weight: 900;
}

.rank-item img {
  width: 116px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
  background: #0f172a;
}

.rank-copy strong {
  display: block;
  color: #fff;
  font-size: 17px;
}

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

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

.category-card {
  min-height: 210px;
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.16), transparent 12rem),
    rgba(15, 23, 42, 0.72);
  padding: 22px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

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

.category-card strong {
  display: block;
  color: #fff;
  font-size: 22px;
}

.category-card p {
  margin: 12px 0 18px;
  color: var(--muted);
  font-size: 14px;
}

.category-card span {
  color: var(--cyan);
  font-weight: 800;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(59, 130, 246, 0.22);
  background:
    radial-gradient(circle at 75% 18%, rgba(34, 211, 238, 0.2), transparent 18rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(30, 58, 138, 0.62), rgba(2, 6, 23, 0.98));
  padding: 72px 0;
}

.page-hero h1,
.detail-title {
  max-width: 900px;
  margin: 0;
  color: #fff;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.page-hero p,
.detail-lead {
  max-width: 820px;
  margin: 18px 0 0;
  color: #d1d5db;
  font-size: 18px;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 180px 180px;
  gap: 14px;
  margin-bottom: 26px;
  border: 1px solid rgba(59, 130, 246, 0.22);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.72);
  padding: 16px;
}

.filter-panel input,
.filter-panel select,
.search-panel input {
  width: 100%;
  border: 1px solid rgba(34, 211, 238, 0.2);
  border-radius: 14px;
  color: #fff;
  outline: 0;
  background: rgba(2, 6, 23, 0.54);
  padding: 12px 14px;
}

.result-count {
  margin: 0 0 18px;
  color: var(--muted);
}

.detail-hero-inner {
  display: grid;
  grid-template-columns: 390px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}

.detail-cover {
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: 28px;
  background: #0f172a;
  box-shadow: var(--shadow);
}

.detail-cover img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

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

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

.player-shell {
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: 28px;
  background: #020617;
  box-shadow: var(--shadow);
}

.video-stage {
  position: relative;
  background:
    radial-gradient(circle at 50% 30%, rgba(34, 211, 238, 0.16), transparent 18rem),
    #020617;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.58), transparent 58%);
  transition: opacity 0.25s ease;
}

.player-shell.is-playing .player-overlay {
  opacity: 0;
}

.player-start {
  pointer-events: auto;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 18px 45px rgba(34, 211, 238, 0.24);
  padding: 16px 26px;
  cursor: pointer;
  font-weight: 900;
}

.player-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid rgba(59, 130, 246, 0.22);
  color: var(--muted);
  background: rgba(15, 23, 42, 0.9);
  padding: 16px 18px;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
}

.article-panel,
.side-panel,
.search-panel {
  border: 1px solid rgba(59, 130, 246, 0.22);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.7);
  padding: 24px;
}

.article-panel h2,
.side-panel h2,
.search-panel h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 24px;
}

.article-panel p {
  margin: 0 0 20px;
  color: #d1d5db;
  font-size: 16px;
}

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

.search-panel {
  margin-bottom: 28px;
}

.search-panel form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 130px;
  gap: 12px;
}

.search-panel button {
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  cursor: pointer;
  font-weight: 900;
}

.sitemap-list {
  columns: 3;
  column-gap: 30px;
}

.sitemap-list a {
  display: block;
  break-inside: avoid;
  margin: 0 0 8px;
  color: var(--muted-strong);
}

.sitemap-list a:hover {
  color: var(--cyan);
}

.site-footer {
  margin-top: 40px;
  border-top: 1px solid rgba(59, 130, 246, 0.22);
  background: rgba(2, 6, 23, 0.84);
  padding: 48px 0 26px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr 0.8fr;
  gap: 36px;
}

.footer-grid p,
.footer-bottom {
  color: var(--muted);
}

.footer-grid h2 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 17px;
}

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

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

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 34px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  padding-top: 20px;
  font-size: 14px;
}

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

@media (max-width: 1180px) {
  .category-strip,
  .nav-search {
    display: none;
  }

  .desktop-nav {
    margin-left: auto;
  }

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

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

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

  .hero-carousel {
    height: auto;
    min-height: 700px;
  }

  .hero-slide {
    align-items: flex-start;
    padding: 72px 0 90px;
  }

  .hero-inner,
  .detail-hero-inner,
  .content-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-side-panel {
    max-width: 440px;
  }

  .movie-grid,
  .movie-grid.three-col,
  .rank-grid,
  .category-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-panel {
    grid-template-columns: 1fr 1fr;
  }

  .sitemap-list {
    columns: 2;
  }
}

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

  .logo-text strong {
    max-width: 168px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

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

  .hero-search,
  .search-panel form {
    grid-template-columns: 1fr;
    border-radius: 18px;
  }

  .hero-search {
    display: grid;
  }

  .hero-search button {
    min-height: 46px;
  }

  .movie-grid,
  .movie-grid.three-col,
  .rank-grid,
  .category-cards,
  .filter-panel {
    grid-template-columns: 1fr;
  }

  .rank-item {
    grid-template-columns: 42px 92px 1fr;
  }

  .rank-item img {
    width: 92px;
    height: 62px;
  }

  .section-header,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .feature-band {
    padding: 22px;
  }

  .sitemap-list {
    columns: 1;
  }
}
