:root {
  --site-bg: #f8fafc;
  --site-text: #0f172a;
  --site-muted: #64748b;
  --site-blue: #2563eb;
  --site-cyan: #06b6d4;
  --site-orange: #f97316;
  --site-card: #ffffff;
  --site-border: rgba(148, 163, 184, 0.28);
  --site-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--site-bg);
  color: var(--site-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, #0f172a 0%, #1e3a8a 52%, #0f172a 100%);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.28);
}

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

.logo-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.logo-mark {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  box-shadow: 0 14px 24px rgba(37, 99, 235, 0.35);
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  color: #dbeafe;
  font-size: 15px;
}

.nav-links a,
.nav-dropdown-button {
  transition: color 180ms ease, transform 180ms ease;
}

.nav-links a:hover,
.nav-dropdown-button:hover {
  color: #ffffff;
  transform: translateY(-1px);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-button {
  border: 0;
  background: transparent;
  color: #dbeafe;
  cursor: default;
  font: inherit;
  padding: 0;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  width: 220px;
  padding: 8px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 180ms ease;
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: #334155;
}

.nav-dropdown-menu a:hover {
  color: #2563eb;
  background: #eff6ff;
}

.header-search {
  position: relative;
  display: flex;
  align-items: center;
}

.header-search input {
  width: 250px;
  border: 1px solid rgba(191, 219, 254, 0.18);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.75);
  color: #fff;
  outline: none;
  padding: 11px 46px 11px 18px;
}

.header-search input::placeholder {
  color: #93a4b8;
}

.header-search button {
  position: absolute;
  right: 8px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.7);
  color: #fff;
  cursor: pointer;
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 24px;
}

.mobile-menu {
  display: none;
  padding: 0 0 18px;
}

.mobile-menu.is-open {
  display: block;
}

.mobile-menu a {
  display: block;
  padding: 12px 0;
  color: #dbeafe;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-slider {
  position: relative;
  min-height: 610px;
  overflow: hidden;
  color: #fff;
  background: #0f172a;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  opacity: 0;
  transform: scale(1.015);
  pointer-events: none;
  background-position: center;
  background-size: cover;
  transition: opacity 700ms ease, transform 900ms ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 42px;
  align-items: center;
  padding: 86px 0 96px;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 14px;
  border: 1px solid rgba(147, 197, 253, 0.26);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.44);
  color: #bfdbfe;
  backdrop-filter: blur(12px);
}

.hero-title {
  margin: 0 0 18px;
  font-size: clamp(38px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.gradient-text {
  display: block;
  color: transparent;
  background: linear-gradient(90deg, #60a5fa, #22d3ee);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-description {
  margin: 0 0 26px;
  color: #dbeafe;
  font-size: 19px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}

.button-primary,
.button-secondary,
.button-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button-primary {
  background: #2563eb;
  color: #fff;
  box-shadow: 0 18px 32px rgba(37, 99, 235, 0.38);
}

.button-primary:hover {
  background: #1d4ed8;
  transform: translateY(-2px) scale(1.02);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.button-ghost {
  background: #eff6ff;
  color: #1d4ed8;
}

.button-ghost:hover {
  background: #dbeafe;
  transform: translateY(-2px);
}

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

.hero-meta span,
.tag-pill {
  display: inline-flex;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  color: #e0f2fe;
  font-size: 13px;
  backdrop-filter: blur(8px);
}

.hero-poster-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.36);
  box-shadow: 0 30px 80px rgba(2, 6, 23, 0.42);
  backdrop-filter: blur(14px);
}

.hero-poster-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.hero-poster-info {
  padding: 22px;
}

.hero-poster-info h2 {
  margin: 0 0 10px;
  font-size: 24px;
}

.hero-poster-info p {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.7;
}

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

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

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

.hero-bottom-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 110px;
  background: linear-gradient(0deg, #f8fafc, rgba(248, 250, 252, 0));
  pointer-events: none;
}

.section {
  padding: 70px 0;
}

.section-soft {
  background: linear-gradient(180deg, #eff6ff, #ecfeff);
}

.section-dark {
  background: linear-gradient(90deg, #0f172a, #1e3a8a, #0f172a);
  color: #fff;
}

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

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

.section-subtitle {
  margin: 0;
  max-width: 740px;
  color: var(--site-muted);
  line-height: 1.75;
}

.section-dark .section-subtitle {
  color: #cbd5e1;
}

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

.movie-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--site-border);
  border-radius: 22px;
  background: var(--site-card);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  border-color: rgba(37, 99, 235, 0.34);
  box-shadow: var(--site-shadow);
}

.movie-card-image {
  position: relative;
  overflow: hidden;
  background: #e2e8f0;
}

.movie-card-image img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 500ms ease;
}

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

.card-play-mask {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(15, 23, 42, 0.42);
  color: #fff;
  font-size: 42px;
  opacity: 0;
  transition: opacity 220ms ease;
}

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

.card-badge,
.rank-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #2563eb;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.rank-badge {
  left: 12px;
  right: auto;
  background: #f97316;
}

.movie-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}

.movie-card-title {
  margin: 0 0 9px;
  color: #111827;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
  transition: color 180ms ease;
}

.movie-card:hover .movie-card-title {
  color: #2563eb;
}

.movie-card-desc {
  margin: 0 0 14px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.65;
}

.movie-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #e5e7eb;
  color: #64748b;
  font-size: 13px;
}

.line-clamp-2,
.line-clamp-3 {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
}

.line-clamp-2 {
  -webkit-line-clamp: 2;
}

.line-clamp-3 {
  -webkit-line-clamp: 3;
}

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

.category-card {
  overflow: hidden;
  border: 1px solid rgba(191, 219, 254, 0.5);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.08);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 44px rgba(37, 99, 235, 0.16);
}

.category-card-visual {
  min-height: 130px;
  padding: 18px;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
}

.category-card h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.category-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.6;
}

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

.category-count {
  color: #2563eb;
  font-size: 14px;
  font-weight: 800;
}

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

.feature-card {
  display: grid;
  grid-template-columns: 42% 1fr;
  overflow: hidden;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

.feature-card img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}

.feature-content {
  padding: 28px;
}

.feature-content h3 {
  margin: 12px 0;
  font-size: 24px;
}

.feature-content p {
  color: #64748b;
  line-height: 1.75;
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 70px 92px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--site-border);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
}

.ranking-number {
  display: inline-grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 16px;
  background: #eff6ff;
  color: #2563eb;
  font-weight: 900;
}

.ranking-row img {
  width: 92px;
  height: 62px;
  object-fit: cover;
  border-radius: 14px;
}

.ranking-row h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.ranking-row p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
}

.page-hero {
  padding: 64px 0;
  color: #fff;
  background: radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.45), transparent 32%), linear-gradient(90deg, #0f172a, #1e3a8a, #0f172a);
}

.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 56px);
  letter-spacing: -0.045em;
}

.page-hero p {
  margin: 0;
  max-width: 780px;
  color: #dbeafe;
  font-size: 18px;
  line-height: 1.75;
}

.filter-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 28px;
  padding: 18px;
  border: 1px solid var(--site-border);
  border-radius: 22px;
  background: #fff;
}

.filter-panel input,
.filter-panel select {
  min-height: 42px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #fff;
  padding: 0 12px;
  color: #0f172a;
}

.filter-panel input {
  min-width: 260px;
  flex: 1;
}

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

.breadcrumb {
  margin: 24px 0;
  color: #64748b;
  font-size: 14px;
}

.breadcrumb a {
  color: #2563eb;
}

.player-shell {
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.28);
}

.video-wrap {
  position: relative;
  background: #020617;
}

.video-wrap video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.big-play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  width: 88px;
  height: 88px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.86);
  color: #fff;
  font-size: 36px;
  cursor: pointer;
  transform: translate(-50%, -50%);
  box-shadow: 0 18px 38px rgba(37, 99, 235, 0.38);
}

.big-play.is-hidden {
  display: none;
}

.player-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 18px;
}

.player-controls button {
  border: 0;
  border-radius: 999px;
  background: #1d4ed8;
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  padding: 10px 15px;
}

.detail-card,
.info-panel {
  border: 1px solid var(--site-border);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 15px 36px rgba(15, 23, 42, 0.08);
}

.detail-card {
  padding: 28px;
}

.detail-card h1 {
  margin: 0 0 14px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.12;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
}

.detail-meta span {
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  padding: 7px 11px;
  font-size: 13px;
  font-weight: 700;
}

.detail-card h2 {
  margin-top: 28px;
  font-size: 24px;
}

.detail-card p {
  color: #334155;
  line-height: 1.9;
}

.info-panel {
  overflow: hidden;
}

.info-panel img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
}

.info-panel-body {
  padding: 20px;
}

.info-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.info-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 10px;
}

.info-list dt {
  color: #64748b;
}

.info-list dd {
  margin: 0;
  color: #0f172a;
  font-weight: 700;
  text-align: right;
}

.search-stage {
  border: 1px solid rgba(191, 219, 254, 0.55);
  border-radius: 30px;
  background: #fff;
  padding: 26px;
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.1);
}

.search-stage input {
  width: 100%;
  min-height: 56px;
  border: 2px solid #bfdbfe;
  border-radius: 18px;
  outline: none;
  padding: 0 18px;
  font-size: 17px;
}

.search-count {
  margin: 16px 0 0;
  color: #64748b;
}

.site-footer {
  background: #020617;
  color: #cbd5e1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 30px;
  padding: 54px 0;
}

.footer-grid h3 {
  margin: 0 0 16px;
  color: #fff;
}

.footer-grid p,
.footer-grid a {
  color: #94a3b8;
  line-height: 1.75;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-bottom {
  padding: 18px 0 28px;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  color: #64748b;
  font-size: 13px;
  text-align: center;
}

.notice-box {
  padding: 18px;
  border: 1px solid #bfdbfe;
  border-radius: 18px;
  background: #eff6ff;
  color: #1e3a8a;
  line-height: 1.8;
}

@media (max-width: 1024px) {
  .header-search,
  .nav-links {
    display: none;
  }

  .mobile-menu-button {
    display: inline-grid;
    place-items: center;
  }

  .hero-content,
  .detail-layout,
  .feature-card {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 640px) {
  .site-shell {
    width: min(100% - 22px, 1180px);
  }

  .hero-slider {
    min-height: 760px;
  }

  .hero-content {
    padding-top: 48px;
  }

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

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

  .ranking-row {
    grid-template-columns: 44px 78px 1fr;
  }

  .ranking-row .button-ghost {
    grid-column: 1 / -1;
  }

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