﻿/* ============ components.css 鈥?娴锋姤鍗＄墖 / 妯悜鎺?/ 杞挱 / 寮圭獥 ============ */

/* ---------- 娴锋姤鍗＄墖 ---------- */
.poster-card {
  width: var(--poster-w); flex: none; cursor: pointer;
  border-radius: var(--radius-sm); overflow: hidden;
  background: var(--surface); box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}
.poster-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.poster-card .thumb {
  position: relative; width: 100%; aspect-ratio: 2/3; background: var(--placeholder);
  overflow: hidden;
}
.poster-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.poster-card .thumb .ph {
  width: 100%; height: 100%; display: grid; place-items: center;
  color: #aab0b8; font-size: 12px; padding: 10px; text-align: center; line-height: 1.4;
}
.poster-card .thumb .type-tag {
  position: absolute; left: 6px; top: 6px;
  background: rgba(0,0,0,.72); color: #fff; font-size: 11px;
  padding: 2px 7px; border-radius: 4px;
}
.poster-card .thumb .rating {
  position: absolute; right: 6px; bottom: 6px;
  background: rgba(0,0,0,.66); color: #ffd24a; font-size: 11px; font-weight: 700;
  padding: 2px 6px; border-radius: 4px;
}
/* 瑙傜湅杩涘害鏉★紙缁х画瑙傜湅 / 鎾埌涓€鍗婄殑鏉＄洰锛?*/
.poster-card .thumb .resume-bar {
  position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: rgba(0,0,0,.55); pointer-events: none;
}
.poster-card .thumb .resume-bar i {
  display: block; height: 100%; background: var(--accent);
  box-shadow: 0 0 6px rgba(230,0,18,.8);
}

/* 瑙傜湅鏁拌鏍囷細娴锋姤宸︿笅瑙?*/
.poster-card .thumb .views-badge {
  position: absolute; left: 6px; bottom: 6px;
  background: rgba(0,0,0,.72); color: #fff; font-size: 11px; font-weight: 600;
  padding: 2px 6px; border-radius: 4px; line-height: 1.35;
  font-variant-numeric: tabular-nums; pointer-events: none;
}
.poster-card .meta { padding: 8px 10px 10px; }
.poster-card .meta .title {
  font-size: 13px; font-weight: 600; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 35px;
}
.poster-card .meta .sub { font-size: 12px; color: var(--text-2); margin-top: 3px; }

/* ---------- 妯悜娴锋姤鎺?(shelf) ---------- */
.shelf { margin-bottom: 26px; }
.shelf .shelf-head {
  display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px;
}
.shelf .shelf-title { font-size: 17px; font-weight: 700; }
.shelf .shelf-more { font-size: 13px; color: var(--text-2); cursor: pointer; }
.shelf .shelf-more:hover { color: var(--accent); }
.shelf .shelf-track {
  display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 10px;
  scroll-snap-type: x mandatory; scrollbar-width: thin;
}
.shelf .shelf-track > * { scroll-snap-align: start; }

/* ---------- 杞挱 (carousel) ---------- */
.carousel {
  position: relative; height: 420px; border-radius: var(--radius); overflow: hidden;
  margin-bottom: 30px; background: #0f1115;
}
.carousel .slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; cursor: pointer;
  pointer-events: none;
}
.carousel .slide.active { opacity: 1; pointer-events: auto; }
.carousel .slide img { width: 100%; height: 100%; object-fit: cover; }
.carousel .slide .shade {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.82) 0%, rgba(0,0,0,.35) 45%, rgba(0,0,0,.08) 70%, rgba(0,0,0,.25) 100%);
}
.carousel .slide .info {
  position: absolute; left: 40px; bottom: 42px; max-width: 560px; color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,.5);
}
.carousel .slide .info .tag { font-size: 12px; letter-spacing: 2px; color: #ffd24a; margin-bottom: 8px; }
.carousel .slide .info h2 { margin: 0 0 10px; font-size: 30px; line-height: 1.2; }
.carousel .slide .info .ov {
  font-size: 14px; line-height: 1.6; color: #e9eaec;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.carousel .slide .info .meta { margin-top: 12px; font-size: 13px; color: #c9ccd1; }
.carousel .dots { position: absolute; right: 24px; bottom: 20px; display: flex; gap: 8px; z-index: 5; }
.carousel .dots span {
  width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.4); cursor: pointer;
  transition: all .2s;
}
.carousel .dots span.active { background: #fff; width: 22px; border-radius: 4px; }
.carousel .arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 40px; height: 40px; border-radius: 50%; background: rgba(0,0,0,.45); color: #fff;
  display: grid; place-items: center; font-size: 20px; opacity: 0; transition: opacity .2s;
}
.carousel:hover .arrow { opacity: 1; }
.carousel .arrow:hover { background: rgba(0,0,0,.7); }
.carousel .arrow.left { left: 16px; }
.carousel .arrow.right { right: 16px; }

/* ---------- 濯掍綋搴撳崱鐗?/ 缃戞牸 ---------- */
.view-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.view-card {
  display: flex; align-items: center; gap: 14px; padding: 16px;
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
  cursor: pointer; transition: transform .15s, box-shadow .15s;
}
.view-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.view-card .vc-icon {
  width: 54px; height: 54px; border-radius: 12px; flex: none;
  background: #12141a; color: #fff; display: grid; place-items: center;
  font-size: 22px; font-weight: 800;
}
.view-card .vc-body { min-width: 0; }
.view-card .vc-name { font-weight: 700; font-size: 15px; }
.view-card .vc-type { font-size: 12px; color: var(--text-2); margin-top: 2px; }

.poster-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
}
.poster-grid .poster-card { width: 100%; }

/* ---------- 寮圭獥 (modal) ---------- */
#modal-root:empty { display: none; }
.modal-mask {
  position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,.5);
  display: grid; place-items: center; padding: 20px;
}
.modal {
  background: var(--surface); border-radius: var(--radius); width: 100%; max-width: 380px;
  box-shadow: var(--shadow-lg); padding: 26px 24px; animation: pop .18s ease;
}
@keyframes pop { from { transform: scale(.96); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal h3 { margin: 0 0 6px; font-size: 18px; }
.modal .modal-sub { font-size: 13px; color: var(--text-2); margin-bottom: 18px; }
.modal .field { margin-bottom: 14px; }
.modal .field label { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 6px; }
.modal .field input {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 14px; outline: none; background: var(--surface-2);
}
.modal .field input:focus { border-color: #b8bec6; background: #fff; }
.modal .err { color: var(--accent); font-size: 13px; margin-bottom: 10px; min-height: 18px; }
.modal .quick { margin-top: 16px; border-top: 1px solid var(--border); padding-top: 14px; }
.modal .quick .q-title { font-size: 12px; color: var(--text-2); margin-bottom: 8px; }
.modal .quick .q-users { display: flex; flex-wrap: wrap; gap: 8px; }
.modal .quick .q-user {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px;
  border: 1px solid var(--border); border-radius: 999px; font-size: 13px;
  background: var(--surface-2); transition: all .15s;
}
.modal .quick .q-user:hover { border-color: #c3c8cf; background: #fff; }
.modal .quick .q-user .free { font-size: 11px; color: #188038; font-weight: 700; }

/* ---------- 鎻愮ず toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 34px; transform: translateX(-50%); z-index: 2000;
  background: rgba(20,22,26,.92); color: #fff; padding: 10px 18px; border-radius: 8px;
  font-size: 14px; box-shadow: var(--shadow-lg); animation: toastIn .2s ease;
}
@keyframes toastIn { from { transform: translate(-50%, 12px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }

/* ---------- 绉诲姩绔?---------- */
@media (max-width: 640px) {
  .carousel { height: 200px; margin-bottom: 18px; }
  .carousel .slide .info { left: 14px; bottom: 18px; max-width: 86%; }
  .carousel .slide .info h2 { font-size: 19px; margin-bottom: 6px; }
  .carousel .slide .info .ov { -webkit-line-clamp: 2; font-size: 13px; }
  .carousel .arrow { width: 32px; height: 32px; font-size: 16px; }
  .page { padding: 12px 14px 40px; }
  .poster-grid { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 12px; }
  :root { --poster-w: 130px; --thumb-w: 220px; }
  .shelf .shelf-track { gap: 10px; }
}

/* ---------- 妯増鍗＄墖锛堢户缁鐪?/ 鏈€杩戣鐪嬶級 ----------
   鐢?16:9 缂╃暐鍥句唬鏇?2:3 绔栫増娴锋姤锛氬墽闆嗘埅鍥剧殑鏋勫浘鏇撮€傚悎銆岀湅浜嗕竴鍗娿€嶇殑鍦烘櫙锛?   鍗＄墖涔熸洿瀹斤紝涓€灞忚兘鐪嬪埌鏇村淇℃伅銆佽繘搴︽潯鏇村ソ璁ゃ€?*/
.poster-card.landscape { width: var(--thumb-w, 260px); }
.poster-card.landscape .thumb { aspect-ratio: 16 / 9; background: var(--placeholder-2); }
.poster-card.landscape .thumb img { object-fit: cover; }
.poster-card.landscape .meta { padding: 8px 10px 10px; }
.poster-card.landscape .meta .title { font-size: 13px; }
/* 杩涘害鏉″湪妯増涓婃洿鏄庢樉涓€鐐?*/
.poster-card.landscape .resume-bar { height: 5px; }

/* ---------- 骨架屏（首屏秒出，内容一块块填） ---------- */
@keyframes sk-shimmer { 0% { background-position: -300px 0; } 100% { background-position: 300px 0; } }
.skeleton {
  background: var(--skeleton);
  background-image: linear-gradient(90deg, var(--skeleton) 0%, var(--skeleton-hi) 40%, var(--skeleton) 80%);
  background-size: 300px 100%;
  background-repeat: no-repeat;
  animation: sk-shimmer 1.15s linear infinite;
}
@media (prefers-reduced-motion: reduce) { .skeleton { animation: none; } }

.sk-hero { width: 100%; aspect-ratio: 21 / 9; border-radius: var(--radius); margin-bottom: 18px; }
.sk-line { display: block; border-radius: 6px; }
.sk-card { width: var(--poster-w); flex: none; aspect-ratio: 2 / 3; border-radius: var(--radius-sm); }
.shelf-track .sk-card { scroll-snap-align: start; }
/* 媒体库骨架排：和真卡片同宽，替换时不会跳 */
.portal-shelves { display: block; }

/* 单集角标 S1E1：用强调色，跟笼统的「剧集」标签区分开 */
.poster-card .thumb .type-tag.ep { background: rgba(230,0,18,.88); font-variant-numeric: tabular-nums; }
/* 横版卡片副标题（单集名）允许单行省略，别把卡片撑高 */
.poster-card.landscape .meta .sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.poster-card.landscape .meta .title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- 轮播：更新日期红色胶囊 ---------- */
.carousel .slide .update-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: #e11d2e; color: #fff;
  font-size: 12px; font-weight: 700; letter-spacing: .3px;
  padding: 4px 12px; border-radius: 999px; margin-bottom: 10px;
  box-shadow: 0 2px 10px rgba(225,29,46,.45);
  animation: pill-pulse 2.4s ease-in-out infinite;
}
.carousel .slide .update-pill.old {
  background: rgba(255,255,255,.16); color: #e8eaee;
  box-shadow: none; animation: none; font-weight: 600;
}
@keyframes pill-pulse {
  0%, 100% { box-shadow: 0 2px 10px rgba(225,29,46,.45); }
  50%      { box-shadow: 0 2px 18px rgba(225,29,46,.85); }
}
@media (prefers-reduced-motion: reduce) { .carousel .slide .update-pill { animation: none; } }

/* 轮播上方的标题：在「最新更新 / 统计数据」之间切换 */
.portal-hero-label { transition: color .2s; }
.portal-hero-label.is-stats { color: #ffd24a; }

/* 纯 DOM 幻灯片（统计页）铺满整页 */
.carousel .slide.node-slide { padding: 0; }

/* ---------- 轮播：服务器统计页 ---------- */
.stat-slide { position: relative; width: 100%; height: 100%; overflow: hidden; }
.stat-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(900px 420px at 12% 0%, rgba(230,0,18,.55), transparent 62%),
    radial-gradient(700px 380px at 92% 100%, rgba(255,210,74,.28), transparent 60%),
    linear-gradient(120deg, #10131a 0%, #1b2030 45%, #0d1016 100%);
}
.stat-bg::after {
  content: ''; position: absolute; inset: 0; opacity: .25;
  background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 34px 34px;
}
.stat-inner {
  position: relative; height: 100%; display: flex; flex-direction: column; justify-content: center;
  padding: 22px 32px; color: #fff;
}
.stat-kicker { font-size: 11px; letter-spacing: 3px; color: #ffd24a; margin-bottom: 4px; }
.stat-inner h2 { margin: 0 0 16px; font-size: 26px; font-weight: 800; letter-spacing: 1px; }
.stat-row { display: flex; gap: 34px; flex-wrap: wrap; }
.stat-cell { min-width: 92px; }
.stat-num {
  font-size: 30px; font-weight: 800; line-height: 1.1;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff, #b9c6da);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.stat-cell:nth-child(1) .stat-num { background: linear-gradient(180deg,#fff,#ff9aa4); -webkit-background-clip: text; background-clip: text; }
.stat-cell:nth-child(2) .stat-num { background: linear-gradient(180deg,#fff,#9ad6a6); -webkit-background-clip: text; background-clip: text; }
.stat-cell:nth-child(3) .stat-num { background: linear-gradient(180deg,#fff,#ffd98a); -webkit-background-clip: text; background-clip: text; }
.stat-label { margin-top: 5px; font-size: 12px; color: #98a1b0; letter-spacing: .5px; }
.stat-foot { margin-top: 16px; font-size: 12px; color: #7d8798; }

/* ---------- 新番更新表 ---------- */
.sked { margin: 22px 0 26px; }
.sked-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.sked-head h3 { margin: 0; font-size: 17px; font-weight: 700; }
.sked-hint { font-size: 12px; color: #9aa0a8; }
.sked-track {
  display: flex; gap: 10px; overflow-x: auto; padding-bottom: 8px;
  scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch;
}
.sked-track::-webkit-scrollbar { height: 6px; }
.sked-track::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.sked-col {
  flex: 1 0 128px; min-width: 128px; scroll-snap-align: start;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 10px 8px;
}
.sked-col.today { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.sked-day {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 13px; font-weight: 700; color: var(--text-2, #6b7280);
  padding-bottom: 8px; margin-bottom: 8px; border-bottom: 1px solid var(--border);
}
.sked-col.today .sked-day { color: var(--accent); }
.sked-day em {
  font-style: normal; font-size: 10px; font-weight: 700;
  background: var(--accent); color: #fff; padding: 1px 6px; border-radius: 999px;
}
.sked-list { display: flex; flex-direction: column; gap: 10px; align-items: center; }
.sked-none { color: #c8ccd2; font-size: 13px; padding: 8px 0; }

.sked-item {
  width: 100%; display: flex; flex-direction: column; align-items: center; gap: 6px;
  background: transparent; border: 0; padding: 0; cursor: pointer;
}
.sked-ava {
  width: 58px; height: 58px; border-radius: 50%; overflow: hidden; flex: none;
  background: var(--placeholder); display: grid; place-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
  transition: transform .16s, box-shadow .16s;
}
.sked-item:hover .sked-ava { transform: scale(1.07); box-shadow: 0 4px 14px rgba(230,0,18,.32); }
.sked-ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sked-ph { font-size: 15px; font-weight: 800; color: #fff; width: 100%; height: 100%; display: grid; place-items: center; background: var(--accent); }
.sked-name {
  font-size: 11.5px; line-height: 1.3; text-align: center; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  max-width: 100%; word-break: break-word;
}
.sked-item:hover .sked-name { color: var(--accent); }

@media (max-width: 640px) {
  .carousel .slide .update-pill { font-size: 11px; padding: 3px 9px; margin-bottom: 7px; }
  .stat-inner { padding: 16px 18px; }
  .stat-inner h2 { font-size: 19px; margin-bottom: 12px; }
  .stat-row { gap: 20px; }
  .stat-num { font-size: 21px; }
  .stat-label { font-size: 11px; }
  .stat-foot { margin-top: 10px; font-size: 11px; }
  .sked-col { flex: 0 0 112px; min-width: 112px; }
  .sked-ava { width: 50px; height: 50px; }
  .sked { margin: 16px 0 20px; }
}

/* ---------- Cloudflare 人机验证浮层 ---------- */
.cf-mask {
  position: fixed; inset: 0; z-index: 100000;
  background: rgba(8,10,14,.72); backdrop-filter: blur(3px);
  display: grid; place-items: center; padding: 16px;
  animation: cf-in .18s ease-out;
}
@keyframes cf-in { from { opacity: 0 } to { opacity: 1 } }
.cf-box {
  width: 100%; max-width: 440px; max-height: 88vh; display: flex; flex-direction: column;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5); overflow: hidden;
}
.cf-head { display: flex; gap: 12px; padding: 16px 18px 12px; align-items: flex-start; }
.cf-ico { font-size: 24px; line-height: 1; }
.cf-title { font-size: 16px; font-weight: 700; }
.cf-sub { margin-top: 3px; font-size: 12.5px; color: var(--text-2); line-height: 1.5; }
.cf-body { flex: 1; min-height: 300px; padding: 0 18px; display: flex; flex-direction: column; gap: 8px; }
.cf-frame {
  flex: 1; width: 100%; min-height: 260px; border: 1px solid var(--border);
  border-radius: 10px; background: #fff;
}
.cf-hint { font-size: 12px; color: var(--text-2); text-align: center; }
.cf-foot {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 12px 18px 16px;
}
.cf-status { flex: 1; min-width: 120px; font-size: 12.5px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.cf-jump, .cf-cancel {
  padding: 7px 13px; border-radius: 8px; font-size: 12.5px; cursor: pointer; white-space: nowrap;
}
.cf-jump { background: var(--accent); color: #fff; font-weight: 600; }
.cf-jump:hover { background: var(--accent-hover); }
.cf-cancel { background: transparent; color: var(--text-2); border: 1px solid var(--border); }
.cf-cancel:hover { color: var(--text); }
@media (max-width: 640px) {
  .cf-box { max-height: 92vh; }
  .cf-body { min-height: 240px; padding: 0 12px; }
  .cf-frame { min-height: 210px; }
  .cf-foot { padding: 10px 12px 14px; }
  .cf-jump, .cf-cancel { padding: 6px 10px; font-size: 12px; }
}

/* ================= 轮播左侧 CRT 竖条滚动栏 =================
   纯深色底 + 实心黑色细横条，没有任何渐变元素。
   文字一字一行，从下往上无缝循环。 */
.carousel.has-ticker .slide .info,
.carousel.has-ticker .stat-inner { padding-left: 92px; }
.carousel.has-ticker .slide.ad-slide .ad-foot { padding-left: 92px; }
.carousel.has-ticker .carousel-dots,
.carousel.has-ticker .dots { padding-left: 84px; }

.crt-ticker {
  position: absolute; left: 0; top: 0; bottom: 0; width: 78px; z-index: 7;
  overflow: hidden;
  background: #030407;                       /* 纯深色，无渐变 */
  border-right: 2px solid #000;
  /* 日文明朝体（明朝体 = 宋体类衬线）；想换黑体把下面这行改成 --crt-font-gothic */
  font-family: "Yu Mincho","YuMincho","Hiragino Mincho ProN","Hiragino Mincho Pro","MS Mincho","ＭＳ 明朝","Songti SC","STSong","SimSun","Noto Serif JP","Source Han Serif SC",serif;
  --crt-dur: 20s;
}
/* 滚动轨道：两份完全相同的内容首尾相接 */
.crt-ticker .crt-track {
  position: absolute; left: 0; right: 0; top: 0; z-index: 1;
  will-change: transform;
}
.crt-ticker.ready .crt-track { animation: crt-up var(--crt-dur) linear infinite; }
/* 向上滚一份内容，正好接上第二份 → 无缝 */
@keyframes crt-up {
  from { transform: translateY(0); }
  to   { transform: translateY(-50%); }
}
.crt-ticker .crt-seq { display: block; }
.crt-ticker .crt-ch {
  display: block; text-align: center;
  height: var(--crt-row, 26px); line-height: var(--crt-row, 26px);
  color: #f4f8ff; font-size: var(--crt-fs, 15px);
  font-weight: var(--crt-weight, 600); font-style: normal;
  letter-spacing: 0;
  /* 明朝体笔画细，辉光要重一点才像老式显像管 */
  text-shadow: 0 0 3px rgba(210,235,255,1), 0 0 9px rgba(150,200,255,.75), 0 0 18px rgba(110,170,255,.4);
}
/* 实心黑色细横条（DOM 元素，不是渐变） */
.crt-ticker .crt-bars {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  display: flex; flex-direction: column; justify-content: space-between;
}
.crt-ticker .crt-bar {
  display: block; height: 2px; flex: none;
  background: #000;
}
.crt-ticker .crt-bar:nth-child(3n) { height: 3px; }   /* 偶尔粗一点，更像老显像管 */

/* ================= 轮播里的广告页 ================= */
.carousel .slide.ad-slide { cursor: pointer; }
.carousel .slide.ad-slide .ad-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; background: #000; display: block;
}
.carousel .slide.ad-slide .ad-shade {
  position: absolute; inset: 0; pointer-events: none;
  background: rgba(0,0,0,.42);
}
.carousel .slide.ad-slide .ad-foot {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 24px 20px;
  color: #fff; pointer-events: none;
}
.carousel .slide.ad-slide .ad-title {
  font-size: 24px; font-weight: 800; line-height: 1.25;
  text-shadow: 0 2px 10px rgba(0,0,0,.95);
}
.carousel .slide.ad-slide .ad-hint {
  margin-top: 7px; font-size: 12.5px; color: #cfd6e2;
  text-shadow: 0 1px 6px rgba(0,0,0,.95);
}
.carousel .slide.ad-slide.sound-on .ad-hint { color: #7ee0a1; }
.carousel .slide.ad-slide.failed .ad-hint { color: #ff9a6a; font-weight: 600; }
.carousel .slide.ad-slide .ad-bar {
  position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.2);
}
.carousel .slide.ad-slide .ad-bar i {
  display: block; height: 100%; width: 0; background: var(--accent);
}
.carousel .slide.ad-slide .ad-tag {
  position: absolute; right: 10px; top: 10px; z-index: 4;
  background: #000; color: #ffd24a;
  font-size: 10px; font-weight: 800; letter-spacing: 1px;
  padding: 2px 7px; border: 1px solid rgba(255,210,74,.5);
}
.portal-hero-label.is-ad { color: #ffd24a; }

/* 手机：滚动栏窄一点 */
@media (max-width: 640px) {
  .crt-ticker { width: 54px; }
  .carousel.has-ticker .slide .info,
  .carousel.has-ticker .stat-inner,
  .carousel.has-ticker .slide.ad-slide .ad-foot { padding-left: 64px; }
  .crt-ticker .crt-ch { height: 21px; line-height: 21px; font-size: 13px; }
  .carousel .slide.ad-slide .ad-title { font-size: 17px; }
  .carousel .slide.ad-slide .ad-foot { padding: 12px 14px 16px; }
  .carousel .slide.ad-slide .ad-tag { right: 6px; top: 6px; }
}

/* 广告关闭按钮 */
.carousel .slide.ad-slide .ad-close {
  position: absolute; right: 10px; top: 34px; z-index: 6;
  width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.45);
  background: rgba(0,0,0,.6); color: #fff;
  font-size: 13px; line-height: 1; cursor: pointer;
  display: grid; place-items: center;
  transition: background .15s, transform .15s;
}
.carousel .slide.ad-slide .ad-close:hover { background: rgba(0,0,0,.9); transform: scale(1.08); }
.carousel .slide.ad-slide .ad-close:active { transform: scale(.95); }
@media (max-width: 640px) {
  .carousel .slide.ad-slide .ad-close { right: 6px; top: 28px; width: 24px; height: 24px; font-size: 12px; }
}

/* 移动端滑动切换时的反馈 */
.carousel.swiping { cursor: grabbing; }
.carousel.swiping .slide.active { transition: none; }
.carousel.swiping .arrow { opacity: 0; }
/* 提示可以滑动（只在触摸设备上） */
@media (hover: none) and (pointer: coarse) {
  .carousel .arrow { opacity: .5; }
}
