: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-sm: 0 1px 2px rgb(15 23 42 / 0.06);
  --shadow-md: 0 10px 25px rgb(15 23 42 / 0.08);
  --shadow-xl: 0 25px 50px rgb(15 23 42 / 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--slate-700);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background: linear-gradient(180deg, rgb(240 249 255 / 0.35), #ffffff 38%, #f8fafc 100%);
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(255 255 255 / 0.92);
  border-bottom: 1px solid var(--slate-200);
  backdrop-filter: blur(12px);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--slate-900);
}

.logo-mark {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #ffffff;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--sky-500), #2563eb);
  box-shadow: 0 10px 25px rgb(14 165 233 / 0.28);
}

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

.nav-links a {
  padding: 10px 14px;
  color: var(--slate-500);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--sky-700);
  background: var(--sky-50);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  background: #ffffff;
  color: var(--slate-700);
  font-size: 20px;
}

.hero-slider {
  position: relative;
  height: 600px;
  margin: 32px 0 64px;
  overflow: hidden;
  border-radius: 24px;
  background: #020617;
  box-shadow: var(--shadow-xl);
}

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

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

.hero-media,
.hero-media img,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media img {
  object-fit: cover;
  transform: scale(1.02);
}

.hero-shade {
  background: linear-gradient(90deg, rgb(2 6 23 / 0.88), rgb(2 6 23 / 0.58), rgb(2 6 23 / 0.06));
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 100%;
  align-items: center;
  padding: 56px;
}

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

.badge-row,
.meta-row,
.tag-row,
.action-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 13px;
  border-radius: 999px;
  color: #ffffff;
  background: rgb(14 165 233 / 0.92);
  font-size: 13px;
  font-weight: 700;
}

.badge.glass {
  background: rgb(255 255 255 / 0.18);
  backdrop-filter: blur(8px);
}

.hero-title {
  margin: 18px 0 14px;
  color: #ffffff;
  font-size: clamp(38px, 6vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero-text {
  max-width: 620px;
  margin: 0 0 18px;
  color: #e5e7eb;
  font-size: 18px;
  line-height: 1.75;
}

.meta-row {
  margin-bottom: 20px;
  color: #cbd5e1;
  font-size: 15px;
}

.tag-row {
  margin-bottom: 28px;
}

.tag {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 10px;
  color: var(--sky-700);
  background: var(--sky-50);
  font-size: 12px;
  font-weight: 700;
}

.hero-tag {
  color: #ffffff;
  background: rgb(255 255 255 / 0.18);
  backdrop-filter: blur(8px);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: 12px;
  color: #ffffff;
  background: var(--sky-500);
  font-weight: 800;
  box-shadow: 0 12px 28px rgb(14 165 233 / 0.28);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
  background: var(--sky-600);
  box-shadow: 0 18px 36px rgb(14 165 233 / 0.33);
}

.button.secondary {
  color: var(--sky-700);
  background: #ffffff;
  box-shadow: var(--shadow-md);
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgb(0 0 0 / 0.45);
  backdrop-filter: blur(8px);
  cursor: pointer;
  transform: translateY(-50%);
}

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

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

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

.hero-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.55);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

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

.search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  margin: 0 0 34px;
  padding: 16px;
  border: 1px solid var(--slate-200);
  border-radius: 20px;
  background: rgb(255 255 255 / 0.86);
  box-shadow: var(--shadow-sm);
}

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

.search-panel input:focus,
.search-panel select:focus {
  border-color: #7dd3fc;
  box-shadow: 0 0 0 4px rgb(14 165 233 / 0.10);
}

.page-title {
  padding: 42px 0 24px;
}

.page-title h1 {
  margin: 0 0 12px;
  color: var(--slate-900);
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.page-title p {
  max-width: 760px;
  margin: 0;
  color: var(--slate-500);
  font-size: 17px;
  line-height: 1.8;
}

.section {
  margin-bottom: 58px;
}

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

.section-head h2 {
  margin: 0 0 6px;
  color: var(--slate-900);
  font-size: 28px;
  letter-spacing: -0.03em;
}

.section-head p {
  margin: 0;
  color: var(--slate-500);
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid #eef2f7;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-4px);
  border-color: #bae6fd;
  box-shadow: var(--shadow-md);
}

.poster {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, #e0f2fe, #f8fafc);
}

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

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

.poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgb(2 6 23 / 0.72));
  opacity: 0;
  transition: opacity 0.25s ease;
}

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

.type-pill {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  padding: 4px 8px;
  border-radius: 9px;
  color: #ffffff;
  background: rgb(2 6 23 / 0.72);
  font-size: 12px;
  font-weight: 700;
}

.movie-body {
  padding: 14px;
}

.movie-title {
  margin: 0 0 8px;
  color: var(--slate-900);
  font-size: 15px;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.movie-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--slate-500);
  font-size: 12px;
}

.movie-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

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

.list-card {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 18px;
  overflow: hidden;
  border: 1px solid #eef2f7;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.list-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.list-card .poster {
  aspect-ratio: 4 / 3;
}

.list-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 16px 18px 16px 0;
}

.list-body h3 {
  margin: 0 0 10px;
  color: var(--slate-900);
  font-size: 20px;
}

.list-body p {
  display: -webkit-box;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--slate-500);
  line-height: 1.65;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.category-card {
  position: relative;
  min-height: 160px;
  overflow: hidden;
  padding: 22px;
  border: 1px solid var(--slate-200);
  border-radius: 22px;
  background: linear-gradient(135deg, #ffffff, var(--sky-50));
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-card::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -34px;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  background: rgb(14 165 233 / 0.13);
}

.category-card h2,
.category-card h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 10px;
  color: var(--slate-900);
  font-size: 22px;
}

.category-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--slate-500);
  line-height: 1.7;
}

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

.rank-card {
  display: grid;
  grid-template-columns: 72px 92px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border: 1px solid #eef2f7;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rank-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.rank-number {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--sky-500), #2563eb);
  font-weight: 900;
}

.rank-cover {
  overflow: hidden;
  width: 92px;
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  background: var(--sky-50);
}

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

.rank-info h2,
.rank-info h3 {
  margin: 0 0 8px;
  color: var(--slate-900);
  font-size: 18px;
}

.rank-info p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--slate-500);
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.detail-hero {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 34px;
  align-items: end;
  padding: 42px;
  border-radius: 28px;
  background: linear-gradient(135deg, #082f49, #0f172a 58%, #020617);
  box-shadow: var(--shadow-xl);
}

.detail-cover {
  overflow: hidden;
  border-radius: 22px;
  background: #0f172a;
  box-shadow: var(--shadow-xl);
}

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

.detail-copy h1 {
  margin: 14px 0 16px;
  color: #ffffff;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.detail-copy p {
  margin: 0 0 18px;
  color: #dbeafe;
  font-size: 18px;
  line-height: 1.8;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: #cbd5e1;
  font-size: 14px;
}

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

.player-section {
  margin: 42px 0;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #000000;
  box-shadow: var(--shadow-xl);
}

.player-box video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgb(2 6 23 / 0.18), rgb(2 6 23 / 0.72));
  cursor: pointer;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.play-core {
  display: grid;
  place-items: center;
  gap: 14px;
  text-align: center;
}

.play-icon {
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border-radius: 999px;
  background: rgb(14 165 233 / 0.92);
  box-shadow: 0 20px 40px rgb(14 165 233 / 0.32);
  font-size: 32px;
}

.play-core strong {
  font-size: 22px;
}

.content-panel {
  padding: 26px;
  border: 1px solid #eef2f7;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.content-panel h2 {
  margin: 0 0 14px;
  color: var(--slate-900);
  font-size: 26px;
}

.content-panel p {
  margin: 0 0 18px;
  color: var(--slate-700);
  line-height: 1.9;
}

.content-panel p:last-child {
  margin-bottom: 0;
}

.empty-state {
  padding: 28px;
  border: 1px dashed #bae6fd;
  border-radius: 18px;
  color: var(--sky-700);
  background: var(--sky-50);
  text-align: center;
}

.site-footer {
  margin-top: 64px;
  padding: 38px 0;
  border-top: 1px solid var(--slate-200);
  color: var(--slate-500);
  background: #ffffff;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

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

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

[hidden] {
  display: none !important;
}

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

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

  .detail-hero {
    grid-template-columns: 250px minmax(0, 1fr);
  }
}

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

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    left: 12px;
    right: 12px;
    top: 68px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--slate-200);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--shadow-md);
  }

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

  .hero-slider {
    height: 540px;
    margin-top: 20px;
    border-radius: 20px;
  }

  .hero-content {
    align-items: end;
    padding: 28px 20px 58px;
  }

  .hero-title {
    font-size: 34px;
  }

  .hero-text {
    font-size: 15px;
  }

  .hero-control {
    display: none;
  }

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

  .section-head {
    display: block;
  }

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

  .movie-body {
    padding: 12px;
  }

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

  .list-card {
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 12px;
  }

  .list-body {
    padding: 12px 12px 12px 0;
  }

  .list-body h3 {
    font-size: 16px;
  }

  .rank-card {
    grid-template-columns: 44px 70px minmax(0, 1fr);
  }

  .rank-card .button {
    grid-column: 1 / -1;
  }

  .rank-cover {
    width: 70px;
  }

  .detail-hero {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .detail-cover {
    max-width: 260px;
  }

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