:root {
  color-scheme: dark;
  --bg: #07131f;
  --bg-soft: #0c1d2d;
  --panel: rgba(15, 35, 52, 0.82);
  --panel-solid: #102338;
  --line: rgba(148, 163, 184, 0.22);
  --text: #e5f3ff;
  --muted: #9fb2c7;
  --cyan: #22d3ee;
  --teal: #14b8a6;
  --amber: #fbbf24;
  --danger: #fb7185;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  --radius-xl: 28px;
  --radius-lg: 20px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(20, 184, 166, 0.22), transparent 34rem),
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.16), transparent 30rem),
    linear-gradient(135deg, #06101b 0%, #0a1d2f 48%, #081423 100%);
  color: var(--text);
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
  line-height: 1.65;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: linear-gradient(90deg, rgba(15, 118, 110, 0.96), rgba(8, 47, 73, 0.96), rgba(15, 23, 42, 0.96));
  border-bottom: 1px solid rgba(125, 211, 252, 0.16);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px);
}

.nav-wrap {
  width: min(1440px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

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

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  color: #06202f;
  box-shadow: 0 12px 24px rgba(34, 211, 238, 0.26);
}

.brand-text {
  font-size: 1.2rem;
  white-space: nowrap;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  overflow: hidden;
}

.nav-link {
  padding: 8px 10px;
  border-radius: 999px;
  color: rgba(235, 249, 255, 0.82);
  font-size: 0.95rem;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 300px;
}

.nav-search input,
.big-search input,
.inline-filter input,
.local-filter input {
  width: 100%;
  border: 1px solid rgba(125, 211, 252, 0.22);
  outline: none;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 11px 16px;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.nav-search input:focus,
.big-search input:focus,
.inline-filter input:focus,
.local-filter input:focus {
  border-color: rgba(34, 211, 238, 0.75);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12);
}

.nav-search button,
.big-search button,
.inline-filter button {
  border: 0;
  color: #04202e;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  border-radius: 999px;
  padding: 11px 18px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.mobile-panel {
  width: min(1440px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mobile-panel a {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(235, 249, 255, 0.92);
}

.hero-slider {
  position: relative;
  width: min(1480px, calc(100% - 32px));
  height: min(720px, 70vh);
  min-height: 520px;
  margin: 26px auto 0;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #081827;
  box-shadow: var(--shadow);
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 13, 24, 0.96) 0%, rgba(5, 13, 24, 0.72) 42%, rgba(5, 13, 24, 0.3) 100%),
    linear-gradient(0deg, rgba(5, 13, 24, 0.84), transparent 50%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(760px, 86%);
  height: 100%;
  padding: clamp(38px, 6vw, 78px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

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

.hero-content h1,
.hero-content h2,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  line-height: 1.12;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.hero-content h1 {
  font-size: clamp(2.6rem, 6vw, 5.9rem);
}

.hero-content h2 {
  margin-top: 14px;
  font-size: clamp(1.8rem, 4vw, 3.8rem);
}

.hero-content p:not(.eyebrow) {
  margin: 20px 0 0;
  max-width: 660px;
  color: rgba(226, 242, 255, 0.86);
  font-size: 1.05rem;
}

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

.hero-tags {
  margin-top: 22px;
}

.hero-tags span,
.detail-tags span,
.tag-row span {
  border: 1px solid rgba(125, 211, 252, 0.22);
  color: rgba(235, 249, 255, 0.9);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.82rem;
}

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

.primary-btn,
.ghost-btn,
.panel-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  padding: 0 22px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;
}

.primary-btn {
  border: 0;
  color: #031c29;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  box-shadow: 0 18px 32px rgba(20, 184, 166, 0.26);
}

.ghost-btn,
.panel-more {
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #eaf8ff;
  background: rgba(255, 255, 255, 0.1);
}

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

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  color: #fff;
  background: rgba(7, 19, 31, 0.46);
  backdrop-filter: blur(12px);
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 2.2rem;
  line-height: 1;
}

.hero-prev {
  left: 18px;
}

.hero-next {
  right: 18px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 5;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.hero-dot {
  width: 28px;
  height: 8px;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.34);
  cursor: pointer;
}

.hero-dot.is-active {
  background: linear-gradient(90deg, var(--cyan), var(--teal));
}

.section-wrap {
  width: min(1440px, calc(100% - 32px));
  margin: 0 auto;
}

.quick-panel {
  display: grid;
  gap: 18px;
  margin-top: 28px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
}

.big-search,
.inline-filter {
  display: flex;
  gap: 10px;
}

.quick-cats,
.category-showcase {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.quick-cats a,
.category-showcase a,
.category-card a {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035));
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.quick-cats a {
  padding: 16px;
  font-weight: 900;
}

.quick-cats span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
}

.quick-cats a:hover,
.category-showcase a:hover,
.category-card a:hover,
.movie-card:hover,
.compact-card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.56);
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  margin-top: 42px;
}

.section-title {
  margin: 0 0 20px;
}

.section-title p {
  margin: 0 0 4px;
  color: var(--cyan);
  font-weight: 900;
  letter-spacing: 0.1em;
}

.section-title h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  line-height: 1.15;
}

.section-title.small h2 {
  font-size: 1.6rem;
}

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

.wide-grid,
.home-grid,
.related-grid,
.category-movie-grid {
  margin-bottom: 40px;
}

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(10, 29, 47, 0.78);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.32);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.18), rgba(20, 184, 166, 0.12));
}

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

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

.poster-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  border-radius: 999px;
  color: #031c29;
  background: linear-gradient(135deg, var(--amber), #fde68a);
  padding: 4px 8px;
  font-weight: 900;
  font-size: 0.76rem;
}

.play-dot {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #031c29;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  box-shadow: 0 12px 24px rgba(34, 211, 238, 0.28);
}

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

.movie-card h2 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.35;
}

.movie-card h2 a:hover {
  color: var(--cyan);
}

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

.card-desc {
  min-height: 2.8em;
}

.tag-row {
  margin-top: 10px;
}

.tag-row span {
  font-size: 0.72rem;
  padding: 4px 8px;
}

.rank-panel {
  position: sticky;
  top: 92px;
  align-self: start;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.06);
  padding: 20px;
  box-shadow: var(--shadow);
}

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

.rank-list a {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 2px 10px;
  align-items: center;
  padding: 11px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.055);
}

.rank-list span {
  grid-row: span 2;
  color: var(--cyan);
  font-weight: 950;
}

.rank-list strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-list em {
  color: var(--muted);
  font-style: normal;
  font-size: 0.82rem;
}

.panel-more {
  width: 100%;
  margin-top: 16px;
}

.category-showcase {
  margin-bottom: 42px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.category-showcase a {
  min-height: 150px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.category-showcase strong {
  font-size: 1.25rem;
}

.category-showcase span {
  color: var(--muted);
  font-size: 0.92rem;
}

.page-main {
  padding-top: 28px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(20, 184, 166, 0.2), rgba(8, 47, 73, 0.66)),
    rgba(255, 255, 255, 0.06);
  padding: clamp(28px, 5vw, 58px);
  box-shadow: var(--shadow);
}

.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 4.2rem);
}

.page-hero p:not(.eyebrow) {
  max-width: 820px;
  color: rgba(226, 242, 255, 0.84);
  font-size: 1.02rem;
}

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

.category-card a {
  display: block;
  overflow: hidden;
}

.category-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  height: 160px;
  overflow: hidden;
}

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

.category-card h2,
.category-card p,
.category-card span {
  margin-left: 16px;
  margin-right: 16px;
}

.category-card h2 {
  margin-top: 16px;
  margin-bottom: 8px;
}

.category-card p {
  color: var(--muted);
  font-size: 0.92rem;
  min-height: 4.5em;
}

.category-card span {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--cyan);
  font-weight: 900;
}

.local-filter {
  margin: 0 0 22px;
}

.local-filter input {
  max-width: 520px;
}

.ranking-list {
  display: grid;
  gap: 10px;
  margin-bottom: 46px;
}

.ranking-row {
  display: grid;
  grid-template-columns: 70px 62px minmax(0, 1fr) minmax(240px, 0.8fr) 76px;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.055);
  padding: 10px 14px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.ranking-row:hover {
  transform: translateY(-2px);
  border-color: rgba(34, 211, 238, 0.5);
  background: rgba(255, 255, 255, 0.08);
}

.ranking-row img {
  width: 54px;
  height: 76px;
  border-radius: 10px;
  object-fit: cover;
}

.rank-num {
  color: var(--cyan);
  font-weight: 950;
}

.ranking-row em {
  color: var(--muted);
  font-style: normal;
}

.ranking-row b {
  justify-self: end;
  color: #031c29;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  border-radius: 999px;
  padding: 8px 14px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 18px;
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--cyan);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 24px;
  align-items: stretch;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(125, 211, 252, 0.2);
  border-radius: var(--radius-xl);
  background: #020617;
  aspect-ratio: 16 / 9;
  box-shadow: var(--shadow);
}

.video-player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #020617;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 4;
  border: 0;
  padding: 0;
  overflow: hidden;
  color: #fff;
  background: #020617;
  cursor: pointer;
}

.player-cover.is-hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease;
}

.player-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.58) saturate(1.08);
}

.big-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #031c29;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  box-shadow: 0 26px 58px rgba(34, 211, 238, 0.28);
  transform: translate(-50%, -50%);
  font-size: 2rem;
}

.detail-info {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.06);
  padding: clamp(22px, 4vw, 36px);
  box-shadow: var(--shadow);
}

.detail-info h1 {
  font-size: clamp(2rem, 5vw, 4rem);
}

.detail-one-line {
  color: rgba(226, 242, 255, 0.9);
  font-size: 1.05rem;
}

.detail-tags {
  margin-top: 20px;
}

.detail-section {
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.052);
  padding: clamp(22px, 4vw, 34px);
}

.detail-section h2 {
  margin-top: 0;
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.detail-section p {
  color: rgba(226, 242, 255, 0.86);
}

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

.compact-card {
  display: flex;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.055);
  padding: 10px;
}

.compact-card img {
  width: 56px;
  height: 76px;
  border-radius: 10px;
  object-fit: cover;
}

.compact-card strong,
.compact-card em {
  display: block;
}

.compact-card em {
  color: var(--muted);
  font-style: normal;
  font-size: 0.82rem;
}

.site-footer {
  margin-top: 70px;
  border-top: 1px solid var(--line);
  background: rgba(2, 10, 18, 0.82);
  padding: 38px 0 24px;
}

.footer-grid {
  width: min(1440px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.8fr;
  gap: 28px;
}

.footer-grid p,
.copyright {
  color: var(--muted);
}

.footer-grid h2 {
  margin: 0 0 12px;
  font-size: 1.05rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-links a {
  color: rgba(226, 242, 255, 0.84);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
}

.footer-links a:hover {
  color: var(--cyan);
  border-color: rgba(34, 211, 238, 0.5);
}

.copyright {
  width: min(1440px, calc(100% - 32px));
  margin: 26px auto 0;
  font-size: 0.9rem;
}

[hidden] {
  display: none !important;
}

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

  .nav-search {
    margin-left: auto;
  }

  .mobile-toggle {
    display: grid;
    place-items: center;
  }

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

  .rank-panel {
    position: static;
  }

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

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

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

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

  .hero-slider {
    width: min(100% - 20px, 1480px);
    min-height: 560px;
    height: 76vh;
    border-radius: 22px;
  }

  .hero-content {
    width: 100%;
    padding: 26px;
    justify-content: flex-end;
  }

  .hero-arrow {
    display: none;
  }

  .big-search,
  .inline-filter {
    flex-direction: column;
  }

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

  .quick-cats,
  .category-showcase {
    grid-template-columns: 1fr;
  }

  .category-thumbs {
    height: 130px;
  }

  .ranking-row {
    grid-template-columns: 48px 54px minmax(0, 1fr);
  }

  .ranking-row em,
  .ranking-row b {
    grid-column: 3;
  }

  .ranking-row b {
    justify-self: start;
  }

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

@media (max-width: 520px) {
  .section-wrap {
    width: min(100% - 20px, 1440px);
  }

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

  .movie-card {
    display: grid;
    grid-template-columns: 116px 1fr;
  }

  .poster-link {
    aspect-ratio: 2 / 3;
  }

  .card-desc {
    min-height: auto;
  }

  .detail-section,
  .detail-info,
  .quick-panel,
  .page-hero {
    border-radius: 20px;
  }
}
