/* Static movie site styles generated from uploaded visual requirements. */
:root {
  --bg: #020617;
  --bg-soft: #0f172a;
  --bg-panel: rgba(15, 23, 42, 0.72);
  --bg-panel-strong: rgba(15, 23, 42, 0.94);
  --border: rgba(148, 163, 184, 0.16);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-strong: #cbd5e1;
  --cyan: #22d3ee;
  --cyan-dark: #0891b2;
  --blue: #60a5fa;
  --shadow: 0 24px 60px rgba(2, 6, 23, 0.42);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.14), transparent 32rem),
    radial-gradient(circle at 82% 12%, rgba(96, 165, 250, 0.16), transparent 28rem),
    linear-gradient(180deg, #020617 0%, #0f172a 48%, #020617 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(148, 163, 184, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(148, 163, 184, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.72), transparent 72%);
  z-index: -1;
}

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

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

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

.header-inner {
  width: min(1180px, calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.brand-icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #001018;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 12px 30px rgba(34, 211, 238, 0.24);
  font-size: 16px;
}

.brand-text {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, #67e8f9, #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.desktop-nav a,
.mobile-panel a {
  padding: 10px 14px;
  border-radius: 12px;
  color: var(--muted-strong);
  transition: 0.22s ease;
}

.desktop-nav a:hover,
.mobile-panel a:hover {
  color: var(--cyan);
  background: rgba(15, 23, 42, 0.82);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.mobile-search input,
.search-page-form input,
.filter-toolbar input,
.filter-toolbar select {
  width: 230px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.82);
  color: var(--text);
  padding: 11px 14px;
  outline: none;
  transition: 0.22s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.search-page-form input:focus,
.filter-toolbar input:focus,
.filter-toolbar select:focus {
  border-color: rgba(34, 211, 238, 0.72);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12);
}

.header-search button,
.mobile-search button,
.search-page-form button {
  border: 0;
  border-radius: 12px;
  background: rgba(34, 211, 238, 0.16);
  color: var(--cyan);
  padding: 11px 15px;
  cursor: pointer;
  transition: 0.22s ease;
}

.header-search button:hover,
.mobile-search button:hover,
.search-page-form button:hover {
  background: var(--cyan);
  color: #001018;
}

.mobile-menu-button {
  display: none;
  margin-left: auto;
  border: 0;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.92);
  color: var(--muted-strong);
  width: 42px;
  height: 42px;
  font-size: 20px;
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
}

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

.mobile-panel nav,
.mobile-categories {
  display: grid;
  gap: 8px;
}

.mobile-search {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.mobile-search input {
  width: 100%;
}

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

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

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

.hero-slide img,
.hero-slide .image-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
}

.hero-gradient {
  position: absolute;
  inset: 0;
}

.hero-gradient.top {
  background: linear-gradient(to top, #020617 4%, rgba(2, 6, 23, 0.82) 42%, rgba(2, 6, 23, 0.08));
}

.hero-gradient.side {
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(2, 6, 23, 0.48), rgba(2, 6, 23, 0.78));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 70vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 112px 0 92px;
}

.eyebrow {
  color: var(--cyan);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hero-content h1,
.page-hero h1 {
  max-width: 780px;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.05em;
  margin: 0 0 18px;
}

.hero-content p,
.page-hero p {
  max-width: 720px;
  margin: 0;
  color: var(--muted-strong);
  font-size: 18px;
  line-height: 1.8;
}

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(34, 211, 238, 0.2);
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.12);
  color: #67e8f9;
  padding: 6px 10px;
  font-size: 13px;
}

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

.primary-button,
.ghost-button,
.small-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 13px;
  font-weight: 700;
  transition: 0.22s ease;
}

.primary-button {
  color: #001018;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 16px 40px rgba(34, 211, 238, 0.2);
}

.primary-button:hover,
.small-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(34, 211, 238, 0.26);
}

.ghost-button {
  border: 1px solid rgba(148, 163, 184, 0.28);
  color: var(--text);
  background: rgba(15, 23, 42, 0.54);
  backdrop-filter: blur(12px);
}

.ghost-button:hover {
  border-color: rgba(34, 211, 238, 0.45);
  color: var(--cyan);
  background: rgba(15, 23, 42, 0.82);
}

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

.hero-dot {
  width: 34px;
  height: 4px;
  border: 0;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.38);
  cursor: pointer;
}

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

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

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

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

.section-title-row h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 38px);
  letter-spacing: -0.04em;
}

.more-link {
  color: var(--cyan);
  font-weight: 700;
}

.more-link span {
  font-size: 22px;
}

.grid {
  display: grid;
  gap: 18px;
}

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

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

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

.library-grid {
  align-items: stretch;
}

.movie-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.54);
  box-shadow: 0 10px 34px rgba(2, 6, 23, 0.18);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(34, 211, 238, 0.34);
  background: rgba(15, 23, 42, 0.86);
}

.poster-link,
.horizontal-poster {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(8, 145, 178, 0.22), rgba(96, 165, 250, 0.12));
}

.poster-link {
  aspect-ratio: 2 / 3;
}

.large-card .poster-link {
  aspect-ratio: 16 / 9;
}

.poster-link img,
.poster-link .image-fallback,
.horizontal-poster img,
.horizontal-poster .image-fallback,
.detail-poster,
.category-tile img,
.category-cover-stack img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.movie-card:hover .poster-link img,
.movie-card:hover .poster-link .image-fallback,
.movie-card:hover .horizontal-poster img,
.movie-card:hover .horizontal-poster .image-fallback {
  transform: scale(1.06);
}

.poster-overlay {
  position: absolute;
  inset: auto 12px 12px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border-radius: 12px;
  color: #001018;
  background: rgba(34, 211, 238, 0.92);
  font-weight: 800;
  opacity: 0;
  transform: translateY(8px);
  transition: 0.22s ease;
}

.movie-card:hover .poster-overlay {
  opacity: 1;
  transform: translateY(0);
}

.card-body {
  padding: 14px;
}

.card-title {
  display: block;
  color: var(--text);
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 7px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

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

.card-meta {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 9px;
}

.card-body p,
.horizontal-info p {
  margin: 0 0 12px;
  color: var(--muted-strong);
  font-size: 14px;
  line-height: 1.65;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.panel-section,
.search-panel,
.filter-toolbar,
.text-panel,
.side-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--bg-panel);
  box-shadow: var(--shadow);
}

.panel-section {
  padding: 34px;
}

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

.horizontal-card {
  display: grid;
  grid-template-columns: 126px minmax(0, 1fr);
  gap: 16px;
  padding: 12px;
}

.horizontal-poster {
  aspect-ratio: 16 / 10;
  border-radius: 14px;
}

.horizontal-info {
  align-self: center;
}

.rank-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  min-width: 38px;
  height: 30px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: #001018;
  background: linear-gradient(135deg, #facc15, #22d3ee);
  font-weight: 900;
}

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

.category-tile {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--bg-soft);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: var(--shadow);
}

.category-tile img,
.category-tile .image-fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.category-mask {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.32));
}

.category-tile strong,
.category-tile em {
  position: relative;
  z-index: 2;
}

.category-tile strong {
  font-size: 22px;
  margin-bottom: 5px;
}

.category-tile em {
  color: var(--cyan);
  font-style: normal;
}

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

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 34px;
}

.footer-brand p,
.footer-inner li,
.footer-inner a {
  color: var(--muted);
  line-height: 1.75;
}

.footer-inner h3 {
  margin: 0 0 14px;
  color: var(--text);
}

.footer-inner ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-main {
  padding-top: 34px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 32px;
  background:
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.2), transparent 26rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.92));
  box-shadow: var(--shadow);
  padding: clamp(36px, 7vw, 76px);
  margin-bottom: 30px;
}

.page-hero h1 {
  font-size: clamp(36px, 5vw, 64px);
}

.hero-count {
  margin-top: 10px !important;
  color: var(--cyan) !important;
}

.filter-toolbar {
  margin: 0 0 24px;
  padding: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 14px;
}

.filter-toolbar label {
  display: grid;
  gap: 8px;
  color: var(--muted-strong);
  font-weight: 700;
}

.filter-toolbar input {
  width: min(420px, 72vw);
}

.filter-toolbar select {
  width: 190px;
}

.filter-count {
  color: var(--cyan);
  font-weight: 800;
}

.category-overview-grid {
  display: grid;
  gap: 18px;
}

.category-overview-card {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--bg-panel);
  box-shadow: var(--shadow);
  padding: 18px;
}

.category-cover-stack {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  min-height: 170px;
}

.category-cover-stack img,
.category-cover-stack .image-fallback {
  border-radius: 14px;
  object-fit: cover;
}

.category-overview-body h2 {
  margin: 0 0 10px;
  font-size: 30px;
}

.category-overview-body p {
  color: var(--muted-strong);
  line-height: 1.8;
}

.muted-line {
  color: var(--muted) !important;
}

.small-button {
  background: rgba(34, 211, 238, 0.14);
  color: var(--cyan);
  margin-top: 8px;
}

.search-panel {
  padding: 22px;
}

.search-page-form {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
}

.search-page-form input {
  width: min(620px, 100%);
}

.search-status {
  color: var(--muted-strong);
  margin-bottom: 20px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  margin: 2px 0 22px;
}

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

.player-section {
  margin-bottom: 28px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, 0.16);
  border-radius: 28px;
  background: #000;
  box-shadow: 0 28px 76px rgba(0, 0, 0, 0.42);
  aspect-ratio: 16 / 9;
}

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

.play-overlay-button {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  color: var(--text);
  background: radial-gradient(circle, rgba(2, 6, 23, 0.1), rgba(2, 6, 23, 0.56));
  cursor: pointer;
}

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

.play-overlay-button span {
  width: 72px;
  height: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #001018;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  font-size: 30px;
  box-shadow: 0 20px 50px rgba(34, 211, 238, 0.28);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
}

.detail-heading {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin-bottom: 24px;
}

.detail-poster {
  aspect-ratio: 2 / 3;
  border-radius: var(--radius-xl);
  object-fit: cover;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.detail-heading h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--muted-strong);
}

.detail-meta span {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.86);
  border: 1px solid var(--border);
}

.detail-tags {
  margin-bottom: 22px;
}

.text-panel,
.side-panel {
  padding: 24px;
  margin-bottom: 20px;
}

.text-panel h2,
.side-panel h2 {
  margin: 0 0 14px;
  font-size: 22px;
}

.text-panel p {
  color: var(--muted-strong);
  line-height: 1.95;
  margin: 0 0 12px;
}

.side-panel dl {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 10px 12px;
  margin: 0;
}

.side-panel dt {
  color: var(--muted);
}

.side-panel dd {
  margin: 0;
  color: var(--muted-strong);
}

.side-panel a,
.side-link {
  color: var(--cyan);
}

.side-link {
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.image-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  padding: 16px;
  color: #e0f2fe;
  text-align: center;
  font-weight: 800;
  line-height: 1.4;
  background:
    radial-gradient(circle at 20% 20%, rgba(34, 211, 238, 0.34), transparent 24rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(8, 47, 73, 0.92));
}

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

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

  .poster-grid,
  .compact-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

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

  .mobile-menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

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

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

  .footer-inner,
  .category-overview-card,
  .detail-heading {
    grid-template-columns: 1fr;
  }

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

  .detail-poster {
    width: min(240px, 100%);
  }
}

@media (max-width: 560px) {
  .header-inner {
    width: min(100% - 24px, 1180px);
  }

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

  .hero-content {
    width: min(100% - 24px, 1180px);
    padding-bottom: 78px;
  }

  .content-section,
  .page-main {
    width: min(100% - 24px, 1180px);
  }

  .hero-actions,
  .section-title-row,
  .search-page-form {
    flex-direction: column;
    align-items: stretch;
  }

  .poster-grid,
  .compact-grid {
    gap: 12px;
  }

  .card-body {
    padding: 12px;
  }

  .panel-section,
  .page-hero,
  .search-panel,
  .text-panel,
  .side-panel {
    border-radius: 20px;
  }

  .horizontal-card {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 12px;
  }

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

  .filter-toolbar input,
  .filter-toolbar select {
    width: 100%;
  }
}

.plain-link-list {
  margin: 0;
  padding: 0;
  list-style: none;
  columns: 2;
  column-gap: 28px;
}

.plain-link-list li {
  break-inside: avoid;
  display: grid;
  gap: 4px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.plain-link-list a {
  color: var(--text);
  font-weight: 700;
}

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

.plain-link-list span {
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 720px) {
  .plain-link-list {
    columns: 1;
  }
}
