:root {
  color-scheme: light;
  --site-bg: #f8f7f3;
  --site-card: #ffffff;
  --site-ink: #1f2937;
  --site-muted: #64748b;
  --site-line: rgba(15, 118, 110, 0.16);
  --site-teal: #0f766e;
  --site-emerald: #059669;
  --site-deep: #064e3b;
  --site-warm: #f59e0b;
  --site-shadow: 0 20px 55px rgba(15, 23, 42, 0.12);
  --site-soft-shadow: 0 12px 34px rgba(15, 23, 42, 0.10);
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: var(--site-bg);
  color: var(--site-ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: linear-gradient(90deg, rgba(6, 78, 59, 0.96), rgba(15, 118, 110, 0.96));
  box-shadow: 0 12px 30px rgba(6, 78, 59, 0.18);
  backdrop-filter: blur(14px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

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

.main-nav a,
.mobile-panel a {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
  transition: color 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover,
.mobile-panel a:hover {
  color: #d1fae5;
  transform: translateY(-1px);
}

.search-form {
  position: relative;
  flex: 0 0 260px;
}

.search-form input,
.inline-search input,
.filter-select {
  width: 100%;
  min-height: 42px;
  border-radius: 999px;
  outline: none;
  border: 1px solid rgba(15, 118, 110, 0.18);
  background: rgba(255, 255, 255, 0.92);
  padding: 0 18px;
  color: #0f172a;
  box-shadow: 0 8px 24px rgba(15, 118, 110, 0.08);
}

.site-header .search-form input {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.site-header .search-form input::placeholder {
  color: rgba(209, 250, 229, 0.92);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  cursor: pointer;
}

.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 {
  display: grid;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

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

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

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

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

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

.hero-mask {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 32%, rgba(16, 185, 129, 0.34), transparent 32%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.58) 48%, rgba(2, 6, 23, 0.18)),
    linear-gradient(0deg, rgba(2, 6, 23, 0.92), transparent 52%);
}

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

.hero-copy {
  width: min(760px, calc(100% - 32px));
  margin-left: max(16px, calc((100vw - 1180px) / 2));
  color: #ffffff;
  padding: 24px 0;
}

.hero-kicker,
.section-kicker,
.detail-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #d1fae5;
  background: rgba(5, 150, 105, 0.28);
  border: 1px solid rgba(209, 250, 229, 0.26);
  border-radius: 999px;
  padding: 7px 14px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
}

.hero h1,
.hero h2 {
  margin: 18px 0 16px;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
  text-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
}

.hero p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.8;
}

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

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

.button {
  color: #ffffff;
  background: linear-gradient(90deg, var(--site-emerald), var(--site-teal));
  box-shadow: 0 14px 32px rgba(5, 150, 105, 0.32);
}

.button-soft {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(10px);
}

.button-dark {
  color: #064e3b;
  background: #ecfdf5;
  border: 1px solid rgba(5, 150, 105, 0.16);
}

.button:hover,
.button-soft:hover,
.button-dark:hover {
  transform: translateY(-2px) scale(1.01);
}

.hero-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.48);
  cursor: pointer;
}

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

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

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

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

.hero-dot.is-active {
  width: 28px;
  background: #10b981;
}

.section {
  padding: 56px 0;
}

.section.compact {
  padding: 36px 0;
}

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

.section-title {
  margin: 10px 0 0;
  color: #1f2937;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.section-desc {
  color: var(--site-muted);
  line-height: 1.8;
  max-width: 720px;
}

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

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

.movie-card {
  background: var(--site-card);
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(15, 118, 110, 0.09);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  border-color: rgba(5, 150, 105, 0.26);
  box-shadow: var(--site-shadow);
}

.card-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  display: block;
  background: linear-gradient(135deg, #064e3b, #0f766e);
}

.card-cover.portrait {
  aspect-ratio: 3 / 4;
}

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

.movie-card:hover .card-cover img {
  transform: scale(1.06);
}

.card-badge,
.card-year {
  position: absolute;
  top: 12px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 10px;
  background: rgba(6, 78, 59, 0.82);
  backdrop-filter: blur(10px);
}

.card-badge {
  left: 12px;
}

.card-year {
  right: 12px;
}

.card-play {
  position: absolute;
  inset: auto 14px 14px auto;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #064e3b;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.card-body {
  padding: 16px;
}

.card-title {
  color: #111827;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 850;
  margin: 0 0 8px;
}

.card-meta,
.card-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--site-muted);
  font-size: 13px;
}

.card-summary {
  color: #475569;
  margin: 12px 0 0;
  line-height: 1.65;
  font-size: 14px;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  color: #047857;
  background: #ecfdf5;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 700;
}

.scroller {
  overflow-x: auto;
  padding-bottom: 16px;
  scrollbar-width: thin;
}

.scroller-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 330px);
  gap: 20px;
}

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

.category-card,
.info-panel,
.content-panel,
.search-panel {
  background: #ffffff;
  border: 1px solid rgba(15, 118, 110, 0.10);
  border-radius: 24px;
  box-shadow: var(--site-soft-shadow);
}

.category-card {
  padding: 22px;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
}

.category-card::after {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  right: -54px;
  bottom: -54px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
}

.category-card h2,
.category-card h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 900;
}

.category-card p {
  position: relative;
  z-index: 1;
  color: var(--site-muted);
  line-height: 1.7;
  margin: 0;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 64px 96px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 12px;
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid rgba(15, 118, 110, 0.10);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.rank-num {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, #059669, #0f766e);
  border-radius: 14px;
  font-weight: 900;
}

.rank-cover {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 14px;
  background: #064e3b;
}

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

.rank-title {
  font-weight: 850;
  font-size: 17px;
  color: #111827;
}

.rank-desc {
  color: var(--site-muted);
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.6;
}

.page-hero {
  padding: 54px 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(16, 185, 129, 0.22), transparent 28%),
    linear-gradient(115deg, #064e3b, #0f766e 52%, #0f172a);
  color: #ffffff;
}

.page-hero h1 {
  max-width: 900px;
  margin: 14px 0 14px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.page-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
  line-height: 1.8;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: #64748b;
  font-size: 14px;
  padding: 22px 0;
}

.breadcrumb a {
  color: #047857;
  font-weight: 700;
}

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

.player-unit {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  box-shadow: var(--site-shadow);
  aspect-ratio: 16 / 9;
}

.player-unit video {
  width: 100%;
  height: 100%;
  display: block;
  background: #020617;
  object-fit: contain;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #ffffff;
  background:
    linear-gradient(0deg, rgba(2, 6, 23, 0.62), rgba(2, 6, 23, 0.22)),
    radial-gradient(circle at 50% 46%, rgba(16, 185, 129, 0.36), transparent 32%);
  cursor: pointer;
  text-align: center;
  padding: 24px;
}

.player-overlay[hidden] {
  display: none;
}

.play-circle {
  width: 88px;
  height: 88px;
  margin: 0 auto 14px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #064e3b;
  background: rgba(255, 255, 255, 0.94);
  font-size: 36px;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.28);
}

.info-panel,
.content-panel {
  padding: 26px;
}

.info-panel h1 {
  margin: 14px 0;
  color: #111827;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  font-weight: 900;
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #475569;
  margin: 14px 0;
}

.meta-line span {
  border-radius: 999px;
  background: #f1f5f9;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 700;
}

.content-panel h2 {
  margin: 0 0 14px;
  font-size: 24px;
  font-weight: 900;
}

.content-panel p {
  margin: 0;
  color: #374151;
  line-height: 1.95;
  font-size: 16px;
}

.detail-stack {
  display: grid;
  gap: 24px;
  margin-top: 28px;
}

.search-panel {
  padding: 22px;
  margin-bottom: 26px;
}

.search-tools {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 180px 180px;
  gap: 14px;
}

.empty-state {
  display: none;
  padding: 34px;
  text-align: center;
  color: var(--site-muted);
}

.empty-state.is-visible {
  display: block;
}

.site-footer {
  margin-top: 70px;
  background: #0f172a;
  color: #cbd5e1;
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 28px;
}

.footer-title {
  color: #ffffff;
  font-weight: 900;
  font-size: 20px;
  margin-bottom: 10px;
}

.footer-inner p,
.footer-inner li {
  color: #94a3b8;
  line-height: 1.8;
}

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

.footer-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.copyright {
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  color: #94a3b8;
  text-align: center;
  padding: 18px;
}

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

  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

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

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

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

@media (max-width: 720px) {
  .header-inner {
    min-height: 64px;
  }

  .hero {
    height: 620px;
  }

  .hero-copy {
    width: calc(100% - 32px);
    margin: 0 auto;
  }

  .hero-control {
    display: none;
  }

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

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

  .rank-item {
    grid-template-columns: 48px 1fr;
  }

  .rank-cover,
  .rank-action {
    display: none;
  }

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

@media (max-width: 460px) {
  .movie-grid,
  .movie-grid.tight,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .hero h1,
  .hero h2 {
    font-size: 34px;
  }
}
