* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #f8fafc;
  color: #0f172a;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(4, 120, 87, 0.96), rgba(15, 118, 110, 0.96));
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(18px);
}

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

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

.logo {
  font-size: 22px;
  flex: 0 0 auto;
}

.logo-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #064e3b;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(6, 78, 59, 0.25);
}

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

.main-nav a,
.mobile-panel a {
  padding: 10px 14px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.86);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active,
.mobile-panel a:hover,
.mobile-panel a.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
}

.quick-search,
.mobile-search,
.search-page-form {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.quick-search input,
.mobile-search input,
.search-page-form input {
  width: 210px;
  border: 0;
  outline: 0;
  color: #ffffff;
  background: transparent;
  padding: 9px 10px;
}

.quick-search input::placeholder,
.mobile-search input::placeholder,
.search-page-form input::placeholder {
  color: rgba(255, 255, 255, 0.76);
}

.quick-search button,
.mobile-search button,
.search-page-form button {
  border: 0;
  cursor: pointer;
  padding: 9px 14px;
  border-radius: 999px;
  color: #065f46;
  background: #ffffff;
  font-weight: 700;
}

.menu-toggle {
  display: none;
  border: 0;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  font-size: 22px;
}

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

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

.mobile-panel nav {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

main {
  overflow: hidden;
}

.hero-shell {
  position: relative;
  min-height: 640px;
  color: #ffffff;
  background: #022c22;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 420px);
  align-items: center;
  gap: 48px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.65s ease, transform 0.65s ease;
  transform: translateY(18px);
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.hero-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.26;
  pointer-events: none;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(3px) saturate(1.12);
}

.hero-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 78% 28%, rgba(16, 185, 129, 0.42), transparent 30%),
    linear-gradient(135deg, rgba(2, 44, 34, 0.94), rgba(15, 118, 110, 0.74) 52%, rgba(6, 78, 59, 0.92));
}

.hero-content,
.hero-cover,
.hero-arrow,
.hero-dots {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 720px;
}

.hero-kicker,
.detail-kicker,
.page-hero span {
  display: inline-flex;
  align-items: center;
  margin-bottom: 16px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #d1fae5;
  background: rgba(255, 255, 255, 0.14);
  font-weight: 700;
}

.hero-content h1 {
  margin: 0 0 18px;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.hero-content p {
  max-width: 650px;
  color: #d1fae5;
  font-size: 19px;
  line-height: 1.82;
}

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

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

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

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

.primary-btn {
  color: #064e3b;
  background: #ffffff;
  box-shadow: 0 20px 42px rgba(2, 44, 34, 0.28);
}

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

.primary-btn:hover,
.ghost-btn:hover,
.section-more:hover,
.movie-card:hover,
.category-tile:hover,
.category-panel:hover {
  transform: translateY(-3px);
}

.hero-cover {
  display: block;
  border-radius: 32px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 36px 80px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(14px);
}

.hero-cover .poster-frame {
  aspect-ratio: 3 / 4;
  border-radius: 24px;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  width: 46px;
  height: 46px;
  border: 0;
  cursor: pointer;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  font-size: 34px;
}

.hero-prev {
  left: 20px;
}

.hero-next {
  right: 20px;
}

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

.hero-dots button {
  width: 11px;
  height: 11px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.45);
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dots button.active {
  width: 32px;
  background: #ffffff;
}

.content-section,
.detail-text,
.player-section,
.breadcrumb,
.detail-hero,
.page-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.content-section {
  padding: 72px 0 0;
}

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

.section-head h2 {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: clamp(26px, 4vw, 40px);
  letter-spacing: -0.03em;
}

.section-head p {
  margin: 0;
  color: #64748b;
  line-height: 1.7;
}

.section-more {
  color: #ffffff;
  background: #047857;
  white-space: nowrap;
}

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

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

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

.movie-card,
.category-tile,
.category-panel,
.page-hero-card,
.detail-poster {
  position: relative;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover,
.category-tile:hover,
.category-panel:hover {
  box-shadow: 0 28px 58px rgba(15, 23, 42, 0.13);
}

.movie-link {
  display: block;
  height: 100%;
}

.poster-frame {
  position: relative;
  aspect-ratio: 2 / 3;
  background:
    radial-gradient(circle at 30% 20%, rgba(110, 231, 183, 0.8), transparent 28%),
    linear-gradient(135deg, #064e3b, #0f766e 55%, #022c22);
  overflow: hidden;
}

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

.movie-body {
  padding: 16px;
}

.movie-meta-line,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.movie-card h3 {
  margin: 10px 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

.movie-card p {
  min-height: 48px;
  margin: 0 0 12px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.7;
}

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 4;
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(239, 68, 68, 0.3);
}

.category-tile {
  padding: 24px;
  min-height: 190px;
  background: linear-gradient(145deg, #ffffff, #ecfdf5);
}

.category-icon,
.category-panel span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: 16px;
  color: #047857;
  background: #d1fae5;
  font-size: 22px;
  font-style: normal;
}

.category-tile strong,
.category-panel h2 {
  display: block;
  margin-bottom: 8px;
  color: #0f172a;
  font-size: 20px;
}

.category-tile small,
.category-panel p {
  display: block;
  color: #64748b;
  line-height: 1.7;
}

.category-tile em,
.category-panel strong {
  display: block;
  margin-top: 18px;
  color: #047857;
  font-style: normal;
  font-weight: 800;
}

.page-hero,
.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
  gap: 36px;
  align-items: center;
  margin-top: 36px;
  padding: 48px;
  border-radius: 32px;
  color: #ffffff;
  background:
    radial-gradient(circle at 78% 24%, rgba(45, 212, 191, 0.42), transparent 30%),
    linear-gradient(135deg, #064e3b, #0f766e 58%, #022c22);
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.18);
}

.small-hero {
  grid-template-columns: 1fr;
}

.page-hero h1,
.detail-info h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.page-hero p,
.detail-one-line {
  max-width: 760px;
  color: #d1fae5;
  font-size: 18px;
  line-height: 1.8;
}

.page-hero-card {
  display: block;
  padding: 10px;
  background: rgba(255, 255, 255, 0.16);
}

.page-hero-card .poster-frame {
  border-radius: 20px;
}

.page-hero-card strong {
  display: block;
  padding: 14px 8px 6px;
}

.category-panel {
  padding: 28px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 28px;
  color: #64748b;
  font-size: 14px;
}

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

.detail-hero {
  grid-template-columns: minmax(240px, 330px) minmax(0, 1fr);
}

.detail-poster {
  padding: 12px;
  background: rgba(255, 255, 255, 0.14);
}

.detail-poster .poster-frame {
  border-radius: 22px;
}

.detail-info .primary-btn {
  margin-top: 24px;
}

.detail-meta {
  margin: 18px 0;
}

.detail-meta span {
  padding: 8px 11px;
  border-radius: 999px;
  color: #d1fae5;
  background: rgba(255, 255, 255, 0.14);
}

.large-tags span {
  color: #064e3b;
}

.player-section,
.detail-text {
  padding-top: 56px;
}

.video-player {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  background: #020617;
  box-shadow: 0 30px 80px rgba(2, 6, 23, 0.26);
}

.video-player video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  cursor: pointer;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(2, 6, 23, 0.62), rgba(6, 95, 70, 0.42));
}

.play-overlay span {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #064e3b;
  background: #ffffff;
  font-size: 30px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.28);
}

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

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

.detail-text {
  color: #334155;
  font-size: 18px;
  line-height: 1.9;
}

.detail-text h2 {
  color: #0f172a;
  font-size: 28px;
}

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

.search-page-form {
  width: min(560px, 100%);
  margin-top: 24px;
  background: rgba(255, 255, 255, 0.18);
}

.search-page-form input {
  flex: 1;
  width: auto;
}

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

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

.footer-logo {
  color: #ffffff;
  font-size: 22px;
}

.site-footer p {
  line-height: 1.8;
}

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

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-links a {
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

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

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

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

  .hero-slide,
  .page-hero,
  .detail-hero {
    grid-template-columns: 1fr;
  }

  .hero-shell {
    min-height: 780px;
  }

  .hero-cover {
    max-width: 360px;
  }

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

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

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

  .logo {
    font-size: 18px;
  }

  .hero-shell {
    min-height: 760px;
  }

  .hero-slide {
    gap: 24px;
    padding: 34px 0 70px;
  }

  .hero-content p,
  .page-hero p,
  .detail-one-line {
    font-size: 16px;
  }

  .hero-arrow {
    display: none;
  }

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

  .movie-grid,
  .rank-grid,
  .compact-grid,
  .category-grid,
  .category-panel-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .page-hero,
  .detail-hero {
    padding: 28px;
    border-radius: 26px;
  }

  .content-section {
    padding-top: 50px;
  }
}
