:root {
  --page-bg: #f8fafc;
  --panel: #ffffff;
  --text: #111827;
  --muted: #64748b;
  --soft: #e5e7eb;
  --emerald: #10b981;
  --emerald-dark: #059669;
  --teal: #0d9488;
  --dark: #0f172a;
  --shadow: 0 18px 40px rgba(15, 23, 42, 0.10);
  --soft-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 16px rgba(15, 23, 42, 0.08);
}

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--emerald), var(--teal));
  box-shadow: 0 14px 30px rgba(16, 185, 129, 0.28);
  transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
  transform: scale(1.05) rotate(-2deg);
}

.brand-mark span {
  display: block;
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 13px solid #ffffff;
  margin-left: 3px;
}

.brand-name {
  font-size: 22px;
  background: linear-gradient(90deg, var(--emerald-dark), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  color: #374151;
  font-weight: 650;
}

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

.nav-links a:hover,
.mobile-nav a:hover,
.footer-inner a:hover {
  color: var(--emerald-dark);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-button,
.menu-button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #f3f4f6;
  color: #334155;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.search-button:hover,
.menu-button:hover {
  background: #ecfdf5;
  color: var(--emerald-dark);
}

.menu-button {
  display: none;
  padding: 10px;
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 3px 0;
  border-radius: 99px;
  background: currentColor;
}

.mobile-nav {
  display: none;
  border-top: 1px solid #eef2f7;
  padding: 12px 20px 18px;
  background: rgba(255, 255, 255, 0.98);
}

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

.main-wrap {
  min-height: 58vh;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 52px 20px;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  color: #ffffff;
  background: radial-gradient(circle at 24% 20%, rgba(16, 185, 129, 0.35), transparent 28%), linear-gradient(135deg, #051923, #0f172a 56%, #042f2e);
}

.hero-stage {
  position: relative;
  max-width: 1180px;
  min-height: 620px;
  margin: 0 auto;
  padding: 66px 20px 54px;
  display: grid;
  align-items: center;
}

.hero-slide {
  display: none;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
  align-items: center;
  gap: 54px;
  animation: fadeIn 0.55s ease both;
}

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

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  color: #a7f3d0;
  font-size: 14px;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

.hero h1 {
  margin: 22px 0 16px;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.hero p {
  max-width: 670px;
  margin: 0;
  color: #cbd5e1;
  font-size: 18px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 32px;
}

.hero-meta span,
.tag-list span,
.stat-badge {
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.11);
  color: #d1fae5;
  font-size: 13px;
  font-weight: 700;
}

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

.primary-button,
.secondary-button,
.text-link,
.filter-panel button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 14px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  padding: 13px 20px;
  background: linear-gradient(135deg, var(--emerald), var(--teal));
  color: #ffffff;
  box-shadow: 0 18px 34px rgba(16, 185, 129, 0.28);
}

.secondary-button {
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.primary-button:hover,
.secondary-button:hover,
.filter-panel button:hover {
  transform: translateY(-2px);
}

.hero-visual {
  position: relative;
  z-index: 1;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 30px -22px -20px 36px;
  border-radius: 34px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.45), rgba(20, 184, 166, 0.18));
  filter: blur(2px);
}

.hero-poster {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.40);
  transform: rotate(2.5deg);
}

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

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, 0.74));
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 9px;
  z-index: 5;
}

.hero-dot {
  width: 11px;
  height: 11px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
  cursor: pointer;
}

.hero-dot.is-active {
  width: 30px;
  background: #ffffff;
}

.hero-search {
  position: relative;
  z-index: 8;
  max-width: 1180px;
  margin: -56px auto 0;
  padding: 0 20px;
}

.hero-search form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.hero-search input {
  min-height: 52px;
  border: 1px solid #e2e8f0;
  border-radius: 15px;
  padding: 0 16px;
  outline: none;
}

.hero-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--emerald);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
}

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

.section-head h1,
.section-head h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.04em;
}

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

.text-link {
  color: var(--emerald-dark);
  font-weight: 800;
}

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

.category-card {
  min-height: 180px;
  padding: 22px;
  border-radius: 24px;
  background: var(--panel);
  box-shadow: var(--soft-shadow);
  border: 1px solid #eef2f7;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: var(--shadow);
}

.category-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--emerald), var(--teal));
}

.category-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.category-card p,
.category-card span {
  color: var(--muted);
  font-size: 14px;
}

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

.movie-card {
  min-width: 0;
}

.movie-poster-link {
  display: block;
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
  background: var(--panel);
  box-shadow: var(--soft-shadow);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-poster-link:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #d1fae5, #e0f2fe);
}

.poster-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.78));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-poster-link:hover .poster-shade {
  opacity: 1;
}

.poster-year {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 9px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.72);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.poster-summary {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  color: #ffffff;
  font-size: 13px;
  line-height: 1.45;
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-poster-link:hover .poster-summary {
  transform: translateY(0);
  opacity: 1;
}

.card-body {
  display: grid;
  gap: 8px;
  padding: 15px;
}

.card-body strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-body span {
  color: var(--muted);
  font-size: 13px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 56px 68px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 18px;
  background: var(--panel);
  box-shadow: var(--soft-shadow);
}

.rank-num {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--emerald), var(--teal));
}

.rank-item img {
  width: 68px;
  height: 92px;
  border-radius: 12px;
  object-fit: cover;
}

.rank-title strong {
  display: block;
  font-size: 17px;
}

.rank-title span {
  display: block;
  color: var(--muted);
  font-size: 14px;
  margin-top: 4px;
}

.score {
  color: var(--emerald-dark);
  font-size: 20px;
  font-weight: 900;
}

.filter-panel {
  margin: 0 0 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  padding: 18px;
  border-radius: 24px;
  background: var(--panel);
  box-shadow: var(--soft-shadow);
}

.filter-search {
  display: grid;
  gap: 8px;
}

.filter-search label {
  font-weight: 800;
}

.filter-panel input,
.filter-panel select {
  min-height: 48px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #ffffff;
  padding: 0 13px;
  outline: none;
}

.filter-selects {
  display: flex;
  align-items: end;
  gap: 10px;
}

.empty-state {
  display: none;
  padding: 30px;
  text-align: center;
  color: var(--muted);
  border-radius: 18px;
  background: #ffffff;
}

.empty-state.is-visible {
  display: block;
}

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

.breadcrumb a {
  color: var(--emerald-dark);
  font-weight: 700;
}

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

.detail-card,
.side-card,
.content-card {
  border-radius: 26px;
  background: var(--panel);
  box-shadow: var(--soft-shadow);
  border: 1px solid #eef2f7;
}

.detail-card {
  padding: 24px;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #020617;
  aspect-ratio: 16 / 9;
  margin-bottom: 24px;
}

.player-box video,
.player-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.player-box video {
  object-fit: cover;
  background: #020617;
}

.player-cover {
  border: 0;
  padding: 0;
  background: rgba(0, 0, 0, 0.30);
  cursor: pointer;
  overflow: hidden;
}

.player-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.58);
}

.play-circle {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 84px;
  height: 84px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(16, 185, 129, 0.92);
  color: #ffffff;
  box-shadow: 0 22px 50px rgba(16, 185, 129, 0.40);
}

.play-circle::before {
  content: "";
  width: 0;
  height: 0;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
  border-left: 23px solid #ffffff;
  margin-left: 5px;
}

.player-cover.is-hidden {
  display: none;
}

.detail-title h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 5vw, 48px);
  letter-spacing: -0.04em;
}

.detail-title p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

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

.info-item {
  padding: 14px;
  border-radius: 16px;
  background: #f8fafc;
}

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

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

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

.tag-list span {
  background: #ecfdf5;
  color: var(--emerald-dark);
}

.content-card {
  margin-top: 24px;
  padding: 24px;
}

.content-card h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.content-card p {
  margin: 0 0 16px;
  color: #334155;
}

.side-card {
  padding: 18px;
}

.side-card h2 {
  margin: 0 0 16px;
  font-size: 22px;
}

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

.compact-card {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: #f8fafc;
  transition: background 0.2s ease, transform 0.2s ease;
}

.compact-card:hover {
  background: #ecfdf5;
  transform: translateX(3px);
}

.compact-card img {
  width: 70px;
  height: 94px;
  border-radius: 12px;
  object-fit: cover;
}

.compact-card strong,
.compact-card em {
  display: block;
}

.compact-card strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-card em {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.site-footer {
  color: #e5e7eb;
  background: linear-gradient(135deg, #111827, #0f172a 55%, #042f2e);
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 46px 20px 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 30px;
}

.footer-grid h2 {
  margin: 0 0 14px;
  color: #6ee7b7;
  font-size: 18px;
}

.footer-grid p,
.footer-grid ul {
  margin: 0;
  padding: 0;
  color: #cbd5e1;
  list-style: none;
  font-size: 14px;
}

.footer-grid li + li {
  margin-top: 8px;
}

.footer-bottom {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  font-size: 14px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1080px) {
  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

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

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

  .menu-button {
    display: inline-grid;
  }

  .hero,
  .hero-stage {
    min-height: auto;
  }

  .hero-stage {
    padding: 42px 20px 72px;
  }

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

  .hero-visual {
    max-width: 320px;
    margin: 0 auto;
  }

  .hero-search form,
  .filter-panel {
    grid-template-columns: 1fr;
  }

  .filter-selects {
    display: grid;
    grid-template-columns: 1fr;
  }

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

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

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

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

  .rank-item .score {
    grid-column: 3;
  }
}

@media (max-width: 560px) {
  .header-inner {
    height: 62px;
    padding: 0 14px;
  }

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

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .container {
    padding: 38px 14px;
  }

  .hero-stage {
    padding-left: 14px;
    padding-right: 14px;
  }

  .hero h1 {
    font-size: 38px;
  }

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

  .hero-search {
    padding: 0 14px;
  }

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

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

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

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

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