:root {
  --sky-50: #f0f9ff;
  --sky-100: #e0f2fe;
  --sky-200: #bae6fd;
  --sky-500: #0ea5e9;
  --sky-600: #0284c7;
  --sky-700: #0369a1;
  --blue-50: #eff6ff;
  --blue-100: #dbeafe;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.13);
  --soft-shadow: 0 10px 30px rgba(14, 165, 233, 0.13);
  --radius: 18px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background: linear-gradient(180deg, var(--sky-50), var(--white) 38%, var(--gray-50));
  color: var(--gray-800);
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: linear-gradient(90deg, rgba(240, 249, 255, 0.96), rgba(239, 246, 255, 0.96));
  border-bottom: 1px solid var(--sky-200);
  box-shadow: 0 4px 18px rgba(2, 132, 199, 0.08);
  backdrop-filter: blur(14px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--white);
  background: linear-gradient(135deg, var(--sky-500), var(--sky-700));
  box-shadow: var(--soft-shadow);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong,
.footer-brand {
  font-size: 20px;
  font-weight: 800;
  color: var(--gray-800);
}

.brand-text small {
  margin-top: 3px;
  font-size: 12px;
  color: var(--gray-500);
}

.menu-toggle {
  display: none;
  border: 0;
  border-radius: 12px;
  padding: 9px 12px;
  color: var(--gray-700);
  background: var(--sky-100);
  cursor: pointer;
}

.nav-panel {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  white-space: nowrap;
}

.nav-link {
  font-weight: 650;
  font-size: 15px;
  color: var(--gray-700);
  transition: color 0.25s ease, transform 0.25s ease;
}

.nav-link:hover {
  color: var(--sky-600);
  transform: translateY(-1px);
}

.hero {
  position: relative;
  height: 500px;
  margin-top: 32px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(17, 24, 39, 0.22);
  background: var(--gray-900);
}

.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-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.42) 45%, rgba(0, 0, 0, 0.08));
}

.hero-content {
  position: absolute;
  left: clamp(24px, 6vw, 58px);
  right: clamp(24px, 6vw, 58px);
  bottom: clamp(28px, 7vw, 58px);
  max-width: 760px;
  color: var(--white);
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: var(--sky-500);
  font-size: 14px;
  font-weight: 700;
}

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(32px, 6vw, 56px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero p {
  margin: 0 0 18px;
  max-width: 680px;
  color: #e5e7eb;
  font-size: clamp(16px, 2.2vw, 20px);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-tags,
.tag-row,
.card-meta,
.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags a,
.hero-tags span,
.tag-row span,
.detail-tags a {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.16);
  color: inherit;
  font-size: 13px;
  font-weight: 650;
}

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

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

.primary-btn {
  background: var(--white);
  color: var(--sky-600);
  box-shadow: 0 12px 26px rgba(255, 255, 255, 0.18);
}

.ghost-btn {
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
}

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

.hero-dots {
  position: absolute;
  right: 26px;
  bottom: 26px;
  display: flex;
  gap: 8px;
  z-index: 4;
}

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

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

.quick-filter {
  margin-top: 28px;
  padding: 22px;
  border: 1px solid var(--sky-200);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--soft-shadow);
}

.search-box {
  display: grid;
  grid-template-columns: auto minmax(220px, 1fr) auto;
  align-items: center;
  gap: 14px;
}

.search-box label {
  font-weight: 800;
  color: var(--gray-800);
}

.search-box input {
  width: 100%;
  border: 1px solid var(--sky-200);
  border-radius: 999px;
  padding: 12px 18px;
  outline: none;
  color: var(--gray-800);
  background: var(--white);
}

.search-box input:focus {
  border-color: var(--sky-500);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.12);
}

#resultCount {
  min-width: 90px;
  color: var(--sky-700);
  font-size: 14px;
  font-weight: 700;
}

.category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.category-chips a {
  border-radius: 999px;
  padding: 8px 14px;
  background: var(--sky-100);
  color: var(--sky-700);
  font-size: 14px;
  font-weight: 800;
}

.content-section {
  margin-top: 58px;
}

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

.section-head h2,
.rank-panel h2,
.site-footer h2 {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(24px, 3vw, 32px);
  color: var(--gray-800);
}

.section-head h2 span {
  width: 5px;
  height: 32px;
  border-radius: 999px;
  background: var(--sky-600);
}

.section-more {
  color: var(--sky-600);
  font-weight: 800;
}

.movie-grid {
  display: grid;
  gap: 22px;
}

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

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

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

.movie-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.09);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

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

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--gray-100);
}

.card-large .poster-wrap {
  aspect-ratio: 16 / 9;
}

.card-small .poster-wrap {
  aspect-ratio: 16 / 10;
}

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

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

.poster-mask {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0));
  opacity: 0;
  transition: opacity 0.28s ease;
}

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

.play-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--sky-600);
  font-size: 22px;
  transform: scale(0.86);
  transition: transform 0.28s ease;
}

.movie-card:hover .play-icon {
  transform: scale(1);
}

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

.card-body strong {
  display: -webkit-box;
  min-height: 48px;
  color: var(--gray-800);
  font-size: 16px;
  line-height: 1.5;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.25s ease;
}

.movie-card:hover .card-body strong {
  color: var(--sky-600);
}

.card-body em {
  display: -webkit-box;
  color: var(--gray-600);
  font-size: 14px;
  line-height: 1.58;
  font-style: normal;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  margin-top: auto;
  color: var(--gray-500);
  font-size: 12px;
}

.card-meta span:last-child {
  margin-left: auto;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--sky-100);
  color: var(--sky-700);
  font-weight: 800;
}

.tag-row span,
.detail-tags a {
  background: var(--sky-100);
  color: var(--sky-700);
}

.highlight-panel {
  padding: 30px;
  border-radius: 24px;
  background: linear-gradient(90deg, var(--sky-100), var(--blue-100));
  box-shadow: var(--soft-shadow);
}

.two-column-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 26px;
  align-items: start;
}

.rank-panel {
  position: sticky;
  top: 92px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.rank-panel h2 {
  margin-bottom: 16px;
  font-size: 24px;
}

.rank-item {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-200);
}

.rank-item span,
.rank-num {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--sky-100);
  color: var(--sky-700);
  font-weight: 900;
}

.rank-item strong,
.rank-item em {
  grid-column: 2;
}

.rank-item strong {
  color: var(--gray-800);
  line-height: 1.4;
}

.rank-item em {
  color: var(--gray-500);
  font-size: 12px;
  font-style: normal;
}

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

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--gray-500);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--sky-700);
  font-weight: 750;
}

.simple-hero {
  padding: clamp(28px, 5vw, 46px);
  border-radius: 24px;
  background: linear-gradient(90deg, var(--sky-100), var(--blue-50), var(--white));
  box-shadow: var(--soft-shadow);
}

.simple-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 5vw, 48px);
  color: var(--gray-800);
}

.simple-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--gray-600);
  font-size: 17px;
  line-height: 1.8;
}

.page-filter {
  margin-top: 24px;
}

.sticky-filter {
  position: sticky;
  top: 82px;
  z-index: 20;
}

.full-list {
  margin-top: 28px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 30px;
}

.category-tile {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  border-radius: 22px;
  box-shadow: var(--shadow);
  background: var(--gray-900);
}

.category-tile img {
  width: 100%;
  height: 100%;
  min-height: 230px;
  object-fit: cover;
  opacity: 0.82;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.category-tile:hover img {
  opacity: 0.66;
  transform: scale(1.06);
}

.category-tile span {
  position: absolute;
  inset: auto 0 0;
  padding: 26px;
  color: var(--white);
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0));
}

.category-tile strong,
.category-tile em,
.category-tile small {
  display: block;
}

.category-tile strong {
  font-size: 28px;
  font-weight: 900;
}

.category-tile em {
  margin-top: 6px;
  font-style: normal;
  color: #e5e7eb;
}

.category-tile small {
  margin-top: 8px;
  max-width: 540px;
  color: #d1d5db;
  font-size: 14px;
  line-height: 1.6;
}

.ranking-list {
  display: grid;
  gap: 12px;
  margin-top: 30px;
}

.ranking-row {
  display: grid;
  grid-template-columns: 40px 82px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.07);
}

.ranking-row img {
  width: 82px;
  height: 60px;
  border-radius: 12px;
  object-fit: cover;
}

.rank-info strong,
.rank-info em {
  display: block;
}

.rank-info strong {
  color: var(--gray-800);
  font-size: 16px;
}

.rank-info em {
  margin-top: 5px;
  color: var(--gray-600);
  font-size: 14px;
  font-style: normal;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rank-meta {
  color: var(--gray-500);
  font-size: 14px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 26px;
  align-items: start;
}

.player-card {
  grid-column: 1 / -1;
  overflow: hidden;
  border-radius: 24px;
  background: #000000;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.22);
}

.video-shell {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.stream-video,
.video-cover,
.video-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.stream-video {
  object-fit: contain;
}

.video-cover {
  border: 0;
  padding: 0;
  background: #000000;
  cursor: pointer;
  z-index: 3;
}

.video-cover img {
  object-fit: cover;
  opacity: 0.78;
}

.video-cover.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.video-button {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--sky-600);
  font-size: 32px;
  transform: translate(-50%, -50%);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.32);
}

.detail-side {
  position: sticky;
  top: 92px;
}

.detail-cover {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: var(--shadow);
  background: var(--gray-100);
}

.detail-actions {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.block-btn {
  width: 100%;
}

.detail-actions .primary-btn {
  background: var(--sky-600);
  color: var(--white);
}

.detail-actions .ghost-btn {
  border-color: var(--sky-200);
  background: var(--sky-50);
  color: var(--sky-700);
}

.detail-info {
  min-width: 0;
  padding: 28px;
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.detail-info h1 {
  margin: 0;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.16;
  color: var(--gray-800);
}

.one-line {
  margin: 14px 0 24px;
  color: var(--gray-600);
  font-size: 18px;
  line-height: 1.75;
}

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

.info-grid span {
  padding: 12px;
  border-radius: 14px;
  background: var(--gray-50);
  color: var(--gray-700);
  font-size: 14px;
}

.info-grid b {
  display: block;
  margin-bottom: 4px;
  color: var(--gray-500);
  font-size: 12px;
}

.detail-tags {
  margin: 20px 0 8px;
}

.text-block {
  margin-top: 28px;
}

.text-block h2 {
  margin: 0 0 12px;
  font-size: 24px;
  color: var(--gray-800);
}

.text-block p {
  margin: 0;
  color: var(--gray-700);
  font-size: 16px;
  line-height: 1.9;
}

.site-footer {
  margin-top: 70px;
  border-top: 1px solid var(--gray-200);
  background: linear-gradient(180deg, var(--gray-50), var(--gray-100));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 30px;
  padding: 42px 0;
}

.site-footer p {
  max-width: 680px;
  color: var(--gray-600);
  line-height: 1.8;
}

.site-footer h2 {
  margin-bottom: 14px;
  font-size: 18px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-links a {
  color: var(--gray-600);
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--sky-600);
}

.is-filtered-out {
  display: none !important;
}

@media (max-width: 1024px) {
  .six-col,
  .four-col {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .two-column-section,
  .detail-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .detail-side,
  .rank-panel {
    position: static;
  }

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

@media (max-width: 820px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav-panel {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    display: none;
    padding: 14px 16px 22px;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid var(--sky-200);
    box-shadow: var(--soft-shadow);
  }

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

  .nav-links {
    align-items: stretch;
    flex-direction: column;
    gap: 6px;
  }

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

  .nav-link:hover {
    background: var(--sky-100);
  }

  .hero {
    height: 430px;
  }

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

  .search-box {
    grid-template-columns: 1fr;
  }

  #resultCount {
    min-width: 0;
  }

  .ranking-row {
    grid-template-columns: 34px 70px 1fr;
  }

  .rank-meta {
    grid-column: 3;
  }
}

@media (max-width: 560px) {
  .container,
  .site-nav {
    width: min(100% - 22px, var(--container));
  }

  .brand-text strong {
    font-size: 17px;
  }

  .hero {
    height: 430px;
    margin-top: 18px;
    border-radius: 18px;
  }

  .hero-content {
    left: 20px;
    right: 20px;
    bottom: 28px;
  }

  .hero-tags {
    gap: 6px;
  }

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

  .primary-btn,
  .ghost-btn {
    width: 100%;
  }

  .hero-dots {
    right: 18px;
    bottom: 18px;
  }

  .three-col,
  .four-col,
  .six-col,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .highlight-panel,
  .detail-info,
  .quick-filter {
    padding: 18px;
  }

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

  .video-button {
    width: 62px;
    height: 62px;
    font-size: 26px;
  }
}
