:root {
  --blue: #2563eb;
  --cyan: #06b6d4;
  --teal: #0d9488;
  --slate: #0f172a;
  --muted: #64748b;
  --soft: #ecfeff;
  --card: #ffffff;
  --radius: 24px;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: #1f2937;
  background: linear-gradient(180deg, #eff6ff 0%, #ffffff 38%, #ecfeff 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #ffffff;
  background: linear-gradient(90deg, var(--blue), var(--cyan), var(--teal));
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.28);
}

.header-inner {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 26px;
  min-height: 76px;
  position: relative;
  z-index: 2;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.2);
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.brand-text {
  display: grid;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 23px;
  letter-spacing: 0.02em;
}

.brand-text em {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 12px;
  font-style: normal;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}

.nav-link,
.nav-sub-link {
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-sub-link:hover,
.nav-link.is-active {
  color: #ffffff;
  transform: translateY(-1px);
}

.header-search,
.mobile-search,
.big-search {
  display: flex;
  align-items: center;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.header-search input,
.mobile-search input,
.big-search input {
  min-width: 0;
  border: 0;
  outline: 0;
  color: #ffffff;
  background: transparent;
  padding: 11px 14px;
}

.header-search input::placeholder,
.mobile-search input::placeholder,
.big-search input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.header-search button,
.mobile-search button,
.big-search button {
  border: 0;
  color: #0f172a;
  background: #ffffff;
  padding: 11px 16px;
  cursor: pointer;
  font-weight: 800;
}

.menu-toggle {
  display: none;
  border: 0;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
}

.mobile-panel {
  display: none;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 22px;
  position: relative;
  z-index: 2;
}

.mobile-panel.is-open {
  display: block;
}

.mobile-links {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.header-wave {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 22px;
  color: rgba(255, 255, 255, 0.98);
  pointer-events: none;
}

.hero {
  position: relative;
  height: 620px;
  overflow: hidden;
  color: #ffffff;
  background: #0f172a;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
}

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

.hero-slide img,
.category-hero > img,
.ranking-hero > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade,
.category-hero-shade,
.ranking-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.8), rgba(15, 23, 42, 0.52), rgba(15, 23, 42, 0.08));
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.hero-content h1 {
  max-width: 760px;
  margin: 18px 0;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1.02;
  font-weight: 900;
  text-shadow: 0 10px 35px rgba(0, 0, 0, 0.45);
}

.hero-content p {
  max-width: 640px;
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.8;
}

.hero-pill,
.category-pill {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(6, 182, 212, 0.28);
}

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

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 13px 26px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-button {
  color: #ffffff;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  box-shadow: 0 18px 38px rgba(37, 99, 235, 0.34);
}

.ghost-button {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
}

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px) scale(1.02);
}

.hero-meta,
.meta-row,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

.hero-meta span,
.meta-row span,
.detail-meta span {
  border-radius: 999px;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.84);
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 800;
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

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

.section {
  position: relative;
  padding: 72px 0;
}

.section-soft {
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.94), rgba(236, 254, 255, 0.78));
}

.section-white {
  background: rgba(255, 255, 255, 0.82);
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.section-icon {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.22);
}

.section-heading h2 {
  margin: 0;
  color: #111827;
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 900;
}

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

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

.movie-grid-large {
  margin-bottom: 24px;
}

.movie-grid-large .movie-card {
  grid-column: span 1;
}

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0f172a;
}

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

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

.duration-pill,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.72);
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 800;
}

.duration-pill {
  right: 10px;
  bottom: 10px;
}

.rank-badge {
  left: 10px;
  top: 10px;
  background: linear-gradient(135deg, #f97316, #ef4444);
}

.card-body {
  padding: 18px;
}

.card-body h3 {
  margin: 12px 0 8px;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 900;
}

.card-body h3 a:hover {
  color: var(--blue);
}

.card-body p {
  min-height: 48px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.meta-row span,
.detail-meta span {
  color: #2563eb;
  background: #dbeafe;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 64px 1fr 132px;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.rank-number {
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #ef4444);
  font-size: 24px;
  font-weight: 900;
}

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

.rank-text p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.rank-text div {
  display: flex;
  gap: 10px;
  color: #2563eb;
  font-size: 13px;
  font-weight: 800;
}

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

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

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

.category-card,
.category-overview-card {
  position: relative;
  overflow: hidden;
  min-height: 178px;
  border-radius: 24px;
  color: #ffffff;
  background: #0f172a;
  box-shadow: var(--shadow);
}

.category-card img,
.category-overview-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
  transition: transform 0.35s ease;
}

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

.category-card::after,
.category-overview-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.82));
}

.category-card span,
.category-card p,
.category-overview-card div {
  position: relative;
  z-index: 2;
}

.category-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
}

.category-card span,
.category-overview-card h2 {
  font-size: 24px;
  font-weight: 900;
}

.category-card p,
.category-overview-card p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
}

.category-overview-card {
  min-height: 240px;
  display: flex;
  align-items: end;
  padding: 28px;
}

.category-overview-card span {
  display: inline-flex;
  margin-top: 16px;
  border-radius: 999px;
  color: #0f172a;
  background: #ffffff;
  padding: 8px 14px;
  font-weight: 900;
}

.page-hero,
.category-hero,
.ranking-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.page-hero {
  padding: 96px 0 84px;
}

.page-hero h1,
.category-hero h1,
.ranking-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(38px, 6vw, 68px);
  font-weight: 900;
}

.page-hero p,
.category-hero p,
.ranking-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 19px;
  line-height: 1.8;
}

.category-hero,
.ranking-hero {
  min-height: 390px;
}

.category-hero .container,
.ranking-hero .container {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.ranking-hero .primary-button {
  margin-top: 26px;
}

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

.detail-wrap .breadcrumb {
  color: #64748b;
}

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

.detail-wrap .breadcrumb a:hover {
  color: var(--blue);
}

.filter-panel {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 28px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.filter-panel label {
  display: grid;
  gap: 8px;
  color: #334155;
  font-size: 13px;
  font-weight: 900;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid #dbeafe;
  border-radius: 16px;
  outline: 0;
  background: #ffffff;
  padding: 12px 14px;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.12);
}

.empty-result {
  display: none;
  padding: 56px 0;
  text-align: center;
  color: var(--muted);
  font-size: 18px;
}

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

.detail-wrap {
  padding: 34px 0 72px;
  background: linear-gradient(180deg, #eff6ff, #ffffff);
}

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

.video-stage {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  aspect-ratio: 16 / 9;
  box-shadow: 0 28px 70px rgba(2, 6, 23, 0.26);
}

.video-stage video,
.video-cover,
.video-cover img {
  width: 100%;
  height: 100%;
}

.video-stage video,
.video-cover img {
  object-fit: cover;
}

.video-cover {
  position: absolute;
  inset: 0;
  cursor: pointer;
}

.video-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(37, 99, 235, 0.08), rgba(2, 6, 23, 0.72));
}

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

.play-button {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 86px;
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  font-size: 36px;
  box-shadow: 0 22px 45px rgba(37, 99, 235, 0.42);
  transform: translate(-50%, -50%);
}

.detail-card,
.side-card {
  margin-top: 22px;
  border-radius: 28px;
  background: #ffffff;
  padding: 28px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.09);
}

.detail-card h1 {
  margin: 18px 0;
  color: #111827;
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.1;
  font-weight: 900;
}

.detail-card h2,
.side-card h2,
.sitemap-group h2 {
  margin: 24px 0 12px;
  color: #111827;
  font-size: 22px;
  font-weight: 900;
}

.detail-card p {
  color: #4b5563;
  font-size: 16px;
  line-height: 1.95;
}

.lead-text {
  font-size: 18px !important;
  color: #1e40af !important;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.tag-list a {
  border-radius: 999px;
  color: #2563eb;
  background: #dbeafe;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 900;
}

.detail-poster {
  width: 100%;
  border-radius: 28px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.side-card dl {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px 16px;
  margin: 0;
}

.side-card dt {
  color: #64748b;
  font-weight: 800;
}

.side-card dd {
  margin: 0;
  color: #111827;
  font-weight: 700;
}

.big-search {
  max-width: 680px;
  margin-top: 28px;
  background: rgba(255, 255, 255, 0.22);
}

.big-search input {
  flex: 1;
  padding: 16px 22px;
}

.big-search button {
  padding: 16px 26px;
}

.search-status {
  margin-bottom: 24px;
  color: #334155;
  font-size: 18px;
  font-weight: 900;
}

.sitemap-list {
  display: grid;
  gap: 22px;
}

.sitemap-group {
  border-radius: 24px;
  background: #ffffff;
  padding: 22px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.sitemap-group h2 {
  margin-top: 0;
}

.sitemap-group div {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px 16px;
}

.sitemap-group a {
  color: #334155;
  line-height: 1.55;
}

.sitemap-group a:hover {
  color: var(--blue);
}

.site-footer {
  position: relative;
  overflow: hidden;
  color: #cbd5e1;
  background: linear-gradient(180deg, #1e293b, #0f172a);
  padding: 78px 0 24px;
}

.footer-wave {
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 44px;
  color: #ffffff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 34px;
}

.footer-grid h2 {
  margin: 0 0 16px;
  color: #67e8f9;
  font-size: 18px;
  font-weight: 900;
}

.footer-grid p {
  margin: 14px 0 0;
  line-height: 1.8;
}

.footer-grid ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-grid a:hover {
  color: #67e8f9;
}

.footer-bottom {
  width: min(1200px, calc(100% - 32px));
  margin: 36px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  color: #94a3b8;
  text-align: center;
  font-size: 14px;
}

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

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

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

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

  .detail-side {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 22px;
  }

  .side-card {
    margin-top: 0;
  }

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

  .sitemap-group div {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .hero {
    height: 560px;
  }

  .hero-content h1 {
    font-size: 42px;
  }

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

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

  .rank-cover {
    display: none;
  }

  .filter-panel,
  .detail-side {
    grid-template-columns: 1fr;
  }

  .detail-poster {
    aspect-ratio: 16 / 10;
  }

  .sitemap-group div {
    grid-template-columns: 1fr;
  }

  .header-inner {
    min-height: 68px;
  }

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