
:root {
  --green: #059669;
  --teal: #0d9488;
  --cyan: #0891b2;
  --dark: #0f172a;
  --muted: #64748b;
  --soft: #f0fdfa;
  --line: #dbeafe;
  --card: #ffffff;
  --shadow: 0 18px 48px rgba(15, 23, 42, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #f8fafc;
  color: var(--dark);
  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 {
  display: block;
  max-width: 100%;
}

button,
input,
select {
  font: inherit;
}

[hidden] {
  display: none !important;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #ffffff;
  background: linear-gradient(90deg, var(--green), var(--teal));
  box-shadow: 0 14px 36px rgba(13, 148, 136, 0.22);
}

.nav-wrap {
  display: flex;
  align-items: center;
  min-height: 68px;
  gap: 24px;
}

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

.brand-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  color: var(--green);
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.15);
}

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

.site-nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
}

.nav-link {
  opacity: 0.92;
  font-weight: 700;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #dcfce7;
  opacity: 1;
}

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

.header-search input,
.mobile-search input,
.wide-search input,
.filter-panel input,
.filter-panel select {
  border: 1px solid rgba(148, 163, 184, 0.35);
  outline: none;
  border-radius: 999px;
  background: #ffffff;
  color: #111827;
}

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

.header-search button,
.mobile-search button,
.wide-search button {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  color: var(--green);
  background: #ffffff;
  font-weight: 800;
  cursor: pointer;
}

.menu-button {
  display: none;
  margin-left: auto;
  border: 0;
  color: #ffffff;
  background: transparent;
  font-size: 28px;
}

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

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

.mobile-search {
  margin-bottom: 12px;
}

.mobile-search input {
  flex: 1;
  padding: 11px 16px;
}

.mobile-link {
  display: block;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-weight: 700;
}

.hero-section {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, var(--green), var(--teal) 48%, var(--cyan));
}

.hero-section::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 70px;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0), #f8fafc);
  pointer-events: none;
}

.hero-stage {
  width: min(1180px, calc(100% - 32px));
  min-height: 590px;
  margin: 0 auto;
  position: relative;
}

.hero-slide {
  display: none;
  min-height: 590px;
  align-items: center;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 52px;
  padding: 64px 0 88px;
}

.hero-slide.is-active {
  display: grid;
}

.hero-image {
  position: relative;
  overflow: hidden;
  min-height: 430px;
  border-radius: 34px;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.34);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(15, 23, 42, 0.16));
}

.hero-image img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
}

.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(15, 23, 42, 0.52));
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-section .hero-kicker {
  color: #bbf7d0;
}

.hero-content h1 {
  margin: 0 0 20px;
  font-size: clamp(42px, 6vw, 74px);
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.hero-content p {
  max-width: 620px;
  margin: 0 0 24px;
  color: #ecfeff;
  font-size: 20px;
}

.hero-meta,
.detail-meta,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.hero-meta span,
.detail-meta span,
.tag-row a {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 13px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.hero-actions,
.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

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

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

.btn-primary {
  color: var(--green);
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.18);
}

.btn-ghost {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.12);
}

.hero-nav {
  position: absolute;
  left: 50%;
  bottom: 34px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 16px;
  transform: translateX(-50%);
}

.hero-arrow,
.hero-dot {
  border: 0;
  cursor: pointer;
}

.hero-arrow {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.28);
  font-size: 28px;
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

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

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

.intro-strip {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 470px);
  gap: 32px;
  align-items: center;
  margin-top: 42px;
  padding: 32px;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.intro-strip h2,
.section-heading h2,
.page-hero h1,
.detail-copy h1,
.article-section h2 {
  margin: 0;
  color: #111827;
  font-weight: 950;
  letter-spacing: -0.03em;
}

.intro-strip h2,
.section-heading h2 {
  font-size: clamp(28px, 4vw, 42px);
}

.intro-strip p {
  margin: 0;
  color: var(--muted);
}

.wide-search input {
  flex: 1;
  padding: 14px 18px;
}

.wide-search button {
  color: #ffffff;
  background: linear-gradient(90deg, var(--green), var(--teal));
}

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

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

.compact-heading {
  margin-bottom: 20px;
}

.text-link {
  color: var(--green);
  font-weight: 900;
}

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

.category-chip,
.category-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 138px;
  border: 1px solid rgba(13, 148, 136, 0.12);
  border-radius: 22px;
  padding: 20px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-chip:hover,
.category-panel:hover,
.movie-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.14);
}

.category-chip strong,
.category-panel span {
  color: #111827;
  font-size: 20px;
  font-weight: 950;
}

.category-chip span,
.category-panel strong,
.category-panel em {
  color: var(--muted);
  font-style: normal;
  font-size: 14px;
}

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

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

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

.movie-list {
  display: grid;
  gap: 16px;
}

.movie-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border-radius: 24px;
  color: #111827;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.09);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.compact-card {
  border-radius: 18px;
}

.poster-wrap {
  position: relative;
  overflow: hidden;
  display: block;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #d1fae5, #ccfbf1);
}

.featured-grid .poster-wrap {
  aspect-ratio: 16 / 10;
}

.compact-card .poster-wrap {
  aspect-ratio: 16 / 11;
}

.poster-wrap img,
.detail-poster img,
.player-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(15, 23, 42, 0.58));
}

.quality-badge,
.rank-badge,
.detail-poster span {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 5px 10px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--green), var(--teal));
  font-size: 12px;
  font-weight: 950;
}

.quality-badge {
  top: 10px;
  right: 10px;
}

.rank-badge {
  top: 10px;
  left: 10px;
  background: linear-gradient(90deg, #f59e0b, #ef4444);
}

.movie-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
}

.movie-info strong {
  display: -webkit-box;
  overflow: hidden;
  color: #111827;
  font-size: 18px;
  font-weight: 950;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.movie-info em {
  color: var(--green);
  font-style: normal;
  font-size: 13px;
  font-weight: 850;
}

.movie-info span {
  display: -webkit-box;
  overflow: hidden;
  color: #475569;
  font-size: 14px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-info small {
  margin-top: auto;
  color: #94a3b8;
  font-size: 12px;
}

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

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

.page-hero,
.detail-hero {
  color: #ffffff;
  background: linear-gradient(135deg, var(--green), var(--teal) 55%, var(--cyan));
}

.page-hero .container {
  padding: 72px 0;
}

.compact-page-hero .container {
  padding: 58px 0;
}

.page-hero h1 {
  color: #ffffff;
  font-size: clamp(38px, 6vw, 68px);
}

.page-hero p {
  max-width: 760px;
  margin: 16px 0 0;
  color: #ecfeff;
  font-size: 18px;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 16px;
  margin-bottom: 24px;
  padding: 20px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
}

.filter-panel label {
  display: block;
  margin-bottom: 8px;
  color: #334155;
  font-size: 13px;
  font-weight: 900;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  padding: 12px 16px;
}

.empty-result {
  margin: 12px 0 24px;
  padding: 18px 20px;
  border-radius: 18px;
  color: #0f766e;
  background: #ccfbf1;
  font-weight: 800;
}

.detail-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 42px;
  align-items: center;
  padding: 58px 0;
}

.detail-poster {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.3);
}

.detail-poster span {
  top: 16px;
  right: 16px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: #d1fae5;
  font-weight: 800;
}

.detail-copy h1 {
  max-width: 820px;
  color: #ffffff;
  font-size: clamp(34px, 5vw, 62px);
}

.detail-copy p {
  max-width: 820px;
  margin: 18px 0 22px;
  color: #ecfeff;
  font-size: 19px;
}

.tag-row a {
  color: var(--green);
  background: #ffffff;
}

.player-section {
  padding: 56px 0;
}

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

.movie-video,
.player-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.movie-video {
  background: #020617;
}

.player-cover {
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: #020617;
}

.player-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0.78));
}

.play-button {
  position: relative;
  z-index: 2;
  display: grid;
  width: 84px;
  height: 84px;
  place-items: center;
  border-radius: 999px;
  color: var(--green);
  background: #ffffff;
  font-size: 36px;
  box-shadow: 0 22px 52px rgba(15, 23, 42, 0.32);
}

.article-section {
  padding-bottom: 60px;
}

.detail-article {
  max-width: 920px;
  margin: 0 auto;
  padding: 34px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.detail-article h2 {
  margin-top: 30px;
  font-size: 28px;
}

.detail-article h2:first-child {
  margin-top: 0;
}

.detail-article p {
  margin: 14px 0 0;
  color: #334155;
  font-size: 17px;
}

.detail-article dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0 0;
}

.detail-article dl div {
  border-radius: 16px;
  padding: 14px;
  background: #f8fafc;
}

.detail-article dt {
  color: #64748b;
  font-size: 13px;
  font-weight: 900;
}

.detail-article dd {
  margin: 4px 0 0;
  color: #111827;
  font-weight: 900;
}

.site-footer {
  color: #cbd5e1;
  background: #0f172a;
}

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

.footer-brand {
  margin-bottom: 14px;
  color: #ffffff;
  font-size: 24px;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 17px;
}

.site-footer p {
  margin: 0;
  color: #94a3b8;
}

.site-footer a:not(.footer-brand) {
  display: block;
  margin: 7px 0;
  color: #cbd5e1;
}

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

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

  .menu-button {
    display: block;
  }

  .hero-slide,
  .intro-strip,
  .split-layout,
  .detail-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-content h1 {
    font-size: clamp(36px, 9vw, 56px);
  }

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

  .filter-panel {
    grid-template-columns: 1fr;
  }

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

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

  .nav-wrap {
    min-height: 62px;
  }

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

  .hero-stage,
  .hero-slide {
    min-height: auto;
  }

  .hero-slide {
    gap: 28px;
    padding: 34px 0 78px;
  }

  .hero-image,
  .hero-image img {
    min-height: 280px;
  }

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

  .intro-strip,
  .detail-article {
    padding: 22px;
  }

  .section-block,
  .player-section {
    padding: 42px 0;
  }

  .category-grid,
  .category-panels,
  .movie-grid,
  .small-grid,
  .featured-grid,
  .detail-article dl {
    grid-template-columns: 1fr;
  }

  .wide-search {
    align-items: stretch;
    flex-direction: column;
  }

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

  .page-hero .container,
  .detail-layout {
    padding: 42px 0;
  }

  .video-shell {
    border-radius: 18px;
  }

  .play-button {
    width: 64px;
    height: 64px;
    font-size: 28px;
  }
}
