:root {
  --color-bg: #f8fafc;
  --color-surface: #ffffff;
  --color-text: #111827;
  --color-muted: #6b7280;
  --color-line: #e5e7eb;
  --color-blue: #2563eb;
  --color-cyan: #06b6d4;
  --color-dark: #020617;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-card: 0 12px 30px rgba(15, 23, 42, 0.08);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(226, 232, 240, 0.95);
  backdrop-filter: blur(18px);
}

.top-nav {
  width: min(1180px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-blue), var(--color-cyan));
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.32);
}

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

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-link,
.mobile-link {
  color: #374151;
  font-weight: 650;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-blue);
}

.mobile-toggle {
  width: 42px;
  height: 42px;
  display: none;
  border: 0;
  border-radius: 12px;
  background: #f1f5f9;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.mobile-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #0f172a;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 12px;
  border: 1px solid var(--color-line);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

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

.mobile-link {
  padding: 11px 12px;
  border-radius: 12px;
}

.mobile-link:hover,
.mobile-link.active {
  color: var(--color-blue);
  background: #eff6ff;
}

main {
  min-height: 60vh;
}

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

.hero-shell {
  padding: 32px 0 10px;
}

.hero-carousel {
  position: relative;
  height: 500px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: #0f172a;
  box-shadow: var(--shadow-soft);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.88), rgba(15, 23, 42, 0.52), rgba(15, 23, 42, 0.08));
}

.hero-copy {
  max-width: 650px;
  padding: 0 72px;
  color: #ffffff;
}

.hero-badge,
.detail-badge,
.page-hero span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 5px 12px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--color-blue), var(--color-cyan));
  font-size: 14px;
  font-weight: 750;
}

.hero-copy h1,
.hero-copy h2 {
  margin: 16px 0;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.08;
  font-weight: 900;
}

.hero-copy p {
  max-width: 560px;
  margin: 0 0 18px;
  color: #e5e7eb;
  font-size: 18px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.hero-meta span {
  padding: 6px 10px;
  border-radius: 999px;
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  font-size: 14px;
}

.hero-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.primary-btn,
.secondary-btn,
.filter-panel button,
.watch-link,
.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 12px;
  font-weight: 760;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn,
.filter-panel button,
.watch-link {
  padding: 12px 22px;
  color: #ffffff;
  background: var(--color-blue);
  box-shadow: 0 10px 26px rgba(37, 99, 235, 0.28);
}

.primary-btn:hover,
.filter-panel button:hover,
.watch-link:hover {
  transform: translateY(-1px);
  background: #1d4ed8;
}

.secondary-btn {
  padding: 11px 20px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}

.secondary-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  width: 48px;
  height: 48px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
  font-size: 36px;
  line-height: 1;
}

.hero-prev {
  left: 18px;
}

.hero-next {
  right: 18px;
}

.hero-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

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

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

.content-section,
.category-section,
.category-overview-block,
.article-content,
.rank-list {
  width: min(1180px, calc(100% - 32px));
  margin: 42px auto 0;
}

.section-head,
.overview-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.section-head.centered {
  justify-content: center;
  text-align: center;
}

.section-head h2,
.overview-title h2,
.article-content h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.2;
  font-weight: 880;
}

.section-line {
  height: 4px;
  flex: 1;
  min-width: 42px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-blue), rgba(6, 182, 212, 0));
}

.section-head.centered .section-line {
  max-width: 130px;
}

.section-link {
  padding: 9px 14px;
  color: var(--color-blue);
  background: #eff6ff;
  white-space: nowrap;
}

.section-link:hover {
  background: #dbeafe;
}

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

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

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

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

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

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

.movie-card:hover .poster-wrap img {
  transform: scale(1.05);
}

.poster-shade {
  position: absolute;
  inset: auto 0 0;
  height: 38%;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0), rgba(2, 6, 23, 0.62));
}

.rank-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  min-width: 34px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #ef4444, #f97316);
  font-weight: 850;
  text-align: center;
}

.card-body {
  padding: 16px;
}

.card-title {
  display: -webkit-box;
  overflow: hidden;
  min-height: 28px;
  color: #0f172a;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-title:hover,
.rank-title:hover,
.breadcrumb a:hover,
.footer-links a:hover,
.category-samples a:hover {
  color: var(--color-blue);
}

.card-meta {
  margin: 8px 0;
  color: var(--color-muted);
  font-size: 13px;
}

.card-desc {
  display: -webkit-box;
  overflow: hidden;
  min-height: 46px;
  margin: 0 0 12px;
  color: #475569;
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag-row span {
  padding: 4px 8px;
  border-radius: 999px;
  color: #2563eb;
  background: #eff6ff;
  font-size: 12px;
  font-weight: 700;
}

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

.compact-card .card-title {
  font-size: 15px;
}

.compact-card .card-desc,
.compact-card .tag-row {
  display: none;
}

.category-section {
  padding: 36px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #eff6ff, #ecfeff);
}

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

.category-tile {
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.08);
  transition: transform 0.2s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
}

.category-tile > a {
  display: block;
  padding: 22px 20px 14px;
}

.category-icon {
  display: inline-flex;
  min-width: 42px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-blue), var(--color-cyan));
  font-weight: 850;
}

.category-tile h3 {
  margin: 14px 0 8px;
  font-size: 19px;
}

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

.category-samples {
  display: grid;
  gap: 5px;
  padding: 0 20px 20px;
  color: #475569;
  font-size: 13px;
}

.page-main {
  padding: 30px 0 0;
}

.page-hero {
  margin-bottom: 24px;
  padding: 34px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #ffffff, #eff6ff 56%, #ecfeff);
  box-shadow: var(--shadow-card);
}

.page-hero h1 {
  margin: 14px 0 12px;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.12;
  font-weight: 900;
}

.page-hero p,
.overview-title p {
  margin: 0;
  color: #4b5563;
  font-size: 17px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: #64748b;
  font-size: 14px;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1fr 180px auto;
  gap: 14px;
  margin: 24px 0;
  padding: 18px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.filter-panel label {
  display: grid;
  gap: 6px;
  color: #334155;
  font-size: 14px;
  font-weight: 750;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 46px;
  border: 1px solid #dbe3ef;
  border-radius: 12px;
  padding: 0 14px;
  color: #0f172a;
  background: #f8fafc;
  outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--color-blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.filter-panel button {
  align-self: end;
  min-height: 46px;
}

.empty-result {
  padding: 56px 0;
  color: #64748b;
  text-align: center;
}

.category-overview-block {
  padding: 28px;
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

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

.rank-row {
  display: grid;
  grid-template-columns: 72px 86px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

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

.rank-cover {
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 12px;
  background: #0f172a;
}

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

.rank-title {
  display: inline-flex;
  margin-bottom: 4px;
  color: #0f172a;
  font-size: 18px;
  font-weight: 850;
}

.rank-info p {
  margin: 4px 0 0;
  color: #64748b;
}

.detail-main {
  width: min(1180px, calc(100% - 32px));
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.75fr);
  gap: 28px;
  align-items: stretch;
}

.player-card,
.detail-info,
.article-content {
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.player-card {
  overflow: hidden;
  background: #020617;
}

.player-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.movie-player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #020617;
  cursor: pointer;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  padding: 0;
  background: #020617;
  cursor: pointer;
}

.player-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
}

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

.play-circle {
  position: absolute;
  width: 76px;
  height: 76px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(37, 99, 235, 0.92);
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.35);
  font-size: 28px;
}

.detail-info {
  padding: 28px;
}

.detail-info h1 {
  margin: 16px 0 12px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  font-weight: 900;
}

.detail-line {
  margin: 0 0 18px;
  color: #475569;
  font-size: 17px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.detail-meta span {
  padding: 7px 10px;
  border-radius: 999px;
  color: #334155;
  background: #f1f5f9;
  font-size: 13px;
  font-weight: 720;
}

.article-content {
  padding: 32px;
}

.article-content h2 {
  margin: 0 0 12px;
}

.article-content h2:not(:first-child) {
  margin-top: 26px;
}

.article-content p {
  margin: 0;
  color: #334155;
  font-size: 17px;
}

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

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 28px;
}

.footer-about h2,
.footer-links h3 {
  margin: 0 0 12px;
  color: #0f172a;
}

.footer-about p,
.footer-links a,
.footer-bottom {
  color: #64748b;
}

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

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 28px;
  border-top: 1px solid #dbe3ef;
  font-size: 14px;
  text-align: center;
}

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

  .mobile-toggle {
    display: inline-flex;
  }

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

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

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

@media (max-width: 720px) {
  .top-nav,
  .hero-shell,
  .page-main,
  .content-section,
  .category-section,
  .category-overview-block,
  .article-content,
  .rank-list,
  .detail-main {
    width: min(100% - 24px, 1180px);
  }

  .hero-carousel {
    height: 520px;
    border-radius: 20px;
  }

  .hero-copy {
    padding: 0 28px;
  }

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

  .hero-arrow {
    display: none;
  }

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

  .category-section,
  .category-overview-block,
  .article-content,
  .page-hero,
  .detail-info {
    padding: 22px;
  }

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

  .filter-panel button {
    width: 100%;
  }

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

  .section-line {
    width: 100%;
    flex: none;
  }

  .rank-row {
    grid-template-columns: 48px 66px 1fr;
  }

  .rank-row .watch-link {
    grid-column: 2 / -1;
    width: fit-content;
  }

  .rank-num {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    font-size: 17px;
  }

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

@media (max-width: 430px) {
  .movie-grid,
  .category-list-grid,
  .featured-grid,
  .small-grid,
  .rank-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

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