:root {
  --site-green: #15803d;
  --site-green-dark: #14532d;
  --site-amber: #f59e0b;
  --site-text: #18212f;
  --site-muted: #64748b;
  --site-soft: #f8faf5;
  --site-line: rgba(20, 83, 45, 0.14);
  --site-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

body {
  background: linear-gradient(180deg, #fffaf0 0%, #f7fbf4 42%, #ffffff 100%);
  color: var(--site-text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(255, 251, 235, 0.96), rgba(255, 255, 255, 0.96), rgba(240, 253, 244, 0.96));
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(217, 119, 6, 0.18);
  box-shadow: 0 8px 30px rgba(22, 101, 52, 0.08);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--site-green-dark);
  text-decoration: none;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  font-weight: 900;
  font-size: 22px;
  background: linear-gradient(135deg, #16a34a, #166534);
  box-shadow: 0 10px 25px rgba(22, 101, 52, 0.25);
}

.brand-name {
  display: block;
  font-weight: 900;
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.brand-sub {
  display: block;
  color: #16a34a;
  font-size: 12px;
  margin-top: 4px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  padding: 10px 14px;
  border-radius: 12px;
  color: #334155;
  font-weight: 700;
  text-decoration: none;
  transition: 0.2s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--site-green-dark);
  background: rgba(34, 197, 94, 0.1);
}

.header-search {
  display: flex;
  align-items: center;
  position: relative;
}

.header-search input,
.search-box input,
.filter-box input {
  width: 230px;
  border: 1px solid rgba(148, 163, 184, 0.55);
  border-radius: 999px;
  padding: 11px 44px 11px 16px;
  outline: none;
  background: rgba(255, 255, 255, 0.88);
  transition: 0.2s ease;
}

.header-search input:focus,
.search-box input:focus,
.filter-box input:focus {
  border-color: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.13);
}

.header-search button,
.search-box button {
  position: absolute;
  right: 5px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: var(--site-green);
  color: #fff;
  cursor: pointer;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(22, 101, 52, 0.08);
  color: var(--site-green-dark);
  font-size: 22px;
}

.mobile-panel {
  display: none;
  padding: 0 0 18px;
}

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

.mobile-panel a {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  color: #334155;
  text-decoration: none;
  font-weight: 700;
}

.hero-carousel {
  position: relative;
  overflow: hidden;
  background: #0f172a;
}

.hero-slide {
  display: none;
  min-height: 620px;
  align-items: center;
  background-size: cover;
  background-position: center;
}

.hero-slide.is-active {
  display: flex;
}

.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  align-items: center;
  gap: 50px;
  padding: 82px 0 92px;
  color: #fff;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fef3c7;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.hero-title {
  margin: 18px 0 16px;
  max-width: 780px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.02;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.hero-desc {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.85;
}

.hero-meta,
.detail-meta,
.card-meta,
.rank-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.hero-meta span,
.detail-meta span,
.card-meta span,
.rank-meta span {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: inherit;
  font-size: 13px;
  font-weight: 700;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  transition: 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #22c55e, #15803d);
  color: #fff;
  box-shadow: 0 14px 30px rgba(21, 128, 61, 0.34);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(21, 128, 61, 0.42);
}

.btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}

.btn-light {
  color: var(--site-green-dark);
  background: #fff;
  border-color: rgba(21, 128, 61, 0.16);
}

.hero-poster {
  justify-self: end;
  width: min(360px, 100%);
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.28);
  transform: rotate(2deg);
  transition: 0.25s ease;
}

.hero-poster:hover {
  transform: translateY(-5px) rotate(0deg);
}

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

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

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

.hero-dots button.is-active {
  width: 34px;
  background: #fbbf24;
}

.section {
  padding: 58px 0;
}

.section-soft {
  background: rgba(240, 253, 244, 0.58);
}

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

.section-eyebrow {
  color: var(--site-green);
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 12px;
}

.section-title {
  margin: 8px 0 0;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.15;
  font-weight: 950;
  color: #111827;
}

.section-desc {
  max-width: 720px;
  color: var(--site-muted);
  line-height: 1.85;
}

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  transition: 0.22s ease;
}

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

.movie-card a {
  color: inherit;
  text-decoration: none;
}

.card-cover {
  position: relative;
  height: 280px;
  overflow: hidden;
  background: linear-gradient(135deg, #14532d, #0f172a);
}

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

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

.card-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(254, 243, 199, 0.92);
  color: #92400e;
  font-size: 12px;
  font-weight: 900;
}

.card-body {
  padding: 18px;
}

.card-title {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 950;
  color: #0f172a;
}

.card-title a:hover {
  color: var(--site-green);
}

.card-desc {
  min-height: 48px;
  margin: 0 0 14px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.7;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.card-tags span,
.detail-tags span,
.filter-tags button,
.category-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  background: #f1f5f9;
  color: #475569;
  font-size: 12px;
  font-weight: 800;
}

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

.category-card {
  position: relative;
  min-height: 190px;
  padding: 28px;
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(135deg, #ffffff, #f0fdf4);
  border: 1px solid rgba(34, 197, 94, 0.14);
  color: #0f172a;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
  text-decoration: none;
}

.category-card:after {
  content: "";
  position: absolute;
  right: -46px;
  bottom: -46px;
  width: 138px;
  height: 138px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.16);
}

.category-card h2,
.category-card h3 {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 950;
}

.category-card p {
  margin: 0 0 18px;
  color: #64748b;
  line-height: 1.75;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 72px 86px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
  color: inherit;
  text-decoration: none;
}

.rank-num {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #fff;
  font-size: 22px;
  font-weight: 950;
  background: linear-gradient(135deg, #f59e0b, #15803d);
}

.rank-item img {
  width: 86px;
  height: 108px;
  border-radius: 14px;
  object-fit: cover;
}

.rank-title {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 950;
}

.rank-desc {
  margin: 0;
  color: #64748b;
  line-height: 1.75;
}

.page-hero {
  padding: 68px 0 48px;
  background: radial-gradient(circle at 10% 0%, rgba(245, 158, 11, 0.18), transparent 32%), linear-gradient(135deg, #f7fee7, #ffffff 58%, #ecfdf5);
  border-bottom: 1px solid rgba(34, 197, 94, 0.12);
}

.page-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  font-weight: 950;
  color: #0f172a;
}

.page-hero p {
  margin: 0;
  max-width: 780px;
  color: #64748b;
  font-size: 18px;
  line-height: 1.85;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: #64748b;
  font-size: 14px;
}

.breadcrumb a {
  color: var(--site-green);
  text-decoration: none;
  font-weight: 800;
}

.filter-panel {
  margin-bottom: 26px;
  padding: 20px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.filter-box {
  flex: 1 1 260px;
}

.filter-box input {
  width: 100%;
}

.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-tags button {
  border: 0;
  cursor: pointer;
}

.filter-tags button.is-active {
  background: #dcfce7;
  color: #166534;
}

.empty-message {
  display: none;
  margin: 34px 0;
  padding: 26px;
  border-radius: 18px;
  background: #fff7ed;
  color: #9a3412;
  font-weight: 800;
}

.detail-hero {
  background-size: cover;
  background-position: center;
  color: #fff;
}

.detail-hero-inner {
  padding: 74px 0;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 42px;
  align-items: end;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.detail-poster img {
  width: 100%;
  height: 430px;
  object-fit: cover;
}

.detail-title {
  margin: 12px 0 16px;
  font-size: clamp(36px, 6vw, 70px);
  line-height: 1.02;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.detail-one-line {
  max-width: 830px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 1.85;
}

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

.player-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.24);
}

.player-wrap video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
  cursor: pointer;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  transition: opacity 0.22s ease, visibility 0.22s ease;
  z-index: 2;
}

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

.play-button {
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: #fff;
  font-size: 36px;
  background: linear-gradient(135deg, #22c55e, #15803d);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.36);
  cursor: pointer;
}

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

.content-card,
.side-card {
  padding: 28px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.07);
}

.content-card h2,
.side-card h2 {
  margin: 0 0 16px;
  font-size: 24px;
  font-weight: 950;
}

.content-card p {
  color: #475569;
  line-height: 1.95;
  font-size: 16px;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

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

.side-movie {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 12px;
  color: inherit;
  text-decoration: none;
  align-items: center;
}

.side-movie img {
  width: 70px;
  height: 88px;
  border-radius: 12px;
  object-fit: cover;
}

.side-movie strong {
  display: block;
  color: #0f172a;
  margin-bottom: 5px;
}

.side-movie span {
  color: #64748b;
  font-size: 13px;
}

.search-area {
  padding: 34px;
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--site-shadow);
  border: 1px solid rgba(226, 232, 240, 0.95);
}

.search-box {
  position: relative;
  max-width: 760px;
}

.search-box input {
  width: 100%;
  font-size: 16px;
  padding: 15px 58px 15px 20px;
}

.search-box button {
  top: 6px;
  width: 44px;
  height: 44px;
}

.site-footer {
  padding: 46px 0 28px;
  background: linear-gradient(180deg, #111827, #0f172a);
  color: #cbd5e1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 30px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.footer-grid h2,
.footer-grid h3 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 18px;
  font-weight: 950;
}

.footer-grid p,
.footer-grid a {
  color: #cbd5e1;
  line-height: 1.75;
  text-decoration: none;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-bottom {
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: #94a3b8;
  font-size: 14px;
}

.line-clamp-1,
.line-clamp-2,
.line-clamp-3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-1 {
  -webkit-line-clamp: 1;
}

.line-clamp-2 {
  -webkit-line-clamp: 2;
}

.line-clamp-3 {
  -webkit-line-clamp: 3;
}

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

  .nav-toggle {
    display: block;
  }

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

  .hero-poster {
    justify-self: start;
    width: 280px;
  }

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

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

  .rank-item {
    grid-template-columns: 52px 72px minmax(0, 1fr);
  }

  .rank-item .btn {
    grid-column: 3;
    justify-self: start;
  }
}

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

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

  .hero-slide {
    min-height: auto;
  }

  .hero-content {
    padding: 52px 0 76px;
    gap: 28px;
  }

  .hero-poster img {
    height: 360px;
  }

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

  .card-cover {
    height: 320px;
  }

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

  .detail-hero-inner {
    padding: 52px 0;
  }

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

  .detail-poster img {
    height: 350px;
  }

  .content-card,
  .side-card,
  .search-area {
    padding: 22px;
  }

  .rank-item {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .rank-item img {
    display: none;
  }

  .rank-item .btn {
    grid-column: 2;
  }
}
