:root {
  --color-bg: #f8fafc;
  --color-text: #111827;
  --color-muted: #6b7280;
  --color-border: #e5e7eb;
  --color-soft: #ecfdf5;
  --color-primary: #059669;
  --color-primary-dark: #047857;
  --color-dark: #111827;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.10);
  --shadow-lg: 0 18px 48px rgba(15, 23, 42, 0.16);
  --radius-lg: 18px;
  --radius-md: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-text);
  background: linear-gradient(180deg, #f9fafb 0%, #ffffff 48%, #f8fafc 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(1180px, 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 var(--color-border);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

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

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: #ffffff;
  background: linear-gradient(135deg, #10b981, #059669);
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(5, 150, 105, 0.28);
  font-size: 14px;
}

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

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  font-weight: 650;
}

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

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

.mobile-nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  color: #111827;
  background: #f3f4f6;
  border: 0;
  border-radius: 12px;
}

.mobile-nav {
  display: none;
  padding: 10px 16px 18px;
  border-top: 1px solid var(--color-border);
  background: #ffffff;
}

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

.mobile-nav-link {
  padding: 10px 8px;
  color: #374151;
  font-weight: 650;
  border-radius: 10px;
}

.mobile-nav-link:hover {
  background: #ecfdf5;
}

.hero {
  position: relative;
  height: 60vh;
  min-height: 520px;
  overflow: hidden;
  background: #111827;
}

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

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.52) 44%, rgba(0, 0, 0, 0.18) 100%);
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding-bottom: 72px;
}

.hero-copy {
  max-width: 720px;
  color: #ffffff;
}

.hero-kicker,
.hero-meta,
.detail-meta,
.meta-line,
.card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-kicker {
  margin-bottom: 18px;
}

.hero-kicker span:first-child {
  background: var(--color-primary);
  color: #ffffff;
  font-weight: 800;
}

.hero-kicker span,
.hero-meta span,
.detail-meta span {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #e5e7eb;
  font-size: 13px;
}

.hero h1,
.hero h2 {
  margin: 0 0 18px;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.hero p {
  margin: 0 0 22px;
  max-width: 660px;
  color: #e5e7eb;
  font-size: clamp(16px, 2vw, 20px);
}

.hero-actions,
.detail-title-row,
.section-heading,
.intro-band {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

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

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #ffffff;
  background: var(--color-primary);
  box-shadow: 0 12px 24px rgba(5, 150, 105, 0.24);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  box-shadow: 0 16px 28px rgba(5, 150, 105, 0.30);
}

.btn-ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}

.btn.full {
  width: 100%;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.46);
  border: 0;
  border-radius: 999px;
  transform: translateY(-50%);
  backdrop-filter: blur(8px);
  font-size: 34px;
  line-height: 1;
}

.hero-arrow.prev {
  left: 24px;
}

.hero-arrow.next {
  right: 24px;
}

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

.hero-dot {
  width: 10px;
  height: 6px;
  padding: 0;
  background: rgba(255, 255, 255, 0.55);
  border: 0;
  border-radius: 999px;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.active {
  width: 34px;
  background: var(--color-primary);
}

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

.soft-section {
  background: linear-gradient(90deg, #ecfdf5 0%, #f0fdfa 100%);
}

.intro-band {
  justify-content: space-between;
  margin-top: 30px;
  padding: 28px;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.intro-band h2,
.section-heading h2,
.seo-copy h2,
.text-section h2,
.player-section h2,
.site-footer h2 {
  margin: 0;
  color: #111827;
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.2;
}

.intro-band p,
.seo-copy p,
.text-section p,
.page-hero p {
  color: var(--color-muted);
}

.section-heading {
  justify-content: space-between;
  margin-bottom: 26px;
}

.section-line {
  flex: 1;
  height: 4px;
  min-width: 80px;
  background: linear-gradient(90deg, var(--color-primary), rgba(5, 150, 105, 0));
  border-radius: 999px;
}

.section-link {
  color: var(--color-primary);
  font-weight: 800;
}

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

.video-card,
.rank-card {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.video-card:hover,
.rank-card:hover {
  border-color: rgba(16, 185, 129, 0.28);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.card-cover {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #e5e7eb;
}

.card-cover img,
.rank-cover img,
.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-cover img,
.rank-cover img {
  transition: transform 0.35s ease;
}

.video-card:hover .card-cover img,
.rank-card:hover .rank-cover img {
  transform: scale(1.06);
}

.card-year {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 3px 8px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.70);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
}

.card-play,
.play-badge {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.28);
  opacity: 0;
  transition: opacity 0.25s ease;
  font-size: 34px;
}

.video-card:hover .card-play,
.rank-card:hover .play-badge {
  opacity: 1;
}

.card-body {
  padding: 14px;
}

.card-body h3,
.rank-info h3 {
  display: -webkit-box;
  margin: 0 0 8px;
  overflow: hidden;
  color: #111827;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.card-body a:hover h3,
.rank-info a:hover h3 {
  color: var(--color-primary);
}

.card-body p,
.rank-info p {
  display: -webkit-box;
  margin: 0 0 10px;
  overflow: hidden;
  color: #64748b;
  font-size: 13px;
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta,
.meta-line {
  color: #6b7280;
  font-size: 12px;
}

.card-category {
  display: inline-flex;
  margin-top: 10px;
  padding: 3px 9px;
  color: #047857;
  background: #ecfdf5;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.card-tags {
  margin-top: 8px;
  min-height: 18px;
  color: #94a3b8;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

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

.category-card {
  display: block;
  min-height: 150px;
  padding: 24px;
  color: #064e3b;
  background: linear-gradient(135deg, #ecfdf5, #ffffff);
  border: 1px solid #d1fae5;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-card span {
  display: block;
  margin-bottom: 10px;
  color: #065f46;
  font-size: 22px;
  font-weight: 900;
}

.category-card p {
  margin: 0;
  color: #4b5563;
}

.page-hero {
  padding: 70px 0;
  color: #ffffff;
}

.emerald-hero {
  background: linear-gradient(135deg, #059669, #0f766e);
}

.dark-hero {
  background: linear-gradient(135deg, #111827, #0f172a);
}

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

.page-hero p {
  max-width: 780px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

.eyebrow {
  margin: 0 0 10px;
  color: #059669;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-hero .eyebrow,
.detail-title-row .eyebrow {
  color: #a7f3d0;
}

.filter-panel {
  margin-bottom: 26px;
  padding: 20px;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.search-box {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  color: #374151;
  font-weight: 800;
}

.search-box input,
.filter-row select {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  color: #111827;
  background: #f9fafb;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  outline: none;
}

.search-box input:focus,
.filter-row select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
}

.filter-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 14px;
  align-items: center;
}

.ranking-number {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #64748b;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  font-weight: 900;
}

.ranking-row.top .ranking-number {
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  border-color: transparent;
}

.rank-card {
  display: grid;
  grid-template-columns: 130px 1fr;
  min-height: 150px;
}

.rank-cover {
  position: relative;
  overflow: hidden;
  background: #e5e7eb;
}

.rank-info {
  padding: 16px;
}

.detail-hero {
  padding: 18px 0;
  background: #ffffff;
  border-bottom: 1px solid var(--color-border);
}

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

.breadcrumbs a {
  color: #047857;
  font-weight: 700;
}

.detail-layout {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 34px;
  padding: 40px 0 20px;
}

.detail-poster {
  position: sticky;
  top: 88px;
  align-self: start;
  display: grid;
  gap: 16px;
}

.detail-poster img {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #e5e7eb;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.detail-main {
  min-width: 0;
}

.detail-title-row {
  justify-content: space-between;
  margin-bottom: 16px;
}

.detail-title-row h1 {
  margin: 0;
  color: #111827;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.detail-category {
  display: inline-flex;
  padding: 8px 14px;
  color: #047857;
  background: #ecfdf5;
  border-radius: 999px;
  font-weight: 900;
}

.detail-meta span {
  color: #374151;
  background: #f3f4f6;
}

.detail-one-line {
  margin: 22px 0;
  color: #374151;
  font-size: 20px;
  font-weight: 700;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 28px;
}

.tag-list span {
  padding: 6px 10px;
  color: #065f46;
  background: #ecfdf5;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.player-section,
.text-section,
.seo-copy {
  margin-top: 28px;
  padding: 26px;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.player-section h2,
.text-section h2 {
  margin-bottom: 18px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  background: #000000;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.30), rgba(0, 0, 0, 0.05));
  border: 0;
  transition: opacity 0.25s ease;
}

.play-overlay span {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  color: #ffffff;
  background: rgba(5, 150, 105, 0.92);
  border-radius: 999px;
  box-shadow: 0 18px 34px rgba(5, 150, 105, 0.35);
  font-size: 38px;
}

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

.text-section p,
.seo-copy p {
  margin: 0;
  color: #374151;
  font-size: 17px;
  line-height: 1.85;
}

.site-footer {
  margin-top: 50px;
  color: #cbd5e1;
  background: #111827;
}

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

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

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

.site-footer p,
.site-footer li,
.footer-bottom {
  color: #94a3b8;
  font-size: 14px;
}

.site-footer ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.footer-bottom {
  padding: 22px 0;
  text-align: center;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.movie-card.hidden {
  display: none;
}

@media (max-width: 1080px) {
  .desktop-nav {
    gap: 14px;
    font-size: 13px;
  }

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

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

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

  .mobile-nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .hero {
    min-height: 560px;
  }

  .hero-content {
    padding-bottom: 84px;
  }

  .hero-arrow {
    top: auto;
    bottom: 26px;
    transform: none;
  }

  .hero-arrow.prev {
    left: 18px;
  }

  .hero-arrow.next {
    right: 18px;
  }

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

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

  .detail-poster {
    position: static;
    max-width: 360px;
  }

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

@media (max-width: 640px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

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

  .hero {
    height: 78vh;
    min-height: 620px;
  }

  .hero-copy {
    max-width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .intro-band {
    align-items: stretch;
  }

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

  .category-grid,
  .category-grid.large,
  .filter-row {
    grid-template-columns: 1fr;
  }

  .ranking-row {
    grid-template-columns: 42px 1fr;
    gap: 8px;
  }

  .ranking-number {
    width: 36px;
    height: 36px;
  }

  .rank-card {
    grid-template-columns: 92px 1fr;
    min-height: 120px;
  }

  .rank-info {
    padding: 12px;
  }

  .page-hero {
    padding: 48px 0;
  }

  .player-section,
  .text-section,
  .seo-copy {
    padding: 18px;
  }
}
