/* 灵动岛：按第二张参考图还原成更大的黑色胶囊 */
.island[data-v-d6268c83] {
  top: calc(12px + env(safe-area-inset-top, 0px)) !important;
  background: linear-gradient(180deg, #252527 0%, #141416 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.30),
    0 2px 8px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}

.island[data-v-d6268c83]:not(.expanded) {
  width: clamp(172px, 48vw, 240px) !important;
  height: 44px !important;
  border-radius: 22px !important;
}

.island[data-v-d6268c83].expanded {
  width: min(300px, calc(100vw - 24px)) !important;
  border-radius: 20px !important;
}

.pill-view[data-v-d6268c83] {
  padding: 0 7px 0 6px !important;
}

.pill-cover[data-v-d6268c83] {
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12) !important;
  background: #fff !important;
  overflow: hidden !important;
}

.pill-cover[data-v-d6268c83] img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 50% !important;
}

.pill-title[data-v-d6268c83] {
  margin: 0 9px !important;
  font-size: 14px !important;
  font-weight: 650 !important;
  letter-spacing: 0.1px !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.32) !important;
}

.pill-play[data-v-d6268c83] {
  width: 28px !important;
  height: 28px !important;
  background: #353538 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}

.pill-play[data-v-d6268c83] svg {
  width: 12px !important;
  height: 12px !important;
}

.card-cover[data-v-d6268c83] {
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
}

/* v10：直接使用原版 GIF，圆形裁切成球，不做抠图 */
.sr-avatar-ball {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 990;
  width: clamp(44px, 9vw, 50px);
  height: clamp(44px, 9vw, 50px);
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 50%;
  background-color: #fff;
  background-image: url("/cover1.gif");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  box-shadow: 0 5px 14px rgba(35, 74, 126, 0.20);
  overflow: hidden;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, 0, 0);
  will-change: transform;
  transition: opacity 0.2s ease, filter 0.18s ease;
}

.sr-avatar-ball.is-ready {
  opacity: 1;
  visibility: visible;
}

.sr-avatar-ball:active {
  cursor: grabbing;
}

.sr-avatar-ball.playing,
.sr-avatar-ball.switching {
  box-shadow: none;
}

.sr-avatar-ball.switching {
  filter: brightness(1.08) saturate(1.05);
}

@media (max-width: 360px) {
  .sr-avatar-ball {
    width: clamp(40px, 10vw, 46px);
    height: clamp(40px, 10vw, 46px);
  }
}


/* 手机端通用收口：所有功能卡片/表格不得横向顶出屏幕 */
@media (max-width: 768px) {
  html, body, #app {
    max-width: 100% !important;
    overflow-x: hidden !important;
  }
  .m-content, .function-center, .fc-group, .fc-grid, .fc-cell,
  .page-header, .ant-card, .ant-card-body, .ant-row, .ant-col,
  .ant-form, .ant-form-item, .ant-table-wrapper, .ant-table-container {
    box-sizing: border-box !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
  .fc-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
  .fc-cell {
    overflow: hidden !important;
    min-width: 0 !important;
  }
  .fc-cell .fc-name, .fc-cell .fc-label, .fc-cell .fc-title,
  .fc-cell > span, .fc-cell > div > span {
    display: block !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }
  .function-center {
    padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px)) !important;
  }
  .ant-table-wrapper, .ant-table-container {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }
  .ant-table {
    min-width: 620px;
  }
  .page-header h2, .page-header .sub {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
@media (max-width: 360px) {
  .fc-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}
