:root {
  --sky: #0284c7;
  --sky-dark: #0369a1;
  --cyan: #06b6d4;
  --orange: #f97316;
  --red: #ef4444;
  --ink: #0f172a;
  --text: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --soft: #f8fafc;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 34%, #f8fafc 100%);
  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%;
}

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  height: 70px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 26px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 900;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  background: linear-gradient(135deg, var(--sky), var(--cyan));
  border-radius: 12px;
  box-shadow: 0 12px 22px rgba(2, 132, 199, 0.28);
}

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

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

.nav-link,
.mobile-link {
  color: #475569;
  font-weight: 700;
  transition: color 0.2s ease;
}

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

.header-search,
.mobile-search,
.hero-search,
.inline-filter {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  background: white;
  border-radius: 999px;
  overflow: hidden;
}

.header-search input,
.mobile-search input,
.hero-search input,
.inline-filter input {
  width: 240px;
  border: 0;
  outline: 0;
  padding: 12px 16px;
  color: var(--ink);
  background: transparent;
}

.header-search button,
.mobile-search button,
.hero-search button,
.inline-filter button {
  border: 0;
  color: white;
  background: linear-gradient(135deg, var(--sky), var(--cyan));
  padding: 12px 18px;
  cursor: pointer;
  font-weight: 800;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #f1f5f9;
  color: var(--ink);
  cursor: pointer;
}

.quick-links {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  gap: 12px;
  padding: 0 0 12px;
  overflow-x: auto;
}

.quick-links a {
  flex: 0 0 auto;
  color: #64748b;
  background: #f1f5f9;
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 13px;
  font-weight: 700;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 14px 0 18px;
  border-top: 1px solid var(--line);
}

.mobile-nav.is-open {
  display: grid;
  gap: 14px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 42px 0 62px;
  background:
    radial-gradient(
      circle at 12% 20%,
      rgba(14, 165, 233, 0.18),
      transparent 28%
    ),
    radial-gradient(
      circle at 85% 18%,
      rgba(6, 182, 212, 0.18),
      transparent 30%
    ),
    linear-gradient(135deg, #eff6ff 0%, #ecfeff 52%, #ffffff 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(120deg, rgba(2, 132, 199, 0.08), transparent 45%),
    linear-gradient(
      45deg,
      transparent 48%,
      rgba(14, 165, 233, 0.08) 49%,
      transparent 50%
    );
  background-size:
    auto,
    32px 32px;
  pointer-events: none;
}

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

.hero-stage {
  position: relative;
  min-height: 520px;
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.84);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 34px;
  align-items: center;
  padding: 56px;
  opacity: 0;
  transform: translateX(18px);
  transition:
    opacity 0.45s ease,
    transform 0.45s ease;
  pointer-events: none;
}

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

.eyebrow {
  margin: 0 0 10px;
  color: var(--sky);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.hero h2 {
  margin: 22px 0 12px;
  color: #075985;
  font-size: clamp(24px, 3vw, 38px);
}

.hero-desc,
.page-hero p {
  max-width: 760px;
  color: #475569;
  font-size: 18px;
  line-height: 1.8;
}

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

.hero-tags span,
.card-tags span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  color: #0369a1;
  background: #e0f2fe;
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 13px;
  font-weight: 700;
}

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

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

.primary-button {
  color: white;
  background: linear-gradient(135deg, var(--sky), var(--cyan));
  box-shadow: 0 14px 28px rgba(2, 132, 199, 0.28);
}

.ghost-button {
  color: var(--sky-dark);
  background: white;
  border: 1px solid #bae6fd;
}

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

.hero-art {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.24);
  transform: rotate(2deg);
}

.hero-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(15, 23, 42, 0.62));
  z-index: 1;
}

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

.hero-rating {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  color: white;
  background: rgba(2, 132, 199, 0.92);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 900;
}

.hero-controls {
  position: absolute;
  left: 56px;
  bottom: 28px;
  z-index: 5;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 34px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: #cbd5e1;
  cursor: pointer;
}

.hero-dot.is-active {
  background: linear-gradient(135deg, var(--sky), var(--cyan));
}

.hero-panel {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.hero-search {
  width: min(680px, 100%);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.hero-search input {
  flex: 1;
  width: auto;
  min-width: 0;
  padding: 16px 20px;
}

.hero-category-list,
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-category-list a,
.chip {
  color: #075985;
  background: white;
  border: 1px solid #bae6fd;
  border-radius: 999px;
  padding: 9px 15px;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.chip.is-active {
  color: white;
  background: linear-gradient(135deg, var(--sky), var(--cyan));
}

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

.content-section {
  padding: 58px 0;
}

.content-section.soft-blue,
.content-section.soft-orange {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding-left: max(16px, calc((100vw - 1180px) / 2));
  padding-right: max(16px, calc((100vw - 1180px) / 2));
}

.content-section.soft-blue {
  background: linear-gradient(135deg, #f0f9ff, #ecfeff);
}

.content-section.soft-orange {
  background: linear-gradient(135deg, #fff7ed, #fffbeb);
}

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

.section-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: -0.03em;
}

.section-head p {
  margin: 8px 0 0;
  color: var(--muted);
}

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

.movie-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  background: white;
  border: 1px solid #edf2f7;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 55px rgba(15, 23, 42, 0.14);
}

.movie-poster {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #e0f2fe, #f8fafc);
}

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

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

.movie-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.02),
    rgba(15, 23, 42, 0.52)
  );
  opacity: 0;
  transition: opacity 0.25s ease;
}

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

.card-category,
.card-duration,
.rank-badge,
.play-hover {
  position: absolute;
  z-index: 3;
}

.card-category {
  left: 12px;
  top: 12px;
  color: white;
  background: rgba(2, 132, 199, 0.92);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 900;
}

.card-duration {
  right: 12px;
  bottom: 12px;
  color: white;
  background: rgba(15, 23, 42, 0.78);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
}

.rank-badge {
  left: 12px;
  bottom: 12px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  background: linear-gradient(135deg, var(--orange), var(--red));
  border-radius: 50%;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.28);
}

.rank-badge + img ~ .card-duration {
  right: 12px;
}

.play-hover {
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--sky-dark);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.86);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
  font-weight: 900;
}

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

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

.movie-card h2 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.35;
}

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

.card-meta,
.card-desc {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.card-desc {
  flex: 1;
  color: #475569;
}

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

.category-tile {
  position: relative;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #e0f2fe;
}

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

.category-tile img {
  object-fit: cover;
  transition: transform 0.45s ease;
}

.category-tile:hover img {
  transform: scale(1.1);
}

.category-shade {
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.05),
    rgba(15, 23, 42, 0.78)
  );
}

.category-title,
.category-copy {
  position: relative;
  z-index: 2;
  color: white;
  padding: 0 20px;
}

.category-title {
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 8px;
}

.category-copy {
  padding-bottom: 22px;
  color: #e2e8f0;
  line-height: 1.65;
}

.page-hero {
  margin: 36px 0 30px;
  padding: 48px;
  border-radius: 30px;
  background: linear-gradient(135deg, #e0f2fe, #ffffff 72%);
  box-shadow: var(--shadow);
}

.compact-hero h1 {
  max-width: 900px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 14px;
}

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

.inline-filter {
  width: min(620px, 100%);
  margin-top: 22px;
}

.inline-filter input {
  flex: 1;
  width: auto;
  min-width: 0;
}

.chip-row {
  margin-bottom: 12px;
}

.detail-main {
  padding: 32px 0 0;
}

.detail-breadcrumb {
  margin-bottom: 18px;
}

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

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

.movie-player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #020617;
}

.player-cover {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  color: white;
  background: #020617;
  cursor: pointer;
  overflow: hidden;
  z-index: 2;
}

.player-cover.is-hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.player-cover-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(2px);
  transform: scale(1.03);
}

.player-cover-shade {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at center,
    rgba(2, 132, 199, 0.28),
    rgba(2, 6, 23, 0.82)
  );
}

.player-button {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--sky);
  background: rgba(255, 255, 255, 0.94);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  font-size: 32px;
  font-weight: 900;
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.32);
}

.player-title {
  position: absolute;
  left: 30px;
  right: 30px;
  bottom: 26px;
  z-index: 3;
  font-size: clamp(20px, 3vw, 32px);
  font-weight: 900;
  text-align: left;
}

.detail-card,
.aside-card {
  margin-top: 24px;
  background: white;
  border: 1px solid #edf2f7;
  border-radius: 24px;
  padding: 26px;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
}

.detail-card h1 {
  margin: 0 0 16px;
  color: var(--ink);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.16;
}

.detail-card h2,
.aside-card h2 {
  margin: 24px 0 12px;
  color: var(--ink);
  font-size: 22px;
}

.detail-card p {
  margin: 0 0 14px;
  color: #475569;
  line-height: 1.9;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.detail-meta span {
  color: #075985;
  background: #e0f2fe;
  border-radius: 999px;
  padding: 7px 12px;
  font-weight: 800;
  font-size: 13px;
}

.one-line {
  color: #0f172a !important;
  font-size: 18px;
  font-weight: 700;
}

.aside-poster {
  display: block;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: var(--shadow);
  background: #e0f2fe;
}

.aside-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.aside-card dl {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 12px;
  margin: 0;
}

.aside-card dt {
  color: var(--muted);
}

.aside-card dd {
  margin: 0;
  color: var(--ink);
  font-weight: 800;
}

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

.related-section {
  padding-top: 48px;
}

.site-footer {
  margin-top: 64px;
  color: #cbd5e1;
  background: #0f172a;
}

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

.brand-footer {
  color: white;
}

.footer-brand p {
  max-width: 520px;
  line-height: 1.8;
}

.footer-column h2 {
  margin: 0 0 14px;
  color: white;
  font-size: 18px;
}

.footer-column ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.footer-column a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  padding: 18px 16px;
  text-align: center;
  color: #94a3b8;
}

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

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

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    padding: 36px;
  }

  .hero-stage {
    min-height: 820px;
  }

  .hero-art {
    max-width: 360px;
    margin: 0 auto;
  }

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

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

  .detail-aside {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 20px;
  }

  .aside-card {
    margin-top: 0;
  }
}

@media (max-width: 760px) {
  .header-inner {
    height: 64px;
  }

  .quick-links {
    display: none;
  }

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

  .hero {
    padding-top: 24px;
  }

  .hero-stage {
    min-height: 760px;
    border-radius: 24px;
  }

  .hero-slide {
    padding: 26px;
  }

  .hero-controls {
    left: 26px;
    bottom: 20px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 32px;
  }

  .hero-desc,
  .page-hero p {
    font-size: 16px;
  }

  .content-section {
    padding: 42px 0;
  }

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

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

  .card-desc,
  .card-tags {
    display: none;
  }

  .page-hero {
    padding: 28px;
    border-radius: 24px;
  }

  .detail-card,
  .aside-card {
    padding: 20px;
  }

  .detail-aside {
    display: block;
  }

  .aside-card {
    margin-top: 20px;
  }

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

@media (max-width: 480px) {
  .movie-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .hero-stage {
    min-height: 720px;
  }

  .hero-art {
    max-width: 260px;
  }

  .header-inner,
  .hero-inner,
  main,
  .page-main,
  .detail-main,
  .footer-inner {
    width: min(100% - 24px, 1180px);
  }
}
