:root {
  color-scheme: light;
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-soft: rgba(255, 255, 255, 0.78);
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --teal: #0f766e;
  --teal-bright: #14b8a6;
  --blue: #2563eb;
  --blue-soft: #dbeafe;
  --yellow: #f59e0b;
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
  --radius: 24px;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(135deg, #f8fafc 0%, #eef6ff 48%, #ecfeff 100%);
  color: var(--text);
  min-height: 100vh;
}

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;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(226, 232, 240, 0.86);
  backdrop-filter: blur(18px);
}

.nav-shell {
  width: min(1240px, calc(100% - 32px));
  height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

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

.brand-mark {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  color: #ffffff;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--teal-bright), var(--blue));
  box-shadow: 0 14px 30px rgba(20, 184, 166, 0.3);
}

.brand-name {
  font-size: 1.45rem;
  background: linear-gradient(90deg, var(--teal), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}

.nav-link,
.mobile-link {
  color: #334155;
  font-weight: 650;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: var(--teal);
}

.top-search,
.mobile-search,
.hero-search,
.page-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-search input,
.mobile-search input,
.hero-search input,
.page-search input {
  width: 220px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 11px 16px;
  background: #ffffff;
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.top-search input:focus,
.mobile-search input:focus,
.hero-search input:focus,
.page-search input:focus {
  border-color: var(--teal-bright);
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.15);
}

.top-search button,
.mobile-search button,
.hero-search button,
.page-search button {
  border: 0;
  color: #ffffff;
  background: linear-gradient(90deg, var(--teal-bright), var(--blue));
  padding: 11px 18px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
}

.menu-toggle {
  display: none;
  border: 0;
  background: #f1f5f9;
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  padding: 16px;
  border-top: 1px solid var(--line);
  background: #ffffff;
}

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

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

.hero-slider {
  position: relative;
  height: 70vh;
  min-height: 560px;
  overflow: hidden;
  background: #020617;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.7s ease, transform 1s ease;
  pointer-events: none;
}

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

.hero-image,
.detail-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.9), rgba(15, 23, 42, 0.62) 45%, rgba(15, 23, 42, 0.08));
}

.hero-content {
  position: relative;
  width: min(1240px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 1240px;
  color: #ffffff;
}

.hero-content h1 {
  max-width: 720px;
  margin: 0 0 20px;
  font-size: clamp(2.6rem, 7vw, 6.4rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.hero-content p {
  max-width: 680px;
  margin: 0 0 28px;
  color: #e2e8f0;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.75;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 12px;
  color: var(--teal-bright);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-tags,
.chip-row,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.chip-row span,
.detail-tags span {
  padding: 6px 11px;
  border-radius: 999px;
  color: #0f766e;
  background: rgba(20, 184, 166, 0.12);
  font-size: 0.82rem;
  font-weight: 700;
}

.hero-tags span {
  color: #ccfbf1;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

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

.centered-actions {
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(90deg, var(--teal-bright), var(--blue));
  box-shadow: 0 18px 36px rgba(37, 99, 235, 0.28);
}

.btn-ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
}

.btn-light {
  color: var(--teal);
  background: #ffffff;
  border: 1px solid var(--line);
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.active {
  width: 34px;
  background: #ffffff;
}

.quick-panel {
  width: min(1240px, calc(100% - 32px));
  margin: -72px auto 0;
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 22px;
}

.quick-search-card,
.ranking-box,
.category-card,
.detail-copy,
.search-heading {
  background: var(--surface-soft);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.quick-search-card {
  padding: 32px;
}

.quick-search-card h2,
.section-title-row h2,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  letter-spacing: -0.04em;
}

.quick-search-card p,
.page-hero p,
.category-card p,
.detail-one-line,
.detail-copy p {
  color: var(--muted);
  line-height: 1.8;
}

.hero-search,
.page-search {
  margin-top: 22px;
}

.hero-search input,
.page-search input {
  width: min(460px, 100%);
}

.quick-links {
  display: grid;
  gap: 14px;
}

.quick-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  min-height: 72px;
  color: #0f766e;
  background: #ffffff;
  border-radius: 22px;
  font-size: 1.08rem;
  font-weight: 800;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
}

.quick-links a::after {
  content: "→";
}

.content-section {
  width: min(1240px, calc(100% - 32px));
  margin: 56px auto;
  padding: 44px;
  border-radius: 32px;
}

.white-section {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(226, 232, 240, 0.72);
}

.gradient-section {
  background: linear-gradient(135deg, rgba(236, 253, 245, 0.86), rgba(239, 246, 255, 0.94));
  border: 1px solid rgba(191, 219, 254, 0.7);
}

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

.section-title-row h2 {
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.section-title-row h3 {
  margin: 0;
  font-size: 1.45rem;
}

.section-title-row a {
  color: var(--teal);
  font-weight: 800;
}

.no-link {
  align-items: start;
}

.compact {
  margin-bottom: 22px;
}

.movie-grid {
  display: grid;
  gap: 22px;
}

.four-col {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

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

.movie-card {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.86);
  border-radius: 24px;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 62px rgba(15, 23, 42, 0.16);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a, #164e63);
}

.movie-card-large .poster-link {
  aspect-ratio: 16 / 11;
}

.poster-link img,
.compact-card img,
.category-cover img,
.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.32s ease;
}

.movie-card:hover .poster-link img,
.category-card:hover .category-cover img {
  transform: scale(1.06);
}

.play-dot {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--teal-bright), var(--blue));
  border-radius: 999px;
  box-shadow: 0 14px 24px rgba(15, 23, 42, 0.24);
}

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  padding: 7px 10px;
  color: #ffffff;
  background: linear-gradient(90deg, #f59e0b, #ef4444);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 900;
}

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

.movie-card h3 {
  margin: 12px 0 8px;
  font-size: 1.14rem;
  line-height: 1.35;
}

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

.movie-card p {
  display: -webkit-box;
  min-height: 48px;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.62;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-meta,
.detail-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  color: #64748b;
  font-size: 0.88rem;
}

.card-meta span:last-child,
.detail-meta span:last-child {
  color: #b45309;
  font-weight: 900;
}

.split-ranking {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 26px;
}

.ranking-box {
  padding: 24px;
}

.compact-card {
  display: grid;
  grid-template-columns: 42px 76px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.compact-card:last-child {
  border-bottom: 0;
}

.compact-rank {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--teal-bright), var(--blue));
  border-radius: 999px;
  font-weight: 900;
}

.compact-card img {
  width: 76px;
  height: 52px;
  border-radius: 12px;
}

.compact-card strong {
  display: block;
  margin-bottom: 4px;
}

.compact-card em {
  color: var(--muted);
  font-style: normal;
  font-size: 0.86rem;
}

.category-strip {
  margin-bottom: 40px;
}

.category-strip:last-child {
  margin-bottom: 0;
}

.page-main {
  padding: 54px 0 18px;
}

.page-hero {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto 42px;
  padding: 58px 42px;
  text-align: center;
  border-radius: 34px;
}

.soft-hero {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(219, 234, 254, 0.72));
  border: 1px solid rgba(226, 232, 240, 0.86);
  box-shadow: var(--shadow);
}

.page-hero h1 {
  font-size: clamp(2.3rem, 5vw, 4.2rem);
}

.page-hero p {
  max-width: 720px;
  margin: 18px auto 0;
  font-size: 1.08rem;
}

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

.category-card {
  overflow: hidden;
}

.category-cover {
  position: relative;
  display: block;
  height: 190px;
  overflow: hidden;
  background: #0f172a;
}

.category-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.82));
}

.category-cover span {
  position: absolute;
  left: 18px;
  bottom: 16px;
  z-index: 2;
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 900;
}

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

.category-card h2 {
  margin: 0 0 10px;
}

.category-samples {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.category-samples a {
  color: #0f766e;
  font-weight: 700;
}

.search-heading {
  padding: 22px 26px;
  margin-bottom: 24px;
}

.search-heading h2 {
  margin: 0;
}

.detail-main {
  background: #f8fafc;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: #020617;
}

.detail-bg {
  position: absolute;
  inset: 0;
  opacity: 0.42;
  filter: blur(1px);
}

.detail-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(15, 23, 42, 0.72));
}

.detail-container {
  position: relative;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 64px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
  color: #cbd5e1;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 38px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 30px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.36);
}

.detail-info h1 {
  font-size: clamp(2.4rem, 5vw, 5.2rem);
  line-height: 1;
}

.detail-one-line {
  max-width: 760px;
  margin: 20px 0 0;
  color: #e2e8f0;
  font-size: 1.15rem;
}

.detail-meta {
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: 22px;
}

.detail-meta span {
  padding: 8px 12px;
  color: #dbeafe;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
}

.detail-section {
  margin-top: 0;
}

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #020617;
  border-radius: 28px;
  box-shadow: 0 28px 80px rgba(2, 6, 23, 0.28);
}

.player-video {
  width: 100%;
  height: 100%;
  background: #020617;
  cursor: pointer;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at center, rgba(15, 23, 42, 0.16), rgba(2, 6, 23, 0.52));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-start {
  width: 88px;
  height: 88px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(135deg, var(--teal-bright), var(--blue));
  border-radius: 999px;
  cursor: pointer;
  font-size: 2.2rem;
  box-shadow: 0 18px 38px rgba(20, 184, 166, 0.38);
}

.player-loading {
  position: absolute;
  right: 18px;
  top: 18px;
  width: 26px;
  height: 26px;
  border: 3px solid rgba(255, 255, 255, 0.32);
  border-top-color: #ffffff;
  border-radius: 999px;
  animation: spin 0.8s linear infinite;
}

.player-loading.is-hidden {
  display: none;
}

.player-error {
  position: absolute;
  left: 18px;
  bottom: 18px;
  display: none;
  padding: 10px 14px;
  color: #ffffff;
  background: rgba(239, 68, 68, 0.88);
  border-radius: 14px;
}

.player-error.show {
  display: block;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.detail-text {
  display: block;
}

.detail-copy {
  padding: 34px;
}

.detail-copy article + article {
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.detail-copy h2 {
  margin: 0 0 14px;
  font-size: 1.7rem;
}

.site-footer {
  margin-top: 68px;
  padding: 48px 0 28px;
  color: #cbd5e1;
  background: #0f172a;
}

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

.footer-brand {
  color: #ffffff;
  font-size: 1.4rem;
}

.footer-inner p {
  max-width: 560px;
  color: #94a3b8;
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-content: start;
  gap: 12px;
}

.footer-links a {
  padding: 9px 12px;
  color: #dbeafe;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
}

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

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

  .top-search {
    margin-left: auto;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .quick-panel,
  .split-ranking,
  .detail-layout,
  .footer-inner {
    grid-template-columns: 1fr;
  }

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

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

  .detail-poster {
    max-width: 300px;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .nav-shell {
    width: min(100% - 22px, 1240px);
    height: 66px;
    gap: 12px;
  }

  .brand-name {
    font-size: 1.1rem;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .top-search {
    display: none;
  }

  .mobile-search input {
    width: 100%;
  }

  .hero-slider {
    height: 76vh;
    min-height: 540px;
  }

  .hero-content h1 {
    font-size: 2.65rem;
  }

  .hero-overlay {
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.78), rgba(2, 6, 23, 0.92));
  }

  .quick-panel {
    margin-top: -38px;
    width: min(100% - 22px, 1240px);
  }

  .quick-search-card,
  .content-section,
  .page-hero,
  .detail-copy {
    padding: 24px;
    border-radius: 24px;
  }

  .content-section {
    width: min(100% - 22px, 1240px);
    margin: 34px auto;
  }

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

  .four-col,
  .three-col,
  .two-col,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .compact-card {
    grid-template-columns: 38px 68px 1fr;
  }

  .detail-container {
    width: min(100% - 22px, 1240px);
  }

  .detail-info h1 {
    font-size: 2.6rem;
  }

  .player-start {
    width: 72px;
    height: 72px;
    font-size: 1.8rem;
  }
}
