:root {
  --bg: #f9fafb;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --brand: #059669;
  --brand-dark: #064e3b;
  --brand-soft: #d1fae5;
  --cyan: #0891b2;
  --card: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
  --shadow-soft: 0 10px 24px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #f9fafb 0%, #f3f4f6 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  color: #ffffff;
  background: linear-gradient(90deg, #065f46 0%, #0f766e 48%, #155e75 100%);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18);
}

.nav-shell {
  width: min(1180px, calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark,
.footer-brand span {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #064e3b;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
}

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

.brand-text strong {
  font-size: 25px;
  letter-spacing: 0.02em;
}

.brand-text small {
  color: #a7f3d0;
  font-size: 12px;
}

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

.desktop-nav a {
  color: rgba(255, 255, 255, 0.92);
  transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover {
  color: #d1fae5;
  transform: translateY(-1px);
}

.mobile-menu-button {
  width: 44px;
  height: 44px;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 0;
  border-radius: 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

.mobile-menu-button span {
  width: 22px;
  height: 2px;
  background: #ffffff;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
  gap: 12px;
  flex-wrap: wrap;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  color: #ffffff;
}

.hero {
  position: relative;
  height: 640px;
  overflow: hidden;
  background: #020617;
}

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

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

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

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.92) 0%, rgba(2, 6, 23, 0.70) 48%, rgba(2, 6, 23, 0.18) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 1180px;
  color: #ffffff;
}

.eyebrow {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border-radius: 999px;
  color: #ffffff;
  background: #10b981;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.hero h1 {
  width: min(680px, 100%);
  margin: 22px 0 12px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero p {
  width: min(640px, 100%);
  margin: 0 0 24px;
  color: #e5e7eb;
  font-size: clamp(17px, 2.4vw, 23px);
}

.hero-tags,
.detail-meta,
.movie-meta,
.genre-pills,
.tag-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags span,
.detail-meta span,
.detail-meta a,
.genre-pills span,
.tag-pill {
  padding: 6px 12px;
  border-radius: 999px;
  color: #065f46;
  background: #d1fae5;
  font-size: 13px;
  font-weight: 800;
}

.hero-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
}

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

.primary-button,
.ghost-button,
.ghost-dark-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: #ffffff;
  background: #10b981;
  box-shadow: 0 16px 32px rgba(16, 185, 129, 0.30);
}

.primary-button:hover,
.ghost-button:hover,
.ghost-dark-button:hover {
  transform: translateY(-2px) scale(1.02);
}

.ghost-button {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.26);
}

.ghost-dark-button {
  color: #064e3b;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.hero-search-panel {
  position: absolute;
  left: 50%;
  bottom: 34px;
  z-index: 4;
  width: min(720px, calc(100% - 32px));
  transform: translateX(-50%);
  padding: 16px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.22);
}

.hero-search-panel label {
  display: block;
  margin: 0 0 8px 6px;
  color: #ffffff;
  font-weight: 900;
}

.search-box {
  display: flex;
  gap: 10px;
  padding: 8px;
  border-radius: 18px;
  background: #ffffff;
}

.search-box input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 12px;
  color: var(--ink);
  background: transparent;
}

.search-box button {
  border: 0;
  border-radius: 14px;
  padding: 0 18px;
  color: #ffffff;
  background: #059669;
  font-weight: 900;
  cursor: pointer;
}

.hero-dots {
  position: absolute;
  right: max(24px, calc((100% - 1180px) / 2));
  bottom: 58px;
  z-index: 5;
  display: flex;
  gap: 8px;
}

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

.hero-dots button.active {
  width: 28px;
  background: #10b981;
}

.feature-strip {
  width: min(1180px, calc(100% - 32px));
  margin: -26px auto 0;
  position: relative;
  z-index: 8;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.feature-strip div {
  min-height: 112px;
  padding: 24px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow);
  text-align: center;
}

.feature-strip strong {
  display: block;
  color: #059669;
  font-size: 34px;
  line-height: 1;
}

.feature-strip span {
  display: block;
  color: var(--muted);
  margin-top: 10px;
}

.section {
  padding: 70px 0;
}

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

.section-heading h2 {
  margin: 0 0 5px;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
}

.heading-icon {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  color: #ffffff;
  background: linear-gradient(135deg, #10b981, #06b6d4);
  box-shadow: 0 14px 30px rgba(6, 182, 212, 0.22);
}

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

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

.poster-card,
.movie-wide,
.ranking-row,
.category-card-large,
.category-tile,
.detail-card,
.content-card,
.side-card {
  background: var(--card);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.poster-card {
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.poster-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #064e3b, #155e75);
}

.poster-wrap img,
.wide-cover img,
.category-tile img,
.detail-header img,
.ranking-row img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.32s ease;
}

.poster-card:hover img,
.movie-wide:hover img,
.category-tile:hover img,
.ranking-row:hover img {
  transform: scale(1.08);
}

.poster-type {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(2, 6, 23, 0.72);
  font-size: 12px;
  font-weight: 800;
}

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(16, 185, 129, 0.92);
  transform: translate(-50%, -50%) scale(0.86);
  opacity: 0;
  transition: opacity 0.24s ease, transform 0.24s ease;
}

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

.poster-body {
  padding: 14px;
}

.poster-body h3,
.wide-info h3,
.ranking-row h3 {
  margin: 0 0 6px;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 900;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.poster-body p,
.wide-info p,
.ranking-row p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-meta {
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.movie-meta span + span::before {
  content: "•";
  margin-right: 8px;
  color: #cbd5e1;
}

.dark-band {
  color: #ffffff;
  background: linear-gradient(90deg, #064e3b 0%, #0f766e 45%, #155e75 100%);
}

.dark-band .section-heading p {
  color: #a7f3d0;
}

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

.category-tile {
  position: relative;
  min-height: 210px;
  padding: 24px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  isolation: isolate;
  transition: transform 0.22s ease, background 0.22s ease;
}

.category-tile:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.18);
}

.category-tile img {
  position: absolute;
  inset: auto 0 0 auto;
  width: 58%;
  height: 70%;
  opacity: 0.23;
  z-index: -1;
}

.category-icon {
  display: block;
  font-size: 36px;
  margin-bottom: 18px;
}

.category-tile strong {
  display: block;
  font-size: 20px;
}

.category-tile small {
  display: block;
  color: #d1fae5;
  margin-top: 8px;
}

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

.movie-wide {
  display: grid;
  grid-template-columns: 168px 1fr;
  min-height: 224px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-wide:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.wide-cover {
  overflow: hidden;
}

.wide-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.rank-badge,
.ranking-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #ef4444);
  font-weight: 900;
}

.rank-badge {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  margin-bottom: 12px;
}

.soft-band {
  background: #f3f4f6;
}

.center-action {
  text-align: center;
  margin-top: 34px;
}

.filter-bar,
.category-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.filter-chip,
.category-link-chip {
  border: 0;
  border-radius: 999px;
  padding: 10px 15px;
  color: #065f46;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
  font-weight: 900;
  cursor: pointer;
}

.filter-chip.active,
.category-link-chip:hover {
  color: #ffffff;
  background: #059669;
}

.movie-card.hidden-by-filter,
.movie-card.hidden-by-search {
  display: none;
}

.page-hero {
  padding: 72px 0;
  color: #ffffff;
  background: radial-gradient(circle at top left, rgba(16, 185, 129, 0.35), transparent 32%), linear-gradient(90deg, #064e3b 0%, #0f766e 55%, #155e75 100%);
}

.page-hero h1 {
  margin: 18px 0 12px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.1;
}

.page-hero p {
  max-width: 740px;
  color: #d1fae5;
  font-size: 18px;
}

.page-search {
  max-width: 640px;
  margin-top: 28px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 18px;
}

.breadcrumb a:hover {
  color: #ffffff;
}

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

.category-card-large {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  min-height: 260px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card-large:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.category-collage {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 4px;
  padding: 4px;
  background: #064e3b;
}

.category-collage img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  border-radius: 10px;
}

.category-large-body {
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.category-large-body span {
  font-size: 38px;
}

.category-large-body h2 {
  margin: 14px 0 8px;
  font-size: 28px;
}

.category-large-body p {
  margin: 0;
  color: var(--muted);
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 58px 86px 1fr;
  align-items: center;
  gap: 18px;
  padding: 12px 18px 12px 12px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.ranking-row:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow);
}

.ranking-number {
  width: 42px;
  height: 42px;
  border-radius: 16px;
}

.ranking-row img {
  width: 86px;
  height: 116px;
  border-radius: 14px;
  background: #064e3b;
}

.player-section {
  padding: 24px 0 34px;
  background: #020617;
}

.video-breadcrumb {
  color: rgba(255, 255, 255, 0.68);
}

.video-player {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 22px;
  background: #000000;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.58));
  cursor: pointer;
}

.video-player.is-playing .play-overlay {
  opacity: 0;
  pointer-events: none;
}

.play-overlay span {
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #064e3b;
  background: #ffffff;
  font-size: 34px;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.25);
}

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

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: start;
}

.detail-card,
.content-card,
.side-card {
  padding: 26px;
  margin-bottom: 24px;
}

.detail-header {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 24px;
  align-items: start;
}

.detail-header img {
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  background: #064e3b;
}

.detail-header h1 {
  margin: 0 0 10px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.12;
}

.detail-header p {
  color: var(--muted);
  font-size: 17px;
}

.detail-meta {
  margin: 20px 0 14px;
}

.content-card h2,
.side-card h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.content-card p {
  margin: 0;
  color: #374151;
  font-size: 16px;
}

.side-card {
  position: sticky;
  top: 100px;
}

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

.side-list .poster-card {
  display: grid;
  grid-template-columns: 92px 1fr;
  box-shadow: none;
  border: 1px solid var(--line);
}

.side-list .poster-wrap {
  aspect-ratio: 3 / 4;
}

.side-list .poster-body {
  padding: 12px;
}

.side-list .poster-body p {
  display: none;
}

.site-footer {
  padding: 56px 0 0;
  color: #d1d5db;
  background: #111827;
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  font-size: 22px;
}

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

.site-footer p,
.site-footer ul {
  margin: 0;
  padding: 0;
  color: #9ca3af;
  list-style: none;
}

.site-footer li + li {
  margin-top: 8px;
}

.site-footer a:hover {
  color: #34d399;
}

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

@media (max-width: 1120px) {
  .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;
  }

  .side-card {
    position: static;
  }
}

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

  .mobile-menu-button {
    display: flex;
  }

  .hero {
    height: 700px;
  }

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

  .hero-search-panel {
    bottom: 58px;
  }

  .hero-dots {
    right: 24px;
    bottom: 26px;
  }

  .feature-strip {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

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

@media (max-width: 620px) {
  .nav-shell {
    min-height: 68px;
  }

  .brand-text strong {
    font-size: 20px;
  }

  .brand-text small {
    display: none;
  }

  .hero {
    height: 660px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero p {
    font-size: 16px;
  }

  .hero-actions,
  .search-box {
    flex-direction: column;
  }

  .search-box button {
    min-height: 44px;
  }

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

  .section {
    padding: 46px 0;
  }

  .movie-wide {
    grid-template-columns: 118px 1fr;
    min-height: 170px;
  }

  .ranking-row {
    grid-template-columns: 42px 70px 1fr;
    gap: 12px;
  }

  .ranking-row img {
    width: 70px;
    height: 96px;
  }

  .detail-card,
  .content-card,
  .side-card {
    padding: 18px;
  }

  .detail-header {
    grid-template-columns: 118px 1fr;
    gap: 16px;
  }

  .detail-header h1 {
    font-size: 26px;
  }

  .detail-header p {
    font-size: 14px;
  }
}

@media (max-width: 430px) {
  .poster-grid,
  .compact-grid,
  .category-grid,
  .feature-strip {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .poster-body h3 {
    font-size: 14px;
  }

  .poster-body p {
    display: none;
  }
}
