:root {
  --primary: #0284c7;
  --primary-dark: #075985;
  --primary-soft: #e0f2fe;
  --accent: #059669;
  --secondary: #b45309;
  --text: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --surface: #ffffff;
  --soft: #f8fafc;
  --dark: #0f172a;
  --radius: 18px;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

body {
  min-height: 100vh;
  color: var(--text);
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 45%, #f8fafc 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
}

img {
  background: #e5e7eb;
}

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

.header-inner {
  max-width: 1280px;
  height: 68px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 20px;
}

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

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 10px 24px rgba(2, 132, 199, 0.28);
  font-size: 14px;
}

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

.main-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.main-nav a,
.mobile-panel a,
.footer-links a {
  color: #374151;
  font-weight: 600;
  transition: color 0.2s ease, background 0.2s ease;
}

.main-nav a {
  padding: 8px 2px;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav .is-active,
.mobile-panel a:hover,
.footer-links a:hover {
  color: var(--primary);
}

.global-search {
  position: relative;
  width: 260px;
  flex-shrink: 0;
}

.global-search-input,
.local-filter,
.filter-select {
  width: 100%;
  border: 1px solid var(--line);
  background: #ffffff;
  border-radius: 999px;
  padding: 11px 16px;
  outline: none;
  color: var(--text);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

.global-search-input:focus,
.local-filter:focus,
.filter-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.12);
}

.search-results {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: min(420px, 92vw);
  max-height: 430px;
  overflow: auto;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 10px;
}

.search-results.is-open {
  display: block;
}

.search-result-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 10px;
  padding: 9px;
  border-radius: 14px;
  color: var(--text);
}

.search-result-item:hover {
  background: var(--primary-soft);
}

.search-result-item img {
  width: 48px;
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
}

.search-result-item strong {
  display: block;
  font-size: 14px;
  line-height: 1.35;
}

.search-result-item em {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.menu-toggle {
  display: none;
  font-size: 24px;
  color: var(--text);
}

.mobile-panel {
  display: none;
  padding: 10px 22px 18px;
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.mobile-panel.is-open {
  display: grid;
  gap: 10px;
}

.hero-carousel {
  position: relative;
  min-height: 72vh;
  overflow: hidden;
  background: #020617;
}

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

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

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

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.08);
  transform: scale(1.05);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.92) 0%, rgba(2, 6, 23, 0.74) 45%, rgba(2, 6, 23, 0.28) 100%), linear-gradient(0deg, rgba(2, 6, 23, 0.92) 0%, rgba(2, 6, 23, 0.05) 45%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  min-height: 72vh;
  margin: 0 auto;
  padding: 90px 22px 80px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 320px;
  align-items: center;
  gap: 50px;
}

.hero-copy {
  max-width: 760px;
  color: #ffffff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hero-copy h1 {
  margin-top: 22px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-copy p {
  margin-top: 20px;
  max-width: 690px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.8;
}

.hero-tags,
.tag-row,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.hero-tags span,
.tag-row span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.hero-tags span {
  padding: 7px 11px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
}

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

.primary-btn,
.ghost-btn,
.soft-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 16px 32px rgba(2, 132, 199, 0.32);
}

.ghost-btn {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.soft-btn {
  color: var(--primary-dark);
  background: var(--primary-soft);
}

.primary-btn:hover,
.ghost-btn:hover,
.soft-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.18);
}

.hero-poster {
  display: block;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.42);
  transform: rotate(2deg);
}

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

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

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  transition: width 0.2s ease, background 0.2s ease;
}

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

.section,
.page-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 66px 22px;
}

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

.section-kicker {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--primary);
  font-weight: 900;
  letter-spacing: 0.08em;
}

.section-title,
.page-title {
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-desc,
.page-desc {
  margin-top: 12px;
  max-width: 780px;
  color: var(--muted);
  line-height: 1.8;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.88);
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 55px rgba(15, 23, 42, 0.13);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: #e5e7eb;
}

.poster-link img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.play-corner {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border-radius: 999px;
  background: rgba(2, 132, 199, 0.92);
  box-shadow: 0 12px 30px rgba(2, 132, 199, 0.32);
}

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

.movie-meta {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.movie-title {
  margin-top: 8px;
  color: var(--text);
  font-size: 18px;
  line-height: 1.35;
  font-weight: 900;
}

.movie-title a:hover {
  color: var(--primary);
}

.movie-card-body p {
  margin-top: 10px;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag-row {
  margin-top: 12px;
}

.tag-row span,
.detail-tags span {
  padding: 6px 9px;
  color: var(--primary-dark);
  background: var(--primary-soft);
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  padding: 24px;
  border-radius: 28px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary) 52%, var(--accent));
  box-shadow: 0 20px 45px rgba(2, 132, 199, 0.22);
}

.category-card:nth-child(2n) {
  background: linear-gradient(135deg, #0f172a, #334155 52%, var(--secondary));
}

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

.category-card p {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.75;
}

.category-card a {
  position: absolute;
  left: 24px;
  bottom: 22px;
  color: #ffffff;
  font-weight: 900;
}

.rank-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: auto 62px 1fr;
  align-items: center;
  gap: 13px;
  padding: 11px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.rank-item:hover {
  border-color: rgba(2, 132, 199, 0.38);
  background: #f0f9ff;
}

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

.rank-num {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border-radius: 999px;
  background: var(--primary);
  font-weight: 900;
  font-size: 12px;
}

.rank-item strong {
  display: block;
  font-weight: 900;
  line-height: 1.35;
}

.rank-item em {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

.catalog-panel {
  margin-top: 28px;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 14px;
  margin-bottom: 26px;
  padding: 16px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.breadcrumbs a:hover {
  color: var(--primary);
}

.detail-hero {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
  margin-top: 24px;
  padding: 28px;
  border-radius: 32px;
  background: linear-gradient(135deg, #ffffff, #f0f9ff);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: var(--shadow);
}

.detail-cover {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.18);
}

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

.detail-info h1 {
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.detail-meta {
  margin-top: 16px;
  color: #374151;
  font-weight: 800;
}

.detail-info p {
  margin-top: 18px;
  color: #4b5563;
  line-height: 1.85;
  font-size: 17px;
}

.detail-tags {
  margin-top: 20px;
}

.player-section {
  margin-top: 36px;
  padding: 24px;
  border-radius: 32px;
  background: #0f172a;
  box-shadow: 0 26px 60px rgba(15, 23, 42, 0.3);
}

.player-title {
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 16px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #000000;
}

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

.play-mask {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: radial-gradient(circle at center, rgba(2, 132, 199, 0.38), rgba(0, 0, 0, 0.72));
  font-size: 18px;
  font-weight: 900;
}

.play-mask span {
  min-width: 90px;
  min-height: 90px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}

.play-mask.is-hidden {
  display: none;
}

.article-box {
  margin-top: 34px;
  display: grid;
  gap: 22px;
}

.content-card {
  padding: 26px;
  border-radius: 26px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.content-card h2 {
  font-size: 24px;
  font-weight: 900;
}

.content-card p {
  margin-top: 14px;
  color: #374151;
  line-height: 1.9;
}

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

.related-grid .movie-title {
  font-size: 15px;
}

.site-footer {
  margin-top: 50px;
  color: #cbd5e1;
  background: #0f172a;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 44px 22px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 30px;
}

.footer-brand {
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
}

.footer-main p {
  margin-top: 12px;
  max-width: 620px;
  color: #94a3b8;
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  gap: 12px 18px;
}

.footer-links a {
  color: #cbd5e1;
}

.footer-copy {
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  padding: 18px 22px;
  text-align: center;
  color: #64748b;
}

.empty-state {
  display: none;
  padding: 28px;
  border-radius: 22px;
  background: #ffffff;
  color: var(--muted);
  text-align: center;
  border: 1px solid var(--line);
}

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

@media (max-width: 1120px) {
  .main-nav {
    display: none;
  }
  .global-search {
    margin-left: auto;
  }
  .menu-toggle {
    display: inline-flex;
  }
  .movie-grid,
  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .related-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .header-inner {
    height: auto;
    padding-top: 12px;
    padding-bottom: 12px;
    flex-wrap: wrap;
  }
  .global-search {
    order: 3;
    width: 100%;
  }
  .hero-content {
    grid-template-columns: 1fr;
    padding-top: 70px;
    gap: 28px;
  }
  .hero-poster {
    width: min(260px, 72vw);
    transform: none;
  }
  .movie-grid,
  .category-grid,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .rank-layout,
  .footer-inner,
  .detail-hero {
    grid-template-columns: 1fr;
  }
  .detail-cover {
    max-width: 260px;
  }
  .filter-bar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  .brand-text {
    font-size: 18px;
  }
  .section,
  .page-shell {
    padding: 42px 16px;
  }
  .hero-copy p {
    font-size: 16px;
  }
  .movie-grid,
  .category-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }
  .rank-item {
    grid-template-columns: auto 54px 1fr;
  }
  .rank-item img {
    width: 54px;
    height: 72px;
  }
  .detail-hero,
  .player-section,
  .content-card {
    padding: 18px;
    border-radius: 22px;
  }
}
