:root {
  --site-bg: #f8fafc;
  --site-bg-soft: #ecfdf5;
  --site-panel: #ffffff;
  --site-text: #111827;
  --site-muted: #64748b;
  --site-line: #e5e7eb;
  --site-brand: #059669;
  --site-brand-dark: #047857;
  --site-brand-soft: #d1fae5;
  --site-teal: #0d9488;
  --site-shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
  --site-radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--site-text);
  background: linear-gradient(180deg, #f9fafb 0%, #ffffff 38%, #f8fafc 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(229, 231, 235, 0.85);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
  backdrop-filter: blur(16px);
}

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

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  white-space: nowrap;
  background: linear-gradient(90deg, var(--site-brand), var(--site-teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #ffffff;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--site-brand), var(--site-teal));
  box-shadow: 0 10px 24px rgba(5, 150, 105, 0.28);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: #374151;
  font-size: 15px;
  font-weight: 600;
}

.site-nav a {
  transition: color 0.22s ease;
}

.site-nav a:hover {
  color: var(--site-brand);
}

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

.header-search {
  display: flex;
  align-items: center;
  min-width: 240px;
  padding: 6px;
  border: 1px solid var(--site-line);
  border-radius: 999px;
  background: #ffffff;
}

.header-search input,
.filter-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--site-text);
  background: transparent;
}

.header-search input {
  padding: 8px 12px;
}

.header-search button,
.primary-button,
.ghost-button,
.mobile-menu-button,
.player-button {
  border: 0;
  cursor: pointer;
}

.header-search button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #ffffff;
  border-radius: 999px;
  background: var(--site-brand);
  transition: background 0.22s ease, transform 0.22s ease;
}

.header-search button:hover {
  background: var(--site-brand-dark);
  transform: translateY(-1px);
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  color: #374151;
  border-radius: 999px;
  background: #f3f4f6;
}

.mobile-nav {
  display: none;
  padding: 10px 0 18px;
  border-top: 1px solid var(--site-line);
}

.mobile-nav a {
  display: block;
  padding: 11px 14px;
  border-radius: 14px;
  color: #374151;
  font-weight: 600;
}

.mobile-nav a:hover {
  color: var(--site-brand);
  background: var(--site-brand-soft);
}

main {
  flex: 1;
}

.hero {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  color: #ffffff;
  background: #020617;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 850ms ease;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 20%, rgba(16, 185, 129, 0.28), transparent 28%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.86) 0%, rgba(0, 0, 0, 0.70) 45%, rgba(0, 0, 0, 0.20) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.55), transparent 40%);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding: 86px 0 72px;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  padding: 8px 15px;
  color: #a7f3d0;
  border: 1px solid rgba(167, 243, 208, 0.32);
  border-radius: 999px;
  background: rgba(5, 150, 105, 0.18);
  backdrop-filter: blur(12px);
  font-size: 14px;
  font-weight: 700;
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(42px, 7vw, 74px);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -0.055em;
}

.hero-description {
  max-width: 660px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(18px, 2.4vw, 22px);
}

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

.hero-meta {
  margin-bottom: 30px;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 4px 11px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 13px;
  font-weight: 700;
}

.hero .pill {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, color 0.22s ease;
}

.primary-button {
  color: #ffffff;
  background: var(--site-brand);
  box-shadow: 0 16px 35px rgba(5, 150, 105, 0.28);
}

.primary-button:hover {
  background: var(--site-brand-dark);
  transform: translateY(-2px) scale(1.01);
}

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

.ghost-button:hover {
  color: #064e3b;
  background: #ffffff;
  transform: translateY(-2px);
}

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

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

.hero-dot.is-active {
  background: #10b981;
}

.section {
  padding: 68px 0;
}

.section-soft {
  background: linear-gradient(135deg, #ecfdf5 0%, #f0fdfa 48%, #ecfeff 100%);
}

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

.section-kicker {
  margin: 0 0 7px;
  color: var(--site-brand);
  font-weight: 800;
}

.section-title {
  margin: 0;
  font-size: clamp(28px, 3.5vw, 42px);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.section-desc {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--site-muted);
}

.grid {
  display: grid;
  gap: 22px;
}

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

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.88);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #0f172a, #064e3b);
}

.poster-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease, opacity 0.28s ease;
}

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

.play-mask {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0);
  opacity: 0;
  transition: background 0.28s ease, opacity 0.28s ease;
}

.movie-card:hover .play-mask {
  background: rgba(0, 0, 0, 0.32);
  opacity: 1;
}

.play-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: var(--site-brand);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
}

.duration-badge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 3px 8px;
  color: #ffffff;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.74);
  font-size: 12px;
  font-weight: 700;
}

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

.movie-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 850;
}

.movie-card h3 a:hover {
  color: var(--site-brand);
}

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

.card-meta {
  color: #64748b;
  font-size: 13px;
}

.card-meta .pill {
  color: var(--site-brand-dark);
  background: var(--site-brand-soft);
}

.feature-card {
  position: relative;
  min-height: 410px;
  display: flex;
  align-items: end;
  overflow: hidden;
  border-radius: 28px;
  color: #ffffff;
  background: #020617;
  box-shadow: var(--site-shadow);
}

.feature-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s ease;
}

.feature-card:hover img {
  transform: scale(1.06);
}

.feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.16));
}

.feature-card-content {
  position: relative;
  z-index: 1;
  padding: 28px;
}

.feature-card h3 {
  margin: 12px 0 10px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.15;
  font-weight: 900;
}

.feature-card p {
  color: rgba(255, 255, 255, 0.86);
}

.category-card,
.info-panel,
.detail-panel,
.filter-panel,
.rank-card {
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--site-radius);
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

.category-card {
  min-height: 180px;
  padding: 22px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 20px;
}

.category-card p {
  margin: 0 0 18px;
  color: var(--site-muted);
  font-size: 14px;
}

.count-badge {
  display: inline-flex;
  padding: 5px 10px;
  color: var(--site-brand-dark);
  border-radius: 999px;
  background: var(--site-brand-soft);
  font-size: 13px;
  font-weight: 800;
}

.page-hero {
  padding: 72px 0 52px;
  color: #ffffff;
  background:
    radial-gradient(circle at 15% 12%, rgba(16, 185, 129, 0.34), transparent 34%),
    linear-gradient(135deg, #020617 0%, #064e3b 54%, #0f766e 100%);
}

.page-hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 820px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #ffffff;
}

.filter-panel {
  margin-top: -28px;
  padding: 18px;
  position: relative;
  z-index: 4;
}

.filter-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(130px, 180px));
  gap: 12px;
}

.filter-search,
.filter-panel select {
  min-height: 48px;
  border: 1px solid var(--site-line);
  border-radius: 14px;
  background: #ffffff;
}

.filter-search {
  display: flex;
  align-items: center;
  padding: 0 14px;
}

.filter-panel select {
  padding: 0 12px;
  color: #334155;
  outline: none;
}

.empty-state {
  display: none;
  padding: 30px;
  text-align: center;
  color: var(--site-muted);
  border: 1px dashed var(--site-line);
  border-radius: var(--site-radius);
}

.detail-hero {
  position: relative;
  color: #ffffff;
  background: #020617;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(18px);
  opacity: 0.34;
  transform: scale(1.08);
}

.detail-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.72)), linear-gradient(0deg, #020617 0%, transparent 55%);
}

.detail-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: 34px;
  padding: 62px 0 54px;
}

.detail-poster {
  overflow: hidden;
  border-radius: 26px;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.38);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.detail-copy h1 {
  margin: 0 0 16px;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.06;
  font-weight: 950;
  letter-spacing: -0.055em;
}

.detail-copy .lead {
  max-width: 850px;
  margin: 18px 0 28px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 19px;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 22px;
}

.detail-tags .pill {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
}

.player-section {
  padding: 50px 0 70px;
  background: #020617;
}

.player-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000000;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.32);
}

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

.player-loading,
.player-error {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  padding: 24px;
  text-align: center;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.74);
}

.player-wrap.is-loading .player-loading,
.player-wrap.has-error .player-error {
  display: grid;
}

.player-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.player-wrap:hover .player-overlay {
  opacity: 1;
}

.player-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.player-buttons {
  display: flex;
  gap: 12px;
}

.player-button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: #ffffff;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.20);
  transition: background 0.2s ease;
}

.player-button:hover {
  background: rgba(255, 255, 255, 0.32);
}

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

.detail-panel,
.info-panel {
  padding: 26px;
}

.detail-panel h2,
.info-panel h2,
.info-panel h3 {
  margin: 0 0 14px;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.025em;
}

.detail-panel p,
.info-panel p {
  margin: 0 0 18px;
  color: #475569;
}

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

.info-list li {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--site-line);
  color: #475569;
}

.info-list li:last-child {
  border-bottom: 0;
}

.info-list strong {
  color: #0f172a;
}

.rank-card {
  display: grid;
  grid-template-columns: 62px 144px minmax(0, 1fr);
  gap: 18px;
  padding: 14px;
  align-items: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.rank-number {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  color: #ffffff;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--site-brand), var(--site-teal));
  font-size: 22px;
  font-weight: 950;
}

.rank-card img {
  width: 144px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 16px;
}

.rank-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 900;
}

.rank-card p {
  margin: 0 0 10px;
  color: var(--site-muted);
  font-size: 14px;
}

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--site-line);
  background: linear-gradient(180deg, #f8fafc, #f1f5f9);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.7fr) repeat(3, minmax(160px, 1fr));
  gap: 32px;
  padding: 46px 0;
}

.footer-title {
  display: block;
  margin-bottom: 12px;
  font-size: 24px;
  font-weight: 900;
  background: linear-gradient(90deg, var(--site-brand), var(--site-teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-footer p,
.site-footer a {
  color: #64748b;
  font-size: 14px;
}

.site-footer a:hover {
  color: var(--site-brand);
}

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

.footer-bottom {
  padding: 18px 0 28px;
  color: #64748b;
  border-top: 1px solid var(--site-line);
  font-size: 13px;
  text-align: center;
}

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

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

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

  .mobile-menu-button {
    display: grid;
    place-items: center;
  }

  .site-header.is-open .mobile-nav {
    display: block;
  }

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

  .feature-grid,
  .rank-grid,
  .detail-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .detail-layout {
    padding-top: 42px;
  }

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

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

@media (max-width: 640px) {
  .container {
    width: min(100% - 22px, 1180px);
  }

  .header-inner {
    height: 62px;
  }

  .logo {
    font-size: 20px;
  }

  .hero,
  .hero-content {
    min-height: 76vh;
  }

  .hero-content {
    align-items: end;
    padding-bottom: 76px;
  }

  .hero-meta {
    display: none;
  }

  .section {
    padding: 48px 0;
  }

  .section-head {
    display: block;
  }

  .section-head .primary-button,
  .section-head .ghost-button {
    margin-top: 16px;
  }

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

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

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

  .card-desc {
    display: none;
  }

  .feature-card {
    min-height: 340px;
  }

  .rank-card {
    grid-template-columns: 46px 98px minmax(0, 1fr);
    gap: 12px;
  }

  .rank-number {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    font-size: 18px;
  }

  .rank-card img {
    width: 98px;
  }

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

  .detail-copy h1,
  .page-hero h1 {
    letter-spacing: -0.035em;
  }

  .detail-panel,
  .info-panel {
    padding: 20px;
  }
}
