:root {
  color-scheme: light;
  --page: #f2fbff;
  --page-soft: #ffffff;
  --ink: #102033;
  --muted: #667085;
  --line: rgba(15, 118, 140, 0.16);
  --brand: #0891b2;
  --brand-strong: #0e7490;
  --blue: #2563eb;
  --deep: #061626;
  --gold: #f59e0b;
  --shadow: 0 22px 70px rgba(8, 37, 58, 0.12);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 14% 0%, rgba(34, 211, 238, 0.20), transparent 30%),
    radial-gradient(circle at 85% 6%, rgba(37, 99, 235, 0.16), transparent 32%),
    linear-gradient(180deg, #f8fdff 0%, var(--page) 42%, #ffffff 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,
video {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(8, 145, 178, 0.14);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 34px rgba(6, 22, 38, 0.06);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--brand), var(--blue));
  box-shadow: 0 14px 32px rgba(8, 145, 178, 0.26);
}

.brand-copy {
  display: grid;
  line-height: 1.08;
}

.brand-copy strong {
  font-size: 24px;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #0891b2, #1d4ed8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-copy small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

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

.nav-link {
  padding: 10px 14px;
  color: #344054;
  font-weight: 700;
  border-radius: 999px;
  transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--brand-strong);
  background: rgba(8, 145, 178, 0.08);
}

.header-search {
  width: min(330px, 34vw);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(8, 145, 178, 0.18);
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(8, 145, 178, 0.08);
}

.header-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 9px 10px;
  color: var(--ink);
  background: transparent;
}

.header-search button,
.hero-button,
.section-more,
.primary-link,
.search-button,
.player-play-button {
  border: 0;
  color: #ffffff;
  font-weight: 800;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--blue));
  box-shadow: 0 16px 36px rgba(8, 145, 178, 0.24);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-search button {
  padding: 9px 16px;
}

.header-search button:hover,
.hero-button:hover,
.section-more:hover,
.primary-link:hover,
.search-button:hover,
.player-play-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 46px rgba(8, 145, 178, 0.30);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: rgba(8, 145, 178, 0.08);
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 21px;
  height: 2px;
  margin: 5px auto;
  background: var(--brand-strong);
  border-radius: 999px;
}

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

.hero {
  position: relative;
  margin-top: 28px;
  border-radius: 36px;
  overflow: hidden;
  color: #ffffff;
  background: #061626;
  box-shadow: var(--shadow);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 76% 18%, rgba(34, 211, 238, 0.34), transparent 31%),
    linear-gradient(120deg, rgba(6, 22, 38, 0.96) 0%, rgba(8, 44, 68, 0.88) 48%, rgba(7, 89, 133, 0.72) 100%);
  z-index: 1;
}

.hero-slide {
  position: relative;
  z-index: 2;
  display: none;
  min-height: 640px;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 42px;
  align-items: center;
  padding: 64px;
}

.hero-slide.is-active {
  display: grid;
}

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

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

.hero .eyebrow {
  color: #67e8f9;
}

.hero h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.96;
  letter-spacing: -0.065em;
}

.hero p {
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
  line-height: 1.82;
}

.hero-meta,
.detail-meta,
.category-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-meta span,
.detail-meta span,
.category-meta span,
.movie-tags span,
.movie-tags a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 12px;
  color: #0e7490;
  font-size: 13px;
  font-weight: 800;
  border-radius: 999px;
  background: rgba(207, 250, 254, 0.92);
}

.hero .hero-meta span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 32px;
}

.hero-button,
.primary-link,
.search-button,
.player-play-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
}

.hero-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  color: #ffffff;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
}

.hero-art {
  position: relative;
}

.hero-poster {
  position: relative;
  aspect-ratio: 3 / 4;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 32px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 38px 90px rgba(0, 0, 0, 0.34);
  transform: rotate(2deg);
}

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

.hero-card-float {
  position: absolute;
  left: -28px;
  bottom: 42px;
  max-width: 260px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(18px);
}

.hero-card-float strong {
  display: block;
  margin-bottom: 6px;
  font-size: 18px;
}

.hero-card-float small {
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
}

.hero-controls {
  position: absolute;
  left: 64px;
  bottom: 42px;
  z-index: 4;
  display: flex;
  gap: 10px;
}

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

.hero-dot.is-active {
  background: #67e8f9;
}

.content-section,
.page-hero,
.detail-page,
.search-panel {
  margin-top: 42px;
}

.section-heading,
.page-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
}

.section-heading h2,
.page-hero h1,
.detail-info h1,
.search-panel h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.section-heading p,
.page-hero p,
.search-panel p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.section-more {
  display: inline-flex;
  padding: 11px 18px;
  flex: 0 0 auto;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(8, 145, 178, 0.13);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.90);
  box-shadow: 0 18px 45px rgba(8, 37, 58, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  border-color: rgba(8, 145, 178, 0.30);
  box-shadow: 0 24px 64px rgba(8, 37, 58, 0.14);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(8, 145, 178, 0.15), rgba(37, 99, 235, 0.12));
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.68) 100%);
}

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  color: #ffffff;
  border-radius: 999px;
  background: rgba(8, 145, 178, 0.86);
  transform: translate(-50%, -50%) scale(0.88);
  opacity: 0;
  transition: 0.22s ease;
}

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

.poster-year {
  position: absolute;
  right: 12px;
  top: 12px;
  padding: 6px 10px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.50);
  backdrop-filter: blur(10px);
}

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

.movie-title {
  display: -webkit-box;
  min-height: 50px;
  overflow: hidden;
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.38;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-title:hover {
  color: var(--brand-strong);
}

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

.movie-desc {
  display: -webkit-box;
  min-height: 66px;
  margin: 10px 0 0;
  overflow: hidden;
  color: #475467;
  font-size: 14px;
  line-height: 1.58;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.movie-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

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

.category-card {
  min-height: 180px;
  padding: 24px;
  border: 1px solid rgba(8, 145, 178, 0.14);
  border-radius: 26px;
  background:
    radial-gradient(circle at 100% 0%, rgba(34, 211, 238, 0.20), transparent 42%),
    rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 45px rgba(8, 37, 58, 0.08);
  transition: 0.22s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  border-color: rgba(8, 145, 178, 0.30);
}

.category-card strong {
  display: block;
  color: var(--ink);
  font-size: 22px;
}

.category-card p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.rank-list {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.rank-item {
  display: grid;
  grid-template-columns: 64px 90px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(8, 145, 178, 0.13);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 40px rgba(8, 37, 58, 0.07);
}

.rank-num {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: #ffffff;
  font-size: 20px;
  font-weight: 900;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--gold), #ef4444);
}

.rank-item img {
  width: 90px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 16px;
}

.rank-copy strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 18px;
}

.rank-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.page-hero {
  align-items: center;
  padding: 38px;
  border: 1px solid rgba(8, 145, 178, 0.14);
  border-radius: 32px;
  background:
    radial-gradient(circle at 94% 0%, rgba(34, 211, 238, 0.26), transparent 40%),
    rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.filter-bar {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  padding: 10px;
  border: 1px solid rgba(8, 145, 178, 0.14);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
}

.filter-bar input,
.search-field {
  flex: 1;
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid rgba(8, 145, 178, 0.18);
  border-radius: 16px;
  outline: 0;
  background: #ffffff;
}

.filter-bar input:focus,
.search-field:focus {
  border-color: rgba(8, 145, 178, 0.45);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.16);
}

.detail-page {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(330px, 0.65fr);
  gap: 28px;
  align-items: start;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #020617;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.18);
}

.player-shell video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.28), rgba(2, 6, 23, 0.68));
  cursor: pointer;
}

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

.play-overlay-inner {
  display: grid;
  place-items: center;
  gap: 14px;
}

.play-overlay-icon {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  padding-left: 4px;
  color: #ffffff;
  font-size: 30px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--blue));
  box-shadow: 0 20px 50px rgba(8, 145, 178, 0.35);
}

.play-overlay-text {
  font-size: 18px;
  font-weight: 900;
}

.detail-info,
.detail-block {
  padding: 28px;
  border: 1px solid rgba(8, 145, 178, 0.14);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.90);
  box-shadow: 0 18px 45px rgba(8, 37, 58, 0.08);
}

.detail-info h1 {
  font-size: clamp(34px, 4vw, 56px);
}

.detail-cover {
  margin-top: 22px;
  overflow: hidden;
  border-radius: 24px;
}

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

.detail-block {
  margin-top: 24px;
}

.detail-block h2 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 28px;
  letter-spacing: -0.03em;
}

.detail-block p {
  margin: 0;
  color: #344054;
  font-size: 17px;
  line-height: 1.95;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumbs a:hover {
  color: var(--brand-strong);
}

.search-panel {
  padding: 36px;
  border: 1px solid rgba(8, 145, 178, 0.14);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.search-form-large {
  display: flex;
  gap: 12px;
  margin-top: 22px;
}

.search-button {
  min-width: 120px;
}

.site-footer {
  margin-top: 70px;
  color: rgba(255, 255, 255, 0.78);
  background: #061626;
}

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

.footer-brand {
  display: inline-flex;
  margin-bottom: 12px;
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
}

.footer-inner p {
  max-width: 760px;
  margin: 0;
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 22px 0;
}

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

.empty-state {
  display: none;
  margin-top: 22px;
  padding: 28px;
  color: var(--muted);
  text-align: center;
  border: 1px dashed rgba(8, 145, 178, 0.22);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
}

.empty-state.is-visible {
  display: block;
}

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

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

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

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

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

  .brand-copy small {
    display: none;
  }

  .main-nav {
    position: fixed;
    left: 16px;
    right: 16px;
    top: 76px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border: 1px solid rgba(8, 145, 178, 0.16);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
  }

  .main-nav.is-open {
    display: flex;
  }

  .nav-link {
    padding: 14px 16px;
  }

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

  main {
    width: min(100% - 24px, 1200px);
  }

  .hero-slide {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 36px 22px 76px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero-card-float {
    position: static;
    margin-top: 16px;
    max-width: none;
  }

  .hero-controls {
    left: 22px;
    bottom: 28px;
  }

  .section-heading,
  .page-hero {
    display: block;
  }

  .section-more {
    margin-top: 16px;
  }

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

  .rank-item {
    grid-template-columns: 48px 70px 1fr;
  }

  .rank-item .primary-link {
    grid-column: 2 / -1;
    width: fit-content;
  }
}

@media (max-width: 560px) {
  .brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 14px;
  }

  .brand-copy strong {
    font-size: 20px;
  }

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

  .hero,
  .page-hero,
  .detail-info,
  .detail-block,
  .search-panel {
    border-radius: 24px;
  }

  .filter-bar,
  .search-form-large {
    flex-direction: column;
  }

  .rank-item {
    grid-template-columns: 44px 1fr;
  }

  .rank-item img {
    display: none;
  }

  .rank-item .primary-link {
    grid-column: 1 / -1;
  }
}
