:root {
  --sky: #0ea5e9;
  --sky-deep: #0369a1;
  --amber: #f59e0b;
  --ink: #172033;
  --muted: #64748b;
  --line: rgba(14, 165, 233, 0.18);
  --panel: rgba(255, 255, 255, 0.82);
  --shadow: 0 22px 70px rgba(15, 23, 42, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(14, 165, 233, 0.16), transparent 32rem),
    radial-gradient(circle at 85% 8%, rgba(245, 158, 11, 0.16), transparent 34rem),
    linear-gradient(135deg, #f7fbff 0%, #fff9ed 45%, #f8fbff 100%);
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: linear-gradient(90deg, rgba(240, 249, 255, 0.94), rgba(255, 251, 235, 0.94), rgba(240, 249, 255, 0.94));
  border-bottom: 1px solid var(--line);
  box-shadow: 0 14px 32px rgba(14, 165, 233, 0.08);
}

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

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

.brand-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--sky), var(--amber));
  box-shadow: 0 12px 30px rgba(14, 165, 233, 0.28);
}

.brand-text {
  font-size: 21px;
  font-weight: 900;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, var(--sky-deep), var(--amber));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

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

.nav-link:hover,
.nav-link.active {
  color: var(--sky-deep);
  background: rgba(14, 165, 233, 0.1);
}

.nav-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px;
  border: 1px solid rgba(14, 165, 233, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.nav-search input,
.mobile-search input,
.wide-search input,
.filter-bar input,
.filter-bar select {
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
}

.nav-search input {
  width: 230px;
  padding: 9px 10px 9px 16px;
}

.nav-search button,
.mobile-search button,
.wide-search button {
  border: 0;
  cursor: pointer;
  color: #fff;
  font-weight: 800;
  border-radius: 999px;
  padding: 9px 16px;
  background: linear-gradient(135deg, var(--sky), var(--amber));
  box-shadow: 0 12px 24px rgba(245, 158, 11, 0.16);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: rgba(14, 165, 233, 0.1);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--sky-deep);
  border-radius: 10px;
}

.mobile-panel {
  display: none;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

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

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

.mobile-search {
  display: flex;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px;
}

.mobile-search input {
  flex: 1;
  padding: 9px 12px;
}

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

.hero-stage {
  position: relative;
  min-height: 580px;
  border-radius: 36px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #07111f;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 36px;
  align-items: center;
  padding: 70px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
  transform: scale(1.015);
}

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

.hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 15, 30, 0.92), rgba(6, 15, 30, 0.72), rgba(6, 15, 30, 0.32)),
    var(--hero-image) center / cover no-repeat;
  transform: scale(1.08);
  filter: saturate(1.1);
}

.hero-copy,
.hero-poster {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: #fff;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 13px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(14, 165, 233, 0.82), rgba(245, 158, 11, 0.82));
}

.eyebrow.dark {
  color: var(--sky-deep);
  background: rgba(14, 165, 233, 0.12);
}

.hero h1 {
  max-width: 760px;
  margin: 22px 0 18px;
  color: #fff;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -0.045em;
}

.hero p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
  line-height: 1.9;
}

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

.primary-btn,
.ghost-btn,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  font-weight: 900;
  transition: all 0.2s ease;
}

.primary-btn {
  color: #fff;
  padding: 0 24px;
  background: linear-gradient(135deg, var(--sky), var(--amber));
  box-shadow: 0 18px 34px rgba(245, 158, 11, 0.26);
}

.ghost-btn {
  color: #fff;
  padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
}

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

.hero-poster {
  align-self: stretch;
  min-height: 450px;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.26);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.38);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.28), rgba(245, 158, 11, 0.2));
}

.hero-poster span {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  color: #fff;
  font-weight: 900;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.68);
  backdrop-filter: blur(14px);
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 4;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-controls button {
  border: 0;
  cursor: pointer;
}

.hero-controls > button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
}

.hero-dot.active {
  width: 30px;
  background: linear-gradient(90deg, var(--sky), var(--amber));
}

.quick-panel,
.section-wrap,
.text-page,
.watch-section,
.detail-content {
  width: min(1280px, calc(100% - 32px));
  margin: 32px auto 0;
}

.quick-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  align-items: center;
  gap: 28px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.quick-panel h2,
.section-head h2,
.page-hero h1,
.story-card h2,
.info-card h2,
.text-page h2 {
  margin: 8px 0 0;
  color: #0f172a;
  font-size: clamp(25px, 3vw, 36px);
  line-height: 1.2;
  font-weight: 950;
  letter-spacing: -0.025em;
}

.quick-panel p,
.page-hero p,
.text-page p,
.story-card p,
.card-body p,
.detail-copy p {
  color: var(--muted);
  line-height: 1.85;
}

.wide-search {
  display: flex;
  gap: 10px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
}

.wide-search input {
  flex: 1;
  min-width: 0;
  padding: 12px 16px;
}

.wide-search button {
  padding: 12px 22px;
}

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

.section-more {
  color: var(--sky-deep);
  padding: 0 18px;
  background: rgba(14, 165, 233, 0.1);
}

.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pill-grid.dense {
  max-height: 168px;
  overflow: auto;
  padding-right: 6px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #334155;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.78);
  transition: all 0.2s ease;
}

.pill span {
  color: var(--sky-deep);
  font-size: 13px;
}

.pill:hover {
  transform: translateY(-2px);
  border-color: rgba(14, 165, 233, 0.34);
  box-shadow: 0 14px 32px rgba(14, 165, 233, 0.12);
}

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

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

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

.movie-card {
  min-width: 0;
  border: 1px solid rgba(14, 165, 233, 0.14);
  border-radius: 24px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 158, 11, 0.36);
  box-shadow: 0 24px 54px rgba(15, 23, 42, 0.15);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4.1;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.18), rgba(245, 158, 11, 0.16));
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.03), rgba(2, 6, 23, 0.56));
}

.year-mark,
.rank-badge {
  position: absolute;
  z-index: 2;
  color: #fff;
  font-weight: 900;
  border-radius: 999px;
  backdrop-filter: blur(12px);
}

.year-mark {
  left: 12px;
  top: 12px;
  padding: 6px 10px;
  font-size: 13px;
  background: rgba(15, 23, 42, 0.58);
}

.rank-badge {
  right: 12px;
  top: 12px;
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--sky), var(--amber));
}

.card-body {
  padding: 16px;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 9px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

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

.card-meta span:not(:first-child)::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 8px;
  vertical-align: middle;
  border-radius: 50%;
  background: rgba(100, 116, 139, 0.55);
}

.card-body h2 {
  margin: 0;
  font-size: 19px;
  line-height: 1.35;
  font-weight: 950;
}

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

.card-body p {
  min-height: 54px;
  margin: 8px 0 12px;
  font-size: 14px;
}

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

.tag-row span,
.detail-tags span {
  color: #475569;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 9px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(14, 165, 233, 0.1), rgba(245, 158, 11, 0.11));
}

.movie-card.compact .card-body h2 {
  font-size: 17px;
}

.movie-card.compact .card-body p {
  min-height: 48px;
  font-size: 13px;
}

.page-hero {
  width: min(1280px, calc(100% - 32px));
  margin: 28px auto 0;
  padding: 74px;
  border-radius: 34px;
  color: #fff;
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 255, 255, 0.18), transparent 24rem),
    linear-gradient(135deg, #0f172a 0%, #075985 48%, #f59e0b 120%);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.page-hero.slim {
  padding: 56px;
}

.page-hero h1 {
  color: #fff;
  margin-top: 18px;
  font-size: clamp(36px, 5vw, 62px);
}

.page-hero p {
  max-width: 740px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.filter-shell {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.07);
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 14px;
  margin-bottom: 18px;
}

.filter-bar.single {
  grid-template-columns: minmax(0, 1fr);
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
}

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

.detail-hero {
  position: relative;
  width: min(1280px, calc(100% - 32px));
  margin: 28px auto 0;
  border-radius: 36px;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(100deg, rgba(8, 14, 28, 0.96), rgba(8, 14, 28, 0.74), rgba(8, 14, 28, 0.36)),
    var(--detail-cover) center / cover no-repeat;
  box-shadow: var(--shadow);
}

.detail-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 20%, rgba(14, 165, 233, 0.28), transparent 28rem),
    radial-gradient(circle at 85% 16%, rgba(245, 158, 11, 0.24), transparent 24rem);
}

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

.detail-poster {
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 3 / 4.1;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.2), rgba(245, 158, 11, 0.2));
}

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

.detail-copy h1 {
  margin: 18px 0 16px;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: -0.045em;
}

.detail-copy p {
  max-width: 850px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
}

.watch-section {
  scroll-margin-top: 96px;
}

.player-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 30px;
  background: #020617;
  box-shadow: var(--shadow);
}

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

.play-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  cursor: pointer;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.16), rgba(2, 6, 23, 0.42));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-layer span {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  padding-left: 6px;
  border-radius: 50%;
  font-size: 36px;
  background: linear-gradient(135deg, var(--sky), var(--amber));
  box-shadow: 0 18px 54px rgba(245, 158, 11, 0.32);
}

.player-shell.playing .play-layer {
  opacity: 0;
  visibility: hidden;
}

.player-state {
  position: absolute;
  left: 18px;
  bottom: 18px;
  color: #fff;
  font-weight: 800;
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(14px);
  pointer-events: none;
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 330px;
  gap: 22px;
}

.story-card,
.info-card,
.text-page article {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08);
}

.story-card h2,
.info-card h2,
.text-page h2 {
  font-size: 26px;
}

.info-card dl {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px 14px;
  margin: 18px 0 0;
}

.info-card dt {
  color: #64748b;
  font-weight: 800;
}

.info-card dd {
  margin: 0;
  color: #0f172a;
  font-weight: 900;
}

.related-section {
  margin-bottom: 40px;
}

.text-page {
  display: grid;
  gap: 22px;
  margin-bottom: 48px;
}

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

.site-footer {
  margin-top: 56px;
  padding: 44px 0 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(12, 74, 110, 0.96));
  color: #dbeafe;
}

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

.footer-brand p {
  color: rgba(219, 234, 254, 0.76);
  line-height: 1.8;
}

.footer-links {
  display: grid;
  grid-template-columns: 0.8fr 1.6fr 0.8fr;
  gap: 26px;
}

.footer-links h3 {
  margin: 0 0 12px;
  color: #fff;
}

.footer-links a {
  display: inline-flex;
  margin: 0 12px 10px 0;
  color: rgba(219, 234, 254, 0.78);
}

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

.footer-bottom {
  margin-top: 34px;
  padding: 18px 16px;
  text-align: center;
  color: rgba(219, 234, 254, 0.66);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

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

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

  .detail-content,
  .text-page.cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .header-inner {
    min-height: 66px;
  }

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

  .hero-slide {
    grid-template-columns: 1fr;
    align-content: center;
    padding: 34px;
  }

  .hero-poster {
    min-height: 330px;
    max-width: 270px;
    width: 100%;
  }

  .quick-panel,
  .filter-bar,
  .detail-layout,
  .footer-inner,
  .footer-links {
    grid-template-columns: 1fr;
  }

  .detail-layout,
  .page-hero,
  .page-hero.slim {
    padding: 34px;
  }

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

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

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

@media (max-width: 520px) {
  .brand-text {
    font-size: 18px;
  }

  .hero,
  .quick-panel,
  .section-wrap,
  .text-page,
  .watch-section,
  .detail-content,
  .detail-hero,
  .page-hero {
    width: min(100% - 20px, 1280px);
  }

  .hero-stage {
    min-height: 660px;
    border-radius: 26px;
  }

  .hero-slide {
    padding: 24px;
  }

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

  .wide-search {
    border-radius: 24px;
    flex-direction: column;
  }

  .wide-search button {
    width: 100%;
  }

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

  .card-body p {
    min-height: 0;
  }
}
