:root {
  --bg: #f8fafc;
  --panel: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --emerald: #059669;
  --emerald-dark: #047857;
  --emerald-soft: #ecfdf5;
  --amber: #d97706;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
  --shadow-soft: 0 10px 24px rgba(15, 23, 42, 0.08);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(17, 24, 39, 0.92);
  color: #ffffff;
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.nav-wrap {
  max-width: 1280px;
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 0 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--emerald), #10b981);
  box-shadow: 0 10px 25px rgba(5, 150, 105, 0.35);
}

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

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

.brand-text em {
  font-style: normal;
  font-size: 12px;
  color: #9ca3af;
}

.desktop-nav {
  display: flex;
  gap: 6px;
  margin-left: auto;
}

.desktop-nav a,
.mobile-nav a {
  padding: 9px 13px;
  border-radius: 999px;
  color: #d1d5db;
  transition: background 0.2s ease, color 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active,
.mobile-nav a:hover,
.mobile-nav a.is-active {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.top-search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 290px;
}

.top-search input,
.mobile-nav input,
.hero-search-panel input,
.filter-bar input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  outline: none;
  background: #ffffff;
  color: var(--text);
}

.top-search button,
.mobile-nav button,
.hero-search-panel button {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  background: var(--emerald);
  color: #ffffff;
  cursor: pointer;
  white-space: nowrap;
}

.mobile-menu-button {
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  padding: 0 24px 18px;
  gap: 10px;
  flex-direction: column;
}

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

.hero-slider {
  position: relative;
  min-height: 68vh;
  overflow: hidden;
  background: #0f172a;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.55s ease, transform 0.8s ease;
  background-image: linear-gradient(90deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.46), rgba(0, 0, 0, 0.10)), var(--hero-image);
  background-size: cover;
  background-position: center;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: auto 0 0;
  height: 40%;
  background: linear-gradient(0deg, var(--bg), transparent);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(680px, calc(100% - 48px));
  margin-left: max(24px, calc((100vw - 1280px) / 2 + 24px));
  padding-top: 16vh;
  color: #ffffff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  background: var(--emerald);
  border-radius: 999px;
  padding: 6px 13px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hero-content h1 {
  font-size: clamp(40px, 7vw, 74px);
  line-height: 1.05;
  margin: 20px 0 18px;
  text-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

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

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

.hero-tags span,
.tag-row span,
.detail-tags a {
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 13px;
}

.tag-row span {
  background: var(--emerald-soft);
  color: var(--emerald-dark);
}

.detail-tags a {
  background: var(--emerald-soft);
  color: var(--emerald-dark);
}

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

.primary-button,
.ghost-button,
.panel-link,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  background: var(--emerald);
  color: #ffffff;
  box-shadow: 0 18px 36px rgba(5, 150, 105, 0.30);
}

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

.primary-button:hover,
.ghost-button:hover,
.panel-link:hover,
.section-more:hover {
  transform: translateY(-2px);
}

.hero-control {
  position: absolute;
  z-index: 4;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 34px;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

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

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

.hero-search-panel {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  width: min(720px, calc(100% - 48px));
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.60);
  border-radius: 999px;
  padding: 8px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.hero-search-panel form {
  display: flex;
  gap: 8px;
}

.page-width,
.page-shell {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
}

.page-section,
.category-strip,
.table-card,
.article-card,
.detail-grid,
.filter-bar,
.page-hero {
  margin-top: 42px;
}

.category-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.category-strip a {
  background: #ffffff;
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-soft);
  font-weight: 800;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-strip span {
  color: var(--emerald);
  font-size: 13px;
  font-weight: 700;
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.15;
}

.section-heading p {
  margin: 8px 0 0;
  color: var(--muted);
}

.section-more,
.panel-link {
  background: var(--emerald-soft);
  color: var(--emerald-dark);
}

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

.movie-card {
  background: #ffffff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

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

.poster-link img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.movie-card:hover .poster-link img {
  transform: scale(1.06);
}

.play-badge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(5, 150, 105, 0.94);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

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

.movie-title {
  display: block;
  font-weight: 850;
  line-height: 1.35;
  margin-bottom: 8px;
}

.movie-title:hover {
  color: var(--emerald-dark);
}

.movie-meta {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 9px;
}

.movie-line {
  color: #4b5563;
  margin: 0 0 12px;
  font-size: 14px;
}

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

.ranking-panel {
  position: sticky;
  top: 96px;
  background: #ffffff;
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-soft);
}

.ranking-panel h2 {
  margin: 0 0 16px;
}

.ranking-panel ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.ranking-panel li {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 9px;
}

.rank-num {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--emerald-soft);
  color: var(--emerald-dark);
  font-weight: 900;
}

.ranking-panel em {
  font-style: normal;
  color: var(--muted);
  font-size: 13px;
}

.panel-link {
  margin-top: 18px;
  width: 100%;
}

.page-shell {
  padding: 30px 0 56px;
}

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

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

.page-hero {
  background: linear-gradient(135deg, #064e3b, #111827 65%, #0f172a);
  border-radius: 28px;
  color: #ffffff;
  padding: clamp(32px, 6vw, 66px);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.page-hero.compact h1 {
  margin: 18px 0 12px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.1;
}

.page-hero.compact p {
  max-width: 760px;
  margin: 0;
  color: #d1d5db;
  font-size: 18px;
}

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

.category-tile {
  background: #ffffff;
  border-radius: var(--radius);
  padding: 16px;
  display: grid;
  grid-template-columns: 122px 1fr;
  gap: 16px;
  box-shadow: var(--shadow-soft);
}

.category-poster-stack {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
}

.category-poster-stack img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 10px;
  background: #e5e7eb;
}

.category-tile h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.category-tile p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 14px;
}

.category-tile span {
  color: var(--emerald-dark);
  font-weight: 800;
}

.filter-bar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  background: #ffffff;
  border-radius: var(--radius);
  padding: 18px 22px;
  box-shadow: var(--shadow-soft);
}

.filter-bar strong {
  font-size: 28px;
  color: var(--emerald-dark);
}

.filter-bar label {
  min-width: min(440px, 100%);
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

.empty-state {
  background: #ffffff;
  border-radius: var(--radius);
  padding: 24px;
  color: var(--muted);
  text-align: center;
  box-shadow: var(--shadow-soft);
}

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

.movie-card-horizontal {
  display: grid;
  grid-template-columns: 100px 1fr;
  align-items: stretch;
}

.movie-card-horizontal .poster-link {
  aspect-ratio: auto;
  min-height: 148px;
}

.table-card,
.article-card {
  background: #ffffff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 24px;
}

.table-scroll {
  overflow-x: auto;
}

.ranking-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.ranking-table th,
.ranking-table td {
  border-bottom: 1px solid var(--line);
  padding: 12px 10px;
  text-align: left;
}

.ranking-table th {
  color: #374151;
  background: #f9fafb;
}

.ranking-table a {
  color: var(--emerald-dark);
  font-weight: 800;
}

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

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  border: 0;
  background: radial-gradient(circle, rgba(5, 150, 105, 0.32), rgba(2, 6, 23, 0.80));
  color: #ffffff;
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-icon {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--emerald);
  box-shadow: 0 20px 45px rgba(5, 150, 105, 0.38);
  font-size: 32px;
}

.player-overlay strong {
  font-size: 28px;
}

.player-overlay em {
  font-style: normal;
  color: #d1d5db;
}

.detail-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 28px;
  align-items: start;
}

.detail-poster {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #e5e7eb;
}

.detail-poster img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.detail-content {
  background: #ffffff;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-soft);
}

.detail-content h1 {
  margin: 18px 0 12px;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.1;
}

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

.info-list {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.info-list li {
  background: #f9fafb;
  border-radius: 14px;
  padding: 12px;
}

.info-list span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.info-list strong {
  display: block;
  margin-top: 4px;
}

.article-card h2 {
  margin-top: 0;
}

.article-card p {
  color: #374151;
  font-size: 17px;
  margin-bottom: 0;
}

.site-footer {
  background: #111827;
  color: #d1d5db;
  padding: 42px 24px;
}

.footer-grid {
  width: min(1280px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 2fr 1fr;
  gap: 28px;
}

.footer-brand {
  color: #ffffff;
  font-size: 22px;
  margin-bottom: 10px;
}

.site-footer h3 {
  color: #ffffff;
  margin: 0 0 12px;
}

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

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

.footer-links a {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #d1d5db;
}

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

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

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

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

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

  .ranking-panel {
    position: static;
  }
}

@media (max-width: 760px) {
  .nav-wrap {
    min-height: 64px;
    padding: 0 16px;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-menu-button {
    display: inline-flex;
    margin-left: auto;
  }

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

  .brand-text em {
    display: none;
  }

  .hero-slider {
    min-height: 78vh;
  }

  .hero-content {
    width: calc(100% - 36px);
    margin-left: 18px;
    padding-top: 13vh;
  }

  .hero-control {
    display: none;
  }

  .hero-search-panel {
    border-radius: 22px;
  }

  .hero-search-panel form,
  .filter-bar,
  .mobile-nav form {
    flex-direction: column;
  }

  .page-width,
  .page-shell {
    width: min(100% - 28px, 1280px);
  }

  .category-strip,
  .movie-grid,
  .category-grid,
  .ranking-showcase {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .category-tile,
  .detail-grid,
  .info-list {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 480px) {
  .category-strip,
  .movie-grid,
  .ranking-showcase {
    grid-template-columns: 1fr;
  }

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