/* =========================================================
   MACCMS10 影视模板（第四十二套） - style.css
   ao- 琥珀橙 · 时光影城（与前41套完全不同）
   深棕底 + 琥珀橙主色 + 米白字，复古影院质感
   首页：左主区 + 右窄栏门户式；三榜带封面横卡；详情双栏档案+双列信息表；播放器+集数工具条
   ========================================================= */
:root {
  --ao-bg: #211409;          /* 深棕底 */
  --ao-card: #2e1b0f;        /* 卡片 */
  --ao-line: #4a2f1c;        /* 分隔线 */
  --ao-ink: #f5ead9;         /* 米白主文字 */
  --ao-sub: #c9a67e;         /* 次要文字 */
  --ao-orange: #ff8a3d;      /* 琥珀橙 */
  --ao-deep: #e05a1a;        /* 深橙 */
  --ao-glow: #ffb877;        /* 亮橙 */
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { overflow-x: hidden; }
body {
  background: var(--ao-bg);
  color: var(--ao-ink);
  font: 14px/1.6 -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
}
a { color: inherit; text-decoration: none; }
img { border: 0; display: block; }
em, i { font-style: normal; }

/* ---------- 顶部速递条 ---------- */
.ao-ticker {
  background: linear-gradient(90deg, var(--ao-deep), var(--ao-orange), var(--ao-deep));
  color: #fff;
}
.ao-ticker-in {
  max-width: 1180px;
  margin: 0 auto;
  padding: 7px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.ao-ticker-tag {
  flex-shrink: 0;
  padding: 1px 10px;
  border-radius: 3px;
  background: rgba(255,255,255,.22);
  font-size: 12px;
  font-weight: 700;
}
.ao-ticker-text {
  font-size: 12px;
  color: rgba(255,255,255,.9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- 主头部 ---------- */
.ao-head {
  position: sticky;
  top: 0;
  z-index: 110;
  background: rgba(24,13,6,.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--ao-line);
}
.ao-head-in {
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.ao-brand {
  flex-shrink: 0;
  display: inline-block;
  font-size: 21px;
  font-weight: 900;
  letter-spacing: 1px;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 190px;
}
.ao-brand-orb {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  margin-right: 8px;
  vertical-align: -2px;
  background: linear-gradient(135deg, var(--ao-glow), var(--ao-orange));
  box-shadow: 0 0 10px rgba(255,138,61,.75);
  transform: rotate(45deg);
}
.ao-find {
  display: flex;
  border: 1px solid var(--ao-line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--ao-card);
  min-width: 0;
}
.ao-find-input {
  width: 200px;
  padding: 8px 14px;
  border: 0;
  background: transparent;
  color: var(--ao-ink);
  font-size: 13px;
  outline: none;
}
.ao-find-go {
  padding: 8px 18px;
  border: 0;
  background: linear-gradient(135deg, var(--ao-orange), var(--ao-deep));
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
}
.ao-find-go:hover { filter: brightness(1.12); }
.ao-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 9px;
  border: 1px solid var(--ao-line);
  border-radius: 10px;
  background: var(--ao-card);
  cursor: pointer;
  flex-shrink: 0;
}
.ao-burger span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--ao-glow);
  transition: transform .25s, opacity .25s;
}
.ao-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ao-burger.is-open span:nth-child(2) { opacity: 0; }
.ao-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 主菜单（居中胶囊） ---------- */
.ao-menu {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.ao-menu-link {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ao-ink);
  white-space: nowrap;
}
.ao-menu-link:hover { background: rgba(255,138,61,.12); color: var(--ao-glow); }
.ao-menu-link.is-on {
  background: linear-gradient(135deg, var(--ao-orange), var(--ao-deep));
  color: #fff;
  font-weight: 700;
}

/* ---------- 移动端悬浮抽屉 ---------- */
.ao-drawer {
  display: none;
  position: absolute;
  top: calc(100% - 0px);
  right: 0;
  width: 262px;
  background: var(--ao-card);
  border: 1px solid var(--ao-line);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0,0,0,.55);
  z-index: 115;
}
.ao-drawer.is-open { display: block; }
.ao-drawer-link {
  display: block;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ao-ink);
  border-bottom: 1px solid var(--ao-line);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ao-drawer-link:last-child { border-bottom: 0; }
.ao-drawer-link:hover { color: var(--ao-glow); }
.ao-drawer-parent { color: var(--ao-glow); background: rgba(255,138,61,.1); }
.ao-drawer-sub a {
  display: block;
  padding: 8px 18px 8px 30px;
  font-size: 13px;
  color: var(--ao-sub);
  border-bottom: 1px dashed var(--ao-line);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ao-drawer-sub a:last-child { border-bottom: 0; }
.ao-drawer-sub a:hover { color: var(--ao-glow); }

/* ---------- 正文容器 ---------- */
.ao-page { min-height: 60vh; }
.ao-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 20px 34px;
}

/* ---------- 模块面板 ---------- */
.ao-mod {
  background: var(--ao-card);
  border: 1px solid var(--ao-line);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 18px;
  box-shadow: 0 10px 28px rgba(0,0,0,.35);
  overflow: hidden;
}
.ao-mod-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--ao-line);
  padding-bottom: 10px;
  margin-bottom: 14px;
}
.ao-mod-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--ao-glow);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ao-mod-title::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 16px;
  border-radius: 3px;
  margin-right: 9px;
  vertical-align: -2px;
  background: linear-gradient(180deg, var(--ao-glow), var(--ao-deep));
  box-shadow: 0 0 6px rgba(255,138,61,.6);
}
.ao-mod-more { font-size: 13px; color: var(--ao-sub); flex-shrink: 0; }
.ao-mod-more:hover { color: var(--ao-glow); }
.ao-mod-note { font-size: 12px; color: var(--ao-sub); flex-shrink: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- 面包屑（仅详情/播放） ---------- */
.ao-crumb {
  padding: 0 0 14px;
  font-size: 13px;
  color: var(--ao-sub);
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
}
.ao-crumb a:hover { color: var(--ao-glow); }
.ao-crumb-sep { color: #6b4a2e; }

/* ---------- 焦点横幅轮播 ---------- */
.ao-stage { margin-bottom: 18px; }
.ao-caro {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--ao-line);
  box-shadow: 0 12px 32px rgba(0,0,0,.45);
  background: var(--ao-deep);
}
.ao-caro-track { display: flex; transition: transform .5s ease; }
.ao-caro-slide {
  position: relative;
  display: block;
  min-width: 100%;
  height: 400px;
  overflow: hidden;
}
.ao-caro-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.ao-caro-slide:hover img { transform: scale(1.04); }
.ao-caro-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(20,11,5,.94) 0%, rgba(20,11,5,.5) 45%, rgba(20,11,5,.05) 78%);
}
.ao-caro-copy {
  position: absolute;
  left: 34px;
  top: 50%;
  transform: translateY(-50%);
  max-width: 62%;
  color: #fff;
}
.ao-caro-title {
  display: block;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ao-caro-meta {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  color: var(--ao-glow);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ao-caro-desc {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.7;
  color: #f0dfc4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ao-caro-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 50px;
  border: 0;
  border-radius: 6px;
  background: rgba(20,11,5,.5);
  color: var(--ao-glow);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  z-index: 5;
}
.ao-caro-arrow:hover { background: var(--ao-orange); }
.ao-caro-prev { left: 12px; }
.ao-caro-next { right: 12px; }
.ao-caro-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 5;
}
.ao-caro-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  cursor: pointer;
  transition: all .3s ease;
}
.ao-caro-dot.is-on {
  background: var(--ao-glow);
  width: 22px;
  border-radius: 5px;
  box-shadow: 0 0 8px rgba(255,184,119,.8);
}

/* ---------- 今日热映：横向滑动封面条 ---------- */
.ao-hotrail {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,138,61,.45) rgba(255,138,61,.1);
}
.ao-hotrail::-webkit-scrollbar { height: 6px; }
.ao-hotrail::-webkit-scrollbar-track { background: rgba(255,138,61,.1); border-radius: 3px; }
.ao-hotrail::-webkit-scrollbar-thumb { background: rgba(255,138,61,.45); border-radius: 3px; }
.ao-hotrail-card {
  flex-shrink: 0;
  width: 150px;
  scroll-snap-align: start;
  display: block;
  min-width: 0;
}
.ao-hotrail-pic {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: 8px;
  overflow: hidden;
  background: #24150a;
}
.ao-hotrail-pic img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.ao-hotrail-card:hover .ao-hotrail-pic img { transform: scale(1.05); }
.ao-hotrail-flag {
  position: absolute;
  left: 6px;
  top: 6px;
  padding: 1px 8px;
  border-radius: 4px;
  background: rgba(224,90,26,.92);
  color: #fff;
  font-size: 11px;
  max-width: 70%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ao-hotrail-score {
  position: absolute;
  right: 6px;
  top: 6px;
  padding: 1px 8px;
  border-radius: 4px;
  background: var(--ao-glow);
  color: #3d1e08;
  font-size: 11px;
  font-weight: 700;
}
.ao-hotrail-info { display: block; padding: 8px 2px 0; }
.ao-hotrail-name {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ao-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ao-hotrail-card:hover .ao-hotrail-name { color: var(--ao-glow); }
.ao-hotrail-meta {
  display: block;
  font-size: 12px;
  color: var(--ao-sub);
  margin-top: 3px;
}

/* ---------- 首页主体两栏 ---------- */
.ao-body {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 18px;
  align-items: start;
}
.ao-body-main { min-width: 0; display: block; }
.ao-body-side { min-width: 0; display: block; }
/* 侧栏「最近更新速览」跟随下滑悬浮（避开 sticky 头部，移动端还原） */
.ao-sticky {
  position: sticky;
  top: 120px;
  z-index: 5;
}

/* ---------- 封面网格（电脑5列 / 手机3列，3/4 标准） ---------- */
.ao-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.ao-card { display: block; min-width: 0; }
.ao-card-pic {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: 8px;
  overflow: hidden;
  background: #24150a;
}
.ao-card-pic img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.ao-card:hover .ao-card-pic img { transform: scale(1.05); }
.ao-card-flag {
  position: absolute;
  left: 6px;
  top: 6px;
  padding: 1px 8px;
  border-radius: 4px;
  background: rgba(224,90,26,.92);
  color: #fff;
  font-size: 11px;
  max-width: 76%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ao-card-score {
  position: absolute;
  right: 6px;
  top: 6px;
  padding: 1px 8px;
  border-radius: 4px;
  background: var(--ao-glow);
  color: #3d1e08;
  font-size: 11px;
  font-weight: 700;
}
.ao-card-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(20,11,5,.8) 100%);
  opacity: 0;
  transition: opacity .3s;
}
.ao-card:hover .ao-card-shade { opacity: 1; }
.ao-card-hover {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 6px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .3s, transform .3s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ao-card:hover .ao-card-hover { opacity: 1; transform: translateY(0); }
.ao-card-info { display: block; padding: 8px 2px 0; }
.ao-card-name {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ao-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ao-card:hover .ao-card-name { color: var(--ao-glow); }
.ao-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
  font-size: 12px;
  color: var(--ao-sub);
}

/* ---------- 文字榜（右栏/侧栏） ---------- */
.ao-hotlist { list-style: none; display: block; }
.ao-hot-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 4px;
  border-bottom: 1px dashed var(--ao-line);
  min-width: 0;
}
.ao-hotlist li:last-child .ao-hot-item { border-bottom: 0; }
.ao-hot-item:hover { background: rgba(255,138,61,.06); }
.ao-hot-idx {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(255,138,61,.14);
  color: var(--ao-glow);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  line-height: 22px;
  flex-shrink: 0;
}
.ao-hotlist li:nth-child(1) .ao-hot-idx,
.ao-hotlist li:nth-child(2) .ao-hot-idx,
.ao-hotlist li:nth-child(3) .ao-hot-idx {
  background: linear-gradient(135deg, var(--ao-orange), var(--ao-deep));
  color: #fff;
}
.ao-hot-name {
  flex: 1;
  font-size: 13px;
  color: var(--ao-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ao-hot-val {
  font-size: 12px;
  color: var(--ao-sub);
  flex-shrink: 0;
}

/* ---------- 三榜：带封面横卡榜 ---------- */
.ao-ranks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.ao-rank {
  background: var(--ao-card);
  border: 1px solid var(--ao-line);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 10px 28px rgba(0,0,0,.35);
  overflow: hidden;
}
.ao-rank .ao-mod-head { border-bottom: 1px solid var(--ao-line); }
.ao-ranklist { list-style: none; display: block; }
.ao-rank-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 2px;
  border-bottom: 1px dashed var(--ao-line);
  min-width: 0;
}
.ao-ranklist li:last-child .ao-rank-item { border-bottom: 0; }
.ao-rank-item:hover { background: rgba(255,138,61,.06); }
.ao-rank-idx {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: rgba(255,138,61,.14);
  color: var(--ao-glow);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  line-height: 20px;
  flex-shrink: 0;
}
.ao-ranklist li:nth-child(1) .ao-rank-idx {
  background: linear-gradient(135deg, var(--ao-orange), var(--ao-deep));
  color: #fff;
}
.ao-rank-pic {
  width: 44px;
  flex-shrink: 0;
  aspect-ratio: 3 / 4;
  border-radius: 5px;
  overflow: hidden;
  background: #24150a;
}
.ao-rank-pic img { width: 100%; height: 100%; object-fit: cover; }
.ao-rank-info { flex: 1; min-width: 0; display: block; }
.ao-rank-name {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ao-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ao-rank-meta {
  display: block;
  font-size: 12px;
  color: var(--ao-sub);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ao-rank-val {
  font-size: 12px;
  color: var(--ao-glow);
  flex-shrink: 0;
  font-weight: 700;
}

/* ---------- 筛选栏（默认收缩 + 底部展开 + 横滑） ---------- */
.ao-sift {
  background: var(--ao-card);
  border: 1px solid var(--ao-line);
  border-radius: 12px;
  padding: 6px 16px;
  margin-bottom: 18px;
  min-width: 0;
}
.ao-sift-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0 2px;
  border-bottom: 1px dashed var(--ao-line);
  margin-bottom: 4px;
}
.ao-sift-tip { font-size: 13px; font-weight: 700; color: var(--ao-glow); }
.ao-sift-note { font-size: 12px; color: var(--ao-sub); }
.ao-sift-body { display: none; }
.ao-sift.is-expanded .ao-sift-body { display: block; }
.ao-sift-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--ao-line);
  min-width: 0;
}
.ao-sift-row:last-child { border-bottom: 0; }
.ao-sift-key {
  width: 74px;
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--ao-glow);
  padding-top: 4px;
}
.ao-sift-scroll {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  padding-bottom: 2px;
}
.ao-sift-scroll::-webkit-scrollbar { height: 4px; }
.ao-sift-scroll::-webkit-scrollbar-track { background: rgba(255,138,61,.1); border-radius: 2px; }
.ao-sift-scroll::-webkit-scrollbar-thumb { background: rgba(255,138,61,.4); border-radius: 2px; }
.ao-pill {
  display: inline-block;
  padding: 4px 14px;
  border: 1px solid var(--ao-line);
  border-radius: 14px;
  font-size: 13px;
  color: var(--ao-sub);
  background: #24150a;
  white-space: nowrap;
  flex-shrink: 0;
}
.ao-pill:hover { border-color: var(--ao-orange); color: var(--ao-glow); }
.ao-pill.is-on {
  background: linear-gradient(135deg, var(--ao-orange), var(--ao-deep));
  border-color: var(--ao-orange);
  color: #fff;
  font-weight: 700;
}
.ao-sift-foot {
  padding: 10px 0 4px;
  text-align: center;
  border-top: 1px dashed var(--ao-line);
  margin-top: 2px;
}
.ao-unfold {
  padding: 5px 22px;
  border: 1px solid var(--ao-line);
  border-radius: 14px;
  background: transparent;
  color: var(--ao-glow);
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
}
.ao-unfold:hover { border-color: var(--ao-orange); }

/* ---------- 分页 ---------- */
.ao-pages {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  padding: 6px 0 2px;
}
.ao-pages-item {
  padding: 6px 14px;
  border: 1px solid var(--ao-line);
  border-radius: 8px;
  font-size: 13px;
  color: var(--ao-sub);
  background: #24150a;
}
.ao-pages-item:hover { border-color: var(--ao-orange); color: var(--ao-glow); }
.ao-pages-item.is-on {
  background: linear-gradient(135deg, var(--ao-orange), var(--ao-deep));
  border-color: var(--ao-orange);
  color: #fff;
}

/* ---------- 详情页：双栏档案卡 ---------- */
.ao-arch {
  display: flex;
  gap: 22px;
  background: var(--ao-card);
  border: 1px solid var(--ao-line);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 18px;
  box-shadow: 0 12px 32px rgba(0,0,0,.4);
}
.ao-arch-poster {
  width: 180px;
  flex-shrink: 0;
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 10px;
  overflow: hidden;
  background: #24150a;
  box-shadow: 0 12px 26px rgba(0,0,0,.45);
}
.ao-arch-poster img { width: 100%; height: 100%; object-fit: cover; }
.ao-arch-flag {
  position: absolute;
  left: 6px;
  top: 6px;
  padding: 1px 8px;
  border-radius: 4px;
  background: rgba(224,90,26,.92);
  color: #fff;
  font-size: 11px;
}
.ao-arch-info { flex: 1; min-width: 0; display: block; }
.ao-arch-name {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 1px;
  color: #fff;
  margin-bottom: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ao-arch-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.ao-arch-tag {
  padding: 2px 12px;
  border: 1px solid rgba(255,184,119,.4);
  border-radius: 12px;
  font-size: 12px;
  color: var(--ao-glow);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
}
.ao-arch-score {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
}
.ao-arch-num { font-size: 32px; font-weight: 900; color: var(--ao-glow); }
.ao-arch-stars { color: var(--ao-glow); font-size: 14px; letter-spacing: 2px; }
.ao-arch-hits { font-size: 12px; color: var(--ao-sub); }
.ao-arch-plot {
  font-size: 13px;
  line-height: 1.7;
  color: #e8d7ba;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ao-arch-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--ao-ink);
}
.ao-arch-meta span { min-width: 0; }
.ao-arch-meta em { color: var(--ao-sub); margin-right: 4px; }
.ao-arch-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.ao-btn {
  padding: 9px 26px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--ao-orange), var(--ao-deep));
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 6px 16px rgba(224,90,26,.4);
}
.ao-btn:hover { filter: brightness(1.12); }
.ao-btn-ghost {
  padding: 9px 26px;
  border-radius: 8px;
  border: 1px solid rgba(255,184,119,.4);
  color: var(--ao-glow);
  font-size: 14px;
  font-weight: 600;
  background: rgba(255,255,255,.06);
}
.ao-btn-ghost:hover { border-color: var(--ao-orange); }

/* ---------- 播放器（16:9 全屏居中，仅播放页） ---------- */
.ao-player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0d0602;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 14px;
  border: 1px solid var(--ao-line);
}
@supports not (aspect-ratio: 16 / 9) {
  .ao-player { padding-top: 56.25%; }
}
.ao-player div,
.ao-player iframe,
.ao-player video,
.ao-player embed,
.ao-player object {
  width: 100% !important;
  height: 100% !important;
}
.ao-player-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ao-sub);
  font-size: 14px;
}

/* ---------- 当前集数工具条 ---------- */
.ao-now {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  background: var(--ao-card);
  border: 1px solid var(--ao-line);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 18px;
}
.ao-now-name {
  flex: 1;
  min-width: 0;
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ao-now-ep {
  padding: 2px 12px;
  border-radius: 4px;
  background: rgba(255,138,61,.16);
  color: var(--ao-glow);
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}
.ao-now-nav { display: flex; gap: 8px; flex-shrink: 0; }
.ao-now-btn {
  padding: 6px 16px;
  border: 1px solid var(--ao-line);
  border-radius: 8px;
  color: var(--ao-glow);
  font-size: 13px;
  background: transparent;
}
.ao-now-btn:hover { border-color: var(--ao-orange); background: rgba(255,138,61,.1); }

/* ---------- 选集 ---------- */
.ao-episodes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(74px, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}
.ao-ep {
  display: block;
  text-align: center;
  padding: 7px 4px;
  border: 1px solid var(--ao-line);
  border-radius: 6px;
  font-size: 13px;
  color: var(--ao-ink);
  background: #24150a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ao-ep:hover { border-color: var(--ao-orange); color: var(--ao-glow); }
.ao-ep.is-on {
  background: linear-gradient(135deg, var(--ao-orange), var(--ao-deep));
  border-color: var(--ao-orange);
  color: #fff;
}
.ao-ep-more { text-align: center; }
.ao-ep-morebtn {
  display: inline-block;
  padding: 6px 22px;
  border: 1px solid var(--ao-line);
  border-radius: 14px;
  font-size: 13px;
  color: var(--ao-glow);
  background: transparent;
  cursor: pointer;
}
.ao-ep-morebtn:hover { border-color: var(--ao-orange); }
.ao-ep-hidden { display: none; }
.ao-episodes-grid.is-expanded .ao-ep-hidden { display: block; }

/* ---------- 详情双列信息表 ---------- */
.ao-table {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 22px;
}
.ao-table dd {
  padding: 7px 0;
  border-bottom: 1px dashed var(--ao-line);
  font-size: 13px;
  color: var(--ao-ink);
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ao-table dd em { color: var(--ao-sub); margin-right: 4px; }
.ao-plot { margin-top: 10px; display: block; }
.ao-plot p {
  font-size: 13px;
  line-height: 1.8;
  color: var(--ao-ink);
  padding: 4px 0;
}
.ao-plot a { color: var(--ao-glow); }

/* ---------- 其他人还在搜 ---------- */
.ao-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ao-cloud a {
  display: inline-block;
  padding: 4px 14px;
  border: 1px solid var(--ao-line);
  border-radius: 14px;
  font-size: 13px;
  color: var(--ao-sub);
  background: #24150a;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ao-cloud a:hover { border-color: var(--ao-orange); color: var(--ao-glow); }

/* ---------- 常见问题 ---------- */
.ao-faq { display: block; }
.ao-faq-item { padding: 10px 0; border-bottom: 1px dashed var(--ao-line); }
.ao-faq-item:last-child { border-bottom: 0; }
.ao-faq-q {
  display: block;
  font-size: 14px;
  color: var(--ao-glow);
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ao-faq-a { font-size: 13px; color: var(--ao-sub); margin-top: 4px; }
.ao-faq-a a { color: var(--ao-glow); }

/* ---------- 评论 ---------- */
.ao-chat {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--ao-line);
  min-width: 0;
}
.ao-chat:last-child { border-bottom: 0; }
.ao-chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ao-orange), var(--ao-deep));
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  line-height: 36px;
  flex-shrink: 0;
}
.ao-chat-body { flex: 1; min-width: 0; }
.ao-chat-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.ao-chat-user {
  font-size: 13px;
  font-weight: 700;
  color: var(--ao-ink);
  max-width: 160px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ao-chat-badge {
  font-size: 11px;
  color: #fff;
  background: var(--ao-orange);
  padding: 0 6px;
  border-radius: 3px;
}
.ao-chat-stars { color: var(--ao-glow); font-size: 12px; }
.ao-dim { color: #5c3d22; }
.ao-chat-time { font-size: 11px; color: var(--ao-sub); }
.ao-chat-text { font-size: 13px; color: var(--ao-ink); }
.ao-chat-like {
  font-size: 12px;
  color: var(--ao-sub);
  flex-shrink: 0;
  align-self: center;
}

/* ---------- 热门标签 ---------- */
.ao-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ao-badges a {
  padding: 4px 14px;
  border: 1px solid var(--ao-line);
  border-radius: 14px;
  font-size: 13px;
  color: var(--ao-sub);
  background: #24150a;
}
.ao-badges a:hover { border-color: var(--ao-orange); color: var(--ao-glow); }

/* ---------- 站点公告 ---------- */
.ao-note {
  font-size: 13px;
  line-height: 1.8;
  color: var(--ao-sub);
}

/* ---------- 空态 ---------- */
.ao-empty {
  padding: 60px 0;
  text-align: center;
  color: var(--ao-sub);
  font-size: 14px;
}

/* ---------- 页脚 ---------- */
.ao-foot {
  background: linear-gradient(170deg, #2a1a0e, #170d06);
  border-top: 2px solid rgba(255,138,61,.4);
  color: var(--ao-ink);
  margin-top: 10px;
}
.ao-foot-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 20px 10px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 26px;
}
.ao-foot-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ao-glow);
  margin-bottom: 12px;
}
.ao-foot-title::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 14px;
  border-radius: 3px;
  margin-right: 8px;
  vertical-align: -2px;
  background: linear-gradient(180deg, var(--ao-glow), var(--ao-deep));
}
.ao-foot-desc {
  font-size: 13px;
  line-height: 1.8;
  color: var(--ao-sub);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ao-foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 13px;
  color: var(--ao-sub);
  align-items: center;
}
.ao-foot-links a:hover { color: var(--ao-glow); }
.ao-foot-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ao-foot-tags a {
  padding: 4px 14px;
  border: 1px solid rgba(255,138,61,.3);
  border-radius: 14px;
  font-size: 13px;
  color: var(--ao-glow);
}
.ao-foot-tags a:hover { background: rgba(255,138,61,.12); color: #fff; }
.ao-foot-copy {
  border-top: 1px solid var(--ao-line);
  padding: 16px 20px 20px;
  text-align: center;
  font-size: 12px;
  color: #8a6a48;
}
.ao-foot-copy p { margin: 2px 0; }
.ao-foot-copy a:hover { color: var(--ao-glow); }

/* ---------- 回到顶部 ---------- */
#aoTop {
  display: none;
  position: fixed;
  right: 24px;
  bottom: 40px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ao-orange), var(--ao-deep));
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0,0,0,.5);
  z-index: 99;
}
#aoTop:hover { filter: brightness(1.12); }

/* ---------- 组合/容器补充 ---------- */
.ao-lazy { background: #24150a; }
.ao-drawer-group { display: block; }
.ao-foot-col { min-width: 0; }

/* =========================================================
   自适应：平板 1024 / 手机 768 / 小屏 480
   ========================================================= */
@media (max-width: 1024px) {
  .ao-shell, .ao-head-in, .ao-ticker-in, .ao-foot-main { padding-left: 16px; padding-right: 16px; }
  .ao-grid { grid-template-columns: repeat(4, 1fr); }
  .ao-body { grid-template-columns: 1fr; }
  .ao-body-side { display: block; }
  .ao-sticky { position: static; }
  .ao-ranks { grid-template-columns: 1fr; gap: 0; }
  .ao-rank { margin-bottom: 18px; }
}

@media (max-width: 768px) {
  body { font-size: 13px; }
  .ao-head-in { padding: 8px 14px; gap: 10px; }
  .ao-brand { font-size: 18px; max-width: 150px; }
  .ao-brand-orb { width: 12px; height: 12px; }
  .ao-menu { display: none; }
  .ao-burger { display: flex; }
  .ao-find-input { width: 110px; }
  .ao-ticker-in { padding: 6px 14px; }
  .ao-shell { padding: 16px 14px 24px; }
  .ao-mod { padding: 12px; border-radius: 10px; }
  .ao-caro { border-radius: 10px; }
  .ao-caro-slide { height: 200px; }
  .ao-caro-copy { left: 16px; max-width: 74%; }
  .ao-caro-title { font-size: 18px; }
  .ao-caro-meta { margin-top: 6px; font-size: 12px; }
  .ao-caro-desc { display: none; }
  .ao-caro-arrow { width: 30px; height: 42px; font-size: 20px; }
  .ao-caro-dots { bottom: 8px; }
  .ao-caro-dot { width: 7px; height: 7px; }
  .ao-caro-dot.is-on { width: 18px; }
  .ao-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .ao-hotrail { gap: 10px; }
  .ao-hotrail-card { width: 108px; }
  .ao-hotrail-flag, .ao-hotrail-score { font-size: 10px; padding: 0 6px; }
  .ao-hotrail-name { font-size: 12px; }
  .ao-card-flag, .ao-card-score { font-size: 10px; padding: 0 6px; }
  .ao-card-hover { font-size: 12px; }
  .ao-card-name { font-size: 12px; }
  .ao-mod-title { font-size: 15px; }
  .ao-arch { flex-direction: row; gap: 14px; padding: 14px; align-items: flex-start; }
  .ao-arch-poster { width: 130px; }
  .ao-arch-name { font-size: 18px; }
  .ao-arch-num { font-size: 28px; }
  .ao-arch-plot { -webkit-line-clamp: 2; }
  .ao-table { grid-template-columns: 1fr; }
  .ao-now { padding: 10px 12px; gap: 8px; }
  .ao-now-name { font-size: 15px; }
  .ao-sift { padding: 4px 12px; min-width: 0; }
  .ao-sift-row { flex-direction: column; gap: 8px; padding: 9px 0; width: 100%; min-width: 0; }
  .ao-sift-key { width: auto; padding-top: 0; }
  .ao-sift-scroll { width: 100%; max-width: 100%; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 2px; }
  .ao-episodes-grid { grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 6px; }
  .ao-foot-main { grid-template-columns: 1fr 1fr; gap: 18px; padding: 24px 16px 6px; }
}

@media (max-width: 480px) {
  .ao-brand { font-size: 16px; max-width: 130px; }
  .ao-find-input { width: 86px; padding: 8px 10px; }
  .ao-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .ao-pages-item { padding: 5px 10px; font-size: 12px; }
  .ao-rank-pic { width: 40px; }
  .ao-foot-main { grid-template-columns: 1fr; }
  #aoTop { right: 14px; bottom: 26px; width: 40px; height: 40px; }
}

/* 兜底组合类 */
.ao-foot-about{min-width:0;}
