:root {
  --emerald: #10b981;
  --emerald-dark: #059669;
  --teal: #0d9488;
  --rose: #e11d48;
  --gold: #f59e0b;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #f9fafb;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 10px rgba(15, 23, 42, 0.08);
}

.header-inner {
  height: 64px;
  display: flex;
  align-items: center;
  gap: 22px;
}

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

.brand-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--emerald), var(--teal));
  box-shadow: 0 10px 24px rgba(16, 185, 129, 0.28);
  transition: transform 0.2s ease;
}

.brand:hover .brand-icon {
  transform: scale(1.05);
}

.brand-text {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, var(--emerald-dark), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

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

.nav-link,
.mobile-link {
  color: #374151;
  font-weight: 650;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: var(--emerald-dark);
}

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

.header-search input,
.big-search input,
.filter-bar input,
.filter-bar select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  padding: 11px 14px;
  outline: none;
  color: #111827;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.big-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: var(--emerald);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
}

.header-search button,
.big-search button,
.btn.primary {
  border: 0;
  border-radius: 12px;
  color: #ffffff;
  background: var(--emerald);
  font-weight: 800;
  padding: 11px 18px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.header-search button:hover,
.big-search button:hover,
.btn.primary:hover {
  background: var(--emerald-dark);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #f3f4f6;
  color: #374151;
}

.mobile-nav {
  display: none;
  padding: 0 16px 16px;
  border-top: 1px solid var(--line);
}

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

.mobile-link {
  padding: 10px 4px;
}

.hero {
  position: relative;
  height: 500px;
  overflow: hidden;
  background: #000000;
}

@media (min-width: 768px) {
  .hero {
    height: 600px;
  }
}

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

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

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

.hero-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.08));
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
}

.hero-copy {
  width: min(680px, 100%);
  color: #ffffff;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  color: var(--emerald);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hero-copy .eyebrow {
  color: #6ee7b7;
  margin-bottom: 16px;
}

.hero-copy h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.06;
  letter-spacing: -0.05em;
}

.hero-copy p {
  margin: 0 0 22px;
  color: #e5e7eb;
  font-size: 18px;
  max-width: 620px;
}

.hero-tags,
.tag-row,
.card-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.tag,
.hero-tags span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  color: #047857;
  background: #ecfdf5;
  font-size: 13px;
  font-weight: 750;
}

.hero-tags .tag {
  color: #d1fae5;
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(167, 243, 208, 0.28);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 12px;
  padding: 12px 24px;
  font-weight: 800;
}

.btn.ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(10px);
}

.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.22);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.48);
  color: #ffffff;
  font-size: 36px;
  line-height: 1;
  transform: translateY(-50%);
  cursor: pointer;
  z-index: 5;
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.7);
}

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

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

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

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
}

.hero-dot.active {
  width: 28px;
  background: var(--emerald);
}

.quick-search-panel {
  transform: translateY(-32px);
  position: relative;
  z-index: 10;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(229, 231, 235, 0.8);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 22px;
}

.big-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

.category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.category-chips a {
  border-radius: 999px;
  padding: 8px 13px;
  color: #047857;
  background: #ecfdf5;
  font-size: 14px;
  font-weight: 750;
}

.category-chips a:hover {
  color: #ffffff;
  background: var(--emerald);
}

.section-block {
  margin-top: 48px;
  margin-bottom: 56px;
}

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

.section-title h2 {
  margin: 3px 0 0;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.section-title a,
.category-heading a {
  color: var(--emerald-dark);
  font-weight: 800;
}

.section-kicker.rose {
  color: var(--rose);
}

.section-kicker.gold {
  color: var(--gold);
}

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 50px rgba(15, 23, 42, 0.18);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #111827;
}

.movie-card:not(.compact) .poster-link {
  aspect-ratio: 16 / 10;
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 32%, rgba(0, 0, 0, 0.78));
  opacity: 0.85;
}

.poster-play {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(16, 185, 129, 0.95);
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.28s ease;
}

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

.card-body {
  padding: 16px;
}

.compact .card-body {
  padding: 13px;
}

.card-body h3 {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.35;
}

.compact .card-body h3 {
  font-size: 15px;
}

.card-body h3 a:hover {
  color: var(--emerald-dark);
}

.card-body p {
  display: -webkit-box;
  min-height: 48px;
  margin: 0 0 12px;
  overflow: hidden;
  color: #4b5563;
  font-size: 14px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.compact .card-body p {
  display: none;
}

.card-meta,
.detail-meta {
  gap: 8px;
  color: #6b7280;
  font-size: 13px;
}

.card-meta span,
.detail-meta span {
  border-radius: 999px;
  background: #f3f4f6;
  padding: 4px 8px;
}

.category-feature {
  border-radius: 28px;
  background: linear-gradient(135deg, #ecfdf5, #f0fdfa);
  padding: 32px;
}

.category-row + .category-row {
  margin-top: 34px;
}

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

.category-heading h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 20px;
}

.category-heading h3 span {
  width: 5px;
  height: 24px;
  border-radius: 999px;
  background: var(--emerald);
}

.page-main {
  min-height: 60vh;
}

.page-hero {
  color: #ffffff;
  background: linear-gradient(135deg, var(--emerald), var(--teal));
}

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

.compact-hero h1 {
  margin: 8px 0 12px;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.045em;
}

.compact-hero p {
  max-width: 760px;
  margin: 0;
  color: #ecfdf5;
  font-size: 18px;
}

.filter-bar {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 24px;
}

.filter-bar input {
  max-width: 420px;
}

.filter-bar select {
  width: 220px;
}

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

.category-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.category-card-main {
  display: block;
  padding: 24px;
  background: linear-gradient(135deg, #ecfdf5, #ffffff);
}

.category-card-main span {
  color: var(--emerald-dark);
  font-weight: 800;
}

.category-card-main h2 {
  margin: 8px 0;
  font-size: 26px;
}

.category-card-main p {
  margin: 0;
  color: #4b5563;
}

.category-samples {
  display: grid;
  gap: 8px;
  padding: 18px 24px 24px;
}

.category-samples a {
  color: #374151;
  font-weight: 650;
}

.category-samples a:hover {
  color: var(--emerald-dark);
}

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

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

.rank-item {
  display: grid;
  grid-template-columns: 48px 82px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  border-radius: 18px;
  background: #ffffff;
  padding: 14px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.rank-num {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: var(--emerald);
  font-weight: 900;
}

.rank-thumb {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 12px;
  background: #111827;
}

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

.rank-info h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.rank-info h3 a:hover {
  color: var(--emerald-dark);
}

.rank-info p {
  display: -webkit-box;
  margin: 0 0 8px;
  overflow: hidden;
  color: #4b5563;
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.detail-main {
  padding-top: 28px;
}

.detail-layout {
  display: grid;
  gap: 24px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #6b7280;
  font-size: 14px;
}

.breadcrumb a:hover {
  color: var(--emerald-dark);
}

.player-card {
  overflow: hidden;
  border-radius: 24px;
  background: #000000;
  box-shadow: var(--shadow);
}

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

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

.video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.2), rgba(0, 0, 0, 0.48));
  cursor: pointer;
  z-index: 2;
}

.video-overlay.hidden {
  display: none;
}

.play-circle {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: var(--emerald);
  font-size: 28px;
  box-shadow: 0 18px 35px rgba(16, 185, 129, 0.32);
}

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

.detail-poster {
  overflow: hidden;
  border-radius: 22px;
  background: #111827;
  box-shadow: var(--shadow);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.detail-content {
  border-radius: 22px;
  background: #ffffff;
  padding: 30px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.detail-content h1 {
  margin: 8px 0 14px;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.05em;
}

.lead {
  margin: 0 0 18px;
  color: #374151;
  font-size: 18px;
}

.detail-meta {
  margin-bottom: 16px;
}

.tag-row {
  margin-bottom: 22px;
}

.text-panel {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  margin-top: 22px;
}

.text-panel h2 {
  margin: 0 0 10px;
  font-size: 24px;
}

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

.site-footer {
  margin-top: 64px;
  background: linear-gradient(135deg, #111827, #1f2937 55%, #111827);
  color: #ffffff;
}

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

.site-footer h3 {
  margin: 0 0 14px;
  color: #6ee7b7;
  font-size: 18px;
}

.site-footer p,
.footer-list {
  margin: 0;
  padding: 0;
  color: #d1d5db;
  list-style: none;
  font-size: 14px;
}

.footer-list {
  display: grid;
  gap: 9px;
}

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

.muted-list li {
  color: #d1d5db;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 18px 16px 24px;
  color: #9ca3af;
  text-align: center;
  font-size: 14px;
}

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

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

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

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

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

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

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

  .menu-toggle {
    display: grid;
    place-items: center;
    margin-left: auto;
  }

  .hero {
    height: 560px;
  }

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

  .hero-arrow {
    display: none;
  }

  .quick-search-panel {
    transform: none;
    border-radius: 0;
    width: 100%;
  }

  .big-search,
  .filter-bar,
  .main-search-bar {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .filter-bar input,
  .filter-bar select {
    width: 100%;
    max-width: none;
  }

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

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

  .movie-card:not(.compact) .poster-link {
    aspect-ratio: 3 / 4;
  }

  .category-feature {
    border-radius: 0;
    padding: 24px 16px;
  }

  .category-overview,
  .rank-list.preview,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .rank-item {
    grid-template-columns: 42px 70px minmax(0, 1fr);
    padding: 12px;
  }

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

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

  .detail-content {
    padding: 22px;
  }
}

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

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

  .movie-grid,
  .small-grid,
  .feature-grid,
  .archive-grid {
    grid-template-columns: 1fr 1fr;
  }

  .card-body {
    padding: 12px;
  }

  .card-body h3 {
    font-size: 15px;
  }

  .card-meta span:nth-child(3) {
    display: none;
  }
}
