:root {
  --bg: #f7fdfa;
  --surface: #ffffff;
  --text: #111827;
  --muted: #64748b;
  --line: #dbe7e2;
  --emerald: #10b981;
  --emerald-dark: #059669;
  --teal: #14b8a6;
  --shadow: 0 20px 60px rgba(15, 118, 110, 0.13);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 10% 0%, rgba(16, 185, 129, 0.14), transparent 28%),
    radial-gradient(circle at 90% 8%, rgba(20, 184, 166, 0.14), transparent 32%),
    linear-gradient(135deg, #ffffff 0%, #f0fdfa 46%, #f8fafc 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

.site-shell {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(16, 185, 129, 0.12);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  font-size: 17px;
  background: linear-gradient(135deg, var(--emerald), var(--teal));
  box-shadow: 0 14px 28px rgba(16, 185, 129, 0.25);
  transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
  transform: scale(1.08) rotate(3deg);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.16;
}

.brand-text strong {
  font-size: 21px;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, var(--emerald-dark), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 3px;
  flex: 1 1 auto;
  justify-content: center;
}

.nav-link,
.mobile-link {
  color: #334155;
  font-weight: 650;
  border-radius: 14px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link {
  padding: 10px 13px;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: var(--emerald-dark);
  background: rgba(16, 185, 129, 0.1);
}

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

.header-search input,
.mobile-search input,
.filter-input,
.filter-select {
  border: 1px solid #d6e5df;
  background: #ffffff;
  color: var(--text);
  outline: none;
  border-radius: 999px;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

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

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

.header-search button,
.mobile-search button,
.primary-button,
.play-button,
.filter-button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--emerald), var(--teal));
  box-shadow: 0 12px 26px rgba(16, 185, 129, 0.24);
}

.header-search button {
  padding: 10px 16px;
}

.header-search input:focus,
.mobile-search input:focus,
.filter-input:focus,
.filter-select:focus {
  border-color: rgba(16, 185, 129, 0.9);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.13);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 0;
  border-radius: 14px;
  background: #f0fdfa;
}

.menu-button span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #0f766e;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  padding: 14px 16px 18px;
  border-top: 1px solid #e2eee8;
  background: #ffffff;
}

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

.mobile-search {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.mobile-search input {
  width: 100%;
  padding: 11px 15px;
}

.mobile-search button {
  padding: 11px 16px;
}

.mobile-link {
  display: block;
  padding: 12px 14px;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  color: #ffffff;
  background: #082f2a;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.65s ease;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 44, 34, 0.88) 0%, rgba(2, 44, 34, 0.62) 45%, rgba(2, 44, 34, 0.24) 100%),
    linear-gradient(0deg, rgba(2, 44, 34, 0.75), transparent 52%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 88px 0 138px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 14px;
  border: 1px solid rgba(167, 243, 208, 0.35);
  border-radius: 999px;
  color: #a7f3d0;
  background: rgba(6, 95, 70, 0.35);
  backdrop-filter: blur(12px);
  font-weight: 750;
}

.hero h1 {
  max-width: 740px;
  margin: 0 0 22px;
  font-size: clamp(42px, 6vw, 74px);
  line-height: 1.04;
  letter-spacing: -0.055em;
}

.hero p {
  max-width: 710px;
  margin: 0 0 30px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(17px, 2.2vw, 23px);
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
}

.primary-button:hover,
.ghost-button:hover,
.play-button:hover,
.filter-button:hover,
.header-search button:hover {
  transform: translateY(-2px);
}

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

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-meta span,
.meta-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 13px;
  color: #047857;
  background: #ecfdf5;
  border: 1px solid #c7f5df;
}

.hero .hero-meta span {
  color: #d1fae5;
  background: rgba(6, 95, 70, 0.42);
  border-color: rgba(167, 243, 208, 0.28);
}

.hero-thumbs {
  position: absolute;
  left: 50%;
  bottom: 34px;
  z-index: 5;
  width: min(1200px, calc(100% - 32px));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.hero-thumb {
  min-height: 82px;
  padding: 14px;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(15, 23, 42, 0.32);
  backdrop-filter: blur(16px);
  cursor: pointer;
  overflow: hidden;
}

.hero-thumb.is-active {
  color: #ffffff;
  border-color: rgba(16, 185, 129, 0.8);
  background: rgba(6, 95, 70, 0.72);
}

.hero-thumb strong {
  display: block;
  margin-bottom: 5px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.hero-thumb span {
  font-size: 12px;
}

.main-content {
  padding: 58px 0 76px;
}

.content-section {
  margin-bottom: 60px;
}

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

.section-heading h2,
.page-heading h1 {
  margin: 0 0 9px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.section-heading p,
.page-heading p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.section-action {
  flex: 0 0 auto;
  color: var(--emerald-dark);
  font-weight: 800;
}

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

.movie-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(16, 185, 129, 0.12);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow: var(--shadow);
}

.cover-frame,
.horizontal-cover,
.category-cover {
  position: relative;
  display: block;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(16, 185, 129, 0.36), rgba(20, 184, 166, 0.2)),
    #d1fae5;
  background-position: center;
  background-size: cover;
}

.cover-frame {
  aspect-ratio: 16 / 9;
}

.cover-frame::after,
.horizontal-cover::after,
.category-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.48), transparent 58%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .cover-frame::after,
.horizontal-card:hover .horizontal-cover::after,
.category-card:hover .category-cover::after {
  opacity: 1;
}

.rating-badge,
.rank-badge,
.list-rank {
  position: absolute;
  z-index: 2;
  color: #ffffff;
  font-weight: 850;
  border-radius: 999px;
}

.rating-badge {
  right: 12px;
  bottom: 12px;
  padding: 5px 10px;
  background: rgba(2, 6, 23, 0.7);
}

.rank-badge {
  left: 12px;
  top: 12px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
}

.card-body strong {
  font-size: 18px;
  line-height: 1.35;
  transition: color 0.2s ease;
}

.movie-card:hover .card-body strong,
.horizontal-card:hover strong {
  color: var(--emerald-dark);
}

.card-body em,
.horizontal-info em {
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

.card-body span:not(.rating-badge) {
  color: #475569;
  line-height: 1.65;
  font-size: 14px;
}

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

.horizontal-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 16px;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(16, 185, 129, 0.12);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.horizontal-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.horizontal-cover {
  min-height: 130px;
}

.list-rank {
  left: 12px;
  top: 12px;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--emerald), var(--teal));
}

.horizontal-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 14px 16px 14px 0;
}

.horizontal-info strong {
  font-size: 19px;
}

.horizontal-info span {
  color: #475569;
  line-height: 1.65;
}

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

.category-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: #ffffff;
  border: 1px solid rgba(16, 185, 129, 0.12);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.category-cover {
  min-height: 134px;
  display: flex;
  align-items: end;
  padding: 18px;
}

.category-cover strong {
  position: relative;
  z-index: 2;
  color: #ffffff;
  font-size: 25px;
}

.category-card p {
  margin: 0;
  padding: 18px;
  color: #475569;
  line-height: 1.7;
}

.filters {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr auto;
  gap: 12px;
  padding: 18px;
  margin-bottom: 26px;
  border: 1px solid rgba(16, 185, 129, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.05);
}

.filter-input,
.filter-select {
  min-height: 46px;
  padding: 0 15px;
}

.filter-button {
  min-height: 46px;
  padding: 0 22px;
}

.empty-state {
  display: none;
  padding: 28px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed #abd8c8;
  border-radius: var(--radius);
  background: #ffffff;
}

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

.detail-hero {
  padding: 44px 0 32px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--emerald-dark);
  font-weight: 750;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 360px;
  gap: 30px;
  align-items: start;
}

.detail-main,
.detail-side,
.player-card,
.story-block {
  border: 1px solid rgba(16, 185, 129, 0.13);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.player-card {
  overflow: hidden;
}

.video-stage {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.video-stage video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #020617;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  padding: 28px;
  color: #ffffff;
  text-align: center;
  background:
    radial-gradient(circle at 50% 35%, rgba(16, 185, 129, 0.35), transparent 35%),
    linear-gradient(135deg, rgba(2, 6, 23, 0.78), rgba(6, 78, 59, 0.62));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.overlay-content h2 {
  margin: 0 0 14px;
  font-size: clamp(24px, 4vw, 40px);
}

.overlay-content p {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.82);
}

.play-button {
  min-height: 56px;
  padding: 0 30px;
  font-size: 18px;
}

.detail-main {
  padding: 28px;
}

.detail-main h1 {
  margin: 0 0 15px;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.detail-intro {
  margin: 0 0 22px;
  color: #475569;
  font-size: 18px;
  line-height: 1.85;
}

.info-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.story-block {
  padding: 24px;
  margin-top: 22px;
}

.story-block h2 {
  margin: 0 0 13px;
  font-size: 25px;
}

.story-block p {
  margin: 0;
  color: #334155;
  line-height: 1.9;
}

.detail-side {
  padding: 20px;
}

.poster-box {
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(16, 185, 129, 0.34), rgba(20, 184, 166, 0.18)),
    #d1fae5;
  background-position: center;
  background-size: cover;
}

.side-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.side-list a {
  display: block;
  padding: 13px 14px;
  border-radius: 16px;
  color: #334155;
  background: #f8fafc;
  border: 1px solid #e5eee9;
  transition: background 0.2s ease, color 0.2s ease;
}

.side-list a:hover {
  color: var(--emerald-dark);
  background: #ecfdf5;
}

.related-section {
  padding: 30px 0 70px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 70px 160px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(16, 185, 129, 0.13);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
}

.rank-number {
  display: grid;
  place-items: center;
  height: 50px;
  border-radius: 18px;
  color: #ffffff;
  font-size: 22px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--emerald), var(--teal));
}

.rank-cover {
  height: 90px;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(16, 185, 129, 0.34), rgba(20, 184, 166, 0.18)),
    #d1fae5;
  background-size: cover;
  background-position: center;
}

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

.rank-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.rank-score {
  color: var(--emerald-dark);
  font-weight: 900;
}

.site-footer {
  border-top: 1px solid #dbe7e2;
  background: linear-gradient(135deg, #f8fafc, #ecfdf5);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 30px;
  padding: 52px 0 38px;
}

.footer-brand {
  margin-bottom: 14px;
}

.site-footer p,
.site-footer li {
  color: #64748b;
  line-height: 1.75;
}

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

.site-footer h3 {
  margin: 0 0 14px;
  color: #0f172a;
}

.site-footer a:hover {
  color: var(--emerald-dark);
}

.footer-bottom {
  padding: 20px 16px;
  color: #64748b;
  text-align: center;
  border-top: 1px solid #dbe7e2;
}

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

  .menu-button {
    display: block;
    margin-left: auto;
  }

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

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

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

  .detail-side {
    order: -1;
  }

  .poster-box {
    aspect-ratio: 16 / 9;
  }

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

@media (max-width: 760px) {
  .site-shell {
    width: min(100% - 24px, 1200px);
  }

  .brand-text strong {
    font-size: 18px;
  }

  .brand-text small {
    display: none;
  }

  .hero {
    min-height: 680px;
  }

  .hero-content {
    padding: 66px 0 250px;
  }

  .hero-thumbs {
    grid-template-columns: 1fr;
    bottom: 18px;
  }

  .hero-thumb {
    min-height: 58px;
    padding: 10px 12px;
  }

  .section-heading,
  .page-heading {
    display: block;
  }

  .section-action {
    display: inline-flex;
    margin-top: 12px;
  }

  .card-grid,
  .category-grid,
  .horizontal-list {
    grid-template-columns: 1fr;
  }

  .horizontal-card {
    grid-template-columns: 140px 1fr;
  }

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

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

  .rank-cover,
  .rank-score {
    display: none;
  }

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

@media (max-width: 480px) {
  .header-inner {
    min-height: 64px;
  }

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

  .hero h1 {
    font-size: 38px;
  }

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

  .hero-actions {
    display: grid;
  }

  .horizontal-card {
    grid-template-columns: 1fr;
  }

  .horizontal-cover {
    min-height: 180px;
  }

  .horizontal-info {
    padding: 0 16px 16px;
  }

  .detail-main,
  .story-block {
    padding: 20px;
  }
}
