/* azure-bolt · site 9 · 速影厅 · ab- 版式 · 宝蓝#2563eb + 亮橙#f97316 + 青蓝#06b6d4 */
:root {
  --ab-blue: #2563eb;
  --ab-blue-dark: #1d4ed8;
  --ab-blue-light: #3b82f6;
  --ab-orange: #f97316;
  --ab-orange-dark: #ea580c;
  --ab-cyan: #06b6d4;
  --ab-cyan-light: #22d3ee;
  --ab-bg: #0b1220;
  --ab-surface: #111827;
  --ab-surface-2: #1e293b;
  --ab-text: #f1f5f9;
  --ab-muted: #94a3b8;
  --ab-line: rgba(37, 99, 235, 0.22);
  --ab-shadow: 0 18px 48px rgba(0, 0, 0, 0.42);
  color-scheme: dark;
}

body.ab-body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(820px 340px at 8% -6%, rgba(37, 99, 235, 0.16), transparent 58%),
    radial-gradient(680px 300px at 92% 0%, rgba(6, 182, 212, 0.1), transparent 55%),
    var(--ab-bg) !important;
  color: var(--ab-text) !important;
  font-family: "Segoe UI", "PingFang SC", "Noto Sans SC", sans-serif;
  line-height: 1.55;
}

body.ab-body a {
  color: var(--ab-blue-light);
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

body.ab-body a:hover { color: var(--ab-cyan-light); }
body.ab-body img { display: block; max-width: 100%; height: auto; }
body.ab-body button { font: inherit; cursor: pointer; border: 0; background: none; }

/* ── 极简顶栏：单行品牌+导航+搜索 ── */
.ab-top {
  position: sticky;
  top: 0;
  z-index: 90;
  background: color-mix(in srgb, var(--ab-bg) 90%, #000 10%);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--ab-line);
}

.ab-top__bar {
  height: 3px;
  background: linear-gradient(90deg, var(--ab-blue), var(--ab-cyan) 55%, var(--ab-orange));
}

.ab-top__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 18px;
}

.ab-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: var(--ab-text) !important;
  font-weight: 900;
}

.ab-logo__bolt {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--ab-blue), var(--ab-blue-dark));
  color: #fff;
  font-size: 16px;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
}

.ab-logo__name {
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.ab-nav {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.ab-nav a {
  padding: 7px 14px;
  border-radius: 999px;
  color: var(--ab-muted) !important;
  font-weight: 700;
  font-size: 0.86rem;
  border: 1px solid transparent;
}

.ab-nav a:hover {
  color: var(--ab-text) !important;
  background: color-mix(in srgb, var(--ab-blue) 14%, transparent);
  border-color: color-mix(in srgb, var(--ab-blue) 30%, transparent);
}

.ab-nav a[aria-current="page"] {
  color: #fff !important;
  background: var(--ab-blue);
  border-color: var(--ab-blue);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
}

.ab-top__tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.ab-search {
  display: flex;
  align-items: stretch;
  width: 200px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--ab-blue) 40%, transparent);
  background: var(--ab-surface);
}

.ab-search input {
  flex: 1;
  min-width: 0;
  padding: 8px 12px;
  border: 0;
  background: transparent;
  color: var(--ab-text);
  outline: none;
  font-size: 0.86rem;
}

.ab-search input::placeholder { color: var(--ab-muted); }

.ab-search button {
  display: grid;
  place-items: center;
  width: 36px;
  background: var(--ab-blue);
  color: #fff;
}

.ab-search button svg { width: 16px; height: 16px; }

.ab-hotlink {
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--ab-orange), var(--ab-orange-dark));
  color: #fff !important;
  font-weight: 800;
  font-size: 0.82rem;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.38);
}

.ab-hotlink:hover { color: #fff !important; transform: translateY(-1px); }

.ab-menu {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  padding: 8px;
  border-radius: 8px;
  background: var(--ab-surface-2);
  border: 1px solid var(--ab-line);
}

.ab-menu span {
  display: block;
  height: 2px;
  background: var(--ab-text);
  border-radius: 2px;
}

/* ── 按钮 ── */
.ab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.9rem;
  border: 0;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ab-btn--cta {
  background: linear-gradient(135deg, var(--ab-orange), var(--ab-orange-dark));
  color: #fff !important;
  box-shadow: 0 8px 22px rgba(249, 115, 22, 0.38);
}

.ab-btn--cta:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(249, 115, 22, 0.48); }

.ab-btn--line {
  background: transparent;
  color: var(--ab-blue-light) !important;
  border: 2px solid color-mix(in srgb, var(--ab-blue) 45%, transparent);
}

.ab-btn--line:hover {
  background: color-mix(in srgb, var(--ab-blue) 12%, transparent);
  color: var(--ab-cyan-light) !important;
}

/* ── 主内容 ── */
.ab-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 22px 18px 52px;
}

/* ── 首页横条 hero（非大横幅） ── */
.ab-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
  padding: 28px 32px;
  border-radius: 16px;
  background: linear-gradient(110deg, var(--ab-surface) 0%, color-mix(in srgb, var(--ab-blue) 12%, var(--ab-surface)) 100%);
  border: 1px solid var(--ab-line);
  box-shadow: var(--ab-shadow);
}

.ab-hero__lead {
  margin: 0 0 8px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--ab-cyan) !important;
}

.ab-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  line-height: 1.25;
  font-weight: 900;
  color: var(--ab-text);
}

.ab-hero__intro {
  margin: 0;
  color: var(--ab-muted);
  font-size: 0.98rem;
  line-height: 1.65;
  max-width: 560px;
}

.ab-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ── 内容区块 ── */
.ab-board {
  margin-bottom: 34px;
}

.ab-board__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 12px;
}

.ab-board__head h2 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.18rem;
  font-weight: 900;
  color: var(--ab-text);
}

.ab-board__head a {
  color: var(--ab-blue-light) !important;
  font-weight: 700;
  font-size: 0.86rem;
  white-space: nowrap;
}

.ab-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.ab-dot--blue { background: var(--ab-blue); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25); }
.ab-dot--cyan { background: var(--ab-cyan); box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.25); }
.ab-dot--orange { background: var(--ab-orange); box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.25); }

/* ── 等宽等高海报网格 ── */
.ab-poster-grid {
  display: grid;
  gap: 14px;
}

.ab-poster-grid--4 { grid-template-columns: repeat(4, 1fr); }
.ab-poster-grid--5 { grid-template-columns: repeat(5, 1fr); }

/* ── 卡片：统一 3:4 封面 + 底部信息 ── */
.ab-tile {
  background: var(--ab-surface);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--ab-blue) 12%, transparent);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.ab-tile:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--ab-blue) 42%, transparent);
  box-shadow: 0 14px 36px rgba(37, 99, 235, 0.16);
}

.ab-tile__link {
  display: block;
  color: inherit !important;
}

.ab-tile__cover {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
}

.ab-tile__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #0a0f18;
  transition: transform 0.32s ease;
}

.ab-tile:hover .ab-tile__cover img { transform: scale(1.04); }

.ab-tile__badge {
  position: absolute;
  left: 8px;
  top: 8px;
  padding: 3px 8px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--ab-cyan), var(--ab-cyan-light));
  color: #042f2e;
  font-size: 10px;
  font-weight: 900;
  z-index: 2;
}

.ab-tile__year {
  position: absolute;
  right: 8px;
  top: 8px;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(11, 18, 32, 0.82);
  color: var(--ab-blue-light);
  font-size: 10px;
  font-weight: 800;
  z-index: 2;
}

.ab-tile__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(11, 18, 32, 0.52);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.ab-tile__play svg {
  width: 36px;
  height: 36px;
  color: #fff;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

.ab-tile:hover .ab-tile__play { opacity: 1; }

.ab-tile__info {
  padding: 10px 11px 12px;
}

.ab-tile__info h3 {
  margin: 0 0 5px;
  font-size: 0.88rem;
  line-height: 1.35;
  font-weight: 800;
  color: var(--ab-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ab-tile__info p {
  margin: 0;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.74rem;
  color: var(--ab-muted);
}

.ab-tile__info p span:first-child { color: var(--ab-cyan); }

.ab-tile--mini .ab-tile__info h3 { font-size: 0.82rem; }

/* ── 分类页：顶栏筛选 + 等宽网格 ── */
.ab-pagehead {
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--ab-line);
}

.ab-pagehead h1 {
  margin: 6px 0;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 900;
  color: var(--ab-blue-light);
}

.ab-pagehead p {
  margin: 0;
  color: var(--ab-muted);
  max-width: 680px;
}

.ab-pagehead--panel {
  padding: 20px 22px;
  border-radius: 14px;
  background: var(--ab-surface);
  border: 1px solid var(--ab-line);
  border-bottom: 1px solid var(--ab-line);
  margin-bottom: 22px;
}

.ab-pagehead__tag {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 10px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--ab-blue) 18%, transparent);
  color: var(--ab-blue-light);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.05em;
}

.ab-crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--ab-muted);
  margin-bottom: 8px;
}

.ab-crumb a { color: var(--ab-blue-light) !important; }

.ab-filterbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--ab-surface);
  border: 1px solid var(--ab-line);
}

.ab-filterbar--wide { gap: 10px; }

.ab-filterbar__item {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 130px;
}

.ab-filterbar__item--grow { flex: 1; min-width: 180px; }

.ab-filterbar__item span {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--ab-muted);
}

.ab-filterbar__item input,
.ab-filterbar__item select {
  padding: 8px 11px;
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--ab-blue) 22%, transparent);
  background: var(--ab-surface-2);
  color: var(--ab-text);
  font: inherit;
  outline: none;
}

.ab-filterbar__item input:focus,
.ab-filterbar__item select:focus {
  border-color: var(--ab-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.ab-empty {
  margin: 20px 0 0;
  padding: 28px;
  text-align: center;
  border-radius: 12px;
  background: var(--ab-surface);
  color: var(--ab-muted);
  border: 1px dashed var(--ab-line);
}

/* ── 分类入口列表 ── */
.ab-catlist {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px;
}

.ab-catlist a:hover {
  transform: translateY(-2px);
  border-color: var(--ab-blue);
  color: var(--ab-blue-light) !important;
}

.ab-catlist .overview-card {
  display: block;
  padding: 16px 14px;
  border-radius: 12px;
  background: var(--ab-surface);
  border: 1px solid var(--ab-line);
  color: var(--ab-text) !important;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.ab-catlist .overview-card:hover {
  transform: translateY(-2px);
  border-color: var(--ab-blue);
}

.ab-catlist .overview-main {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
}

.ab-catlist .overview-main strong {
  font-size: 0.95rem;
  color: var(--ab-blue-light);
}

.ab-catlist .overview-main span {
  font-size: 0.82rem;
  color: var(--ab-muted);
  line-height: 1.5;
}

.ab-catlist .overview-links {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--ab-cyan);
  font-weight: 700;
}

.ab-catlist .overview-links span:last-child {
  color: var(--ab-orange);
}

/* ── 播放页：左信息 + 右播放器（非全宽置顶） ── */
.ab-watch {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 24px;
  margin-bottom: 28px;
  align-items: start;
}

.ab-watch__cover img {
  width: 100%;
  border-radius: 12px;
  aspect-ratio: 3/4;
  object-fit: cover;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.ab-watch__meta h1 {
  margin: 16px 0 12px;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 900;
  color: var(--ab-text);
}

.ab-watch__facts {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.ab-watch__facts li {
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--ab-surface);
  border-left: 3px solid var(--ab-blue);
}

.ab-watch__facts em {
  display: block;
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--ab-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ab-watch__facts strong {
  font-weight: 800;
  color: var(--ab-cyan-light);
}

.ab-watch__brief {
  margin: 0 0 16px;
  color: var(--ab-muted);
  line-height: 1.7;
  font-size: 0.92rem;
}

.ab-watch__screen {
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid color-mix(in srgb, var(--ab-blue) 38%, transparent);
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.48);
  background: #000;
}

.ab-watch__screen video,
#movie-player {
  width: 100%;
  max-height: 72vh;
  display: block;
  background: #000;
  aspect-ratio: 16/9;
  object-fit: contain;
}

.ab-synopsis {
  margin-bottom: 30px;
  padding: 20px 22px;
  border-radius: 14px;
  background: var(--ab-surface);
  border-left: 4px solid var(--ab-orange);
}

.ab-synopsis h2 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--ab-blue-light);
}

.ab-synopsis p {
  margin: 0;
  color: var(--ab-muted);
  line-height: 1.78;
}

/* ── 页脚：双行紧凑（非三列大网格） ── */
.ab-foot {
  margin-top: 44px;
  background: color-mix(in srgb, var(--ab-bg) 94%, #000 6%);
  border-top: 1px solid var(--ab-line);
}

.ab-foot__top {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  padding: 32px 18px 24px;
}

.ab-foot__brand {
  flex: 1;
  min-width: 220px;
}

.ab-foot__brand a {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--ab-blue-light) !important;
}

.ab-foot__brand p {
  margin: 10px 0 0;
  color: var(--ab-muted);
  font-size: 0.86rem;
  line-height: 1.65;
  max-width: 420px;
}

.ab-foot__links {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
}

.ab-foot__col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ab-foot__col strong {
  margin-bottom: 4px;
  font-size: 0.82rem;
  font-weight: 900;
  color: var(--ab-cyan);
  letter-spacing: 0.04em;
}

.ab-foot__col a {
  color: var(--ab-muted) !important;
  font-size: 0.84rem;
}

.ab-foot__col a:hover { color: var(--ab-blue-light) !important; }

.ab-foot__base {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 18px 22px;
  border-top: 1px solid color-mix(in srgb, var(--ab-blue) 12%, transparent);
  font-size: 0.8rem;
  color: var(--ab-muted);
}

.ab-foot__tag {
  padding: 3px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ab-blue) 14%, transparent);
  color: var(--ab-blue-light);
  font-weight: 700;
}

/* ── 移动端 ── */
@media (max-width: 960px) {
  .ab-top__inner { flex-wrap: wrap; padding: 10px 14px; }
  .ab-nav {
    display: none;
    order: 3;
    flex: 1 1 100%;
    flex-direction: column;
    gap: 0;
    padding-top: 8px;
    border-top: 1px solid var(--ab-line);
  }
  .ab-nav.open { display: flex; }
  .ab-nav a {
    border-radius: 8px;
    padding: 10px 12px;
  }
  .ab-search { width: 140px; }
  .ab-hotlink { display: none; }
  .ab-menu { display: flex; margin-left: auto; }

  .ab-poster-grid--4,
  .ab-poster-grid--5 { grid-template-columns: repeat(3, 1fr); }

  .ab-hero { padding: 22px 18px; }
  .ab-hero__actions { width: 100%; }

  .ab-watch {
    grid-template-columns: 1fr;
  }

  .ab-watch__cover { max-width: 200px; }

  .ab-foot__top { flex-direction: column; gap: 24px; }
}

@media (max-width: 600px) {
  .ab-poster-grid--4,
  .ab-poster-grid--5 { grid-template-columns: repeat(2, 1fr); gap: 10px; }

  .ab-search { flex: 1; width: auto; min-width: 0; }
  .ab-top__tools { flex: 1; min-width: 0; }

  .ab-filterbar { flex-direction: column; }
  .ab-filterbar__item { min-width: 0; }

  .ab-watch__facts { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  body.ab-body *,
  body.ab-body *::before,
  body.ab-body *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.movie-grid { display: contents; }
