/*
  Static movie site stylesheet.
  Dark slate base, amber accent, card hover states and hero layout follow the uploaded source site's visual direction.
*/

:root {
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: #111827;
  --panel-strong: #1e293b;
  --line: rgba(148, 163, 184, 0.16);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-strong: #cbd5e1;
  --accent: #f59e0b;
  --accent-strong: #d97706;
  --accent-soft: rgba(245, 158, 11, 0.16);
  --danger: #ef4444;
  --radius: 18px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  --container: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.08), transparent 34rem),
    linear-gradient(180deg, #020617 0%, #0f172a 48%, #020617 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

main {
  min-height: 70vh;
}

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

.header-inner {
  width: min(100% - 32px, var(--container));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #111827;
  background: linear-gradient(135deg, #fbbf24, #f59e0b 48%, #f97316);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.32);
}

.brand-text {
  font-size: 21px;
  color: var(--text);
}

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

.nav-link {
  color: var(--muted-strong);
  font-weight: 650;
  transition: color 0.2s ease;
}

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

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  color: var(--text);
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  border-radius: 999px;
}

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

.mobile-nav a {
  display: block;
  padding: 14px 24px;
  color: var(--muted-strong);
  border-bottom: 1px solid var(--line);
}

.hero {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  background: #020617;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  opacity: 0;
  visibility: hidden;
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
  transition: opacity 1s ease, visibility 1s ease, transform 1.2s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.58) 47%, rgba(2, 6, 23, 0.22)),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.72) 30%, transparent 100%);
}

.hero-content {
  position: relative;
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
  padding: 96px 0 84px;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  margin-bottom: 18px;
  color: #fde68a;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
}

.hero h1,
.page-hero h1,
.detail-title {
  margin: 0;
  color: #ffffff;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero p {
  max-width: 620px;
  margin: 20px 0 0;
  color: #dbeafe;
  font-size: clamp(17px, 2vw, 21px);
}

.hero-meta,
.detail-meta,
.movie-meta,
.library-count {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-meta {
  margin-top: 24px;
}

.hero-meta span,
.detail-meta span,
.movie-meta span,
.library-count span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  color: var(--muted-strong);
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 999px;
  font-size: 13px;
}

.hero-actions,
.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

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

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

.btn-primary {
  color: #111827;
  background: var(--accent);
  box-shadow: 0 18px 40px rgba(245, 158, 11, 0.24);
}

.btn-primary:hover {
  background: #fbbf24;
}

.btn-ghost {
  color: var(--text);
  background: rgba(15, 23, 42, 0.72);
  border-color: rgba(148, 163, 184, 0.2);
}

.btn-ghost:hover {
  border-color: rgba(245, 158, 11, 0.45);
}

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

.hero-dots button {
  width: 40px;
  height: 5px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
}

.hero-dots button.is-active {
  background: var(--accent);
}

.content-section,
.page-hero,
.detail-wrap,
.search-wrap,
.category-overview {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
}

.content-section {
  padding: 58px 0;
}

.content-section.alt {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 64px max(16px, calc((100vw - var(--container)) / 2));
  background: rgba(15, 23, 42, 0.72);
}

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

.section-heading h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.section-heading p,
.page-hero p,
.category-tile p,
.detail-summary,
.review-box p,
.empty-state {
  color: var(--muted);
}

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

.section-more {
  color: var(--accent);
  font-weight: 800;
}

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

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

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

.movie-card-link {
  display: block;
  height: 100%;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: var(--radius);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.movie-card-link:hover {
  transform: translateY(-4px);
  background: rgba(30, 41, 59, 0.86);
  border-color: rgba(245, 158, 11, 0.44);
  box-shadow: var(--shadow);
}

.movie-thumb {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.16), transparent),
    #0f172a;
}

.movie-thumb.landscape {
  aspect-ratio: 16 / 9;
}

.movie-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.32s ease, opacity 0.2s ease;
}

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

.movie-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.74), transparent 54%);
  pointer-events: none;
}

.image-missing {
  display: none;
}

.movie-badge,
.play-chip,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.movie-badge {
  top: 10px;
  right: 10px;
  padding: 4px 9px;
  color: #fef3c7;
  background: rgba(0, 0, 0, 0.65);
}

.play-chip {
  left: 10px;
  bottom: 10px;
  padding: 5px 10px;
  color: #111827;
  background: var(--accent);
}

.rank-badge {
  top: 10px;
  left: 10px;
  width: 34px;
  height: 34px;
  justify-content: center;
  color: #111827;
  background: var(--accent);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.32);
}

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

.movie-card-body h3 {
  display: -webkit-box;
  min-height: 2.9em;
  margin: 0 0 8px;
  overflow: hidden;
  color: #ffffff;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 800;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-card-link:hover h3 {
  color: var(--accent);
}

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

.movie-meta {
  gap: 7px;
}

.movie-meta span {
  min-height: 24px;
  padding: 2px 8px;
  font-size: 12px;
}

.movie-card-wide .movie-card-link {
  display: grid;
  grid-template-columns: minmax(160px, 43%) 1fr;
}

.movie-card-wide .movie-card-body {
  padding: 18px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.tag-row span,
.detail-tags span {
  display: inline-flex;
  padding: 5px 9px;
  color: var(--muted-strong);
  background: rgba(30, 41, 59, 0.92);
  border-radius: 8px;
  font-size: 12px;
}

.scroll-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 210px;
  gap: 18px;
  overflow-x: auto;
  padding: 4px 0 18px;
  scroll-snap-type: x mandatory;
}

.scroll-row .movie-card {
  scroll-snap-align: start;
}

.page-hero {
  padding: 72px 0 38px;
}

.page-hero h1 {
  max-width: 900px;
  font-size: clamp(34px, 6vw, 58px);
}

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

.filter-panel,
.search-panel {
  width: min(100% - 32px, var(--container));
  margin: 0 auto 30px;
  padding: 18px;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.filter-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 12px;
}

.filter-row input,
.filter-row select,
.search-panel input,
.search-panel select {
  width: 100%;
  min-height: 44px;
  padding: 0 13px;
  color: var(--text);
  background: #020617;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  outline: none;
}

.filter-row input:focus,
.filter-row select:focus,
.search-panel input:focus,
.search-panel select:focus {
  border-color: rgba(245, 158, 11, 0.65);
}

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

.category-overview {
  padding-bottom: 64px;
}

.category-group {
  margin-top: 34px;
}

.category-group h2 {
  margin: 0 0 18px;
  font-size: 26px;
}

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

.category-tile {
  min-height: 164px;
  padding: 20px;
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.1), transparent 52%),
    rgba(15, 23, 42, 0.82);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.category-tile:hover {
  transform: translateY(-3px);
  border-color: rgba(245, 158, 11, 0.42);
  background-color: rgba(30, 41, 59, 0.86);
}

.category-icon {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  color: #111827;
  background: var(--accent);
  border-radius: 13px;
  font-weight: 900;
}

.category-tile strong,
.category-tile em {
  display: block;
}

.category-tile strong {
  color: #ffffff;
  font-size: 18px;
}

.category-tile em {
  margin-top: 3px;
  color: #fcd34d;
  font-style: normal;
  font-weight: 750;
}

.category-tile p {
  margin: 10px 0 0;
  font-size: 14px;
}

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

.ranking-item {
  display: grid;
  grid-template-columns: 72px 140px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 14px;
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.ranking-number {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  color: #111827;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  border-radius: 15px;
  font-weight: 900;
  font-size: 20px;
}

.ranking-cover {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-soft);
  border-radius: 12px;
}

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

.ranking-info h2 {
  margin: 0 0 6px;
  font-size: 20px;
}

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

.ranking-score {
  color: #fcd34d;
  font-size: 24px;
  font-weight: 900;
}

.detail-wrap {
  padding: 42px 0 68px;
}

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

.player-shell,
.detail-panel,
.review-box,
.related-panel {
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 16px 60px rgba(0, 0, 0, 0.24);
}

.player-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000000;
}

.player-shell video {
  width: 100%;
  height: 100%;
  background: #000000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #ffffff;
  background:
    linear-gradient(0deg, rgba(0, 0, 0, 0.74), rgba(0, 0, 0, 0.18)),
    radial-gradient(circle at center, rgba(245, 158, 11, 0.18), transparent 36%);
  border: 0;
  cursor: pointer;
}

.play-overlay[hidden] {
  display: none;
}

.play-overlay-icon {
  width: 74px;
  height: 74px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #111827;
  background: var(--accent);
  border-radius: 999px;
  box-shadow: 0 18px 50px rgba(245, 158, 11, 0.36);
  font-size: 28px;
}

.play-overlay strong {
  font-size: 20px;
}

.player-status {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 4;
  display: none;
  padding: 10px 12px;
  color: #fed7aa;
  background: rgba(127, 29, 29, 0.82);
  border-radius: 12px;
  font-size: 13px;
}

.player-status.is-visible {
  display: block;
}

.detail-panel,
.review-box,
.related-panel {
  margin-top: 18px;
  padding: 24px;
}

.detail-title {
  font-size: clamp(30px, 5vw, 46px);
}

.detail-meta {
  margin: 18px 0;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.detail-section-title {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 22px;
}

.detail-summary {
  margin: 0 0 18px;
}

.detail-story {
  margin: 0;
  color: var(--muted-strong);
}

.review-box p {
  margin: 0;
}

.sidebar-card {
  position: sticky;
  top: 96px;
}

.related-panel {
  margin-top: 0;
}

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

.related-item {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 12px;
  align-items: center;
}

.related-thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-soft);
  border-radius: 12px;
}

.related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.24s ease;
}

.related-item:hover .related-thumb img {
  transform: scale(1.08);
}

.related-info strong {
  display: -webkit-box;
  overflow: hidden;
  color: #ffffff;
  font-size: 14px;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.related-item:hover strong {
  color: var(--accent);
}

.related-info span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.search-panel {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 12px;
}

.search-panel button {
  min-height: 44px;
  padding: 0 18px;
  color: #111827;
  background: var(--accent);
  border: 0;
  border-radius: 12px;
  font-weight: 900;
  cursor: pointer;
}

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

.empty-state {
  padding: 32px;
  text-align: center;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

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

.footer-grid {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding: 42px 0;
}

.footer-brand {
  margin-bottom: 14px;
  font-size: 20px;
}

.footer-text {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
}

.site-footer h3 {
  margin: 0 0 12px;
  color: #ffffff;
}

.site-footer a:not(.footer-brand) {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  transition: color 0.2s ease;
}

.site-footer a:not(.footer-brand):hover {
  color: var(--accent);
}

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

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

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

  .sidebar-card {
    position: static;
  }
}

@media (max-width: 760px) {
  .header-inner {
    height: 64px;
  }

  .main-nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

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

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

  .hero {
    min-height: 78vh;
  }

  .hero-slide {
    align-items: end;
  }

  .hero-slide::before {
    background:
      linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.84) 52%, rgba(2, 6, 23, 0.35)),
      linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.42));
  }

  .hero-content {
    padding: 82px 0 78px;
  }

  .section-heading {
    display: block;
  }

  .section-more {
    display: inline-flex;
    margin-top: 10px;
  }

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

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

  .movie-card-wide .movie-card-link {
    grid-template-columns: 1fr;
  }

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

  .ranking-item {
    grid-template-columns: 48px 92px 1fr;
  }

  .ranking-score {
    grid-column: 3;
    font-size: 18px;
  }

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

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

  .scroll-row {
    grid-auto-columns: 72%;
  }

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