:root {
  --bg: #f8fbff;
  --surface: #ffffff;
  --soft: #eef7ff;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --brand: #2563eb;
  --brand-2: #06b6d4;
  --brand-3: #14b8a6;
  --dark: #020617;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(135deg, #f8fbff 0%, #eef7ff 48%, #e0fbff 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(226, 232, 240, 0.78);
  backdrop-filter: blur(18px);
}

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

.brand,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.28);
}

.brand-name {
  font-size: 22px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link,
.mobile-link {
  position: relative;
  padding: 10px 14px;
  color: #334155;
  font-size: 15px;
  font-weight: 700;
  border-radius: 999px;
  transition: color 0.25s ease, background 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: var(--brand);
  background: #eff6ff;
}

.header-search,
.mobile-search,
.wide-search,
.inline-filter {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-search input,
.mobile-search input,
.wide-search input,
.inline-filter input {
  width: 100%;
  border: 1px solid var(--line);
  outline: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  padding: 11px 16px;
  color: var(--text);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.wide-search input:focus,
.inline-filter input:focus {
  border-color: var(--brand-2);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.12);
}

.header-search {
  width: 270px;
}

.header-search button,
.mobile-search button,
.wide-search button {
  border: 0;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border-radius: 999px;
  padding: 11px 18px;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.20);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: #f1f5f9;
  border-radius: 14px;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: #0f172a;
  border-radius: 3px;
}

.mobile-panel {
  display: none;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
}

.mobile-nav {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.hero-carousel {
  position: relative;
  height: 640px;
  min-height: 560px;
  overflow: hidden;
  background: linear-gradient(135deg, #2563eb, #06b6d4 55%, #14b8a6);
}

.hero-track,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
  transition: opacity 0.75s ease, transform 1.2s ease;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 15% 15%, rgba(255, 255, 255, 0.22), transparent 26%), radial-gradient(circle at 84% 68%, rgba(20, 184, 166, 0.28), transparent 28%);
}

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

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1200px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 380px;
  gap: 56px;
  align-items: center;
  color: #ffffff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: #dffbff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
  margin: 24px 0 18px;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.hero-desc,
.page-hero p,
.detail-copy .lead {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(18px, 2.2vw, 24px);
}

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

.hero-tags {
  margin: 28px 0;
}

.hero-tags span,
.tag-row span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 13px;
  font-weight: 800;
}

.hero-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.primary-btn,
.ghost-btn,
.ghost-dark-btn,
.text-btn,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 900;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.primary-btn {
  color: var(--brand);
  background: #ffffff;
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.22);
}

.primary-btn:hover,
.ghost-btn:hover,
.ghost-dark-btn:hover,
.text-btn:hover,
.section-more:hover {
  transform: translateY(-2px);
}

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

.ghost-dark-btn,
.text-btn,
.section-more {
  color: var(--brand);
  background: #eff6ff;
}

.hero-poster {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 34px;
  box-shadow: 0 35px 80px rgba(2, 6, 23, 0.45);
  transform: rotate(2deg);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, #1e3a8a, #06b6d4);
}

.hero-poster span {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  color: #ffffff;
  background: rgba(2, 6, 23, 0.68);
  border-radius: 18px;
  padding: 12px 14px;
  font-weight: 900;
  backdrop-filter: blur(12px);
}

.hero-control {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: #ffffff;
}

.hero-prev,
.hero-next,
.hero-dot {
  border: 0;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.hero-prev,
.hero-next {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  font-size: 28px;
  line-height: 1;
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 999px;
  transition: width 0.25s ease, background 0.25s ease;
}

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

.search-band {
  padding: 28px 0;
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
}

.search-band-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  align-items: center;
  gap: 28px;
}

.search-band h2,
.section-heading h2,
.story-card h2,
.side-card h2,
.player-caption h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.search-band p,
.section-heading p,
.card-body p,
.category-card h2,
.category-overview-card p,
.player-caption p,
.story-card p,
.side-card dd,
.site-footer p {
  color: var(--muted);
}

.wide-search input {
  min-height: 56px;
  padding-inline: 20px;
}

.wide-search button {
  min-height: 56px;
  padding-inline: 28px;
}

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

.soft-bg {
  background: linear-gradient(135deg, #f8fbff, #eaf7ff);
}

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

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

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

.movie-card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(226, 232, 240, 0.84);
  border-radius: var(--radius);
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.08);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  border-color: rgba(6, 182, 212, 0.38);
  box-shadow: var(--shadow);
}

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

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

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

.poster-type,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 900;
}

.poster-type {
  right: 12px;
  top: 12px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(10px);
}

.rank-badge {
  left: 12px;
  top: 12px;
  min-width: 34px;
  text-align: center;
  color: var(--brand);
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.18);
}

.card-body {
  padding: 18px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 900;
}

.card-body h2 {
  margin: 8px 0 8px;
  font-size: 20px;
  line-height: 1.28;
}

.card-body h2 a:hover {
  color: var(--brand);
}

.card-body p {
  display: -webkit-box;
  min-height: 3.2em;
  margin: 0 0 14px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-row span {
  color: var(--brand);
  background: #eff6ff;
  border-color: #dbeafe;
}

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

.category-card,
.category-overview-card,
.story-card,
.side-card,
.player-panel {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: var(--radius);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
}

.category-card {
  padding: 24px;
}

.category-card span {
  color: var(--brand);
  font-weight: 900;
}

.category-card h2 {
  margin: 10px 0 16px;
  font-size: 18px;
  line-height: 1.6;
  font-weight: 600;
}

.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.category-samples a {
  color: #0f172a;
  background: #f1f5f9;
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 13px;
  font-weight: 800;
}

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

.compact-card {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  align-items: stretch;
}

.compact-card .poster {
  aspect-ratio: 1 / 1.28;
}

.compact-card .card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

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

.page-hero,
.detail-hero {
  color: #ffffff;
  background: radial-gradient(circle at 15% 20%, rgba(125, 211, 252, 0.28), transparent 30%), linear-gradient(135deg, #0f172a, #0c4a6e 54%, #0e7490);
}

.page-hero {
  padding: 78px 0;
}

.compact-hero {
  min-height: 330px;
  display: flex;
  align-items: center;
}

.category-hero {
  min-height: 390px;
}

.page-hero .inline-filter {
  width: min(580px, 100%);
  margin-top: 28px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 800;
}

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

.category-overview-grid {
  display: grid;
  gap: 24px;
}

.category-overview-card {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 24px;
  padding: 22px;
}

.category-cover {
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: 20px;
  background: linear-gradient(135deg, #dbeafe, #cffafe);
}

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

.category-overview-card h2 {
  margin: 0 0 10px;
  font-size: 26px;
}

.category-overview-card p {
  margin: 0 0 16px;
}

.detail-hero {
  padding: 42px 0 64px;
}

.detail-main {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 44px;
  align-items: center;
}

.detail-cover {
  overflow: hidden;
  border-radius: 32px;
  box-shadow: 0 32px 70px rgba(2, 6, 23, 0.42);
  background: linear-gradient(135deg, #1e3a8a, #06b6d4);
}

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

.detail-copy h1 {
  max-width: 780px;
}

.detail-tags span {
  color: #ffffff;
}

.detail-actions {
  margin-top: 30px;
}

.player-section {
  margin-top: -42px;
  padding-bottom: 36px;
}

.player-panel {
  overflow: hidden;
}

.video-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.video-player {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
}

.video-start {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle at center, rgba(37, 99, 235, 0.34), rgba(2, 6, 23, 0.62));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.video-start span {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  padding-left: 6px;
  color: var(--brand);
  background: #ffffff;
  border-radius: 999px;
  font-size: 35px;
  box-shadow: 0 24px 55px rgba(2, 6, 23, 0.38);
}

.video-start.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.player-caption {
  padding: 24px 28px;
}

.player-caption p {
  margin-bottom: 0;
}

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

.story-card,
.side-card {
  padding: 28px;
}

.story-card h2:not(:first-child) {
  margin-top: 28px;
}

.story-card p {
  font-size: 17px;
}

.side-card dl {
  display: grid;
  gap: 14px;
  margin: 0;
}

.side-card dt {
  color: var(--brand);
  font-size: 13px;
  font-weight: 900;
}

.side-card dd {
  margin: -10px 0 0;
}

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

.empty-state {
  margin: 32px 0 0;
  padding: 20px;
  color: var(--muted);
  text-align: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 20px;
}

.site-footer {
  color: #cbd5e1;
  background: linear-gradient(135deg, #020617, #0f172a 48%, #082f49);
}

.footer-inner {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0;
  display: grid;
  grid-template-columns: 1.3fr repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.footer-logo {
  color: #ffffff;
  font-size: 22px;
}

.footer-brand p {
  max-width: 380px;
}

.footer-col {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-col h2 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 18px;
}

.footer-col a,
.footer-col span {
  color: #cbd5e1;
}

.footer-col a:hover {
  color: #ffffff;
}

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

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

  .hero-content {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 32px;
  }

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

  .wide-ranking {
    grid-template-columns: 1fr;
  }
}

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

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

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

  .hero-carousel {
    height: auto;
    min-height: 720px;
  }

  .hero-track,
  .hero-slide {
    position: relative;
    min-height: 720px;
  }

  .hero-slide:not(.is-active) {
    display: none;
  }

  .hero-content {
    grid-template-columns: 1fr;
    padding: 72px 0 96px;
  }

  .hero-poster {
    width: min(320px, 100%);
    margin: 0 auto;
  }

  .search-band-inner,
  .detail-main,
  .detail-layout,
  .category-overview-card,
  .footer-inner {
    grid-template-columns: 1fr;
  }

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

  .detail-cover {
    width: min(320px, 100%);
  }
}

@media (max-width: 560px) {
  .container,
  .header-inner,
  .mobile-panel,
  .footer-inner {
    width: min(100% - 22px, 1200px);
  }

  .header-inner {
    height: 64px;
  }

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

  .hero-copy h1,
  .page-hero h1,
  .detail-copy h1 {
    font-size: 36px;
  }

  .hero-desc,
  .page-hero p,
  .detail-copy .lead {
    font-size: 17px;
  }

  .wide-search,
  .mobile-search {
    flex-direction: column;
    align-items: stretch;
  }

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

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

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

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

  .story-card,
  .side-card,
  .player-caption {
    padding: 22px;
  }
}
