/*
  Static movie site stylesheet.
  Visual palette and layout are based on the uploaded React/Tailwind bundle:
  dark gray background, sunset-to-twilight gradients, rounded media cards,
  70vh hero slider, glass navigation and responsive grids.
*/

:root {
  --color-bg: #111827;
  --color-bg-deep: #030712;
  --color-panel: rgba(31, 41, 55, 0.72);
  --color-panel-strong: rgba(17, 24, 39, 0.92);
  --color-line: rgba(249, 115, 22, 0.22);
  --color-text: #f9fafb;
  --color-muted: #9ca3af;
  --color-soft: #d1d5db;
  --color-sunset-300: #fdba74;
  --color-sunset-400: #fb923c;
  --color-sunset-500: #f97316;
  --color-sunset-600: #ea580c;
  --color-twilight-400: #facc15;
  --color-twilight-500: #d97706;
  --shadow-card: 0 22px 70px rgba(0, 0, 0, 0.34);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--color-text);
  background:
    radial-gradient(circle at top left, rgba(217, 119, 6, 0.18), transparent 32rem),
    radial-gradient(circle at 82% 12%, rgba(249, 115, 22, 0.12), transparent 34rem),
    linear-gradient(180deg, #030712 0%, #111827 38%, #030712 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 70%);
  z-index: -1;
}

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

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: 50;
  background: rgba(3, 7, 18, 0.76);
  border-bottom: 1px solid rgba(154, 52, 18, 0.35);
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 238px;
}

.brand-mark,
.footer-brand span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #111827;
  background: linear-gradient(135deg, var(--color-sunset-400), var(--color-twilight-400));
  box-shadow: 0 0 32px rgba(249, 115, 22, 0.38);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-copy strong {
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, var(--color-sunset-400), var(--color-twilight-400), var(--color-sunset-300));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-copy em {
  font-style: normal;
  color: var(--color-muted);
  font-size: 0.78rem;
}

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

.desktop-nav a,
.mobile-nav a {
  color: #d1d5db;
  transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
  color: var(--color-sunset-400);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(75, 85, 99, 0.8);
  border-radius: 999px;
  background: rgba(31, 41, 55, 0.76);
}

.header-search input {
  width: 220px;
  border: 0;
  outline: 0;
  color: var(--color-text);
  background: transparent;
  padding: 7px 8px 7px 14px;
}

.header-search button,
.primary-button,
.secondary-button,
.player-start,
.search-panel button,
.filter-actions button {
  border: 0;
  cursor: pointer;
  color: white;
  font-weight: 700;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-sunset-500), var(--color-twilight-500));
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.header-search button {
  padding: 8px 16px;
}

.header-search button:hover,
.primary-button:hover,
.secondary-button:hover,
.player-start:hover,
.search-panel button:hover,
.filter-actions button:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow: 0 14px 34px rgba(234, 88, 12, 0.28);
}

.mobile-menu-button {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(75, 85, 99, 0.85);
  color: var(--color-text);
  border-radius: 12px;
  background: rgba(31, 41, 55, 0.75);
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 14px;
  border: 1px solid rgba(75, 85, 99, 0.65);
  border-radius: 16px;
  background: rgba(17, 24, 39, 0.96);
}

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

.hero {
  position: relative;
  height: 70vh;
  min-height: 560px;
  overflow: hidden;
  background: var(--color-bg-deep);
}

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

.hero-slide.is-active {
  opacity: 1;
  z-index: 1;
}

.hero-image {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(249, 115, 22, 0.34), rgba(17, 24, 39, 0.2)),
    linear-gradient(180deg, #111827, #030712);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.74;
}

img.is-missing {
  opacity: 0;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, #111827 0%, rgba(17, 24, 39, 0.76) 33%, rgba(17, 24, 39, 0.22) 78%),
    radial-gradient(circle at 18% 56%, rgba(249, 115, 22, 0.34), transparent 32rem);
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding-bottom: 72px;
}

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

.hero-kicker,
.section-kicker,
.page-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-sunset-400);
  font-weight: 800;
  letter-spacing: 0.06em;
}

.hero-copy h1 {
  margin: 16px 0 18px;
  font-size: clamp(2.55rem, 7vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero-copy p {
  max-width: 700px;
  margin: 0 0 28px;
  color: #e5e7eb;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.8;
}

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

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
}

.secondary-button {
  color: var(--color-text);
  border: 1px solid rgba(251, 146, 60, 0.45);
  background: rgba(17, 24, 39, 0.68);
}

.hero-controls {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: white;
  pointer-events: auto;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.48);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.72);
  transform: translateY(-1px);
}

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

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

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

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

.hero-dot.is-active {
  width: 34px;
  background: var(--color-sunset-400);
}

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

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

.section-heading h2,
.page-heading h1 {
  margin: 8px 0 0;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.12;
}

.section-heading p,
.page-heading p {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--color-muted);
  line-height: 1.8;
}

.section-link {
  flex: none;
  color: var(--color-sunset-400);
  font-weight: 700;
}

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

.movie-card,
.media-row,
.stat-card,
.category-card,
.info-panel,
.search-panel,
.player-shell {
  border: 1px solid rgba(75, 85, 99, 0.52);
  background: var(--color-panel);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(10px);
}

.movie-card {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-md);
  transition: transform 0.28s ease, border-color 0.28s ease, background 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-7px) scale(1.018);
  border-color: rgba(251, 146, 60, 0.55);
  background: rgba(31, 41, 55, 0.92);
}

.poster-frame {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 18%, rgba(251, 146, 60, 0.28), transparent 18rem),
    linear-gradient(135deg, #1f2937, #030712);
}

.card-poster {
  height: 260px;
}

.card-large .card-poster {
  height: 324px;
}

.card-small .card-poster {
  height: 214px;
}

.card-poster img,
.row-poster img,
.detail-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease, opacity 0.3s ease;
}

.movie-card:hover img,
.media-row:hover img {
  transform: scale(1.06);
}

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.24), transparent);
}

.poster-play,
.play-glyph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  color: white;
  font-size: 2.6rem;
  background: rgba(0, 0, 0, 0.36);
  transition: opacity 0.25s ease;
}

.movie-card:hover .poster-play,
.media-row:hover .play-glyph {
  opacity: 1;
}

.poster-meta {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #d1d5db;
  font-size: 0.82rem;
}

.card-rank,
.rank-number {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  color: #111827;
  background: linear-gradient(135deg, var(--color-sunset-400), var(--color-twilight-400));
}

.card-body {
  padding: 18px;
}

.card-body h3,
.row-content h3 {
  margin: 0 0 9px;
  color: white;
  font-size: 1.08rem;
  line-height: 1.35;
  transition: color 0.2s ease;
}

.movie-card:hover h3,
.media-row:hover h3 {
  color: var(--color-sunset-400);
}

.card-body p,
.row-content p {
  margin: 0 0 12px;
  color: var(--color-muted);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-height: 28px;
  margin-bottom: 12px;
}

.card-tags span,
.tag-pill,
.category-pill {
  padding: 5px 9px;
  border-radius: 999px;
  color: #fed7aa;
  font-size: 0.78rem;
  background: rgba(154, 52, 18, 0.28);
  border: 1px solid rgba(251, 146, 60, 0.18);
}

.card-footer,
.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  color: #6b7280;
  font-size: 0.82rem;
}

.horizontal-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(252px, 320px);
  gap: 18px;
  overflow-x: auto;
  padding: 4px 2px 18px;
  scrollbar-width: thin;
}

.category-strip {
  display: grid;
  gap: 34px;
}

.category-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: #d1d5db;
  font-size: 1.35rem;
}

.category-title::before {
  content: "";
  width: 5px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(to bottom, var(--color-sunset-400), var(--color-twilight-500));
}

.media-row {
  display: grid;
  grid-template-columns: 142px 1fr;
  gap: 16px;
  overflow: hidden;
  border-radius: var(--radius-sm);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.media-row:hover {
  transform: translateX(4px);
  border-color: rgba(251, 146, 60, 0.46);
}

.row-poster {
  min-height: 174px;
}

.row-content {
  min-width: 0;
  padding: 16px 16px 16px 0;
}

.rank-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 24px;
}

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

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

.stat-card,
.category-card {
  border-radius: var(--radius-md);
  padding: 22px;
}

.stat-card strong,
.category-card strong {
  display: block;
  margin-bottom: 8px;
  color: white;
  font-size: 1.8rem;
}

.stat-card span,
.category-card span {
  color: var(--color-muted);
}

.category-card {
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(251, 146, 60, 0.48);
}

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

.page-hero {
  padding: 74px 0 26px;
  background:
    radial-gradient(circle at 12% 28%, rgba(249, 115, 22, 0.2), transparent 32rem),
    linear-gradient(180deg, rgba(3, 7, 18, 0.2), transparent);
}

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

.breadcrumbs a {
  color: #fed7aa;
}

.detail-hero {
  padding: 34px 0 54px;
  background:
    radial-gradient(circle at 18% 26%, rgba(249, 115, 22, 0.18), transparent 28rem),
    linear-gradient(180deg, #111827, #030712);
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #000;
}

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

.player-aspect video {
  width: 100%;
  height: 100%;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.48));
  pointer-events: auto;
  transition: opacity 0.25s ease;
}

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

.player-start {
  pointer-events: auto;
  padding: 14px 28px;
  font-size: 1.05rem;
}

.player-message {
  position: absolute;
  left: 16px;
  bottom: 14px;
  color: #d1d5db;
  font-size: 0.92rem;
}

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

.info-panel {
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 22px;
}

.info-panel h1,
.info-panel h2 {
  margin-top: 0;
}

.info-panel h1 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.info-panel h2 {
  color: white;
  font-size: 1.35rem;
}

.info-panel p {
  color: #d1d5db;
  line-height: 1.9;
}

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

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  color: #e5e7eb;
  background: rgba(31, 41, 55, 0.76);
  border: 1px solid rgba(75, 85, 99, 0.65);
}

.detail-cover {
  height: 430px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}

.side-list {
  display: grid;
  gap: 12px;
}

.side-facts {
  display: grid;
  gap: 15px;
  color: var(--color-soft);
}

.side-facts strong {
  display: block;
  color: var(--color-muted);
  margin-bottom: 4px;
  font-size: 0.88rem;
}

.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.search-panel {
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 28px;
}

.search-form-main {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  margin-bottom: 18px;
}

.search-form-main input,
.filter-grid select {
  width: 100%;
  color: var(--color-text);
  border: 1px solid rgba(75, 85, 99, 0.74);
  border-radius: 16px;
  outline: 0;
  background: rgba(17, 24, 39, 0.74);
}

.search-form-main input {
  padding: 15px 18px;
  font-size: 1.05rem;
}

.search-panel button,
.filter-actions button {
  padding: 0 24px;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr) auto;
  gap: 12px;
}

.filter-grid label {
  display: grid;
  gap: 8px;
  color: var(--color-muted);
}

.filter-grid select {
  padding: 12px 14px;
}

.filter-actions {
  display: flex;
  align-items: end;
}

.results-summary {
  color: var(--color-muted);
  margin-bottom: 18px;
}

.no-results {
  display: none;
  padding: 38px;
  border: 1px dashed rgba(251, 146, 60, 0.42);
  border-radius: var(--radius-md);
  color: var(--color-muted);
  text-align: center;
}

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

.pagination-note {
  color: var(--color-muted);
  margin-top: 20px;
  line-height: 1.8;
}

.site-footer {
  margin-top: 72px;
  padding: 46px 0;
  border-top: 1px solid rgba(154, 52, 18, 0.35);
  background: rgba(3, 7, 18, 0.72);
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  color: white;
  font-weight: 800;
  font-size: 1.25rem;
}

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

.site-footer h3 {
  margin-top: 0;
  color: white;
}

.site-footer a {
  display: block;
  margin: 8px 0;
}

.site-footer a:hover {
  color: var(--color-sunset-400);
}

@media (max-width: 1080px) {
  .desktop-nav,
  .header-search {
    display: none;
  }

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

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

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

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

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

  .brand {
    min-width: 0;
  }

  .brand-copy em {
    display: none;
  }

  .hero {
    min-height: 520px;
    height: 72vh;
  }

  .hero-content {
    padding-bottom: 78px;
  }

  .hero-copy p {
    -webkit-line-clamp: 4;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .hero-arrow {
    top: auto;
    bottom: 26px;
    width: 42px;
    height: 42px;
  }

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

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

  .section-heading,
  .page-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .movie-grid,
  .stat-grid,
  .category-overview,
  .filter-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .search-form-main {
    grid-template-columns: 1fr;
  }

  .search-panel button,
  .filter-actions button {
    min-height: 46px;
  }

  .media-row {
    grid-template-columns: 116px 1fr;
  }

  .row-poster {
    min-height: 150px;
  }

  .row-content {
    padding: 13px 13px 13px 0;
  }

  .detail-cover {
    height: 360px;
  }
}
