:root {
  --brand-blue: #0096dc;
  --brand-blue-dark: #075895;
  --brand-blue-light: #4db8e8;
  --brand-yellow: #ffd700;
  --brand-yellow-dark: #e6bd00;
  --brand-red: #e63946;
  --cream: #fff9e6;
  --ink: #1f2937;
  --muted: #667085;
  --line: #e5e7eb;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(9, 38, 80, 0.14);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #f6fbff 0%, var(--cream) 38%, #ffffff 100%);
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0, 150, 220, 0.94);
  color: var(--white);
  box-shadow: 0 8px 30px rgba(0, 79, 135, 0.18);
  backdrop-filter: blur(18px);
}

.nav-bar {
  height: 76px;
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--brand-yellow);
  color: var(--brand-blue-dark);
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(255, 215, 0, 0.26);
}

.brand-text {
  display: grid;
  line-height: 1.18;
}

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

.brand-text small {
  color: #cdefff;
  font-size: 12px;
}

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

.nav-links a {
  padding: 9px 0;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  transition: color 0.18s ease, transform 0.18s ease;
}

.nav-links a:hover {
  color: var(--brand-yellow);
  transform: translateY(-1px);
}

.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.nav-search input {
  width: 160px;
  border: 0;
  outline: 0;
  color: var(--white);
  background: transparent;
  padding: 8px 6px 8px 12px;
}

.nav-search input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.nav-search button,
.hero-search button,
.button-primary {
  border: 0;
  cursor: pointer;
  color: var(--brand-blue-dark);
  background: var(--brand-yellow);
  border-radius: 999px;
  font-weight: 900;
  padding: 10px 18px;
  box-shadow: 0 10px 24px rgba(255, 215, 0, 0.2);
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.nav-search button:hover,
.hero-search button:hover,
.button-primary:hover {
  background: var(--brand-yellow-dark);
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(255, 215, 0, 0.32);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 999px;
  background: #fff;
}

.hero-slider {
  position: relative;
  overflow: hidden;
  color: var(--white);
  min-height: 650px;
  background: radial-gradient(circle at 20% 15%, rgba(255, 215, 0, 0.28), transparent 28%), linear-gradient(135deg, #0096dc 0%, #075895 52%, #0b1536 100%);
}

.hero-stage {
  position: relative;
  min-height: 650px;
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(1.15);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(4, 23, 49, 0.9) 0%, rgba(6, 51, 98, 0.72) 42%, rgba(0, 150, 220, 0.44) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  align-items: center;
  gap: 48px;
  padding: 80px 0 72px;
}

.hero-kicker,
.page-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand-yellow);
  font-weight: 900;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}

.hero-copy h1,
.hero-copy h2 {
  margin: 0 0 18px;
  font-size: clamp(40px, 6vw, 78px);
  line-height: 1;
  letter-spacing: -0.06em;
}

.hero-copy .hero-title-sub {
  display: block;
  margin-top: 12px;
  color: #d6f3ff;
  font-size: clamp(26px, 3.2vw, 44px);
  letter-spacing: -0.03em;
}

.hero-copy p {
  margin: 0 0 20px;
  max-width: 760px;
  color: #e7f8ff;
  font-size: 19px;
  line-height: 1.8;
}

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

.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 20px;
  color: #fff;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
  transition: background 0.18s ease, transform 0.18s ease;
}

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

.hero-search {
  display: flex;
  width: min(620px, 100%);
  gap: 10px;
  margin-top: 28px;
  padding: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(18px);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #fff;
  background: transparent;
  padding: 12px 16px;
}

.hero-search input::placeholder {
  color: rgba(255, 255, 255, 0.76);
}

.hero-poster {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 36px 80px rgba(0, 0, 0, 0.35);
  transform: rotate(2deg);
}

.hero-poster img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72));
}

.hero-poster span {
  position: absolute;
  z-index: 2;
  left: 18px;
  bottom: 18px;
  right: 18px;
  color: var(--brand-yellow);
  font-weight: 900;
}

.hero-controls {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-controls button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  cursor: pointer;
  backdrop-filter: blur(12px);
}

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

.hero-dots button {
  width: 11px;
  height: 11px;
  padding: 0;
  background: rgba(255, 255, 255, 0.42);
}

.hero-dots button.is-active {
  width: 30px;
  border-radius: 999px;
  background: var(--brand-yellow);
}

.section {
  padding: 72px 0;
}

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

.section-title {
  margin: 0;
  color: var(--ink);
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.04em;
}

.section-desc {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 60px rgba(9, 38, 80, 0.2);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: #dbeafe;
}

.poster-link img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.35s ease;
}

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

.card-badge,
.play-chip {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  font-weight: 900;
  font-size: 12px;
}

.card-badge {
  top: 12px;
  left: 12px;
  padding: 6px 10px;
  color: var(--brand-blue-dark);
  background: var(--brand-yellow);
}

.play-chip {
  right: 12px;
  bottom: 12px;
  padding: 8px 12px;
  color: #fff;
  background: rgba(0, 150, 220, 0.9);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .play-chip {
  opacity: 1;
  transform: translateY(0);
}

.card-body {
  padding: 18px;
}

.card-title {
  display: block;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.35;
  font-weight: 900;
  transition: color 0.18s ease;
}

.card-title:hover {
  color: var(--brand-blue);
}

.card-meta,
.card-desc {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

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

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.tag-row span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--brand-blue-dark);
  background: rgba(0, 150, 220, 0.1);
  font-size: 12px;
  font-weight: 800;
}

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

.category-tile {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  border-radius: 24px;
  padding: 24px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-dark));
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-tile:nth-child(even) {
  background: linear-gradient(135deg, #0369a1, #0f172a);
}

.category-tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 52px rgba(0, 79, 135, 0.25);
}

.category-tile h3 {
  position: relative;
  z-index: 2;
  margin: 0 0 10px;
  color: var(--brand-yellow);
  font-size: 24px;
}

.category-tile p {
  position: relative;
  z-index: 2;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.65;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: radial-gradient(circle at 80% 20%, rgba(255, 215, 0, 0.26), transparent 30%), linear-gradient(135deg, var(--brand-blue), var(--brand-blue-dark) 55%, #0f172a);
}

.page-hero .container {
  padding: 82px 0 70px;
}

.page-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(38px, 5vw, 66px);
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 790px;
  margin: 0;
  color: #e5f7ff;
  font-size: 18px;
  line-height: 1.8;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 180px 180px;
  gap: 14px;
  margin: 34px 0 30px;
  padding: 18px;
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.filter-bar input,
.filter-bar select,
.search-panel input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px 14px;
  color: var(--ink);
  background: #fff;
  outline: none;
}

.filter-bar input:focus,
.filter-bar select:focus,
.search-panel input:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 4px rgba(0, 150, 220, 0.12);
}

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

.rank-card {
  display: grid;
  grid-template-columns: 64px 120px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  border-radius: 20px;
  padding: 14px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.rank-number {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: var(--brand-blue-dark);
  background: var(--brand-yellow);
  font-weight: 900;
}

.rank-thumb {
  overflow: hidden;
  border-radius: 14px;
}

.rank-thumb img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.rank-info a {
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
}

.rank-info p,
.rank-info span {
  display: block;
  margin: 7px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.detail-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.32;
  filter: blur(8px) saturate(1.12);
  transform: scale(1.04);
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 18, 35, 0.93), rgba(0, 150, 220, 0.68));
}

.detail-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
  padding: 66px 0;
}

.detail-cover {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.36);
}

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

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: #d6f3ff;
  font-size: 14px;
}

.breadcrumbs a {
  color: var(--brand-yellow);
  font-weight: 800;
}

.detail-info h1 {
  margin: 0 0 18px;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.detail-line {
  margin: 0 0 22px;
  color: #e8f9ff;
  font-size: 19px;
  line-height: 1.8;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.detail-tags span {
  color: #072e4d;
  background: rgba(255, 215, 0, 0.9);
}

.player-section {
  padding: 60px 0 32px;
}

.player-card {
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  box-shadow: 0 34px 80px rgba(2, 6, 23, 0.32);
}

.player {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #020617;
}

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

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

.play-layer span {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  color: var(--brand-blue-dark);
  background: var(--brand-yellow);
  font-size: 34px;
  box-shadow: 0 24px 45px rgba(255, 215, 0, 0.28);
}

.play-layer em {
  font-style: normal;
  font-size: 18px;
  font-weight: 900;
}

.player.is-playing .play-layer {
  display: none;
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  align-items: start;
  padding: 30px 0 78px;
}

.content-card,
.side-card,
.search-panel {
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.content-card {
  padding: 30px;
}

.content-card h2,
.side-card h2 {
  margin: 0 0 16px;
  color: var(--brand-blue-dark);
  font-size: 26px;
}

.content-card p {
  margin: 0 0 22px;
  color: #334155;
  line-height: 1.9;
  font-size: 17px;
}

.side-card {
  position: sticky;
  top: 96px;
  padding: 22px;
}

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

.related-card {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.related-card img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 14px;
}

.related-card strong,
.related-card small {
  display: block;
}

.related-card strong {
  color: var(--ink);
  line-height: 1.35;
}

.related-card small {
  margin-top: 6px;
  color: var(--muted);
}

.search-panel {
  padding: 24px;
  margin: -34px auto 34px;
  position: relative;
  z-index: 3;
}

.search-panel form {
  display: flex;
  gap: 12px;
}

.search-panel button {
  min-width: 112px;
}

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

.site-footer {
  color: #d1d5db;
  background: #111827;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 32px;
  padding: 48px 0;
}

.footer-brand {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--brand-yellow);
  font-size: 24px;
  font-weight: 900;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: var(--brand-yellow);
}

.site-footer p,
.site-footer a {
  display: block;
  margin: 8px 0;
  color: #cbd5e1;
  line-height: 1.7;
}

.site-footer a:hover {
  color: #fff;
}

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

@media (max-width: 1040px) {
  .movie-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

  .hero-poster,
  .detail-cover {
    max-width: 360px;
  }
}

@media (max-width: 820px) {
  .nav-bar {
    height: auto;
    min-height: 72px;
    flex-wrap: wrap;
    padding: 12px 0;
  }

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

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 0 0;
    margin-left: 0;
  }

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

  .nav-search {
    width: 100%;
    order: 5;
  }

  .nav-search input {
    flex: 1;
    width: auto;
  }

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

  .hero-content {
    gap: 26px;
    padding-top: 54px;
  }

  .hero-search,
  .search-panel form {
    flex-direction: column;
    border-radius: 24px;
  }

  .filter-bar {
    grid-template-columns: 1fr;
  }

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

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

  .rank-card {
    grid-template-columns: 48px 86px minmax(0, 1fr);
    gap: 12px;
  }

  .detail-layout {
    padding: 46px 0;
  }

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

@media (max-width: 520px) {
  .container {
    width: min(100% - 22px, 1180px);
  }

  .brand-text strong {
    font-size: 17px;
  }

  .hero-copy p,
  .detail-line {
    font-size: 16px;
  }

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

  .section {
    padding: 48px 0;
  }

  .section-header {
    display: block;
  }

  .content-card {
    padding: 22px;
  }

  .play-layer span {
    width: 70px;
    height: 70px;
    font-size: 26px;
  }

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