:root {
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --cyan-600: #0891b2;
  --cyan-500: #06b6d4;
  --blue-500: #3b82f6;
  --red-500: #ef4444;
  --green-500: #22c55e;
  --yellow-500: #eab308;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.14);
  --soft-shadow: 0 10px 30px rgba(15, 23, 42, 0.10);
  --radius-xl: 22px;
  --radius-lg: 16px;
  --radius-md: 12px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--white);
  background: linear-gradient(90deg, var(--slate-950), var(--slate-800), var(--slate-950));
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.32);
}

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

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.logo-mark {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--cyan-500), var(--blue-500));
  border-radius: 999px;
  box-shadow: 0 0 0 6px rgba(6, 182, 212, 0.12);
  font-size: 13px;
}

.logo-text {
  font-size: 22px;
  background: linear-gradient(90deg, #67e8f9, #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link,
.mobile-nav-link {
  color: #dbeafe;
  font-size: 15px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: #67e8f9;
}

.header-search,
.mobile-search {
  display: flex;
  align-items: center;
  background: rgba(51, 65, 85, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  overflow: hidden;
}

.header-search input,
.mobile-search input {
  width: 210px;
  border: 0;
  outline: 0;
  color: var(--white);
  background: transparent;
  padding: 10px 12px 10px 18px;
}

.header-search input::placeholder,
.mobile-search input::placeholder {
  color: #cbd5e1;
}

.header-search button,
.mobile-search button {
  border: 0;
  color: var(--white);
  background: linear-gradient(135deg, var(--cyan-500), var(--blue-500));
  padding: 10px 15px;
  cursor: pointer;
}

.mobile-menu-button {
  display: none;
  border: 0;
  color: var(--white);
  background: rgba(51, 65, 85, 0.75);
  border-radius: 12px;
  padding: 8px 12px;
  cursor: pointer;
}

.mobile-panel {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
}

.mobile-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.mobile-nav-link {
  display: block;
  padding: 10px 12px;
  background: rgba(51, 65, 85, 0.9);
  border-radius: 12px;
}

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

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

.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.12) contrast(1.05);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.86), rgba(15, 23, 42, 0.48), rgba(15, 23, 42, 0.08));
}

.hero-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
}

.hero-copy {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  max-width: 720px;
  color: var(--white);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--white);
  background: linear-gradient(135deg, var(--cyan-500), var(--blue-500));
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hero h1,
.hero h2 {
  margin: 16px 0 12px;
  color: var(--white);
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero p {
  max-width: 620px;
  margin: 0 0 18px;
  color: #e2e8f0;
  font-size: clamp(16px, 2vw, 20px);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
  color: #cbd5e1;
  font-weight: 700;
}

.hero-meta span {
  padding: 7px 11px;
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(226, 232, 240, 0.18);
  border-radius: 999px;
  backdrop-filter: blur(10px);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.primary-button {
  color: var(--white);
  background: linear-gradient(135deg, var(--cyan-500), var(--blue-500));
  box-shadow: 0 16px 34px rgba(6, 182, 212, 0.35);
}

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

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

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

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

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

.section {
  width: min(1240px, calc(100% - 32px));
  margin: 58px auto;
}

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

.section-kicker {
  margin: 0 0 4px;
  color: var(--cyan-600);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.section h1,
.section h2,
.page-title {
  margin: 0;
  color: var(--slate-900);
  letter-spacing: -0.04em;
}

.section-title {
  font-size: clamp(28px, 4vw, 40px);
}

.section-desc,
.page-desc {
  max-width: 820px;
  color: var(--slate-600);
  margin: 10px 0 0;
}

.text-link {
  color: var(--cyan-600);
  font-weight: 900;
}

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

.category-card {
  min-height: 142px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
  color: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--soft-shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-card strong {
  display: block;
  margin-top: 8px;
  font-size: 21px;
}

.category-card span {
  font-size: 34px;
}

.category-card p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
}

.gradient-blue {
  background: linear-gradient(135deg, #06b6d4, #2563eb);
}

.gradient-orange {
  background: linear-gradient(135deg, #f97316, #ea580c);
}

.gradient-green {
  background: linear-gradient(135deg, #22c55e, #16a34a);
}

.gradient-purple {
  background: linear-gradient(135deg, #8b5cf6, #06b6d4);
}

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

.movie-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: var(--radius-lg);
  box-shadow: var(--soft-shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.card-image {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, var(--slate-800), var(--slate-950));
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, filter 0.4s ease;
}

.movie-card:hover .card-image img,
.compact-card:hover img,
.ranking-item:hover img {
  transform: scale(1.08);
  filter: brightness(0.82);
}

.duration,
.play-badge {
  position: absolute;
  z-index: 2;
}

.duration {
  top: 10px;
  right: 10px;
  padding: 4px 8px;
  color: var(--white);
  background: rgba(2, 6, 23, 0.72);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.play-badge {
  left: 50%;
  top: 50%;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: rgba(6, 182, 212, 0.88);
  border-radius: 999px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.85);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

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

.card-body {
  padding: 16px;
}

.card-meta,
.info-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--slate-500);
  font-size: 13px;
  font-weight: 800;
}

.card-meta span,
.info-line span {
  padding: 3px 8px;
  background: var(--slate-100);
  border-radius: 999px;
}

.movie-card h2 {
  margin: 12px 0 8px;
  color: var(--slate-900);
  font-size: 18px;
  line-height: 1.35;
}

.movie-card h2 a:hover,
.ranking-content h2 a:hover,
.detail-copy h1 a:hover {
  color: var(--cyan-600);
}

.movie-card p {
  display: -webkit-box;
  min-height: 52px;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--slate-600);
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.tag-row span,
.tag-link {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  color: #075985;
  background: #e0f2fe;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.score-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 13px;
  color: var(--slate-600);
  font-size: 13px;
  font-weight: 800;
}

.score-row span:first-child {
  color: var(--yellow-500);
}

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

.update-item,
.ranking-item {
  display: grid;
  grid-template-columns: 176px minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  overflow: hidden;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--soft-shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.update-item:hover,
.ranking-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.update-thumb,
.ranking-cover {
  overflow: hidden;
  background: var(--slate-900);
}

.update-thumb img,
.ranking-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.update-content,
.ranking-content {
  padding: 18px 18px 18px 0;
}

.update-content h2,
.ranking-content h2 {
  margin: 9px 0 8px;
  font-size: 21px;
  line-height: 1.35;
}

.update-content p,
.ranking-content p {
  margin: 0;
  color: var(--slate-600);
}

.page-hero {
  color: var(--white);
  background: radial-gradient(circle at 10% 20%, rgba(6, 182, 212, 0.32), transparent 30%), linear-gradient(135deg, var(--slate-950), var(--slate-800));
  padding: 70px 0;
}

.page-hero-inner {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
}

.page-hero h1 {
  margin: 0;
  color: var(--white);
  font-size: clamp(34px, 5vw, 58px);
  letter-spacing: -0.04em;
}

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

.breadcrumb {
  width: min(1240px, calc(100% - 32px));
  margin: 22px auto 0;
  color: var(--slate-500);
  font-size: 14px;
  font-weight: 800;
}

.breadcrumb a:hover {
  color: var(--cyan-600);
}

.detail-layout {
  width: min(1240px, calc(100% - 32px));
  margin: 28px auto 58px;
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(320px, 0.72fr);
  gap: 28px;
  align-items: start;
}

.player-panel,
.detail-panel,
.text-panel,
.related-panel {
  background: var(--white);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: var(--radius-xl);
  box-shadow: var(--soft-shadow);
}

.player-panel {
  overflow: hidden;
}

.video-player {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--slate-950);
}

.video-player video {
  width: 100%;
  height: 100%;
  display: block;
  background: var(--slate-950);
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: var(--white);
  background: linear-gradient(rgba(2, 6, 23, 0.25), rgba(2, 6, 23, 0.75));
  cursor: pointer;
}

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

.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.player-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(rgba(2, 6, 23, 0.1), rgba(2, 6, 23, 0.72));
}

.player-cover span {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  padding-left: 4px;
  color: var(--white);
  background: linear-gradient(135deg, var(--cyan-500), var(--blue-500));
  border-radius: 999px;
  box-shadow: 0 18px 50px rgba(6, 182, 212, 0.4);
  font-size: 30px;
}

.player-caption {
  padding: 18px 20px;
  color: var(--slate-600);
}

.detail-panel {
  padding: 24px;
}

.detail-panel h1 {
  margin: 10px 0 14px;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.16;
  letter-spacing: -0.04em;
}

.detail-panel .one-line {
  color: var(--slate-600);
  font-size: 17px;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.text-panel,
.related-panel {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto 58px;
  padding: 28px;
}

.text-panel h2,
.related-panel h2 {
  margin: 0 0 14px;
  font-size: 28px;
  letter-spacing: -0.03em;
}

.text-panel p {
  margin: 0 0 18px;
  color: var(--slate-700);
  font-size: 17px;
}

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

.compact-card {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 14px;
  overflow: hidden;
  align-items: center;
  min-height: 92px;
  padding: 10px;
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: var(--radius-md);
}

.compact-card img {
  width: 110px;
  height: 70px;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.compact-card strong {
  display: block;
  color: var(--slate-900);
  line-height: 1.35;
}

.compact-card em {
  display: block;
  margin-top: 5px;
  color: var(--slate-500);
  font-size: 13px;
  font-style: normal;
}

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

.ranking-item {
  grid-template-columns: 70px 180px minmax(0, 1fr);
}

.ranking-number {
  display: grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--cyan-500), var(--blue-500));
  font-size: 24px;
  font-weight: 900;
}

.genre-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.genre-cloud a {
  padding: 9px 14px;
  color: #075985;
  background: #e0f2fe;
  border-radius: 999px;
  font-weight: 900;
}

.genre-cloud a:hover {
  color: var(--white);
  background: linear-gradient(135deg, var(--cyan-500), var(--blue-500));
}

.empty-state {
  padding: 40px;
  color: var(--slate-600);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--soft-shadow);
}

.site-footer {
  color: #cbd5e1;
  background: linear-gradient(180deg, var(--slate-900), var(--slate-950));
  margin-top: 68px;
}

.footer-inner {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.35fr repeat(3, 1fr);
  gap: 28px;
  padding: 46px 0 32px;
}

.footer-brand p {
  color: #94a3b8;
}

.footer-column {
  display: grid;
  align-content: start;
  gap: 8px;
}

.footer-column h2 {
  margin: 0 0 8px;
  color: var(--white);
  font-size: 17px;
}

.footer-column a:hover {
  color: #67e8f9;
}

.footer-bottom {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0;
  color: #94a3b8;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  font-size: 14px;
}

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

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

  .mobile-menu-button {
    display: inline-flex;
  }

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

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

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

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

@media (max-width: 720px) {
  .header-search {
    display: none;
  }

  .hero {
    min-height: 520px;
  }

  .hero-copy {
    max-width: none;
  }

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

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

  .update-item,
  .ranking-item {
    grid-template-columns: 120px minmax(0, 1fr);
  }

  .ranking-item {
    grid-template-columns: 54px 110px minmax(0, 1fr);
  }

  .ranking-number {
    font-size: 18px;
  }

  .update-content,
  .ranking-content {
    padding: 12px 12px 12px 0;
  }

  .update-content h2,
  .ranking-content h2 {
    font-size: 17px;
  }

  .detail-panel,
  .text-panel,
  .related-panel {
    padding: 20px;
  }

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

@media (max-width: 480px) {
  .header-inner,
  .section,
  .page-hero-inner,
  .breadcrumb,
  .detail-layout,
  .text-panel,
  .related-panel,
  .footer-inner,
  .footer-bottom {
    width: min(100% - 24px, 1240px);
  }

  .logo-text {
    font-size: 19px;
  }

  .mobile-nav {
    grid-template-columns: 1fr;
  }

  .compact-card {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .compact-card img {
    width: 92px;
  }
}
