* {
  box-sizing: border-box;
}

:root {
  --cyan: #0891b2;
  --cyan-deep: #0e7490;
  --teal: #0f766e;
  --emerald: #059669;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --soft: #f8fafc;
  --white: #ffffff;
  --shadow: 0 18px 48px rgba(15, 23, 42, 0.12);
  --radius: 22px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--soft);
  line-height: 1.65;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

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

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--cyan), var(--emerald));
  box-shadow: 0 10px 24px rgba(8, 145, 178, 0.32);
}

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

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

.nav-link:hover,
.nav-link.active {
  color: var(--cyan-deep);
  background: #ecfeff;
}

.menu-toggle {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: #ecfeff;
  display: none;
  place-items: center;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 3px auto;
  background: var(--cyan-deep);
  border-radius: 999px;
}

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

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

.hero-section {
  position: relative;
  overflow: hidden;
  min-height: 640px;
  color: var(--white);
  background: linear-gradient(135deg, #0891b2 0%, #0f766e 50%, #059669 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 10%, rgba(255, 255, 255, 0.28), transparent 28%),
    radial-gradient(circle at 80% 35%, rgba(103, 232, 249, 0.24), transparent 32%),
    linear-gradient(135deg, rgba(8, 145, 178, 0.96), rgba(15, 118, 110, 0.94), rgba(5, 150, 105, 0.94));
}

.hero-container {
  position: relative;
  padding: 86px 0 72px;
}

.hero-slide {
  display: none;
  min-height: 480px;
  grid-template-columns: minmax(0, 1fr) 420px;
  align-items: center;
  gap: 58px;
}

.hero-slide.active {
  display: grid;
  animation: fadeUp 0.6s ease both;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #cffafe;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
}

.hero-copy h1 {
  margin: 16px 0;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.hero-copy p {
  max-width: 680px;
  margin: 0 0 24px;
  font-size: 18px;
  color: #ecfeff;
}

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

.hero-tags span,
.detail-tags span,
.tag-row span {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #ecfeff;
  font-size: 13px;
  font-weight: 700;
}

.card-body .tag-row span {
  background: #ecfeff;
  color: var(--cyan-deep);
}

.hero-actions,
.player-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
  align-items: center;
}

.btn {
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 22px;
  border-radius: 14px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  color: var(--cyan-deep);
  background: var(--white);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.16);
}

.btn.ghost {
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.78);
}

.btn.full {
  width: 100%;
  margin-top: 18px;
  color: var(--white);
  background: linear-gradient(135deg, var(--cyan), var(--teal));
}

.hero-art {
  position: relative;
  display: block;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.28);
  transform: rotate(1deg);
  aspect-ratio: 3 / 4;
  background: rgba(255, 255, 255, 0.14);
}

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

.glow-card {
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 10px 14px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(12px);
  color: var(--white);
  font-weight: 900;
}

.hero-dots {
  position: absolute;
  left: 0;
  bottom: 30px;
  display: flex;
  gap: 10px;
}

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

.hero-dot.active {
  width: 36px;
  background: var(--white);
}

.quick-search {
  margin-top: -46px;
  position: relative;
  z-index: 3;
}

.quick-search-inner {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 520px);
  gap: 28px;
  align-items: center;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.quick-search h2,
.quick-search p {
  margin: 0;
}

.home-search-form {
  display: flex;
  gap: 10px;
}

.home-search-form input,
.filter-bar input,
.filter-bar select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px 14px;
  outline: none;
  background: var(--white);
}

.home-search-form button {
  border: 0;
  border-radius: 14px;
  padding: 0 22px;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  color: var(--white);
  font-weight: 900;
  cursor: pointer;
}

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

.section-block.muted {
  background: #f1f5f9;
}

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

.section-head.inline {
  margin-bottom: 22px;
}

.section-head h2,
.page-hero h1,
.detail-info h1 {
  margin: 6px 0 0;
  letter-spacing: -0.04em;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 44px);
}

.section-kicker {
  color: var(--cyan-deep);
}

.text-link {
  color: var(--cyan-deep);
  font-weight: 900;
}

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

.category-card {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--white);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: var(--shadow);
}

.category-card img,
.category-mask {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.category-card img {
  object-fit: cover;
  opacity: 0.58;
  transition: transform 0.25s ease;
}

.category-card:hover img {
  transform: scale(1.06);
}

.category-mask {
  background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.88));
}

.category-card strong,
.category-card em,
.category-card small {
  position: relative;
  z-index: 1;
}

.category-card strong {
  font-size: 22px;
}

.category-card em {
  margin: 4px 0;
  font-style: normal;
  color: #a7f3d0;
  font-weight: 900;
}

.category-card small {
  color: #e2e8f0;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 30px;
  align-items: start;
}

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

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

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

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

.movie-card.compact .card-body p {
  display: none;
}

.poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #ecfeff, #ccfbf1);
}

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

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

.poster-overlay {
  position: absolute;
  inset: auto 12px 12px;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.76);
  color: var(--white);
  text-align: center;
  font-weight: 900;
  opacity: 0;
  transform: translateY(8px);
  transition: 0.2s ease;
}

.movie-card:hover .poster-overlay {
  opacity: 1;
  transform: translateY(0);
}

.card-body {
  padding: 16px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.card-body h3 {
  margin: 9px 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

.card-body p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
}

.score-badge {
  display: inline-flex;
  margin-top: 12px;
  color: var(--emerald);
}

.hot-panel,
.side-card,
.article-card,
.player-card,
.overview-card {
  border: 1px solid rgba(226, 232, 240, 0.84);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
}

.hot-panel,
.side-card {
  position: sticky;
  top: 92px;
  padding: 22px;
}

.panel-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.panel-title h2,
.side-card h2 {
  margin: 0;
}

.rank-list,
.side-list,
.compact-list {
  display: grid;
  gap: 10px;
}

.rank-item {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid transparent;
  transition: 0.2s ease;
}

.rank-item:hover {
  border-color: #a5f3fc;
  background: #ecfeff;
}

.rank-num {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  color: var(--white);
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  font-weight: 900;
}

.rank-title {
  font-weight: 900;
}

.rank-year {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.page-hero {
  color: var(--white);
  background:
    radial-gradient(circle at 80% 20%, rgba(45, 212, 191, 0.28), transparent 30%),
    linear-gradient(135deg, #0891b2, #0f766e, #059669);
  padding: 70px 0;
}

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

.page-hero p {
  max-width: 720px;
  margin: 12px 0 0;
  color: #ecfeff;
  font-size: 18px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #cffafe;
  font-weight: 800;
  margin-bottom: 12px;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 180px 180px auto;
  gap: 14px;
  align-items: end;
  padding: 18px;
  margin-bottom: 24px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.filter-bar label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.filter-count {
  color: var(--cyan-deep);
  font-weight: 900;
  padding-bottom: 12px;
}

.empty-state {
  display: none;
  padding: 36px;
  border-radius: var(--radius);
  background: var(--white);
  text-align: center;
  color: var(--muted);
  font-weight: 900;
}

.empty-state.show {
  display: block;
}

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

.overview-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  overflow: hidden;
}

.overview-cover {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
  background: #0f172a;
}

.overview-cover img {
  width: 100%;
  height: 100%;
  min-height: 130px;
  object-fit: cover;
}

.overview-body {
  padding: 24px;
}

.overview-body span {
  color: var(--cyan-deep);
  font-weight: 900;
}

.overview-body h2 {
  margin: 8px 0;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  padding: 70px 0;
  color: var(--white);
  background: #0f172a;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.26;
  filter: blur(10px);
  transform: scale(1.06);
}

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

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.62));
}

.detail-wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 38px;
  align-items: center;
}

.detail-poster {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.36);
  aspect-ratio: 3 / 4;
}

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

.detail-info h1 {
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
}

.lead {
  max-width: 800px;
  color: #e0f2fe;
  font-size: 19px;
}

.detail-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 240px));
  gap: 10px;
  padding: 0;
  margin: 24px 0;
  list-style: none;
}

.detail-meta li {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.detail-meta span {
  display: block;
  color: #a7f3d0;
  font-size: 12px;
  font-weight: 900;
}

.detail-meta strong {
  display: block;
  color: var(--white);
}

.detail-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 30px;
  align-items: start;
}

.main-detail {
  display: grid;
  gap: 22px;
}

.player-card,
.article-card {
  padding: 22px;
}

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

.movie-video {
  width: 100%;
  height: 100%;
  display: block;
  background: #020617;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 10px;
  border: 0;
  color: var(--white);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0.78));
  cursor: pointer;
}

.player-overlay.hide {
  display: none;
}

.play-icon {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--cyan-deep);
  font-size: 32px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
}

.player-status {
  color: var(--muted);
  font-weight: 800;
}

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

.article-card p {
  margin: 0;
  color: #334155;
}

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

.site-footer {
  padding: 42px 0;
  color: #cbd5e1;
  background: #0f172a;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
}

.footer-logo {
  color: var(--white);
  font-size: 22px;
}

.site-footer p {
  max-width: 420px;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: 18px;
}

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

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

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1100px) {
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

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

  .hero-slide,
  .split-layout,
  .detail-content-grid {
    grid-template-columns: 1fr;
  }

  .hero-art,
  .hot-panel,
  .side-card {
    position: relative;
    top: auto;
  }
}

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

  .menu-toggle {
    display: grid;
  }

  .hero-section {
    min-height: auto;
  }

  .hero-container {
    padding: 54px 0 66px;
  }

  .hero-slide.active {
    display: grid;
  }

  .hero-art {
    max-width: 280px;
  }

  .quick-search {
    margin-top: 0;
  }

  .quick-search-inner,
  .home-search-form,
  .footer-grid,
  .detail-wrap,
  .overview-card,
  .filter-bar {
    grid-template-columns: 1fr;
  }

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

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

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

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

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

  .rank-year {
    display: none;
  }
}
