/* 关注的人开播提示（ADR-0220）：大舞台「关注」栏最上面一排头像和「关注」旁边的小红点、作者页的「开播提醒」，
   友趣底下好友栏的红圈和屋里上方滑出的那一条，直播间主播信息里的开关。
   stage.css、stageview.js 和原型一字不差不改它们，新加的样子都在这里；红色和舞台头像的红圈同一个 #d64541 */

/* ---------- 大舞台 ---------- */

/* 「关注」两个字右上角一个小红点（不写数字，和右上头像的红点一样，ADR-0217）；按钮宽度不变，点挂在字的右边 */
#following-tab {
  position: relative;
}

.lp-tabdot {
  position: absolute;
  top: 9px;
  left: calc(50% + 17px);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d64541;
  box-shadow: 0 0 0 1.5px var(--sv-bg, #fff);
  pointer-events: none;
}

/* 「关注」栏最上面一排：关注的人正在播的，头像外一圈红、上面「直播中」，横着滑 */
.lp-row {
  display: flex;
  gap: 14px;
  margin: 2px 0 8px;
  padding: 8px 12px 6px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.lp-row::-webkit-scrollbar {
  display: none;
}

.lp-row[hidden] {
  display: none;
}

.lp-pal {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 62px;
  color: var(--sv-ink, #1f1d1a);
  text-decoration: none;
}

.lp-face {
  position: relative;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 2px solid #d64541;
  border-radius: 50%;
}

.lp-face .head {
  --size: 50px;
}

.lp-face .head.air {
  box-shadow: none;
}

.lp-tag {
  position: absolute;
  bottom: -7px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0 5px;
  border-radius: 6px;
  background: #d64541;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  line-height: 15px;
  white-space: nowrap;
  pointer-events: none;
}

.lp-name {
  max-width: 100%;
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 作者页、直播间主播信息里的「开播提醒」：一行，左边字、右边开关 */
.lp-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 10px 10px;
  padding: 9px 12px;
  border-radius: 12px;
  background: var(--sv-chip, #f3efe6);
  color: var(--sv-ink, #1f1d1a);
  font-size: 15px;
  cursor: pointer;
}

.lp-alert[hidden] {
  display: none;
}

/* 直播间主播信息是底部弹层，左右已经留了空；弹层里 label、input 原来的样子（ui.css）不要套上来 */
.sheet-card label.lp-alert {
  display: flex;
  gap: 10px;
  margin: 0 0 12px;
  font-size: 15px;
}

.sheet-card .lp-alert input.lp-switch {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 13px;
  background: #c9c3b8;
}

.sheet-card .lp-alert input.lp-switch:checked {
  background: #d64541;
}

.lp-alert span {
  flex: 1;
  min-width: 0;
}

.lp-alert b {
  font-weight: 600;
}

.lp-alert small {
  display: block;
  margin-top: 2px;
  color: var(--sv-muted, #857f75);
  font-size: 12px;
  line-height: 1.4;
}

/* 开关：原生的勾选框换成一个小滑块，读屏照旧念「勾选、没勾选」 */
.lp-switch {
  position: relative;
  flex: none;
  width: 44px;
  height: 26px;
  margin: 0;
  border-radius: 13px;
  background: #c9c3b8;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.lp-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

.lp-switch:checked {
  background: #d64541;
}

.lp-switch:checked::after {
  transform: translateX(18px);
}

/* ---------- 友趣（我的家） ---------- */

/* 底下好友栏里正在直播的好友：头像外一圈红、上面「直播中」，点了进直播间 */
.pal.on-air .face {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #d64541;
}

.pal .lp-airtag {
  position: absolute;
  top: 36px;
  left: 50%;
  z-index: 1;
  transform: translateX(-50%);
  padding: 0 5px;
  border-radius: 6px;
  background: #d64541;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  line-height: 15px;
  white-space: nowrap;
  pointer-events: none;
}

/* 关注的人刚开播：屋里上方轻轻滑出一条，几秒后收起 */
.lp-banner {
  position: fixed;
  top: calc(10px + env(safe-area-inset-top));
  left: 50%;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(calc(100% - 24px), 400px);
  padding: 8px 10px 8px 8px;
  border-radius: 16px;
  background: rgba(255, 252, 247, 0.97);
  box-shadow: 0 8px 28px rgba(120, 80, 40, 0.18);
  color: var(--ink, #1f1d1a);
  font: inherit;
  font-size: 14px;
  text-align: left;
  text-decoration: none;
  transform: translate(-50%, calc(-100% - 24px));
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
  backdrop-filter: blur(10px);
}

.lp-banner.in {
  transform: translate(-50%, 0);
}

.lp-banner .face {
  --size: 34px;
  box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px #d64541;
}

.lp-banner-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lp-banner-go {
  flex: none;
  color: #d64541;
  font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
  .lp-banner,
  .lp-switch,
  .lp-switch::after {
    transition: none;
  }
}
