:root {
  --sky: #0284c7;
  --sky-dark: #0369a1;
  --sky-soft: #e0f2fe;
  --amber: #f59e0b;
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 12px 30px rgba(15, 23, 42, 0.08);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: linear-gradient(180deg, var(--slate-50) 0%, var(--slate-100) 100%);
  color: var(--slate-900);
  line-height: 1.65;
}

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

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

button,
input {
  font: inherit;
}

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

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

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

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--white);
  background: linear-gradient(135deg, var(--sky), #38bdf8);
  box-shadow: 0 10px 24px rgba(2, 132, 199, 0.28);
}

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

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

.nav-link,
.mobile-link {
  color: var(--slate-600);
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link {
  padding: 10px 16px;
  border-radius: 999px;
}

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

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: var(--slate-100);
  cursor: pointer;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  display: block;
  margin: 5px auto;
  border-radius: 999px;
  background: var(--slate-700);
}

.mobile-menu {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 12px;
  border: 1px solid var(--slate-200);
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

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

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

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

.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-media {
  position: absolute;
  inset: 0;
}

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

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 25%, rgba(56, 189, 248, 0.25), transparent 34%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.90) 0%, rgba(2, 6, 23, 0.62) 46%, rgba(2, 6, 23, 0.08) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.58), rgba(2, 6, 23, 0.18));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 82px 0;
}

.hero-copy {
  width: min(650px, 100%);
  color: var(--white);
}

.hero-copy h1,
.hero-copy h2,
.hero-heading {
  margin: 0 0 22px;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero-copy p {
  margin: 0 0 30px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(17px, 2.2vw, 22px);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.hero-meta span,
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 6px 13px;
  border: 1px solid rgba(186, 230, 253, 0.28);
  border-radius: 999px;
  color: #bae6fd;
  background: rgba(2, 132, 199, 0.18);
  backdrop-filter: blur(10px);
  font-weight: 800;
}

.hero-actions,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

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

.btn-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--sky), #38bdf8);
  box-shadow: 0 18px 35px rgba(2, 132, 199, 0.26);
}

.btn-secondary {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.btn-ghost {
  color: var(--sky);
  background: var(--sky-soft);
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-ghost:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.16);
}

.hero-controls {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 32px;
  width: min(1180px, calc(100% - 32px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.hero-dots {
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 36px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
  cursor: pointer;
}

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

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

.hero-arrow,
.scroll-button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--slate-800);
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, background 0.2s ease;
}

.hero-arrow:hover,
.scroll-button:hover {
  transform: translateY(-2px);
  background: var(--white);
}

.section {
  padding: 76px 0;
}

.section-white {
  background: var(--white);
}

.section-soft {
  background: linear-gradient(135deg, var(--slate-50), #e0f2fe);
}

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

.section-kicker {
  color: var(--sky);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-heading h2,
.page-title h1 {
  margin: 6px 0 0;
  color: var(--slate-900);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.section-heading p,
.page-title p {
  margin: 12px 0 0;
  max-width: 720px;
  color: var(--slate-600);
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--sky);
  font-weight: 900;
  white-space: nowrap;
}

.horizontal-wrap {
  position: relative;
}

.horizontal-list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 320px);
  gap: 24px;
  overflow-x: auto;
  padding: 6px 4px 20px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.horizontal-list::-webkit-scrollbar {
  display: none;
}

.scroll-tools {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  scroll-snap-align: start;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: var(--shadow);
}

.movie-card-wide {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 230px;
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, var(--slate-200), var(--slate-100));
}

.movie-card-wide .poster-link {
  aspect-ratio: auto;
  min-height: 100%;
}

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

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

.year-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.16);
}

.year-badge {
  right: 12px;
  bottom: 12px;
  padding: 5px 10px;
  color: var(--slate-900);
  background: rgba(255, 255, 255, 0.92);
}

.rank-badge {
  left: 12px;
  top: 12px;
  padding: 6px 11px;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber), #ef4444);
}

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

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--sky);
  font-size: 13px;
  font-weight: 900;
}

.movie-card h3 {
  margin: 0 0 10px;
  font-size: 19px;
  line-height: 1.32;
}

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

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

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag-list span {
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--slate-600);
  background: var(--slate-100);
  font-size: 12px;
  font-weight: 800;
}

.category-card {
  position: relative;
  min-height: 210px;
  padding: 26px;
  overflow: hidden;
  border-radius: 24px;
  color: var(--white);
  background:
    radial-gradient(circle at 78% 22%, rgba(255, 255, 255, 0.32), transparent 26%),
    linear-gradient(135deg, #0284c7, #0f172a);
  box-shadow: var(--shadow-soft);
}

.category-card::after {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  right: -42px;
  bottom: -48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.category-card h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 10px;
  font-size: 24px;
}

.category-card p {
  position: relative;
  z-index: 1;
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.82);
}

.category-card span {
  position: relative;
  z-index: 1;
  display: inline-flex;
  color: #bae6fd;
  font-weight: 900;
}

.search-panel {
  margin-bottom: 30px;
  padding: 18px;
  border: 1px solid var(--slate-200);
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.search-label {
  display: block;
  margin-bottom: 10px;
  color: var(--slate-700);
  font-weight: 900;
}

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

.search-row input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid var(--slate-200);
  border-radius: 14px;
  outline: none;
  color: var(--slate-900);
  background: var(--slate-50);
}

.search-row input:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.16);
}

.search-row button {
  min-width: 86px;
  border: 0;
  border-radius: 14px;
  color: var(--white);
  background: var(--slate-900);
  cursor: pointer;
  font-weight: 900;
}

.page-hero {
  padding: 70px 0 42px;
  background:
    radial-gradient(circle at 80% 10%, rgba(56, 189, 248, 0.18), transparent 26%),
    linear-gradient(180deg, var(--white), var(--slate-50));
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--slate-500);
  font-size: 14px;
  font-weight: 800;
}

.breadcrumb a {
  color: var(--sky);
}

.page-title {
  max-width: 840px;
}

.category-layout {
  padding: 58px 0 80px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 80px 150px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--slate-200);
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.rank-number {
  color: var(--sky);
  font-size: 28px;
  font-weight: 900;
}

.rank-cover {
  position: relative;
  height: 92px;
  overflow: hidden;
  border-radius: 16px;
  background: var(--slate-100);
}

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

.rank-info h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.rank-info p {
  margin: 0;
  color: var(--slate-600);
}

.rank-score {
  min-width: 72px;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber), #ef4444);
  text-align: center;
  font-weight: 900;
}

.player-shell {
  background: var(--slate-950);
}

.player-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

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

.player-box video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: rgba(2, 6, 23, 0.30);
  transition: opacity 0.2s ease;
}

.player-cover[hidden] {
  display: none;
}

.play-button {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  background: linear-gradient(135deg, var(--sky), #38bdf8);
  box-shadow: 0 24px 55px rgba(2, 132, 199, 0.34);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.play-button:hover {
  transform: scale(1.08);
}

.play-button svg {
  width: 42px;
  height: 42px;
  margin-left: 5px;
  fill: currentColor;
}

.detail-main {
  padding: 62px 0 84px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 34px;
}

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

.detail-card {
  padding: 34px;
}

.detail-card h1 {
  margin: 0 0 22px;
  font-size: clamp(32px, 4.5vw, 50px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.detail-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.detail-fields span {
  padding: 8px 13px;
  border-radius: 999px;
  color: var(--sky-dark);
  background: var(--sky-soft);
  font-weight: 900;
}

.detail-section {
  padding-top: 26px;
  margin-top: 26px;
  border-top: 1px solid var(--slate-200);
}

.detail-section h2 {
  margin: 0 0 12px;
  font-size: 22px;
}

.detail-section p {
  margin: 0;
  color: var(--slate-700);
  font-size: 17px;
}

.side-card {
  position: sticky;
  top: 96px;
  padding: 22px;
}

.side-card h2 {
  margin: 0 0 18px;
  font-size: 22px;
}

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

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

.related-thumb {
  height: 72px;
  overflow: hidden;
  border-radius: 14px;
  background: var(--slate-100);
}

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

.related-item h3 {
  margin: 0 0 4px;
  font-size: 15px;
  line-height: 1.35;
}

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

.site-footer {
  padding: 34px 0;
  color: var(--slate-500);
  background: var(--slate-950);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-inner strong {
  color: var(--white);
}

.footer-inner p {
  margin: 4px 0 0;
}

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

.footer-links a {
  color: var(--slate-300);
  font-weight: 800;
}

.is-hidden {
  display: none !important;
}

.empty-state {
  display: none;
  padding: 46px 20px;
  border-radius: 24px;
  color: var(--slate-600);
  background: var(--white);
  text-align: center;
}

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

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

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

  .side-card {
    position: static;
  }

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

  .rank-score {
    grid-column: 3;
    justify-self: start;
  }
}

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

  .nav-toggle {
    display: block;
  }

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

  .hero-copy p {
    max-width: 95%;
  }

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

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

  .movie-card-wide {
    grid-template-columns: 1fr;
  }

  .movie-card-wide .poster-link {
    aspect-ratio: 16 / 10;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .container,
  .site-header-inner,
  .mobile-menu,
  .hero-content,
  .hero-controls {
    width: min(100% - 22px, 1180px);
  }

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

  .hero-copy h1,
  .hero-copy h2,
  .hero-heading {
    font-size: 42px;
  }

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

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

  .hero-controls {
    bottom: 20px;
  }

  .hero-arrow {
    width: 40px;
    height: 40px;
  }

  .section {
    padding: 54px 0;
  }

  .card-grid,
  .card-grid-three {
    grid-template-columns: 1fr;
  }

  .horizontal-list {
    grid-auto-columns: minmax(240px, 82vw);
  }

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

  .search-row button {
    min-height: 48px;
  }

  .detail-card {
    padding: 24px;
  }

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

  .rank-cover {
    grid-column: 1 / -1;
    height: 160px;
  }

  .rank-info,
  .rank-score {
    grid-column: 1 / -1;
  }

  .related-item {
    grid-template-columns: 98px 1fr;
  }
}
