:root {
  --emerald: #059669;
  --emerald-dark: #047857;
  --teal: #0f766e;
  --cyan: #0891b2;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--gray-900);
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 45%, #f8fafc 100%);
}

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

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(10px);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-mark {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--emerald), var(--cyan));
  box-shadow: 0 12px 24px rgba(5, 150, 105, 0.28);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link,
.mobile-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  color: var(--gray-700);
  font-size: 15px;
  font-weight: 650;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

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

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--gray-100);
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 99px;
  background: var(--gray-800);
}

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

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

.hero-slider {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: radial-gradient(circle at 20% 20%, rgba(16, 185, 129, 0.45), transparent 34%),
              linear-gradient(135deg, #064e3b 0%, #115e59 50%, #164e63 100%);
}

.hero-track,
.hero-slide {
  position: absolute;
  inset: 0;
}

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

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

.hero-slide img {
  filter: saturate(1.08) contrast(1.05);
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.88) 0%, rgba(15, 23, 42, 0.64) 46%, rgba(15, 23, 42, 0.12) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  height: 100%;
  max-width: 720px;
  flex-direction: column;
  justify-content: center;
  color: #ffffff;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 14px;
  border: 1px solid rgba(209, 250, 229, 0.25);
  border-radius: 999px;
  color: #d1fae5;
  background: rgba(5, 150, 105, 0.22);
  backdrop-filter: blur(8px);
  font-size: 14px;
  font-weight: 700;
}

.hero-content h1,
.inner-hero h1 {
  margin: 0;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.hero-content p {
  max-width: 650px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.75;
}

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

.primary-button,
.secondary-button,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 14px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--emerald), var(--teal));
  box-shadow: 0 16px 28px rgba(5, 150, 105, 0.28);
}

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

.primary-button:hover,
.secondary-button:hover,
.text-link:hover {
  transform: translateY(-2px);
}

.text-link {
  min-height: 40px;
  padding: 0;
  color: var(--emerald);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

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

.hero-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.54);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

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

.search-band {
  position: relative;
  z-index: 10;
  margin-top: -36px;
}

.search-box,
.tool-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.search-box strong {
  display: block;
  margin-bottom: 4px;
  font-size: 20px;
}

.search-box p,
.section-heading p,
.category-card p,
.category-overview p,
.footer-grid p,
.inner-hero p,
.movie-card p,
.ranking-card p,
.detail-main p,
.side-card p {
  color: var(--gray-600);
  line-height: 1.7;
}

input[type="search"] {
  width: min(520px, 100%);
  height: 48px;
  padding: 0 16px;
  border: 1px solid var(--gray-200);
  border-radius: 15px;
  outline: 0;
  background: #ffffff;
  color: var(--gray-900);
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

input[type="search"]:focus {
  border-color: rgba(5, 150, 105, 0.55);
  box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.12);
}

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

.tinted-section {
  background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
}

.emerald-section {
  color: #ffffff;
  background: linear-gradient(135deg, var(--emerald) 0%, var(--teal) 50%, var(--cyan) 100%);
}

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

.section-line {
  display: block;
  width: 40px;
  height: 5px;
  margin-bottom: 13px;
  border-radius: 99px;
  background: linear-gradient(135deg, var(--emerald), var(--cyan));
}

.emerald-section .section-line {
  background: rgba(255, 255, 255, 0.72);
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 38px);
  letter-spacing: -0.04em;
}

.section-heading p {
  max-width: 720px;
  margin: 10px 0 0;
}

.emerald-section .section-heading p,
.emerald-section .section-more {
  color: rgba(255, 255, 255, 0.86);
}

.section-more {
  color: var(--emerald);
  font-weight: 800;
}

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

.movie-grid.large-list {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.movie-card,
.category-overview,
.ranking-card,
.side-card {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border 0.22s ease;
}

.movie-card:hover,
.category-overview:hover,
.ranking-card:hover {
  border-color: rgba(5, 150, 105, 0.28);
  box-shadow: var(--shadow);
  transform: translateY(-5px);
}

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

.card-cover img,
.wide-cover img,
.ranking-cover img,
.side-card img,
.category-cover-set img {
  transition: transform 0.55s ease;
}

.movie-card:hover img,
.ranking-card:hover img,
.category-overview:hover img {
  transform: scale(1.07);
}

.card-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0) 30%, rgba(2, 6, 23, 0.65) 100%);
}

.play-circle,
.play-badge,
.year-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 800;
}

.play-circle {
  left: 50%;
  top: 50%;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  opacity: 0;
  backdrop-filter: blur(10px);
  transform: translate(-50%, -50%) scale(0.88);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

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

.year-badge {
  right: 12px;
  top: 12px;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.68);
  font-size: 12px;
}

.card-body,
.wide-body,
.ranking-body {
  padding: 18px;
}

.movie-title {
  display: -webkit-box;
  overflow: hidden;
  min-height: 48px;
  margin-bottom: 8px;
  color: var(--gray-900);
  font-size: 18px;
  font-weight: 850;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-title:hover,
.ranking-card h2 a:hover,
.category-overview h2 a:hover {
  color: var(--emerald);
}

.movie-meta {
  margin-bottom: 10px;
  color: var(--gray-500);
  font-size: 13px;
  font-weight: 700;
}

.movie-card p,
.ranking-card p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  font-size: 14px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

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

.movie-card-wide {
  display: grid;
  grid-template-columns: 220px 1fr;
}

.wide-cover {
  position: relative;
  min-height: 150px;
  overflow: hidden;
  background: linear-gradient(135deg, #064e3b, #164e63);
}

.play-badge {
  left: 14px;
  bottom: 14px;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(5, 150, 105, 0.88);
  font-size: 13px;
}

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

.category-card {
  min-height: 190px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 32px rgba(6, 78, 59, 0.16);
  backdrop-filter: blur(8px);
  transition: transform 0.2s ease, background 0.2s ease;
}

.category-card:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-4px);
}

.category-card span,
.category-card strong,
.category-card em {
  display: block;
}

.category-card span {
  color: #d1fae5;
  font-size: 13px;
  font-weight: 800;
}

.category-card strong {
  margin: 8px 0;
  font-size: 22px;
}

.category-card p,
.category-card em {
  color: rgba(255, 255, 255, 0.84);
  font-size: 13px;
  line-height: 1.65;
}

.category-card em {
  margin-top: 12px;
  font-style: normal;
  opacity: 0.82;
}

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

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

.rank-row {
  display: grid;
  grid-template-columns: 52px 88px 1fr 70px;
  align-items: center;
  gap: 16px;
  padding: 13px;
  border: 1px solid var(--gray-200);
  border-radius: 18px;
  background: #ffffff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-row:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.rank-row img {
  height: 58px;
  border-radius: 12px;
}

.rank-num {
  color: var(--emerald);
  font-size: 22px;
  font-weight: 900;
}

.rank-title {
  overflow: hidden;
  font-weight: 850;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-score {
  justify-self: end;
  color: var(--gray-500);
  font-size: 13px;
  font-weight: 800;
}

.inner-hero {
  padding: 96px 0 88px;
  color: #ffffff;
  background: radial-gradient(circle at 80% 10%, rgba(34, 211, 238, 0.35), transparent 34%),
              linear-gradient(135deg, #052e2b 0%, #064e3b 48%, #164e63 100%);
}

.inner-hero p {
  max-width: 760px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
}

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

.category-overview {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
  padding: 18px;
}

.category-cover-set {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  min-height: 180px;
  overflow: hidden;
  border-radius: 17px;
  background: linear-gradient(135deg, #064e3b, #164e63);
}

.category-cover-set img {
  min-height: 87px;
}

.category-overview h2,
.ranking-card h2,
.detail-main h1,
.detail-main h2 {
  margin: 0;
  letter-spacing: -0.035em;
}

.category-overview h2,
.ranking-card h2 {
  margin-bottom: 10px;
  font-size: 24px;
}

.tool-row {
  margin-bottom: 26px;
}

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

.ranking-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
  padding: 16px;
}

.ranking-cover {
  overflow: hidden;
  min-height: 142px;
  border-radius: 17px;
  background: linear-gradient(135deg, #064e3b, #164e63);
}

.ranking-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

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

.player-container {
  max-width: 1180px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 22px;
  background: #000000;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
}

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

.play-cover {
  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.72));
  cursor: pointer;
  font-size: 18px;
  font-weight: 800;
  transition: opacity 0.2s ease;
}

.play-cover.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.big-play {
  display: inline-flex;
  width: 82px;
  height: 82px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(5, 150, 105, 0.92);
  box-shadow: 0 18px 38px rgba(5, 150, 105, 0.32);
  font-size: 34px;
}

.player-status {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 5;
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  pointer-events: none;
}

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

.detail-main,
.side-card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.detail-main {
  padding: 34px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--gray-500);
  font-size: 14px;
  font-weight: 700;
}

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

.breadcrumb em {
  color: var(--gray-700);
  font-style: normal;
}

.detail-main h1 {
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.12;
}

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

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

.detail-meta span,
.tag-row span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 11px;
  border-radius: 999px;
  color: var(--emerald-dark);
  background: #ecfdf5;
  font-size: 13px;
  font-weight: 800;
}

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

.detail-main h2 {
  margin-top: 30px;
  margin-bottom: 12px;
  font-size: 25px;
}

.detail-main p {
  margin: 0 0 12px;
  font-size: 16px;
}

.detail-side {
  position: relative;
}

.side-card {
  position: sticky;
  top: 92px;
  padding: 18px;
}

.side-card img {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(135deg, #064e3b, #164e63);
}

.side-card h2 {
  margin: 18px 0 8px;
}

.block-button {
  width: 100%;
  margin-top: 12px;
}

.site-footer {
  color: #cbd5e1;
  background: linear-gradient(135deg, #111827 0%, #0f172a 100%);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 32px;
  padding: 46px 0;
}

.footer-brand {
  color: #ffffff;
}

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

.footer-grid p {
  color: #94a3b8;
}

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

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

.footer-bottom {
  padding: 18px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  color: #64748b;
  text-align: center;
}

[data-card].is-hidden {
  display: none !important;
}

@media (max-width: 1180px) {
  .movie-grid,
  .movie-grid.large-list,
  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .desktop-nav {
    gap: 0;
  }

  .nav-link {
    padding: 0 10px;
    font-size: 14px;
  }
}

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

  .menu-button {
    display: block;
  }

  .hero-slider {
    height: 560px;
  }

  .hero-arrow {
    display: none;
  }

  .search-box,
  .tool-row,
  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  input[type="search"] {
    width: 100%;
  }

  .movie-grid,
  .movie-grid.large-list,
  .wide-grid,
  .category-grid,
  .compact-rank,
  .category-overview-grid,
  .footer-grid,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .movie-card-wide,
  .category-overview,
  .ranking-card {
    grid-template-columns: 1fr;
  }

  .wide-cover,
  .ranking-cover {
    aspect-ratio: 16 / 9;
  }

  .detail-main {
    padding: 24px;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 22px, 1220px);
  }

  .brand {
    font-size: 18px;
  }

  .hero-slider {
    height: 520px;
  }

  .hero-content p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
  }

  .page-section {
    padding: 52px 0;
  }

  .movie-grid,
  .movie-grid.large-list {
    grid-template-columns: 1fr;
  }

  .rank-row {
    grid-template-columns: 42px 70px 1fr;
  }

  .rank-score {
    display: none;
  }

  .category-cover-set {
    min-height: 150px;
  }
}
