
:root {
  --emerald: #059669;
  --emerald-dark: #047857;
  --cyan: #06b6d4;
  --blue: #2563eb;
  --ink: #111827;
  --muted: #6b7280;
  --soft: #f9fafb;
  --line: #e5e7eb;
  --card: #ffffff;
  --shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 28px 60px rgba(15, 23, 42, 0.18);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 2px 18px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 1280px;
  height: 68px;
  margin: 0 auto;
  padding: 0 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--emerald);
}

.brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: #fff;
  border-radius: 12px;
  background: linear-gradient(135deg, #34d399, var(--cyan));
  box-shadow: 0 12px 28px rgba(6, 182, 212, 0.28);
}

.brand-text {
  font-size: 24px;
  letter-spacing: -0.03em;
}

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

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

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

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

.header-search input,
.mobile-search input,
.search-tools input,
.search-tools select {
  width: 220px;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  padding: 10px 14px;
  color: #374151;
  background: #fff;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.search-tools input:focus,
.search-tools select:focus {
  border-color: var(--emerald);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.16);
}

.header-search button,
.mobile-search button,
.search-tools button,
.hero-button,
.button-primary,
.button-ghost {
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 750;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search button,
.mobile-search button,
.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--emerald), var(--cyan));
}

.header-search button:hover,
.mobile-search button:hover,
.button-primary:hover,
.hero-button:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 14px 28px rgba(5, 150, 105, 0.22);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  color: #374151;
  background: transparent;
  font-size: 26px;
}

.mobile-panel {
  display: none;
  padding: 16px 24px 20px;
  border-top: 1px solid var(--line);
  background: #fff;
}

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

.mobile-nav {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.mobile-nav a {
  padding: 12px 14px;
  border-radius: 12px;
  color: #374151;
  font-weight: 650;
}

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

.quick-cats {
  border-top: 1px solid rgba(229, 231, 235, 0.7);
}

.quick-cats-inner {
  display: flex;
  gap: 10px;
  max-width: 1280px;
  margin: 0 auto;
  overflow-x: auto;
  padding: 10px 24px;
}

.quick-cats a {
  flex: 0 0 auto;
  padding: 7px 14px;
  color: #047857;
  border-radius: 999px;
  background: #ecfdf5;
  font-size: 14px;
  font-weight: 650;
}

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, #10b981 0%, #06b6d4 52%, #2563eb 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 12% 20%, rgba(255, 255, 255, 0.28), transparent 28%),
              radial-gradient(circle at 85% 70%, rgba(255, 255, 255, 0.2), transparent 32%),
              rgba(0, 0, 0, 0.08);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 440px);
  gap: 46px;
  align-items: center;
  max-width: 1280px;
  min-height: 540px;
  margin: 0 auto;
  padding: 76px 24px;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 8px;
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  font-size: 14px;
  font-weight: 750;
}

.hero h1 {
  margin: 22px 0 18px;
  max-width: 850px;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.06em;
}

.hero h1 span {
  background: linear-gradient(90deg, #fef08a, #fbcfe8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  max-width: 760px;
  margin: 0 0 30px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 30px;
}

.hero-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--emerald);
  background: #fff;
}

.button-ghost {
  display: inline-flex;
  align-items: center;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.54);
  background: rgba(255, 255, 255, 0.16);
}

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

.hero-links a {
  border-radius: 999px;
  padding: 8px 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  font-size: 14px;
  font-weight: 650;
}

.hero-slider {
  position: relative;
}

.hero-slide {
  display: none;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.hero-slide.active {
  display: grid;
  grid-template-columns: 44% 56%;
  min-height: 440px;
  animation: fadeUp 0.55s ease both;
}

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

.hero-slide-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 26px;
}

.hero-slide-content strong {
  margin: 12px 0;
  font-size: 30px;
  line-height: 1.18;
}

.hero-slide-content span {
  color: #d1fae5;
  font-weight: 700;
}

.hero-slide-content p {
  margin-bottom: 22px;
  font-size: 15px;
}

.hero-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

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

.hero-dots button.active {
  width: 30px;
  background: #fff;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.page-block {
  padding: 56px 0;
}

.page-title {
  padding: 56px 0 20px;
}

.page-title h1,
.section-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.page-title p,
.section-heading p {
  max-width: 780px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 18px;
}

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

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

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

.stat-card,
.category-tile {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #fff, #f9fafb);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover,
.category-tile:hover,
.movie-card:hover,
.rank-card:hover,
.mini-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.stat-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 32px;
}

.stat-card span,
.category-tile p {
  color: var(--muted);
}

.category-tile strong {
  display: block;
  margin-bottom: 8px;
  color: var(--emerald);
  font-size: 22px;
}

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

.movie-card,
.mini-card,
.rank-card {
  border: 1px solid rgba(229, 231, 235, 0.8);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.poster-wrap img,
.mini-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.movie-card:hover .poster-wrap img,
.mini-card:hover img {
  transform: scale(1.08);
}

.badge {
  position: absolute;
  top: 10px;
  right: 10px;
  border-radius: 999px;
  padding: 4px 9px;
  color: #fff;
  background: rgba(5, 150, 105, 0.9);
  font-size: 12px;
  font-weight: 800;
}

.play-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  color: var(--emerald);
  background: rgba(255, 255, 255, 0.92);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.85);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.movie-card-body {
  padding: 14px;
}

.card-meta,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.card-meta span,
.tag-row span {
  border-radius: 999px;
  padding: 4px 8px;
  color: var(--emerald);
  background: #ecfdf5;
  font-size: 12px;
  font-weight: 700;
}

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

.movie-card p {
  display: -webkit-box;
  min-height: 44px;
  margin: 0 0 12px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: var(--muted);
  font-size: 14px;
}

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

.mini-card-link {
  display: block;
  padding-bottom: 12px;
}

.mini-card img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.mini-card strong,
.mini-card span {
  display: block;
  padding: 0 12px;
}

.mini-card strong {
  margin-top: 10px;
  line-height: 1.35;
}

.mini-card span {
  color: var(--muted);
  font-size: 13px;
}

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

.rank-link {
  display: grid;
  grid-template-columns: auto 96px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
}

.rank-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  color: #fff;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--emerald), var(--cyan));
  font-weight: 850;
}

.rank-link img {
  width: 96px;
  height: 136px;
  border-radius: 12px;
  object-fit: cover;
}

.rank-link strong {
  display: block;
  margin-bottom: 8px;
  font-size: 20px;
}

.rank-link span {
  display: block;
  color: var(--emerald);
  font-size: 14px;
  font-weight: 700;
}

.rank-link p {
  display: -webkit-box;
  margin: 8px 0 0;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: var(--muted);
}

.search-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0 30px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
}

.search-tools input {
  flex: 1 1 280px;
  width: auto;
}

.search-tools select {
  width: auto;
  min-width: 150px;
  border-radius: 14px;
}

.empty-result {
  display: none;
  padding: 36px;
  color: var(--muted);
  text-align: center;
}

.empty-result.show {
  display: block;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 26px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumbs a {
  color: var(--emerald);
  font-weight: 700;
}

.watch-shell {
  color: #fff;
  background: linear-gradient(180deg, #020617, #111827);
}

.watch-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 24px 42px;
}

.video-box {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #000;
  box-shadow: var(--shadow-lg);
}

.video-box video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #fff;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.56));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-overlay.hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.play-overlay span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  color: var(--emerald);
  background: #fff;
  font-size: 36px;
  box-shadow: var(--shadow-lg);
}

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

.detail-cover {
  position: sticky;
  top: 116px;
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow);
}

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

.detail-panel {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
}

.detail-panel h1 {
  margin: 10px 0 16px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

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

.detail-panel p {
  color: #374151;
  font-size: 17px;
}

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

.detail-meta span,
.detail-tags span {
  padding: 7px 11px;
  border-radius: 999px;
  color: var(--emerald);
  background: #ecfdf5;
  font-size: 14px;
  font-weight: 750;
}

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

.site-footer {
  margin-top: 60px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, #f3f4f6);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr);
  gap: 30px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 44px 24px;
}

.footer-inner p {
  max-width: 480px;
  color: var(--muted);
}

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

.footer-links a {
  padding: 8px 12px;
  border-radius: 999px;
  color: #047857;
  background: #ecfdf5;
  font-weight: 650;
}

.footer-bottom {
  padding: 16px 24px 24px;
  color: var(--muted);
  text-align: center;
  font-size: 14px;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1100px) {
  .movie-grid,
  .related-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

  .menu-toggle {
    display: block;
  }

  .hero-inner,
  .detail-main,
  .footer-inner {
    grid-template-columns: 1fr;
  }

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

  .hero-slide img {
    max-height: 320px;
  }

  .detail-cover {
    position: relative;
    top: auto;
    max-width: 300px;
  }

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

@media (max-width: 640px) {
  .header-inner {
    height: 62px;
    padding: 0 16px;
  }

  .brand-icon {
    width: 38px;
    height: 38px;
  }

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

  .hero-inner {
    min-height: auto;
    padding: 52px 18px;
  }

  .hero p {
    font-size: 17px;
  }

  .container {
    padding: 0 16px;
  }

  .section-heading {
    display: block;
  }

  .more-link {
    display: inline-block;
    margin-top: 10px;
  }

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

  .rank-list,
  .stat-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .rank-link {
    grid-template-columns: auto 76px minmax(0, 1fr);
    gap: 12px;
  }

  .rank-link img {
    width: 76px;
    height: 110px;
  }

  .detail-panel {
    padding: 22px;
  }

  .play-overlay span {
    width: 70px;
    height: 70px;
  }
}
