/* Static movie website styles inspired by the uploaded emerald/teal React theme. */
:root {
  --emerald-700: #047857;
  --emerald-600: #059669;
  --emerald-500: #10b981;
  --teal-600: #0d9488;
  --cyan-600: #0891b2;
  --gray-950: #030712;
  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50: #f9fafb;
  --white: #ffffff;
  --shadow-sm: 0 4px 16px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 12px 30px rgba(15, 23, 42, 0.12);
  --shadow-xl: 0 24px 60px rgba(15, 23, 42, 0.22);
  --radius-lg: 18px;
  --radius-xl: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--gray-900);
  background: var(--gray-50);
}

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

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

button,
input,
select {
  font: inherit;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--white);
  background: linear-gradient(90deg, var(--emerald-600), var(--teal-600));
  box-shadow: var(--shadow-sm);
}

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

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

.brand-icon {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 12px;
  color: var(--emerald-700);
  background: var(--white);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

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

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

.desktop-nav a:hover,
.mobile-nav a:hover {
  color: #ccfbf1;
}

.header-search {
  position: relative;
  width: min(280px, 24vw);
}

.header-search input,
.mobile-search input,
.large-search input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 0;
  outline: 0;
  border-radius: 999px;
  background: var(--white);
  color: var(--gray-900);
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.header-search input {
  padding: 10px 42px 10px 16px;
}

.header-search button {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  border: 0;
  color: var(--gray-600);
  background: transparent;
  cursor: pointer;
}

.mobile-menu-button {
  display: none;
  border: 0;
  color: var(--white);
  background: transparent;
  font-size: 26px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

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

.mobile-search {
  display: flex;
  gap: 8px;
  padding-top: 16px;
}

.mobile-search input {
  padding: 10px 16px;
}

.mobile-search button {
  border: 0;
  border-radius: 999px;
  color: var(--emerald-700);
  background: var(--white);
  padding: 0 18px;
  font-weight: 700;
}

.hero-slider {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  background: linear-gradient(135deg, #065f46, #0f766e, #0891b2);
}

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

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-bg::after,
.detail-backdrop::after {
  content: attr(data-poster-label);
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  padding: 24px;
  color: rgba(255, 255, 255, 0.26);
  font-size: clamp(42px, 8vw, 112px);
  font-weight: 900;
  text-align: center;
  letter-spacing: 0.06em;
  background: radial-gradient(circle at 20% 10%, rgba(16, 185, 129, 0.55), transparent 32%), linear-gradient(135deg, #064e3b, #0f766e 45%, #155e75);
}

.hero-bg.is-fallback::after,
.detail-backdrop.is-fallback::after {
  display: grid;
}

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

.hero-shade,
.detail-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 7, 18, 0.86), rgba(3, 7, 18, 0.54), rgba(3, 7, 18, 0.82)),
    linear-gradient(0deg, rgba(3, 7, 18, 0.7), transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 340px;
  align-items: center;
  gap: 56px;
  min-height: 650px;
  color: var(--white);
}

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

.hero-eyebrow,
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: #ccfbf1;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-copy h1,
.compact-hero h1,
.detail-info h1 {
  margin: 0 0 18px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-copy p,
.compact-hero p,
.detail-info p {
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.75;
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #065f46;
  background: #d1fae5;
}

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

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

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

.btn-primary {
  color: var(--emerald-700);
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  color: var(--white);
  background: rgba(255, 255, 255, 0.13);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.hero-poster,
.detail-poster,
.poster-media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #064e3b, #0f766e, #155e75);
}

.hero-poster {
  height: 460px;
  box-shadow: var(--shadow-xl);
  transform: rotate(2deg);
}

.hero-poster::after,
.poster-media::after {
  content: attr(data-poster-label);
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  padding: 20px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 900;
  text-align: center;
  background: radial-gradient(circle at 18% 10%, rgba(255, 255, 255, 0.22), transparent 28%), linear-gradient(135deg, #047857, #0f766e, #0891b2);
}

.poster-media.is-fallback::after {
  display: grid;
}

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

.hero-play {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 50%;
  color: var(--emerald-700);
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  cursor: pointer;
  transform: translateY(-50%);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

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

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

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

.stats-strip {
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

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

.stats-grid div {
  display: grid;
  gap: 4px;
  text-align: center;
}

.stats-grid strong {
  color: var(--emerald-600);
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1;
}

.stats-grid span {
  color: var(--gray-600);
  font-size: 14px;
}

.page-section {
  padding: 64px 0;
}

.soft-section {
  background: linear-gradient(90deg, #ecfeff, #ecfdf5);
}

.dark-section {
  color: var(--white);
  background: var(--gray-900);
}

.dark-section .section-heading h2,
.dark-section .section-heading p {
  color: var(--white);
}

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

.section-heading h2 {
  margin: 0;
  color: var(--gray-900);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-heading p {
  max-width: 720px;
  margin: 10px 0 0;
  color: var(--gray-600);
  line-height: 1.7;
}

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

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

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

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

.movie-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-xl);
}

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

.movie-card .poster-media {
  height: 260px;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.small-grid .movie-card .poster-media,
.catalogue-grid .movie-card .poster-media {
  height: 220px;
}

.quality-badge,
.rank-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  border-radius: 999px;
  color: var(--white);
  background: var(--emerald-600);
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 900;
}

.rank-badge {
  left: 12px;
  right: auto;
  background: #f59e0b;
}

.movie-card-body {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.card-kicker,
.card-meta {
  color: var(--emerald-700);
  font-size: 12px;
  font-weight: 800;
}

.movie-card h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 900;
}

.movie-card p {
  margin: 0;
  color: var(--gray-600);
  font-size: 14px;
  line-height: 1.65;
}

.movie-card-compact {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  min-height: 132px;
}

.movie-card-compact .poster-media {
  height: 100%;
  min-height: 132px;
  border-radius: var(--radius-xl) 0 0 var(--radius-xl);
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--gray-600);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) 360px;
  gap: 32px;
  align-items: start;
}

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

.ranking-panel,
.meta-card,
.prose-card,
.player-card,
.filter-panel {
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.ranking-panel {
  position: sticky;
  top: 88px;
  padding: 26px;
}

.ranking-panel h2 {
  margin: 0 0 8px;
  font-size: 28px;
}

.ranking-panel p {
  margin: 0 0 20px;
  color: var(--gray-600);
  line-height: 1.7;
}

.ranking-panel ol {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ranking-panel a {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
}

.ranking-panel span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 12px;
  color: var(--white);
  background: var(--emerald-600);
  font-weight: 900;
}

.ranking-panel strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-panel em {
  display: block;
  color: var(--gray-500);
  font-size: 12px;
  font-style: normal;
}

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

.category-cloud a,
.category-card {
  display: grid;
  gap: 8px;
  min-height: 112px;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  transition: transform 0.2s ease, background 0.2s ease;
}

.category-card {
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.category-cloud a:hover,
.category-card:hover {
  transform: translateY(-4px);
}

.category-cloud strong,
.category-card strong {
  font-size: 20px;
}

.category-cloud span,
.category-card span {
  color: var(--emerald-500);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.category-card em,
.category-cloud em,
.category-cloud a span:last-child {
  color: var(--gray-500);
  font-style: normal;
}

.dark-section .category-cloud a span:last-child {
  color: rgba(255, 255, 255, 0.72);
}

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

.page-hero {
  position: relative;
  color: var(--white);
  background: linear-gradient(135deg, #064e3b, #0f766e 52%, #155e75);
}

.compact-hero {
  padding: 76px 0;
}

.compact-hero h1 {
  max-width: 920px;
}

.compact-hero p {
  max-width: 760px;
}

.filter-panel {
  margin-top: 30px;
  padding: 20px;
}

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

.filter-grid label {
  display: grid;
  gap: 8px;
}

.filter-grid span {
  color: var(--gray-600);
  font-size: 13px;
  font-weight: 800;
}

.filter-grid input,
.filter-grid select {
  min-height: 44px;
  padding: 0 14px;
}

.filter-result,
.search-summary {
  margin-top: 14px;
  color: var(--gray-600);
  font-weight: 700;
}

.large-search {
  display: flex;
  max-width: 720px;
  gap: 12px;
}

.large-search input {
  min-height: 54px;
  padding: 0 20px;
}

.large-search button {
  border: 0;
  border-radius: 999px;
  color: var(--emerald-700);
  background: var(--white);
  padding: 0 28px;
  font-weight: 900;
  cursor: pointer;
}

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

.detail-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--gray-950);
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  border-radius: 0;
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  padding: 34px 0 72px;
}

.breadcrumb,
.breadcrumb-separator {
  display: inline-flex;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
}

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

.breadcrumb-separator {
  margin-inline: 8px;
}

.detail-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 42px;
  align-items: end;
}

.detail-poster {
  height: 430px;
  box-shadow: var(--shadow-xl);
}

.detail-info h1 {
  max-width: 900px;
}

.detail-info p {
  max-width: 850px;
}

.player-card {
  padding: 18px;
  background: var(--gray-950);
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #000;
  aspect-ratio: 16 / 9;
}

.video-shell video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.play-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 14px;
  color: var(--white);
  text-align: center;
  background: radial-gradient(circle at 50% 40%, rgba(16, 185, 129, 0.28), rgba(3, 7, 18, 0.78));
}

.play-cover.is-hidden {
  display: none;
}

.play-button {
  min-height: 58px;
  border: 0;
  border-radius: 999px;
  color: var(--emerald-700);
  background: var(--white);
  padding: 0 30px;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: var(--shadow-xl);
}

.play-cover p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

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

.prose-card,
.meta-card {
  padding: 28px;
}

.prose-card h2,
.meta-card h2 {
  margin: 0 0 16px;
  font-size: 24px;
}

.prose-card p {
  margin: 0 0 22px;
  color: var(--gray-700);
  line-height: 1.9;
}

.meta-card dl {
  display: grid;
  gap: 14px;
  margin: 0 0 22px;
}

.meta-card dl div {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
}

.meta-card dt {
  color: var(--gray-500);
  font-weight: 800;
}

.meta-card dd {
  margin: 0;
  color: var(--gray-900);
  font-weight: 750;
}

.large-tags span {
  margin-bottom: 4px;
}

.site-footer {
  color: #d1d5db;
  background: var(--gray-900);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 34px;
  padding: 48px 0;
}

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

.footer-grid a {
  display: block;
  margin: 9px 0;
  color: #d1d5db;
}

.footer-grid a:hover {
  color: #6ee7b7;
}

.footer-grid p {
  max-width: 360px;
  color: #9ca3af;
  line-height: 1.75;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px;
  color: #9ca3af;
  text-align: center;
}

.footer-bottom p {
  margin: 0;
}

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

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

  .hero-content,
  .split-section,
  .detail-content-grid {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    display: none;
  }

  .cards-grid,
  .catalogue-grid,
  .ranking-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .ranking-panel {
    position: static;
  }
}

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

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

  .hero-control {
    display: none;
  }

  .stats-grid,
  .cards-grid,
  .small-grid,
  .catalogue-grid,
  .ranking-list,
  .list-grid,
  .category-grid,
  .dense-category-grid,
  .category-cloud,
  .filter-grid,
  .footer-grid,
  .detail-layout {
    grid-template-columns: 1fr;
  }

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

  .movie-card-compact {
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .large-search {
    flex-direction: column;
  }

  .detail-poster {
    max-width: 260px;
    height: 370px;
  }

  .meta-card dl div {
    grid-template-columns: 1fr;
  }
}
