:root {
  --site-cyan: #06b6d4;
  --site-blue: #2563eb;
  --site-teal: #0f766e;
  --site-ink: #0f172a;
  --site-muted: #64748b;
  --site-line: #e2e8f0;
  --site-card: #ffffff;
  --site-bg: #f8fafc;
  --site-dark: #0b1220;
  --site-radius: 1.25rem;
  --site-shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
}

body {
  background: var(--site-bg);
  color: var(--site-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

img {
  object-fit: cover;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #ffffff;
  background: linear-gradient(90deg, #0891b2 0%, #2563eb 52%, #0f766e 100%);
  box-shadow: 0 12px 34px rgba(37, 99, 235, 0.25);
}

.nav-wrap {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.16);
  font-weight: 900;
  letter-spacing: -0.04em;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

.brand-text strong,
.footer-brand {
  display: block;
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.brand-text em {
  display: block;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.72);
  font-style: normal;
}

.top-search {
  flex: 1;
  max-width: 470px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.top-search input,
.mobile-search input,
.filter-panel input,
.page-search input {
  width: 100%;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--site-ink);
  padding: 12px 18px;
  outline: none;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.top-search button,
.mobile-search button,
.page-search button {
  border: 0;
  border-radius: 999px;
  background: #ffffff;
  color: #0e7490;
  padding: 12px 18px;
  font-weight: 800;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.88);
  transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: #ffffff;
  border-radius: 999px;
}

.mobile-panel {
  display: none;
  padding: 0 16px 18px;
}

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

.mobile-search {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.mobile-panel nav {
  display: grid;
  gap: 8px;
}

.hero {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  background: #020617;
}

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

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

.hero-image,
.detail-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  filter: saturate(1.12);
}

.hero-overlay,
.detail-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.22)),
    radial-gradient(circle at 20% 10%, rgba(6, 182, 212, 0.45), transparent 34%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.82), transparent 40%);
}

.hero-content {
  position: relative;
  min-height: 640px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 56px;
  align-items: center;
  color: #ffffff;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #06b6d4;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}

.hero-copy h1,
.page-hero h1,
.detail-info h1 {
  font-size: clamp(2.4rem, 6vw, 5.6rem);
  line-height: 0.98;
  font-weight: 950;
  letter-spacing: -0.07em;
  margin-bottom: 22px;
}

.hero-copy p,
.page-hero p,
.detail-one-line {
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.85;
  margin-bottom: 24px;
}

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

.hero-tags span,
.tag-list span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

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

.primary-btn,
.ghost-btn,
.section-link,
.small-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 900;
  transition: 0.22s ease;
}

.primary-btn {
  min-height: 48px;
  padding: 0 22px;
  color: #ffffff;
  background: linear-gradient(90deg, #06b6d4, #2563eb);
  box-shadow: 0 18px 36px rgba(37, 99, 235, 0.28);
}

.primary-btn:hover,
.section-link:hover,
.small-link:hover {
  transform: translateY(-2px);
}

.primary-btn.slim {
  min-height: 42px;
  padding: 0 18px;
}

.ghost-btn {
  min-height: 48px;
  padding: 0 22px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.hero-poster {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.38);
  transform: rotate(2deg);
}

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

.hero-poster span {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(8, 145, 178, 0.92);
  color: #ffffff;
  font-weight: 900;
}

.hero-controls {
  position: absolute;
  right: calc((100vw - min(1180px, calc(100% - 32px))) / 2);
  bottom: 58px;
  display: flex;
  gap: 10px;
  z-index: 5;
}

.hero-controls button {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 2rem;
  line-height: 1;
}

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

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

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

.quick-bar {
  background: linear-gradient(90deg, #0e7490, #1d4ed8);
  color: #ffffff;
}

.quick-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 13px 0;
}

.quick-scroll a {
  white-space: nowrap;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  transition: 0.2s ease;
}

.quick-scroll a:hover {
  background: rgba(255, 255, 255, 0.24);
}

.section-block {
  padding: 64px 0;
}

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

.section-heading h2,
.panel-title h2,
.article-panel h2,
.player-heading h2,
.search-result-head h2 {
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  font-weight: 950;
  letter-spacing: -0.05em;
}

.section-link,
.small-link {
  color: #0891b2;
}

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

.movie-card {
  background: var(--site-card);
  border-radius: var(--site-radius);
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(226, 232, 240, 0.92);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.poster-link {
  display: block;
}

.poster-frame {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #164e63, #1d4ed8);
}

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

.movie-card:hover .poster-frame img {
  transform: scale(1.06);
}

.poster-type,
.poster-score {
  position: absolute;
  top: 12px;
  border-radius: 999px;
  padding: 6px 10px;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 900;
  backdrop-filter: blur(8px);
}

.poster-type {
  left: 12px;
  background: rgba(8, 145, 178, 0.88);
}

.poster-score {
  right: 12px;
  background: rgba(15, 23, 42, 0.76);
}

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

.movie-meta {
  color: var(--site-muted);
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.movie-card h3 {
  font-size: 1.08rem;
  line-height: 1.35;
  font-weight: 950;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.movie-card h3 a:hover {
  color: #0891b2;
}

.movie-card p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 48px;
  color: #475569;
  line-height: 1.7;
  font-size: 0.92rem;
  margin-bottom: 12px;
}

.movie-card .tag-list span {
  background: #ecfeff;
  color: #0e7490;
  padding: 5px 9px;
  font-size: 0.75rem;
}

.small-link {
  margin-top: 14px;
  font-size: 0.86rem;
}

.movie-card-compact .movie-card-body {
  padding: 14px;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: start;
  gap: 34px;
}

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

.wide-gap {
  gap: 44px;
}

.rank-panel,
.article-panel,
.player-card,
.filter-panel,
.search-result-head {
  background: #ffffff;
  border-radius: 28px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(226, 232, 240, 0.92);
}

.rank-panel {
  padding: 22px;
}

.sticky-rank {
  position: sticky;
  top: 100px;
}

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.panel-title span {
  color: #0891b2;
  font-weight: 950;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 40px 54px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 9px;
  border-radius: 18px;
  transition: 0.2s ease;
}

.rank-row:hover {
  background: #f1f5f9;
}

.rank-num {
  color: #0891b2;
  font-weight: 950;
}

.rank-row img {
  width: 54px;
  height: 76px;
  border-radius: 12px;
}

.rank-info {
  min-width: 0;
}

.rank-info strong,
.rank-info em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-info strong {
  font-weight: 900;
}

.rank-info em {
  color: var(--site-muted);
  font-style: normal;
  font-size: 0.82rem;
}

.rank-score {
  color: #f59e0b;
  font-weight: 950;
}

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

.category-tile,
.category-card-large {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  color: #ffffff;
  min-height: 210px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.16);
}

.category-tile img,
.category-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.56;
}

.category-tile::after,
.category-card-large::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.86), transparent);
}

.category-tile span,
.category-tile em {
  position: relative;
  z-index: 2;
  display: block;
  padding: 0 22px;
}

.category-tile span {
  margin-top: 118px;
  font-size: 1.35rem;
  font-weight: 950;
}

.category-tile em {
  color: rgba(255, 255, 255, 0.76);
  font-style: normal;
  line-height: 1.6;
  margin-top: 8px;
}

.page-hero {
  position: relative;
  color: #ffffff;
  padding: 92px 0;
  background:
    radial-gradient(circle at 20% 10%, rgba(6, 182, 212, 0.38), transparent 34%),
    linear-gradient(120deg, #0f172a, #0e7490 48%, #1d4ed8);
}

.page-hero .container {
  max-width: 860px;
}

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

.category-card-large {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: 280px;
  color: var(--site-ink);
  background: #ffffff;
}

.category-card-large::after {
  display: none;
}

.category-cover {
  position: relative;
  min-height: 100%;
  overflow: hidden;
}

.category-cover img {
  opacity: 1;
}

.category-card-body {
  padding: 28px;
}

.category-card-body h2 {
  font-size: 1.65rem;
  font-weight: 950;
  margin-bottom: 10px;
}

.category-card-body p {
  color: var(--site-muted);
  line-height: 1.8;
  margin-bottom: 18px;
}

.mini-posters {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
}

.mini-posters img {
  width: 46px;
  height: 66px;
  border-radius: 12px;
}

.filter-panel {
  padding: 16px;
  margin-bottom: 28px;
}

.filter-panel input,
.page-search input {
  background: #f8fafc;
  box-shadow: inset 0 0 0 1px #dbeafe;
}

.detail-hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  color: #ffffff;
  background: #020617;
}

.detail-layout {
  position: relative;
  min-height: 620px;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.detail-poster {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.42);
}

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

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

.breadcrumb a:hover {
  color: #67e8f9;
}

.breadcrumb em {
  font-style: normal;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0;
}

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-weight: 800;
}

.player-card {
  overflow: hidden;
}

.player-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px;
}

.player-heading > span {
  padding: 8px 12px;
  border-radius: 999px;
  background: #ecfeff;
  color: #0e7490;
  font-weight: 900;
}

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

.player-video {
  width: 100%;
  height: 100%;
  background: #020617;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 14px;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.34), rgba(2, 6, 23, 0.72));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-icon {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(90deg, #06b6d4, #2563eb);
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.32);
  font-size: 2rem;
  padding-left: 4px;
}

.player-overlay strong {
  font-size: 1.1rem;
}

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

.article-panel {
  padding: 28px;
}

.article-panel p {
  color: #334155;
  line-height: 2;
  font-size: 1.02rem;
  white-space: pre-line;
}

.page-search {
  display: flex;
  gap: 10px;
  margin-top: 26px;
  max-width: 640px;
}

.search-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  margin-bottom: 24px;
}

.search-result-head span {
  color: var(--site-muted);
  font-weight: 800;
}

.site-footer {
  background: linear-gradient(135deg, #020617, #0f172a 60%, #083344);
  color: #cbd5e1;
  padding-top: 58px;
}

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

.footer-grid p {
  line-height: 1.8;
  color: #94a3b8;
  margin-top: 12px;
}

.footer-grid h2 {
  color: #ffffff;
  font-weight: 950;
  margin-bottom: 14px;
}

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

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

.footer-bottom {
  margin-top: 46px;
  padding: 18px;
  text-align: center;
  color: #94a3b8;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

[data-card].is-hidden {
  display: none;
}

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

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

  .hero-content,
  .detail-layout,
  .split-section,
  .detail-content-grid,
  .footer-grid,
  .category-card-large {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    display: none;
  }

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

  .sticky-rank {
    position: static;
  }

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

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

  .brand-text strong {
    font-size: 1.2rem;
  }

  .hero,
  .hero-content,
  .detail-hero,
  .detail-layout {
    min-height: 560px;
  }

  .hero-copy h1,
  .page-hero h1,
  .detail-info h1 {
    font-size: 2.45rem;
  }

  .hero-controls {
    right: 14px;
    bottom: 22px;
  }

  .hero-dots {
    display: none;
  }

  .section-block {
    padding: 42px 0;
  }

  .section-heading,
  .player-heading,
  .search-result-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .movie-grid,
  .split-section .movie-grid,
  .category-grid,
  .category-large-grid {
    grid-template-columns: 1fr;
  }

  .rank-row {
    grid-template-columns: 34px 46px minmax(0, 1fr) auto;
  }

  .rank-row img {
    width: 46px;
    height: 64px;
  }

  .page-search {
    flex-direction: column;
  }
}
