:root {
  --emerald: #059669;
  --emerald-dark: #047857;
  --emerald-soft: #ecfdf5;
  --teal-soft: #f0fdfa;
  --amber: #f59e0b;
  --rose-soft: #fff1f2;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --shadow: 0 12px 30px rgba(17, 24, 39, 0.10);
  --shadow-strong: 0 22px 48px rgba(17, 24, 39, 0.18);
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(180deg, var(--gray-50), #ffffff 42%, var(--gray-50));
  color: var(--gray-900);
  min-width: 320px;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
  backdrop-filter: blur(14px);
}

.nav-wrap {
  max-width: 1200px;
  height: 64px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-text,
.footer-brand span:last-child {
  font-size: 20px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--emerald), #14b8a6);
  box-shadow: 0 10px 24px rgba(5, 150, 105, 0.25);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--gray-700);
  font-size: 14px;
  font-weight: 700;
}

.desktop-nav a,
.mobile-nav a,
.quick-cats a {
  transition: color 0.2s ease, background 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-nav a:hover,
.mobile-nav a.active,
.quick-cats a:hover {
  color: var(--emerald);
}

.nav-toggle {
  display: none;
  border: 0;
  background: var(--gray-100);
  color: var(--gray-800);
  padding: 9px 12px;
  border-radius: 10px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px 18px;
  border-top: 1px solid var(--gray-200);
}

.mobile-nav a {
  display: block;
  padding: 10px 0;
  font-weight: 700;
  color: var(--gray-700);
}

.quick-cats {
  display: none;
}

.hero-carousel {
  position: relative;
  height: 62vh;
  min-height: 480px;
  overflow: hidden;
  background: #020617;
}

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

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.46;
  transform: scale(1.03);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 40%, rgba(16, 185, 129, 0.32), transparent 30%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.58) 48%, rgba(2, 6, 23, 0.35)),
    linear-gradient(0deg, rgba(2, 6, 23, 0.92), transparent 42%);
}

.hero-inner {
  position: absolute;
  inset: 0;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 74px;
  display: flex;
  align-items: flex-end;
}

.hero-copy {
  width: min(680px, 100%);
  color: #ffffff;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.hero-kicker span,
.tag-cloud span,
.hero-tags span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.hero-kicker span {
  color: #ffffff;
  background: var(--emerald);
}

.hero-kicker b {
  color: #fbbf24;
  font-size: 18px;
}

.hero-copy h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 6vw, 62px);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.hero-copy p {
  margin: 0;
  max-width: 620px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.8;
}

.hero-tags,
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 0;
}

.hero-tags span {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

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

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

.primary-btn {
  background: var(--emerald);
  color: #ffffff;
  box-shadow: 0 16px 26px rgba(5, 150, 105, 0.30);
}

.primary-btn:hover,
.section-link:hover {
  transform: translateY(-2px);
  background: var(--emerald-dark);
  box-shadow: var(--shadow);
}

.ghost-btn {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.ghost-btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.22);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.46);
  backdrop-filter: blur(10px);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.68);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

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

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

.hero-dots button[aria-pressed="true"] {
  width: 34px;
  background: var(--emerald);
}

.section-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 20px;
}

.section-shell.tinted {
  max-width: none;
  padding-left: max(20px, calc((100% - 1200px) / 2 + 20px));
  padding-right: max(20px, calc((100% - 1200px) / 2 + 20px));
}

.emerald-tint {
  background: linear-gradient(90deg, var(--emerald-soft), var(--teal-soft));
}

.rose-tint {
  background: linear-gradient(90deg, var(--rose-soft), #fff7ed);
}

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

.section-head h2 {
  margin: 0;
  font-size: clamp(24px, 4vw, 34px);
  letter-spacing: -0.03em;
}

.section-head p {
  margin: 8px 0 0;
  color: var(--gray-500);
  max-width: 660px;
  line-height: 1.7;
}

.section-link {
  min-height: 40px;
  padding: 0 18px;
  color: #ffffff;
  background: var(--emerald);
  white-space: nowrap;
}

.section-line {
  flex: 1;
  height: 4px;
  max-width: 420px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--emerald), transparent);
}

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  color: var(--gray-900);
  background: #ffffff;
  border: 1px solid rgba(229, 231, 235, 0.78);
  border-radius: 18px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

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

.poster-frame {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--gray-100);
}

.poster-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.42), transparent 52%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .poster-frame::after {
  opacity: 1;
}

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

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

.score-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(5, 150, 105, 0.92);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
  font-size: 13px;
  font-weight: 900;
}

.movie-info {
  display: block;
  padding: 14px 14px 16px;
}

.movie-info strong {
  display: block;
  margin-bottom: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 17px;
}

.movie-info p {
  display: -webkit-box;
  min-height: 43px;
  margin: 0 0 10px;
  overflow: hidden;
  color: var(--gray-500);
  font-size: 13px;
  line-height: 1.65;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-meta {
  display: block;
  overflow: hidden;
  color: var(--gray-500);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-card .movie-info p {
  display: none;
}

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

.category-tile {
  position: relative;
  min-height: 180px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  border-radius: 22px;
  color: #ffffff;
  background: var(--gray-900);
  box-shadow: var(--shadow);
}

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.52;
  transition: transform 0.45s ease;
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.88), rgba(2, 6, 23, 0.18));
}

.category-tile:hover img {
  transform: scale(1.08);
}

.category-tile span {
  position: relative;
  z-index: 1;
  padding: 22px;
}

.category-tile strong {
  display: block;
  font-size: 22px;
  margin-bottom: 8px;
}

.category-tile em,
.category-tile small {
  display: block;
  color: rgba(255, 255, 255, 0.78);
  font-style: normal;
  line-height: 1.6;
}

.category-tile.big {
  min-height: 250px;
}

.category-tile i {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  font-style: normal;
}

.category-tile i em {
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 12px;
}

.rank-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.rank-list li a {
  display: grid;
  grid-template-columns: 50px 68px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-list li a:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-strong);
}

.rank-no {
  color: var(--emerald);
  font-size: 20px;
  font-weight: 900;
  text-align: center;
}

.rank-list img {
  width: 68px;
  height: 90px;
  object-fit: cover;
  border-radius: 12px;
}

.rank-copy {
  min-width: 0;
}

.rank-copy strong,
.rank-copy em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-copy strong {
  margin-bottom: 6px;
  white-space: nowrap;
}

.rank-copy em {
  display: -webkit-box;
  color: var(--gray-500);
  font-size: 13px;
  font-style: normal;
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.rank-list b {
  color: #f59e0b;
  font-size: 18px;
}

.wide-rank {
  grid-template-columns: 1fr;
}

.page-hero,
.detail-hero {
  max-width: 1200px;
  margin: 28px auto 0;
  padding: 42px 20px;
}

.page-hero > div {
  overflow: hidden;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 36px;
  border-radius: 28px;
  color: #ffffff;
  background:
    radial-gradient(circle at 85% 16%, rgba(20, 184, 166, 0.65), transparent 26%),
    linear-gradient(135deg, #064e3b, #111827 72%);
  box-shadow: var(--shadow-strong);
}

.page-hero p {
  margin: 0 0 12px;
  color: #a7f3d0;
  font-weight: 800;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(34px, 6vw, 54px);
  letter-spacing: -0.04em;
}

.page-hero span {
  display: block;
  max-width: 740px;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
}

.filter-panel {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 28px;
  padding: 18px;
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.filter-panel label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--gray-700);
  font-size: 13px;
  font-weight: 800;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  height: 46px;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  color: var(--gray-900);
  background: var(--gray-50);
  padding: 0 14px;
  outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--emerald);
  box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.12);
}

.empty-state {
  display: none;
  margin: 30px 0 0;
  padding: 24px;
  border-radius: 18px;
  text-align: center;
  color: var(--gray-500);
  background: #ffffff;
  border: 1px solid var(--gray-200);
}

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

.detail-hero {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 38px;
  align-items: end;
  padding-top: 48px;
}

.detail-poster {
  overflow: hidden;
  border-radius: 24px;
  box-shadow: var(--shadow-strong);
  background: var(--gray-100);
}

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

.detail-copy {
  padding: 30px 0;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--gray-500);
  font-size: 14px;
}

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

.inline-kicker span {
  background: var(--emerald-soft);
  color: var(--emerald-dark);
}

.detail-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.detail-copy p {
  margin: 0;
  max-width: 760px;
  color: var(--gray-700);
  font-size: 18px;
  line-height: 1.8;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.detail-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--gray-700);
  background: #ffffff;
  border: 1px solid var(--gray-200);
}

.tag-cloud span {
  color: var(--emerald-dark);
  background: var(--emerald-soft);
}

.player-section {
  padding-top: 26px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  aspect-ratio: 16 / 9;
  background: #000000;
  box-shadow: var(--shadow-strong);
}

.player-shell video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border: 0;
  cursor: pointer;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.26));
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.player-shell.is-playing .play-overlay {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-icon {
  width: 78px;
  height: 78px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 18px 38px rgba(5, 150, 105, 0.35);
  font-size: 30px;
  text-indent: 4px;
}

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

.article-card {
  padding: 34px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow);
}

.article-card h2 {
  margin: 0 0 12px;
  font-size: 26px;
}

.article-card h2:not(:first-child) {
  margin-top: 28px;
}

.article-card p {
  margin: 0;
  color: var(--gray-700);
  line-height: 1.9;
  font-size: 16px;
}

.site-footer {
  margin-top: 50px;
  background: var(--gray-900);
  color: #d1d5db;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 20px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 36px;
}

.footer-brand {
  color: #ffffff;
  margin-bottom: 16px;
}

.footer-main p,
.site-footer li {
  color: #9ca3af;
  line-height: 1.8;
}

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

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

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

.copyright {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #9ca3af;
  text-align: center;
}

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

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

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

  .search-field {
    grid-column: 1 / -1;
  }
}

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

  .nav-toggle {
    display: inline-flex;
  }

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

  .quick-cats {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 0 20px 12px;
    font-size: 13px;
    color: var(--gray-500);
  }

  .quick-cats a {
    flex: 0 0 auto;
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--gray-100);
  }

  .hero-carousel {
    height: 70vh;
    min-height: 520px;
  }

  .hero-inner {
    padding: 0 18px 70px;
  }

  .hero-copy p {
    font-size: 15px;
  }

  .hero-arrow {
    display: none;
  }

  .section-shell,
  .section-shell.tinted {
    padding: 40px 16px;
  }

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

  .section-line {
    width: 100%;
  }

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

  .movie-info {
    padding: 12px;
  }

  .category-grid {
    grid-template-columns: 1fr;
  }

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

  .rank-list li a {
    grid-template-columns: 38px 58px 1fr auto;
    gap: 10px;
  }

  .rank-list img {
    width: 58px;
    height: 78px;
  }

  .page-hero,
  .detail-hero {
    margin-top: 16px;
    padding: 22px 16px;
  }

  .page-hero > div {
    min-height: 220px;
    padding: 26px;
  }

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

  .detail-hero {
    grid-template-columns: 1fr;
    gap: 22px;
  }

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

  .detail-copy {
    padding: 0;
  }

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

  .article-card {
    padding: 24px;
  }

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

@media (max-width: 420px) {
  .brand-text {
    font-size: 17px;
  }

  .movie-grid,
  .compact-grid {
    gap: 12px;
  }

  .movie-info strong {
    font-size: 15px;
  }

  .movie-meta {
    font-size: 11px;
  }
}
