:root {
  --sky-50: #f0f9ff;
  --sky-100: #e0f2fe;
  --sky-500: #0ea5e9;
  --sky-600: #0284c7;
  --sky-700: #0369a1;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-500: #64748b;
  --slate-700: #334155;
  --slate-900: #0f172a;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --soft-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--slate-900);
  background: linear-gradient(180deg, var(--sky-50), #ffffff 42%, #ffffff);
  line-height: 1.6;
}

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

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

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

.header-inner {
  max-width: 1180px;
  height: 64px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

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

.brand-text {
  font-size: 21px;
}

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

.nav-link,
.mobile-link {
  border-radius: 12px;
  color: var(--slate-700);
  font-size: 14px;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link {
  padding: 9px 16px;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: var(--sky-700);
  background: var(--sky-100);
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 12px;
  color: var(--slate-700);
  background: var(--slate-100);
  font-size: 22px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px 14px;
}

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

.mobile-link {
  padding: 12px 14px;
}

.hero {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  background: var(--slate-900);
}

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

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

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

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

.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.88), rgba(15, 23, 42, 0.62), rgba(15, 23, 42, 0.1));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  min-height: 600px;
  margin: 0 auto;
  padding: 70px 24px 96px;
  display: flex;
  align-items: center;
}

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

.hero-pill,
.section-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 8px 15px;
  font-size: 14px;
  font-weight: 800;
}

.hero-pill {
  margin-bottom: 22px;
  color: #ffffff;
  background: var(--sky-600);
}

.hero-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.hero-copy p {
  max-width: 660px;
  margin: 0 0 25px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(17px, 2vw, 22px);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 34px;
}

.hero-meta span {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 7px 12px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  font-size: 14px;
}

.hero-actions,
.section-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 13px;
}

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

.button-primary {
  color: #ffffff;
  background: var(--sky-600);
  box-shadow: 0 16px 30px rgba(2, 132, 199, 0.28);
}

.button-primary:hover {
  background: var(--sky-700);
  transform: translateY(-2px);
}

.button-secondary {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
}

.button-secondary:hover,
.button-ghost:hover {
  transform: translateY(-2px);
}

.button-ghost {
  color: var(--sky-700);
  background: var(--sky-100);
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 30px;
  z-index: 4;
  width: min(1180px, calc(100% - 48px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.hero-arrows {
  display: flex;
  gap: 10px;
  pointer-events: auto;
}

.hero-arrow {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(12px);
  cursor: pointer;
}

.hero-dots {
  display: flex;
  gap: 8px;
  pointer-events: auto;
}

.hero-dot {
  width: 34px;
  height: 4px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

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

main {
  min-height: 60vh;
}

.section,
.page-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 58px 24px;
}

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

.section-eyebrow {
  margin: 0 0 8px;
  color: var(--sky-700);
  font-size: 14px;
  font-weight: 800;
}

.section-title,
.page-title {
  margin: 0;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.section-subtitle,
.page-subtitle {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--slate-500);
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--slate-200);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--soft-shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

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

.movie-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--slate-100);
}

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

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

.movie-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.78), rgba(15, 23, 42, 0.08));
  transition: opacity 0.26s ease;
}

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

.movie-year,
.rank-badge {
  position: absolute;
  z-index: 2;
  top: 12px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.movie-year {
  right: 12px;
  padding: 4px 10px;
  background: var(--sky-600);
}

.rank-badge {
  left: 12px;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.74);
}

.cover-play {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sky-600);
  background: rgba(255, 255, 255, 0.92);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.86);
  transition: opacity 0.26s ease, transform 0.26s ease;
}

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

.movie-body {
  padding: 16px;
}

.movie-body h3 {
  margin: 0 0 6px;
  font-size: 17px;
  line-height: 1.35;
}

.movie-body h3 a:hover {
  color: var(--sky-700);
}

.movie-meta,
.movie-desc {
  margin: 0;
  color: var(--slate-500);
  font-size: 13px;
}

.movie-desc {
  display: -webkit-box;
  min-height: 42px;
  margin-top: 8px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.tag-row span,
.detail-tags span {
  border-radius: 999px;
  padding: 4px 9px;
  color: var(--sky-700);
  background: var(--sky-100);
  font-size: 12px;
  font-weight: 700;
}

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

.category-card {
  min-height: 164px;
  border: 1px solid var(--slate-200);
  border-radius: 24px;
  padding: 22px;
  background: linear-gradient(145deg, #ffffff, var(--sky-50));
  box-shadow: var(--soft-shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-card h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.category-card p {
  margin: 0;
  color: var(--slate-500);
  font-size: 14px;
}

.category-card span {
  display: inline-flex;
  margin-top: 16px;
  color: var(--sky-700);
  font-weight: 800;
}

.ranking-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.ranking-panel {
  border: 1px solid var(--slate-200);
  border-radius: 24px;
  padding: 22px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.ranking-panel h2 {
  margin: 0 0 16px;
  font-size: 24px;
}

.ranking-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ranking-item + .ranking-item {
  border-top: 1px solid var(--slate-200);
}

.ranking-link {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 12px;
  align-items: center;
  min-height: 54px;
  padding: 9px 0;
}

.ranking-number {
  width: 32px;
  height: 32px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: var(--sky-600);
  font-weight: 900;
}

.ranking-title {
  font-weight: 800;
}

.ranking-extra {
  color: var(--slate-500);
  font-size: 13px;
}

.browse-tools {
  position: sticky;
  top: 64px;
  z-index: 20;
  margin-bottom: 28px;
  border: 1px solid var(--slate-200);
  border-radius: 24px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(14px);
}

.search-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(4, minmax(130px, 170px));
  gap: 12px;
}

.search-row input,
.search-row select {
  width: 100%;
  height: 44px;
  border: 1px solid var(--slate-200);
  border-radius: 14px;
  padding: 0 13px;
  color: var(--slate-700);
  background: #ffffff;
  outline: none;
}

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

.no-results {
  display: none;
  border-radius: 20px;
  padding: 24px;
  color: var(--slate-500);
  background: var(--slate-50);
  text-align: center;
}

.no-results.is-visible {
  display: block;
}

.detail-hero {
  background: radial-gradient(circle at 20% 20%, rgba(14, 165, 233, 0.22), transparent 30%), linear-gradient(135deg, #0f172a, #0b1120 58%, #082f49);
  color: #ffffff;
}

.detail-hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 24px;
  display: grid;
  grid-template-columns: minmax(260px, 420px) 1fr;
  gap: 36px;
  align-items: center;
}

.detail-cover {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.32);
}

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

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

.breadcrumb a:hover {
  color: #ffffff;
}

.detail-copy h1 {
  margin: 0 0 16px;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.detail-copy p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.detail-meta span {
  border-radius: 999px;
  padding: 6px 11px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.92);
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.player-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 46px 24px 20px;
}

.player-shell {
  overflow: hidden;
  border-radius: 28px;
  background: #000000;
  box-shadow: var(--shadow);
}

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

.player-frame video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.2));
  cursor: pointer;
  transition: opacity 0.22s ease;
}

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

.play-button {
  border: none;
  border-radius: 999px;
  padding: 17px 27px;
  color: var(--sky-700);
  background: rgba(255, 255, 255, 0.94);
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.22);
}

.article-content {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 24px 58px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
}

.content-card,
.side-card {
  border: 1px solid var(--slate-200);
  border-radius: 24px;
  padding: 24px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.content-card + .content-card {
  margin-top: 20px;
}

.content-card h2,
.side-card h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.content-card p {
  margin: 0;
  color: var(--slate-700);
  font-size: 16px;
}

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

.related-item {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  align-items: center;
}

.related-item img {
  width: 96px;
  height: 58px;
  border-radius: 14px;
  object-fit: cover;
}

.related-item strong {
  display: block;
  line-height: 1.35;
}

.related-item span {
  color: var(--slate-500);
  font-size: 13px;
}

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

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 44px 24px 28px;
}

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

.footer-brand {
  margin-bottom: 16px;
  color: #ffffff;
  font-size: 20px;
}

.site-footer p {
  max-width: 460px;
  margin: 0;
  color: #94a3b8;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: #ffffff;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li + li {
  margin-top: 8px;
}

.site-footer a {
  color: #94a3b8;
}

.site-footer a:hover {
  color: #38bdf8;
}

.footer-bottom {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: #64748b;
  font-size: 14px;
}

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

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

  .detail-hero-inner,
  .article-content,
  .ranking-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .header-inner {
    padding: 0 16px;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

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

  .hero-content {
    padding: 58px 18px 92px;
  }

  .hero-image::after {
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.9), rgba(15, 23, 42, 0.42));
  }

  .section,
  .page-section,
  .player-section,
  .article-content,
  .detail-hero-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .section-header,
  .page-header {
    align-items: flex-start;
    flex-direction: column;
  }

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

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

  .ranking-link {
    grid-template-columns: 38px 1fr;
  }

  .ranking-extra {
    grid-column: 2;
  }

  .footer-main,
  .footer-bottom {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .detail-copy h1 {
    font-size: 34px;
  }
}
