:root {
  --bg: #f5f8ff;
  --surface: #ffffff;
  --surface-soft: #eff6ff;
  --text: #172033;
  --muted: #64748b;
  --line: #dbe7f6;
  --blue: #2563eb;
  --cyan: #06b6d4;
  --orange: #f97316;
  --dark: #0f172a;
  --shadow: 0 22px 55px rgba(15, 23, 42, 0.12);
  --soft-shadow: 0 12px 32px rgba(37, 99, 235, 0.12);
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(135deg, #f8fbff 0%, #edf6ff 48%, #f5f8ff 100%);
  color: var(--text);
}

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

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

[hidden] {
  display: none !important;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(219, 231, 246, 0.9);
  backdrop-filter: blur(18px);
}

.nav-shell {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 1800px;
  margin: 0 auto;
  padding: 14px clamp(16px, 3vw, 40px);
}

.brand,
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.28);
  transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
  transform: scale(1.08) rotate(-2deg);
}

.brand-copy strong,
.footer-brand strong {
  display: block;
  font-size: 1.35rem;
  line-height: 1.1;
  font-weight: 900;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-copy small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.75rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  overflow-x: auto;
  padding: 4px 0;
}

.nav-link,
.mobile-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 17px;
  color: #334155;
  border-radius: 999px;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.nav-link:hover,
.mobile-link:hover,
.nav-link.is-active,
.mobile-link.is-active {
  color: #ffffff;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.22);
  transform: translateY(-1px);
}

.top-search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 260px;
}

.top-search input,
.filter-bar input,
.filter-bar select {
  width: 100%;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  padding: 0 18px;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.top-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: rgba(37, 99, 235, 0.6);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.top-search button,
.primary-btn,
.ghost-btn,
.small-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 14px 32px rgba(37, 99, 235, 0.22);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.top-search button:hover,
.primary-btn:hover,
.small-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 38px rgba(37, 99, 235, 0.3);
}

.ghost-btn {
  color: var(--blue);
  background: #ffffff;
  border: 1px solid rgba(37, 99, 235, 0.18);
  box-shadow: var(--soft-shadow);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: #eff6ff;
  color: var(--blue);
  font-size: 1.3rem;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  padding: 10px 16px 18px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.95);
}

.mobile-nav.is-open {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.hero-section {
  position: relative;
  min-height: 86vh;
  padding: 18px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  height: calc(86vh - 36px);
}

.hero-card {
  position: relative;
  min-height: 460px;
  overflow: hidden;
  border-radius: 28px;
  background: var(--dark);
  box-shadow: var(--shadow);
  isolation: isolate;
}

.hero-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.hero-card:hover img {
  transform: scale(1.1);
}

.hero-shade,
.detail-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.05) 0%, rgba(15, 23, 42, 0.3) 42%, rgba(15, 23, 42, 0.9) 100%);
  z-index: 1;
}

.hero-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: grid;
  gap: 12px;
  padding: clamp(24px, 4vw, 42px);
  color: #ffffff;
}

.hero-label,
.eyebrow {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 6px;
  color: #facc15;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.hero-copy strong {
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.04;
  font-weight: 950;
}

.hero-copy em {
  display: -webkit-box;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.86);
  font-style: normal;
  line-height: 1.8;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

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

.hero-tags span,
.detail-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: #1d4ed8;
  background: rgba(219, 234, 254, 0.95);
  font-size: 0.82rem;
  font-weight: 800;
}

.hero-play {
  position: absolute;
  inset: 50% auto auto 50%;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  padding-left: 5px;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
  transform: translate(-50%, -50%);
  transition: transform 0.25s ease, background 0.25s ease;
}

.hero-card:hover .hero-play {
  background: rgba(37, 99, 235, 0.72);
  transform: translate(-50%, -50%) scale(1.1);
}

.hero-intro {
  position: absolute;
  left: clamp(22px, 5vw, 72px);
  top: clamp(92px, 12vh, 150px);
  z-index: 4;
  max-width: 710px;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 30px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.hero-intro p:first-child,
.page-hero p:first-child {
  margin: 0 0 12px;
  color: #67e8f9;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.hero-intro h1 {
  margin: 0;
  font-size: clamp(2.35rem, 6vw, 5.25rem);
  line-height: 1.02;
  font-weight: 950;
}

.hero-intro p {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.section-shell {
  max-width: 1680px;
  margin: 0 auto;
  padding: clamp(48px, 7vw, 88px) clamp(16px, 3vw, 42px);
}

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

.section-heading span {
  display: block;
  color: var(--orange);
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-heading h2 {
  margin: 4px 0 0;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.08;
}

.section-heading a {
  color: var(--blue);
  font-weight: 900;
}

.movie-grid {
  display: grid;
  gap: 24px;
}

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

.compact-grid,
.mini-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.movie-card {
  display: grid;
  overflow: hidden;
  min-width: 0;
  border: 1px solid rgba(219, 231, 246, 0.9);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  border-color: rgba(37, 99, 235, 0.3);
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.16);
  transform: translateY(-8px);
}

.poster-frame {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #dbeafe;
}

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

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

.year-badge,
.rank-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.72);
  font-size: 0.78rem;
  font-weight: 900;
  backdrop-filter: blur(10px);
}

.rank-badge {
  left: 12px;
  right: auto;
  min-width: 34px;
  background: linear-gradient(135deg, #ef4444, #f97316);
}

.card-content {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.card-meta {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-title {
  display: -webkit-box;
  overflow: hidden;
  min-height: 2.6em;
  font-size: 1.08rem;
  line-height: 1.3;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.compact-title {
  font-size: 1rem;
}

.card-desc {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-row {
  min-height: 28px;
}

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

.category-tile {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border-radius: 24px;
  background: var(--dark);
  box-shadow: var(--soft-shadow);
}

.category-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.68;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.category-tile:hover img {
  opacity: 0.9;
  transform: scale(1.08);
}

.category-tile span {
  position: absolute;
  inset: auto 0 0;
  display: grid;
  gap: 8px;
  padding: 22px;
  color: #ffffff;
  background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.92));
}

.category-tile strong {
  font-size: 1.35rem;
  font-weight: 950;
}

.category-tile em {
  display: -webkit-box;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.82);
  font-style: normal;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
}

.compact-hero {
  margin: 18px clamp(16px, 3vw, 42px) 0;
  padding: clamp(48px, 8vw, 96px);
  border-radius: 30px;
  color: #ffffff;
  background: radial-gradient(circle at 18% 20%, rgba(6, 182, 212, 0.5), transparent 36%), linear-gradient(135deg, #0f172a, #1d4ed8 60%, #06b6d4);
  box-shadow: var(--shadow);
}

.compact-hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  line-height: 1.05;
}

.compact-hero p:last-child {
  max-width: 820px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.8;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 520px) 180px;
  gap: 12px;
  margin-top: 26px;
}

.wide-filter {
  grid-template-columns: minmax(240px, 680px) 180px;
}

.category-listing {
  display: grid;
  gap: 46px;
}

.category-block {
  display: grid;
  gap: 22px;
  padding: 26px;
  border: 1px solid rgba(219, 231, 246, 0.9);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--soft-shadow);
}

.category-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.category-block h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.3rem);
}

.category-block p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.detail-hero {
  min-height: 680px;
  background: var(--dark);
}

.detail-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(10px);
  transform: scale(1.05);
}

.detail-bg {
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.76), rgba(15, 23, 42, 0.4));
}

.detail-inner {
  position: relative;
  z-index: 2;
  max-width: 1500px;
  margin: 0 auto;
  padding: clamp(28px, 4vw, 54px) clamp(16px, 4vw, 56px) 64px;
  color: #ffffff;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 800;
}

.breadcrumb a:hover {
  color: #67e8f9;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(220px, 360px) minmax(0, 1fr);
  gap: clamp(26px, 5vw, 70px);
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
}

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

.detail-copy h1 {
  max-width: 960px;
  margin: 10px 0 20px;
  font-size: clamp(2.4rem, 6vw, 5.4rem);
  line-height: 1.02;
}

.lead-text {
  max-width: 920px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.85;
}

.detail-tags {
  margin: 24px 0 30px;
}

.watch-shell {
  max-width: 1380px;
  margin: -110px auto 0;
  padding: 0 clamp(16px, 3vw, 40px) clamp(36px, 5vw, 68px);
  position: relative;
  z-index: 4;
}

.watch-player {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 30px;
  background: #000000;
  box-shadow: 0 32px 90px rgba(15, 23, 42, 0.36);
}

.watch-player video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
  object-fit: contain;
  cursor: pointer;
}

.player-start {
  position: absolute;
  inset: 50% auto auto 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(74px, 9vw, 110px);
  height: clamp(74px, 9vw, 110px);
  padding-left: 7px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 18px 46px rgba(37, 99, 235, 0.38);
  transform: translate(-50%, -50%);
  cursor: pointer;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.player-start:hover {
  transform: translate(-50%, -50%) scale(1.08);
}

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

.watch-info {
  display: grid;
  gap: 10px;
  margin-top: 20px;
  padding: 24px;
  border: 1px solid rgba(219, 231, 246, 0.85);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--soft-shadow);
}

.watch-info h2,
.detail-text h2 {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 2.25rem);
}

.watch-info p,
.detail-text p {
  margin: 0;
  color: var(--muted);
  line-height: 1.9;
}

.detail-text {
  display: grid;
  gap: 18px;
  max-width: 1180px;
}

.empty-state {
  margin: 24px 0 0;
  padding: 24px;
  border-radius: 20px;
  color: var(--muted);
  background: #ffffff;
  box-shadow: var(--soft-shadow);
  text-align: center;
}

.site-footer {
  margin-top: 40px;
  color: #ffffff;
  background: linear-gradient(135deg, #0f172a, #172554 62%, #0e7490);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.6fr) 1fr 1fr;
  gap: 46px;
  max-width: 1600px;
  margin: 0 auto;
  padding: 62px clamp(16px, 3vw, 42px);
}

.footer-brand .brand-mark {
  background: linear-gradient(135deg, #38bdf8, #22d3ee);
}

.footer-brand strong {
  color: #ffffff;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
}

.footer-brand p,
.footer-text,
.site-footer li a,
.footer-bottom {
  color: rgba(219, 234, 254, 0.82);
}

.footer-text {
  max-width: 520px;
  line-height: 1.85;
}

.site-footer h2 {
  margin: 0 0 18px;
  font-size: 1.2rem;
}

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

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  max-width: 1600px;
  margin: 0 auto;
  padding: 22px clamp(16px, 3vw, 42px);
  border-top: 1px solid rgba(191, 219, 254, 0.18);
}

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

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

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

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

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

  .hero-section {
    min-height: auto;
    padding: 14px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    height: auto;
  }

  .hero-card {
    min-height: 420px;
  }

  .hero-intro {
    position: relative;
    left: auto;
    top: auto;
    margin: 16px 0 0;
    color: var(--text);
    background: rgba(255, 255, 255, 0.92);
  }

  .hero-intro h1 {
    color: var(--text);
  }

  .hero-intro p {
    color: var(--muted);
  }

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

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

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

  .watch-shell {
    margin-top: -60px;
  }

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

@media (max-width: 620px) {
  .nav-shell {
    gap: 10px;
  }

  .brand-copy strong {
    font-size: 1.08rem;
  }

  .brand-copy small {
    display: none;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 13px;
  }

  .mobile-nav.is-open {
    grid-template-columns: 1fr;
  }

  .hero-card {
    min-height: 360px;
    border-radius: 22px;
  }

  .hero-play {
    width: 58px;
    height: 58px;
  }

  .hero-copy {
    padding: 22px;
  }

  .section-heading,
  .category-block-head,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .large-grid,
  .compact-grid,
  .mini-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

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

  .compact-hero {
    margin: 12px 12px 0;
    padding: 36px 22px;
    border-radius: 22px;
  }

  .detail-inner {
    padding-bottom: 96px;
  }

  .watch-player,
  .watch-info {
    border-radius: 20px;
  }
}
