:root {
  --color-text: #111827;
  --color-muted: #6b7280;
  --color-soft: #f8fafc;
  --color-line: #e5e7eb;
  --color-primary: #0284c7;
  --color-primary-dark: #0369a1;
  --color-rose: #f43f5e;
  --color-gold: #f59e0b;
  --shadow-card: 0 18px 45px rgba(15, 23, 42, 0.08);
  --shadow-hover: 0 22px 55px rgba(15, 23, 42, 0.18);
  --radius-card: 18px;
  --container: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

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

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

button,
input,
select {
  font: inherit;
}

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
  min-height: 72px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #ffffff;
  background: linear-gradient(135deg, #0ea5e9, #2563eb 45%, #7c3aed);
  border-radius: 14px;
  box-shadow: 0 12px 26px rgba(14, 165, 233, 0.3);
}

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

.main-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: #334155;
  font-size: 15px;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease;
}

.main-nav a:hover,
.main-nav a.is-active {
  color: var(--color-primary-dark);
  background: #e0f2fe;
}

.top-search {
  display: flex;
  align-items: center;
  width: min(280px, 28vw);
  border: 1px solid #dbeafe;
  background: #f8fafc;
  border-radius: 999px;
  overflow: hidden;
}

.top-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #0f172a;
  background: transparent;
  padding: 10px 12px 10px 16px;
}

.top-search button {
  border: 0;
  cursor: pointer;
  color: #ffffff;
  background: var(--color-primary);
  padding: 10px 16px;
  font-weight: 700;
}

.menu-toggle {
  display: none;
  border: 0;
  color: #0f172a;
  background: #e0f2fe;
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 800;
}

.site-main {
  min-height: 70vh;
}

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

.hero {
  position: relative;
  height: 70vh;
  min-height: 520px;
  overflow: hidden;
  background: linear-gradient(120deg, #0f172a, #334155);
}

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

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.94), rgba(15, 23, 42, 0.58) 45%, rgba(15, 23, 42, 0.18));
}

.hero-content {
  position: absolute;
  left: 50%;
  bottom: 64px;
  width: min(100% - 32px, var(--container));
  transform: translateX(-50%);
  color: #ffffff;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  color: #ffffff;
  background: rgba(14, 165, 233, 0.9);
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 16px 35px rgba(14, 165, 233, 0.28);
}

.hero-title {
  max-width: 820px;
  margin: 18px 0 16px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.06em;
  text-shadow: 0 10px 35px rgba(0, 0, 0, 0.45);
}

.hero-desc {
  max-width: 720px;
  margin: 0 0 24px;
  color: #e5e7eb;
  font-size: clamp(16px, 2vw, 21px);
}

.hero-meta,
.meta-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.hero-meta span,
.meta-list span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  backdrop-filter: blur(14px);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 12px 20px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  box-shadow: 0 16px 32px rgba(37, 99, 235, 0.28);
}

.btn-light {
  color: #0f172a;
  background: rgba(255, 255, 255, 0.9);
}

.btn-soft {
  color: #075985;
  background: #e0f2fe;
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  color: #ffffff;
  background: rgba(2, 6, 23, 0.5);
  transform: translateY(-50%);
  backdrop-filter: blur(14px);
}

.hero-control:hover {
  background: rgba(2, 6, 23, 0.75);
}

.hero-control.prev {
  left: 24px;
}

.hero-control.next {
  right: 24px;
}

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

.hero-dots button {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.56);
  transition: width 0.2s ease, background 0.2s ease;
}

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

.page-hero {
  padding: 68px 0 44px;
  color: #ffffff;
  background:
    radial-gradient(circle at top left, rgba(14, 165, 233, 0.45), transparent 34%),
    linear-gradient(135deg, #0f172a, #1e293b 56%, #0f172a);
}

.page-hero h1 {
  margin: 16px 0 12px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: #dbeafe;
  font-size: 18px;
}

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

.section-block.compact {
  padding: 38px 0;
}

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

.section-title {
  margin: 0;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.section-subtitle {
  max-width: 680px;
  margin: 8px 0 0;
  color: var(--color-muted);
}

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

.card-grid.five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

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

.movie-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.88);
  border-radius: var(--radius-card);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(14, 165, 233, 0.45);
  box-shadow: var(--shadow-hover);
}

.poster-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #dbeafe, #e0e7ff);
}

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

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

.poster-wrap::after {
  position: absolute;
  inset: auto 0 0 0;
  height: 44%;
  content: "";
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.68), transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .poster-wrap::after {
  opacity: 1;
}

.card-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.72);
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(12px);
}

.card-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  color: #ffffff;
  background: rgba(14, 165, 233, 0.85);
  border-radius: 999px;
  box-shadow: 0 18px 35px rgba(14, 165, 233, 0.32);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .card-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 9px;
  padding: 14px;
}

.card-body h3 {
  margin: 0;
  overflow: hidden;
  color: #0f172a;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-body p {
  display: -webkit-box;
  overflow: hidden;
  min-height: 42px;
  margin: 0;
  color: var(--color-muted);
  font-size: 13px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  color: #64748b;
  font-size: 12px;
}

.card-meta span {
  padding: 3px 7px;
  background: #f1f5f9;
  border-radius: 999px;
}

.category-panel {
  padding: 32px;
  background: linear-gradient(135deg, #f0f9ff, #eff6ff 58%, #f8fafc);
  border: 1px solid #dbeafe;
  border-radius: 30px;
}

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

.category-card {
  display: flex;
  min-height: 150px;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(219, 234, 254, 0.95);
  border-radius: 22px;
  box-shadow: 0 12px 26px rgba(14, 165, 233, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 36px rgba(14, 165, 233, 0.16);
}

.category-card strong {
  font-size: 21px;
  font-weight: 900;
}

.category-card span {
  color: var(--color-muted);
  font-size: 14px;
}

.filter-bar {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, minmax(140px, 0.55fr)) auto;
  gap: 12px;
  padding: 18px;
  margin: 28px 0;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 22px;
  box-shadow: var(--shadow-card);
}

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

.filter-bar input:focus,
.filter-bar select:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.12);
}

.filter-bar button {
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  color: #075985;
  background: #e0f2fe;
  padding: 12px 18px;
  font-weight: 900;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 54px 76px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 12px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-row:hover {
  transform: translateY(-3px);
  border-color: rgba(14, 165, 233, 0.42);
}

.rank-number {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #ffffff;
  background: linear-gradient(135deg, #f43f5e, #f59e0b);
  border-radius: 14px;
  font-weight: 900;
}

.rank-thumb {
  overflow: hidden;
  width: 76px;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  background: #e0f2fe;
}

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

.rank-info h3 {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 900;
}

.rank-info p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--color-muted);
  font-size: 13px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.rank-tag {
  padding: 7px 11px;
  color: #075985;
  background: #e0f2fe;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 24px 0 0;
  color: #64748b;
  font-size: 14px;
}

.breadcrumb a {
  color: var(--color-primary-dark);
  font-weight: 800;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
  gap: 32px;
  align-items: start;
  padding: 36px 0 64px;
}

.detail-title {
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.detail-intro {
  color: #334155;
  font-size: 18px;
}

.detail-card {
  padding: 24px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.94);
  border-radius: 26px;
  box-shadow: var(--shadow-card);
}

.video-shell {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
  border-radius: 26px;
  box-shadow: 0 24px 65px rgba(2, 6, 23, 0.3);
}

.video-shell video {
  width: 100%;
  height: 100%;
  background: #020617;
  object-fit: contain;
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  border: 0;
  cursor: pointer;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.64), rgba(15, 23, 42, 0.18));
}

.play-overlay span {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  padding-left: 6px;
  background: rgba(14, 165, 233, 0.92);
  border-radius: 999px;
  box-shadow: 0 20px 55px rgba(14, 165, 233, 0.35);
  font-size: 40px;
}

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

.detail-aside {
  position: sticky;
  top: 96px;
}

.detail-poster {
  overflow: hidden;
  border-radius: 26px;
  box-shadow: var(--shadow-card);
}

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

.info-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.info-list div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  background: #f8fafc;
  border-radius: 14px;
}

.info-list dt {
  color: #64748b;
}

.info-list dd {
  margin: 0;
  text-align: right;
  font-weight: 900;
}

.content-section {
  padding: 26px 0;
}

.content-section h2 {
  margin: 0 0 14px;
  font-size: 26px;
  font-weight: 900;
}

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

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.tag-cloud span {
  color: #075985;
  background: #e0f2fe;
  border-radius: 999px;
  padding: 6px 11px;
  font-weight: 800;
}

.site-footer {
  margin-top: 40px;
  padding: 48px 0 32px;
  background: #ffffff;
  border-top: 1px solid var(--color-line);
}

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

.site-footer h2,
.site-footer h3 {
  margin: 0 0 12px;
  font-weight: 900;
}

.site-footer p,
.site-footer a {
  color: #64748b;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid #e5e7eb;
  color: #94a3b8;
  font-size: 14px;
}

.empty-state {
  display: none;
  padding: 36px;
  text-align: center;
  color: #64748b;
  background: #ffffff;
  border: 1px dashed #bae6fd;
  border-radius: 22px;
}

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

@media (max-width: 1100px) {
  .card-grid,
  .card-grid.five,
  .category-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

  .detail-aside {
    position: static;
    max-width: 420px;
  }
}

@media (max-width: 860px) {
  .header-inner {
    flex-wrap: wrap;
    min-height: 66px;
    padding: 10px 0;
  }

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

  .main-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    order: 5;
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    border-radius: 12px;
  }

  .top-search {
    width: min(100%, 420px);
    margin-left: auto;
  }

  .hero {
    height: 72vh;
    min-height: 540px;
  }

  .hero-control {
    display: none;
  }

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

  .card-grid,
  .card-grid.five,
  .card-grid.four,
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .rank-row {
    grid-template-columns: 42px 64px minmax(0, 1fr);
  }

  .rank-tag {
    display: none;
  }

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

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .container,
  .header-inner,
  .hero-content {
    width: min(100% - 24px, var(--container));
  }

  .logo {
    font-size: 21px;
  }

  .top-search {
    order: 4;
    width: 100%;
  }

  .hero-content {
    bottom: 56px;
  }

  .hero-title {
    margin-top: 14px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

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

  .card-grid,
  .card-grid.five,
  .card-grid.four,
  .category-grid {
    gap: 14px;
  }

  .card-body {
    padding: 12px;
  }

  .filter-bar {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .category-panel,
  .detail-card {
    padding: 18px;
    border-radius: 22px;
  }

  .video-shell {
    border-radius: 18px;
  }

  .play-overlay span {
    width: 70px;
    height: 70px;
    font-size: 32px;
  }
}
