:root {
  --bg: #07120d;
  --bg-soft: #0b1f15;
  --panel: rgba(255, 255, 255, 0.08);
  --panel-strong: rgba(255, 255, 255, 0.14);
  --text: #f7fff9;
  --muted: #b6d7c2;
  --green: #16a34a;
  --green-bright: #22c55e;
  --green-deep: #064e3b;
  --yellow: #fde047;
  --line: rgba(255, 255, 255, 0.12);
  --shadow: 0 26px 80px rgba(0, 0, 0, 0.35);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(34, 197, 94, 0.24), transparent 34rem),
    linear-gradient(135deg, #07120d 0%, #0b1f15 46%, #06251a 100%);
  color: var(--text);
  line-height: 1.65;
}

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: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(6, 78, 59, 0.82);
  backdrop-filter: blur(20px);
}

.header-inner {
  width: min(1200px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.logo-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #06351f;
  background: linear-gradient(135deg, #fde047, #22c55e);
  box-shadow: 0 12px 30px rgba(34, 197, 94, 0.28);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  color: #dbffe5;
  font-size: 14px;
}

.desktop-nav a,
.mobile-panel a,
.footer-links a {
  transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.mobile-panel a:hover,
.footer-links a:hover {
  color: var(--yellow);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.2);
}

.header-search input,
.mobile-search input,
.big-search input,
.filter-panel input,
.filter-panel select {
  border: 0;
  outline: none;
  color: var(--text);
  background: transparent;
}

.header-search input::placeholder,
.mobile-search input::placeholder,
.big-search input::placeholder,
.filter-panel input::placeholder {
  color: rgba(219, 255, 229, 0.62);
}

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

.header-search button,
.mobile-search button,
.big-search button,
.btn-primary {
  color: #052a19;
  background: linear-gradient(135deg, #fde047, #22c55e);
  box-shadow: 0 16px 34px rgba(34, 197, 94, 0.23);
}

.header-search button {
  padding: 8px 14px;
}

.header-search button:hover,
.mobile-search button:hover,
.big-search button:hover,
.btn-primary:hover,
.btn-secondary:hover,
.btn-ghost:hover {
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
}

.mobile-panel {
  display: none;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(3, 30, 20, 0.94);
}

.mobile-panel.is-open {
  display: grid;
  gap: 12px;
}

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

.mobile-search input {
  min-width: 0;
  flex: 1;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

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

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

.hero-section {
  padding: 34px 0 28px;
}

.hero-stage {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: linear-gradient(135deg, rgba(20, 83, 45, 0.76), rgba(6, 95, 70, 0.78));
  box-shadow: var(--shadow);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 34px;
  align-items: center;
  padding: clamp(28px, 6vw, 72px);
  opacity: 0;
  transform: translateX(18px);
  pointer-events: none;
  transition: opacity 0.58s ease, transform 0.58s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  opacity: 0.22;
  filter: blur(2px) saturate(1.1);
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 22% 24%, rgba(253, 224, 71, 0.2), transparent 22rem),
    linear-gradient(90deg, rgba(4, 47, 46, 0.94), rgba(4, 47, 46, 0.46));
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--yellow);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  font-size: clamp(36px, 6vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero-copy p,
.page-hero p,
.detail-one-line {
  max-width: 720px;
  color: #d6fadd;
  font-size: 18px;
}

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

.hero-tags span,
.tag-row span,
.detail-meta span,
.rank-meta span,
.rank-meta a,
.card-meta span,
.card-meta a {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: #d6fadd;
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

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

.btn-secondary {
  border: 1px solid rgba(253, 224, 71, 0.45);
  color: var(--yellow);
  background: rgba(253, 224, 71, 0.08);
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.hero-poster {
  justify-self: center;
  width: min(360px, 100%);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  background: rgba(0, 0, 0, 0.18);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.48);
  transform: rotate(2deg);
}

.hero-poster img,
.poster-wrap img,
.rank-cover img,
.detail-cover img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: linear-gradient(135deg, #052e1a, #0f5132);
}

.hero-dots {
  position: absolute;
  left: clamp(28px, 6vw, 72px);
  bottom: 28px;
  display: flex;
  gap: 10px;
}

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

.hero-dot.is-active {
  background: var(--yellow);
}

.quick-search-panel,
.search-page-panel,
.filter-panel,
.page-hero,
.detail-hero,
.player-section,
.detail-content article,
.category-card,
.category-overview-card,
.movie-card,
.rank-row {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}

.quick-search-panel {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 22px;
  align-items: center;
  padding: 24px;
}

.quick-search-panel h2,
.section-heading h2,
.player-section h2,
.detail-content h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 36px);
}

.quick-search-panel p,
.movie-card p,
.rank-info p,
.detail-content p,
.category-card strong,
.category-overview-head strong,
.site-footer p {
  color: var(--muted);
}

.big-search {
  display: flex;
  gap: 10px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.18);
}

.big-search input {
  min-width: 0;
  flex: 1;
  padding: 14px 18px;
}

.big-search button {
  padding: 0 22px;
}

.section-block {
  margin: 42px 0;
}

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

.section-heading a {
  color: var(--yellow);
  font-weight: 800;
}

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

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

.movie-card {
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.movie-card:hover,
.rank-row:hover,
.category-card:hover,
.category-overview-card:hover {
  transform: translateY(-4px);
  border-color: rgba(253, 224, 71, 0.34);
  background: var(--panel-strong);
}

.poster-wrap {
  position: relative;
  display: block;
  overflow: hidden;
}

.poster-year {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #052a19;
  background: var(--yellow);
  font-size: 12px;
  font-weight: 900;
}

.movie-card-body {
  padding: 14px;
}

.movie-card h3,
.rank-info h3 {
  margin: 10px 0 8px;
  font-size: 18px;
  line-height: 1.28;
}

.compact-card h3 {
  font-size: 16px;
}

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

.category-card,
.category-overview-card {
  padding: 20px;
}

.category-card span,
.category-overview-head span {
  display: block;
  margin-bottom: 8px;
  color: var(--yellow);
  font-weight: 900;
  font-size: 22px;
}

.category-card strong,
.category-overview-head strong {
  display: block;
  min-height: 54px;
  font-weight: 500;
}

.mini-link-row,
.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.mini-link-row a,
.category-samples a,
.channel-nav a {
  padding: 8px 12px;
  border-radius: 999px;
  color: #d6fadd;
  background: rgba(255, 255, 255, 0.08);
  font-size: 13px;
}

.page-hero {
  margin: 34px 0 26px;
  padding: clamp(26px, 5vw, 54px);
  background:
    radial-gradient(circle at right top, rgba(253, 224, 71, 0.18), transparent 22rem),
    linear-gradient(135deg, rgba(6, 95, 70, 0.86), rgba(20, 83, 45, 0.54));
}

.small-hero h1,
.category-hero h1 {
  font-size: clamp(34px, 4vw, 58px);
}

.channel-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.channel-nav a.is-current {
  color: #052a19;
  background: var(--yellow);
  font-weight: 900;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1fr 220px 220px;
  gap: 14px;
  padding: 18px;
  margin-bottom: 26px;
}

.filter-panel label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.16);
}

.rank-list {
  display: grid;
  gap: 14px;
  margin: 34px 0 54px;
}

.rank-row {
  display: grid;
  grid-template-columns: 60px 88px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.rank-number {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #052a19;
  background: linear-gradient(135deg, #fde047, #22c55e);
  font-weight: 900;
}

.rank-cover {
  overflow: hidden;
  border-radius: 14px;
}

.search-page-panel {
  padding: 24px;
}

.search-status {
  margin-top: 14px;
  color: var(--muted);
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(220px, 330px) 1fr;
  gap: clamp(24px, 5vw, 54px);
  align-items: center;
  margin: 34px 0;
  padding: clamp(22px, 5vw, 46px);
  background:
    radial-gradient(circle at 20% 20%, rgba(253, 224, 71, 0.18), transparent 24rem),
    linear-gradient(135deg, rgba(6, 95, 70, 0.78), rgba(6, 78, 59, 0.42));
}

.detail-cover {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.42);
}

.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--yellow);
  font-size: 14px;
  font-weight: 800;
}

.detail-meta {
  margin: 18px 0;
}

.detail-tags {
  margin-bottom: 24px;
}

.player-section {
  padding: clamp(18px, 4vw, 32px);
}

.video-shell {
  position: relative;
  overflow: hidden;
  margin-top: 18px;
  border-radius: 24px;
  background: #000;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

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

.play-overlay {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 118px;
  height: 118px;
  border: 0;
  border-radius: 50%;
  color: #052a19;
  background: linear-gradient(135deg, #fde047, #22c55e);
  box-shadow: 0 20px 60px rgba(34, 197, 94, 0.38);
  font-weight: 900;
}

.play-overlay.is-hidden {
  display: none;
}

.detail-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 28px 0;
}

.detail-content article {
  padding: 24px;
}

.site-footer {
  margin-top: 64px;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.18);
}

.footer-inner {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 30px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.is-hidden-by-filter {
  display: none !important;
}

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

  .header-search {
    margin-left: auto;
  }

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

  .hero-slide {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    display: none;
  }

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

@media (max-width: 760px) {
  .header-search {
    display: none;
  }

  .hero-stage {
    min-height: 620px;
    border-radius: 24px;
  }

  .quick-search-panel,
  .filter-panel,
  .detail-hero,
  .detail-content,
  .category-grid,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

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

  .rank-row {
    grid-template-columns: 44px 72px 1fr;
    gap: 12px;
  }

  .rank-info p {
    display: none;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  main,
  .header-inner,
  .mobile-panel,
  .footer-inner {
    width: min(100% - 20px, 1200px);
  }

  .hero-slide {
    padding: 24px;
  }

  .hero-copy h1,
  .detail-info h1 {
    font-size: 34px;
  }

  .big-search {
    border-radius: 20px;
    flex-direction: column;
  }

  .big-search button {
    min-height: 46px;
  }

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