:root {
  --green-900: #052e16;
  --green-800: #166534;
  --green-700: #15803d;
  --green-600: #16a34a;
  --green-100: #dcfce7;
  --green-50: #f0fdf4;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --paper: #ffffff;
  --soft: #f8fafc;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #f8fafc 0%, #eefdf4 48%, #ffffff 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 {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(229, 231, 235, 0.8);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  width: min(1240px, calc(100% - 32px));
  height: 78px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 188px;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--green-600), var(--green-800));
  border-radius: 14px;
  box-shadow: 0 14px 28px rgba(22, 163, 74, 0.28);
}

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

.brand-text strong,
.footer-brand {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

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

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

.nav-link,
.mobile-link {
  color: #374151;
  font-weight: 700;
  transition: color 0.2s ease, transform 0.2s ease;
}

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

.header-search,
.mobile-search,
.wide-search,
.page-filter {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-search input,
.mobile-search input,
.wide-search input,
.page-filter input {
  min-width: 0;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
  width: 260px;
  padding: 11px 16px;
}

.header-search button,
.mobile-search button,
.wide-search button,
.page-filter button {
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--green-600), var(--green-800));
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(22, 163, 74, 0.22);
}

.header-search input:focus,
.mobile-search input:focus,
.wide-search input:focus,
.page-filter input:focus {
  border-color: var(--green-600);
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.12);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 3px auto;
  background: var(--ink);
  border-radius: 999px;
}

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

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

.mobile-panel nav {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.mobile-search input {
  flex: 1;
  padding: 12px 16px;
}

.hero-carousel {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  color: #fff;
  background: #052e16;
}

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

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

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

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.44;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 74% 24%, rgba(34, 197, 94, 0.42), transparent 34%),
    linear-gradient(90deg, rgba(5, 46, 22, 0.96) 0%, rgba(5, 46, 22, 0.72) 48%, rgba(5, 46, 22, 0.24) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.28), rgba(5, 46, 22, 0.88));
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 360px;
  align-items: center;
  gap: 58px;
  width: min(1240px, calc(100% - 32px));
  min-height: 680px;
  margin: 0 auto;
  padding: 108px 0 92px;
}

.hero-copy {
  max-width: 760px;
}

.hero-kicker,
.page-hero span,
.featured-copy span {
  display: inline-flex;
  align-items: center;
  color: #bbf7d0;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 18px 0 20px;
  font-size: clamp(40px, 7vw, 78px);
  line-height: 1.02;
  font-weight: 950;
  letter-spacing: -0.06em;
}

.hero-copy p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

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

.hero-tags {
  margin: 26px 0;
}

.hero-tags span,
.detail-tags span,
.card-tags span {
  display: inline-flex;
  align-items: center;
  color: var(--green-800);
  background: var(--green-100);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 800;
}

.hero-tags span {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

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

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

.primary-btn {
  color: #fff;
  background: linear-gradient(135deg, #22c55e, #15803d);
  box-shadow: 0 18px 34px rgba(22, 163, 74, 0.34);
}

.ghost-btn {
  color: var(--green-800);
  background: #fff;
  border: 1px solid rgba(22, 101, 52, 0.18);
}

.ghost-btn.small {
  min-height: 38px;
  padding: 8px 14px;
  font-size: 14px;
}

.primary-btn:hover,
.ghost-btn:hover,
.movie-card:hover,
.category-tile:hover {
  transform: translateY(-3px);
}

.hero-poster {
  position: relative;
  overflow: hidden;
  min-height: 500px;
  background: linear-gradient(135deg, #064e3b, #111827);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 28px;
  box-shadow: 0 38px 90px rgba(0, 0, 0, 0.36);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  min-height: 500px;
  object-fit: cover;
}

.hero-poster span {
  position: absolute;
  right: 18px;
  bottom: 18px;
  color: #fff;
  background: rgba(21, 128, 61, 0.88);
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 900;
  backdrop-filter: blur(8px);
}

.hero-controls {
  position: absolute;
  right: 0;
  bottom: 28px;
  left: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.hero-control,
.hero-dot {
  border: 0;
  cursor: pointer;
}

.hero-control {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: #fff;
  font-size: 32px;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  backdrop-filter: blur(10px);
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 28px;
  height: 8px;
  background: rgba(255, 255, 255, 0.32);
  border-radius: 999px;
}

.hero-dot.active {
  width: 46px;
  background: #fff;
}

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

.search-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 1fr);
  align-items: center;
  gap: 28px;
  margin-top: -54px;
  padding: 26px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(229, 231, 235, 0.8);
  border-radius: 26px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.search-panel h2,
.section-heading h2,
.featured-copy h2,
.page-hero h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.12;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.search-panel p,
.section-heading p,
.featured-copy p,
.page-hero p {
  margin: 10px 0 0;
  color: var(--muted);
}

.wide-search input {
  flex: 1;
  padding: 15px 20px;
}

.wide-search button {
  padding: 15px 24px;
}

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

.section-link {
  color: var(--green-700);
  font-weight: 900;
}

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

.category-tile {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  color: #fff;
  background: #052e16;
  border-radius: 24px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}

.category-tile img {
  width: 100%;
  height: 100%;
  min-height: 190px;
  object-fit: cover;
  opacity: 0.6;
}

.category-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 46, 22, 0.1), rgba(5, 46, 22, 0.92));
}

.category-tile strong,
.category-tile small {
  position: absolute;
  right: 18px;
  left: 18px;
}

.category-tile strong {
  bottom: 50px;
  font-size: 22px;
  font-weight: 950;
}

.category-tile small {
  bottom: 18px;
  color: rgba(255, 255, 255, 0.82);
}

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

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

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

.movie-card:hover {
  box-shadow: 0 26px 58px rgba(15, 23, 42, 0.16);
}

.poster-link,
.poster-shell {
  display: block;
}

.poster-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background:
    radial-gradient(circle at 70% 18%, rgba(34, 197, 94, 0.36), transparent 38%),
    linear-gradient(135deg, #064e3b, #111827);
}

.poster-shell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.32s ease, opacity 0.2s ease;
}

.movie-card:hover .poster-shell img {
  transform: scale(1.05);
}

.poster-overlay {
  position: absolute;
  right: 12px;
  bottom: 12px;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  background: rgba(21, 128, 61, 0.9);
  border-radius: 999px;
  padding: 7px 10px;
}

.rank-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: grid;
  min-width: 34px;
  height: 34px;
  place-items: center;
  color: #fff;
  font-weight: 950;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  border-radius: 999px;
  box-shadow: 0 10px 22px rgba(239, 68, 68, 0.24);
}

.card-body {
  padding: 16px;
}

.card-body h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 900;
}

.card-body h3 a:hover {
  color: var(--green-700);
}

.card-meta {
  margin: 8px 0 0;
  color: var(--green-700);
  font-size: 13px;
  font-weight: 800;
}

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

.card-tags {
  margin-top: 12px;
}

.card-tags span {
  background: #f3f4f6;
  color: #374151;
  padding: 4px 9px;
  font-size: 12px;
}

.movie-card.compact {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: stretch;
}

.movie-card.compact .poster-shell {
  height: 100%;
  min-height: 138px;
  aspect-ratio: auto;
}

.movie-card.compact .poster-overlay {
  display: none;
}

.movie-card.compact .card-desc {
  min-height: auto;
}

.featured-band {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  color: #fff;
  background:
    radial-gradient(circle at 90% 0%, rgba(34, 197, 94, 0.38), transparent 32%),
    linear-gradient(135deg, #052e16, #064e3b 54%, #111827);
  border-radius: 32px;
  padding: 42px;
  box-shadow: var(--shadow);
}

.featured-copy h2,
.featured-copy p {
  color: #fff;
}

.featured-copy p {
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 24px;
}

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

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

.page-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1240px, calc(100% - 32px));
  margin: 34px auto 0;
  padding: 58px;
  color: #fff;
  background:
    radial-gradient(circle at 88% 12%, rgba(34, 197, 94, 0.4), transparent 34%),
    linear-gradient(135deg, #052e16, #064e3b);
  border-radius: 32px;
  box-shadow: var(--shadow);
}

.page-hero h1,
.page-hero p {
  color: #fff;
}

.page-hero p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.84);
}

.page-filter input {
  width: min(420px, 100%);
  padding: 14px 18px;
}

.search-status {
  margin-bottom: 20px;
  color: var(--muted);
  font-weight: 800;
}

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

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumbs a:hover {
  color: var(--green-700);
}

.player-card {
  overflow: hidden;
  background: #000;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.video-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(circle at 72% 16%, rgba(34, 197, 94, 0.32), transparent 36%),
    linear-gradient(135deg, #020617, #052e16);
}

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

.play-layer {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.08), rgba(2, 6, 23, 0.46));
  border: 0;
  cursor: pointer;
}

.play-layer.hidden {
  display: none;
}

.play-circle {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  padding-left: 5px;
  color: var(--green-800);
  font-size: 34px;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.detail-article,
.side-card {
  margin-top: 22px;
  background: #fff;
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 26px;
  padding: 26px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

.detail-title-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.detail-kicker {
  margin: 0 0 8px;
  color: var(--green-700);
  font-weight: 900;
}

.detail-title-row h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.lead-text {
  margin: 18px 0 0;
  color: #374151;
  font-size: 18px;
  font-weight: 700;
}

.detail-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0;
  color: var(--muted);
  font-weight: 800;
}

.detail-stats span {
  background: #f3f4f6;
  border-radius: 999px;
  padding: 7px 12px;
}

.text-block {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.text-block h2,
.side-card h2 {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 950;
}

.text-block p {
  margin: 0;
  color: #374151;
  font-size: 17px;
  line-height: 1.9;
}

.detail-side {
  position: sticky;
  top: 100px;
}

.poster-side {
  margin-top: 40px;
  overflow: hidden;
}

.poster-side img {
  width: 100%;
  border-radius: 18px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: linear-gradient(135deg, #064e3b, #111827);
}

.poster-side h2 {
  margin-top: 16px;
}

.poster-side p {
  margin: 0;
  color: var(--muted);
}

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

.side-item {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.side-item img {
  width: 70px;
  height: 96px;
  object-fit: cover;
  background: linear-gradient(135deg, #064e3b, #111827);
  border-radius: 12px;
}

.side-item strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: 15px;
  line-height: 1.38;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.side-item small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}

.site-footer {
  margin-top: 40px;
  color: rgba(255, 255, 255, 0.82);
  background: #052e16;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0 24px;
}

.footer-inner p {
  max-width: 680px;
  margin: 10px 0 0;
}

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

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

.copyright {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 26px;
  color: rgba(255, 255, 255, 0.54);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

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

  .menu-toggle {
    display: block;
  }

  .hero-content,
  .detail-layout,
  .featured-band,
  .search-panel {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    display: none;
  }

  .movie-grid,
  .movie-grid.wide,
  .category-grid,
  .rank-list.full {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .detail-side {
    position: static;
  }

  .poster-side {
    margin-top: 0;
  }
}

@media (max-width: 760px) {
  .header-inner {
    width: min(100% - 24px, 1240px);
    height: 66px;
  }

  .brand-text small {
    display: none;
  }

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

  .hero-carousel,
  .hero-content {
    min-height: 600px;
  }

  .hero-content {
    padding: 92px 0 84px;
  }

  .section-container {
    width: min(100% - 24px, 1240px);
    padding: 42px 0;
  }

  .page-hero {
    width: min(100% - 24px, 1240px);
    flex-direction: column;
    align-items: stretch;
    padding: 34px 24px;
    border-radius: 24px;
  }

  .section-heading,
  .footer-inner,
  .detail-title-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .wide-search,
  .page-filter,
  .search-page-form {
    flex-direction: column;
    align-items: stretch;
  }

  .movie-grid,
  .movie-grid.wide,
  .category-grid,
  .rank-list,
  .rank-list.full,
  .featured-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .featured-band {
    padding: 26px;
    border-radius: 24px;
  }

  .movie-card.compact {
    grid-template-columns: 78px minmax(0, 1fr);
  }

  .card-body {
    padding: 12px;
  }

  .card-body h3 {
    font-size: 15px;
  }

  .card-desc,
  .card-tags {
    display: none;
  }

  .detail-article,
  .side-card {
    padding: 20px;
    border-radius: 20px;
  }
}

@media (max-width: 460px) {
  .movie-grid,
  .movie-grid.wide,
  .category-grid,
  .rank-list,
  .rank-list.full,
  .featured-list {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    font-size: 36px;
  }

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