:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-strong: #f1f5f9;
  --text: #0f172a;
  --muted: #64748b;
  --soft: #e2e8f0;
  --teal: #0d9488;
  --teal-dark: #0f766e;
  --blue: #2563eb;
  --indigo: #4f46e5;
  --orange: #f97316;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(14px);
}

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

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: clamp(20px, 2vw, 28px);
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  box-shadow: 0 14px 30px rgba(13, 148, 136, 0.28);
}

.brand-text {
  background: linear-gradient(90deg, var(--teal), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: #334155;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--teal-dark);
  background: rgba(13, 148, 136, 0.08);
  transform: translateY(-1px);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 250px;
  max-width: 330px;
  flex: 1;
}

.search-input,
.filter-input,
.filter-select {
  width: 100%;
  border: 1px solid var(--soft);
  background: #ffffff;
  border-radius: 999px;
  padding: 12px 16px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input:focus,
.filter-input:focus,
.filter-select:focus {
  border-color: rgba(13, 148, 136, 0.72);
  box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.14);
}

.search-button,
.primary-button,
.ghost-button,
.mobile-toggle,
.player-cover {
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.search-button,
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.22);
}

.search-button:hover,
.primary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 44px rgba(37, 99, 235, 0.28);
}

.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.12);
}

.ghost-button:hover {
  color: var(--teal-dark);
  background: #ffffff;
  transform: translateY(-2px);
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  color: var(--text);
  background: var(--surface-strong);
}

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, var(--teal), var(--blue) 55%, var(--indigo));
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 130px;
  background: linear-gradient(0deg, var(--bg), rgba(248, 250, 252, 0));
  pointer-events: none;
}

.hero-slider {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

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

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  filter: saturate(1.08) contrast(1.04);
}

.hero-slide.is-active .hero-image {
  animation: heroZoom 8s ease forwards;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 18%, rgba(20, 184, 166, 0.35), transparent 28%),
    radial-gradient(circle at 86% 20%, rgba(37, 99, 235, 0.32), transparent 32%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.88), rgba(15, 23, 42, 0.62) 44%, rgba(15, 23, 42, 0.2));
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 620px;
  display: flex;
  align-items: center;
}

.hero-panel {
  width: min(720px, 100%);
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 34px;
  background: rgba(15, 23, 42, 0.28);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #ccfbf1;
  background: rgba(20, 184, 166, 0.16);
  border: 1px solid rgba(94, 234, 212, 0.28);
  font-size: 14px;
  font-weight: 800;
}

.hero h1,
.hero h2,
.page-hero h1,
.detail-title h1 {
  margin: 0;
  font-weight: 950;
  line-height: 1.06;
  letter-spacing: -0.055em;
}

.hero h1,
.hero h2 {
  font-size: clamp(42px, 7vw, 82px);
}

.hero-summary {
  margin: 20px 0 0;
  max-width: 680px;
  color: #dbeafe;
  font-size: clamp(17px, 2vw, 22px);
}

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

.hero-meta {
  margin-top: 20px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 11px;
  border-radius: 999px;
  color: #334155;
  background: #f1f5f9;
  font-size: 13px;
  font-weight: 800;
}

.hero .pill {
  color: #e0f2fe;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

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

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

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
}

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

.lift-cards {
  position: relative;
  z-index: 3;
  margin-top: -72px;
}

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

.feature-card,
.category-card,
.movie-card,
.info-card,
.rank-card,
.detail-main,
.related-card {
  background: var(--surface);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.feature-card {
  padding: 26px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover,
.category-card:hover,
.movie-card:hover,
.related-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.14);
}

.feature-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  border-radius: 22px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  font-size: 28px;
}

.section {
  padding: 72px 0;
}

.section-soft {
  background: #f1f5f9;
}

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

.section-kicker {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--teal-dark);
  font-weight: 900;
}

.section-title {
  margin: 0;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.045em;
}

.section-desc,
.page-desc,
.card-text,
.movie-line,
.detail-lead,
.detail-body p {
  color: var(--muted);
}

.section-desc {
  max-width: 760px;
  margin: 10px 0 0;
  font-size: 17px;
}

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

.movie-card,
.related-card,
.category-card {
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-cover,
.related-cover,
.category-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a, #0d9488);
}

.movie-cover img,
.related-cover img,
.category-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.cover-shade {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 14px;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.78), rgba(2, 6, 23, 0.04) 60%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.movie-card:hover .cover-shade,
.related-card:hover .cover-shade,
.category-card:hover .cover-shade {
  opacity: 1;
}

.play-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--teal-dark);
  font-weight: 900;
  font-size: 13px;
}

.movie-body,
.related-body,
.category-body {
  padding: 18px;
}

.movie-title,
.related-title,
.category-title {
  margin: 0 0 8px;
  font-size: 19px;
  line-height: 1.25;
  font-weight: 900;
  letter-spacing: -0.025em;
}

.movie-card:hover .movie-title,
.related-card:hover .related-title,
.category-card:hover .category-title {
  color: var(--teal-dark);
}

.movie-line,
.card-text {
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-meta {
  margin-bottom: 12px;
}

.page-hero {
  color: #ffffff;
  background:
    radial-gradient(circle at 12% 20%, rgba(20, 184, 166, 0.36), transparent 30%),
    radial-gradient(circle at 85% 10%, rgba(96, 165, 250, 0.34), transparent 34%),
    linear-gradient(135deg, #0f766e, #2563eb 60%, #4f46e5);
  padding: 76px 0;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(38px, 5vw, 62px);
}

.page-desc {
  max-width: 800px;
  margin: 16px 0 0;
  color: #dbeafe;
  font-size: 18px;
}

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

.filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) repeat(3, minmax(150px, 0.5fr));
  gap: 12px;
  margin: 0 0 28px;
  padding: 18px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
}

.empty-state {
  display: none;
  padding: 32px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--soft);
  border-radius: 20px;
  background: #ffffff;
}

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

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

.rank-card {
  display: grid;
  grid-template-columns: 84px 150px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px;
  overflow: hidden;
}

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

.rank-thumb {
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
}

.rank-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

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

.detail-main {
  overflow: hidden;
}

.player-section {
  background: #020617;
}

.video-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #020617;
  overflow: hidden;
}

.video-shell video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #020617;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #ffffff;
  background:
    radial-gradient(circle at center, rgba(13, 148, 136, 0.18), rgba(2, 6, 23, 0.68)),
    linear-gradient(0deg, rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.35));
  border-radius: 0;
}

.player-cover:hover {
  background:
    radial-gradient(circle at center, rgba(37, 99, 235, 0.24), rgba(2, 6, 23, 0.64)),
    linear-gradient(0deg, rgba(2, 6, 23, 0.68), rgba(2, 6, 23, 0.28));
}

.play-ring {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--teal-dark);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
  font-size: 34px;
}

.player-section.is-playing .player-cover {
  display: none;
}

.detail-content {
  padding: 28px;
}

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

.detail-title h1 {
  font-size: clamp(32px, 4vw, 52px);
}

.detail-lead {
  margin: 18px 0;
  font-size: 18px;
}

.detail-body {
  display: grid;
  gap: 24px;
  margin-top: 28px;
}

.detail-body h2,
.sidebar-title {
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.detail-body p {
  margin: 0;
  font-size: 17px;
}

.sidebar {
  display: grid;
  gap: 18px;
}

.info-card {
  padding: 22px;
}

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

.info-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--soft);
  padding-bottom: 10px;
}

.info-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.info-label {
  color: var(--muted);
}

.info-value {
  font-weight: 800;
  text-align: right;
}

.related-grid {
  display: grid;
  gap: 16px;
}

.search-hero-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  max-width: 820px;
  margin-top: 26px;
}

.site-footer {
  color: #cbd5e1;
  background: linear-gradient(135deg, #1e293b, #0f172a 58%, #0f766e);
  padding: 48px 0 28px;
}

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

.footer-title {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 20px;
  font-weight: 900;
}

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

.footer-links a:hover {
  color: #5eead4;
}

.footer-bottom {
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  color: #94a3b8;
  font-size: 14px;
}

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

@keyframes heroZoom {
  from {
    transform: scale(1.06);
  }

  to {
    transform: scale(1.12);
  }
}

@media (max-width: 980px) {
  .header-inner {
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .site-nav,
  .header-search {
    display: none;
    width: 100%;
  }

  .site-header.is-open .site-nav,
  .site-header.is-open .header-search {
    display: flex;
  }

  .site-header.is-open .site-nav {
    flex-direction: column;
    align-items: stretch;
  }

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

  .hero,
  .hero-content {
    min-height: 640px;
  }

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

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

  .rank-card {
    grid-template-columns: 64px 120px 1fr;
  }
}

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

  .hero-panel {
    padding: 24px;
    border-radius: 26px;
  }

  .hero-actions,
  .section-heading,
  .search-hero-form {
    display: grid;
    grid-template-columns: 1fr;
  }

  .section {
    padding: 54px 0;
  }

  .movie-grid {
    gap: 16px;
  }

  .rank-card {
    grid-template-columns: 52px 1fr;
  }

  .rank-thumb {
    display: none;
  }
}
