/* ================================================================
   乐诗园 · 高品质全局音频播放栏
   ================================================================ */

/* ---- 底部播放栏容器 ---- */
.ap-bar-wrap {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  display: none; /* 默认隐藏，播放时才显示 */
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease;
  font-family: 'Inter', 'Noto Serif SC', sans-serif;
}

/* ---- 内部布局 ---- */
.ap-bar-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 8px 24px;
  min-height: 68px;
}

/* ==================== 左侧：封面+信息 ==================== */
.ap-info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 180px;
  max-width: 260px;
  cursor: pointer;
  flex-shrink: 0;
  padding: 4px;
  border-radius: 10px;
  transition: background 0.2s;
}
.ap-info:hover {
  background: rgba(0, 0, 0, 0.03);
}

.ap-cover {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s;
}
.ap-info:hover .ap-cover {
  transform: scale(1.05);
}

.ap-meta {
  min-width: 0;
  overflow: hidden;
}

.ap-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: #2B3A67;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.ap-subtitle {
  font-size: 0.75rem;
  color: #888;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

/* ==================== 中间：控制+进度 ==================== */
.ap-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.ap-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* 通用按钮 */
.ap-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: #666;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: all 0.2s;
}
.ap-btn:hover {
  background: rgba(0, 0, 0, 0.06);
  color: #333;
}
.ap-btn:active {
  transform: scale(0.92);
}

/* 播放/暂停按钮 */
.ap-btn-play {
  width: 40px;
  height: 40px;
  border: none;
  background: var(--color-primary, #2B3A67);
  color: #fff;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: all 0.2s;
  box-shadow: 0 2px 10px rgba(43, 58, 103, 0.3);
}
.ap-btn-play:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 16px rgba(43, 58, 103, 0.4);
}
.ap-btn-play:active {
  transform: scale(0.95);
}

/* ---- 进度条 ---- */
.ap-progress-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 500px;
}

.ap-time {
  font-size: 0.7rem;
  color: #999;
  font-family: 'Inter', monospace;
  min-width: 36px;
  text-align: center;
  user-select: none;
}

.ap-progress {
  flex: 1;
  height: 24px;
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
}
.ap-progress-bg {
  position: absolute;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.08);
  transition: height 0.2s;
}
.ap-progress:hover .ap-progress-bg,
.ap-progress:active .ap-progress-bg {
  height: 6px;
}

.ap-progress-fill {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, #2B3A67, #8B1E3A);
  transition: height 0.2s;
  pointer-events: none;
}
.ap-progress:hover .ap-progress-fill,
.ap-progress:active .ap-progress-fill {
  height: 6px;
}

.ap-progress-thumb {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #8B1E3A;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
}
.ap-progress:hover .ap-progress-thumb,
.ap-progress:active .ap-progress-thumb {
  opacity: 1;
}

/* ==================== 频谱可视化 ==================== */
.ap-visual {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  height: 36px;
  flex-shrink: 0;
  padding: 0 8px;
}

.ap-bar {
  width: 3px;
  min-height: 3px;
  border-radius: 1.5px;
  background: linear-gradient(to top, #8B1E3A, #C84B31);
  transition: height 0.08s ease;
  opacity: 0.5;
}

/* ==================== 右侧：音量+速度+模式+列表 ==================== */
.ap-extra {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

/* 音量组 */
.ap-vol-wrap {
  display: flex;
  align-items: center;
  gap: 2px;
  position: relative;
}

.ap-vol-slider-wrap {
  width: 0;
  overflow: hidden;
  transition: width 0.25s ease;
}
.ap-vol-wrap:hover .ap-vol-slider-wrap {
  width: 80px;
}

.ap-vol-slider {
  width: 80px;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: linear-gradient(to right, #2B3A67, #8B1E3A);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}
.ap-vol-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #8B1E3A;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

/* 速度按钮 */
#ap-btn-speed {
  width: auto;
  min-width: 44px;
  padding: 0 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: 'Inter', monospace;
}

/* 模式按钮 */
.ap-mode-btn {
  position: relative;
}
.ap-mode-single::after {
  content: '1';
  position: absolute;
  top: 2px;
  right: 4px;
  font-size: 0.5rem;
  font-weight: 700;
  color: #8B1E3A;
}

/* 朗诵伴奏按钮 */
.ap-accomp-btn {
  position: relative;
  color: var(--color-text-light, #999);
  transition: all .2s;
}
.ap-accomp-btn.active {
  color: #C49A4A;
  background: rgba(196, 154, 74, 0.12);
}
.ap-accomp-btn:hover {
  color: #C49A4A;
}

/* 列表按钮 */
#ap-btn-list {
  position: relative;
}
.ap-list-count {
  position: absolute;
  top: 2px;
  right: 2px;
  font-size: 0.55rem;
  font-weight: 700;
  color: #2B3A67;
}

/* ==================== 播放列表面板 ==================== */
.ap-list-panel {
  position: absolute;
  bottom: 100%;
  right: 24px;
  width: 340px;
  max-height: 420px;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 14px 14px 0 0;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-bottom: none;
  overflow: hidden;
  animation: apSlideUp 0.25s ease;
  display: flex;
  flex-direction: column;
}
@keyframes apSlideUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.ap-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #2B3A67;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  flex-shrink: 0;
}
.ap-list-clear {
  font-size: 0.75rem;
  color: #c44;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.15s;
}
.ap-list-clear:hover {
  background: rgba(200, 50, 50, 0.08);
}

.ap-list-body {
  overflow-y: auto;
  flex: 1;
}
.ap-list-body::-webkit-scrollbar {
  width: 4px;
}
.ap-list-body::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 2px;
}

.ap-list-empty {
  text-align: center;
  padding: 40px 20px;
  color: #aaa;
}
.ap-list-empty i {
  font-size: 2rem;
  margin-bottom: 10px;
  opacity: 0.4;
}
.ap-list-empty p {
  margin: 4px 0;
  font-size: 0.85rem;
}
.ap-list-hint {
  font-size: 0.75rem !important;
  color: #ccc;
}

.ap-list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  cursor: pointer;
  transition: background 0.15s;
  border-left: 3px solid transparent;
}
.ap-list-item:hover {
  background: rgba(0, 0, 0, 0.03);
}
.ap-list-item.current {
  background: rgba(139, 30, 58, 0.06);
  border-left-color: #8B1E3A;
}

.ap-list-cover {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.ap-list-info {
  flex: 1;
  min-width: 0;
}

.ap-list-name {
  font-size: 0.82rem;
  font-weight: 500;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ap-list-playing {
  color: #8B1E3A;
  font-size: 0.6rem;
}

.ap-list-meta {
  font-size: 0.7rem;
  color: #999;
  margin-top: 2px;
}

.ap-list-remove {
  width: 24px;
  height: 24px;
  border: none;
  background: transparent;
  color: #ccc;
  cursor: pointer;
  border-radius: 50%;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  flex-shrink: 0;
}
.ap-list-remove:hover {
  background: rgba(200, 50, 50, 0.1);
  color: #c44;
}

/* 关闭按钮 */
.ap-btn-close:hover {
  background: rgba(200, 50, 50, 0.1) !important;
  color: #c44 !important;
}

/* 迷你浮动按钮 */
.ap-mini-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 52px;
  height: 52px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, #8B1E3A, #C84B31);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(139, 30, 58, 0.4);
  transition: transform 0.25s, box-shadow 0.25s;
  animation: miniBtnPulse 2.5s ease-in-out infinite;
}
.ap-mini-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(139, 30, 58, 0.5);
}
.ap-mini-btn:active {
  transform: scale(0.92);
}
@keyframes miniBtnPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(139, 30, 58, 0.4), 0 0 0 0 rgba(139, 30, 58, 0.3); }
  50% { box-shadow: 0 4px 20px rgba(139, 30, 58, 0.4), 0 0 0 10px rgba(139, 30, 58, 0); }
}
@media (max-width: 640px) {
  .ap-mini-btn {
    width: 46px;
    height: 46px;
    bottom: 16px;
    right: 16px;
    font-size: 1rem;
  }
}

/* ==================== 响应式 ==================== */
@media (max-width: 900px) {
  .ap-bar-inner {
    gap: 10px;
    padding: 6px 12px;
    min-height: 60px;
  }
  .ap-info {
    min-width: 120px;
    max-width: 160px;
  }
  .ap-cover {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  .ap-title {
    font-size: 0.78rem;
  }
  .ap-subtitle {
    font-size: 0.7rem;
  }
  .ap-visual {
    display: none;
  }
  .ap-extra {
    gap: 2px;
  }
  .ap-controls {
    gap: 10px;
  }
  .ap-btn-play {
    width: 36px;
    height: 36px;
  }
  .ap-progress-wrap {
    max-width: 300px;
  }
}

@media (max-width: 640px) {
  .ap-bar-inner {
    gap: 8px;
    padding: 6px 10px;
    min-height: 56px;
    flex-wrap: wrap;
  }
  .ap-info {
    min-width: 100px;
    max-width: 130px;
    gap: 8px;
  }
  .ap-cover {
    width: 34px;
    height: 34px;
    font-size: 0.85rem;
  }
  .ap-title {
    font-size: 0.72rem;
  }
  .ap-subtitle {
    font-size: 0.65rem;
  }
  .ap-center {
    flex: 2;
    gap: 2px;
  }
  .ap-controls {
    gap: 6px;
  }
  .ap-btn-play {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
  }
  .ap-btn {
    width: 28px;
    height: 28px;
    font-size: 0.7rem;
  }
  .ap-visual {
    display: none;
  }
  .ap-extra {
    gap: 0;
  }
  #ap-btn-speed {
    display: none;
  }
  .ap-progress-wrap {
    max-width: 200px;
    gap: 6px;
  }
  .ap-time {
    min-width: 28px;
    font-size: 0.65rem;
  }
  .ap-list-panel {
    width: 100%;
    right: 0;
    border-radius: 14px 14px 0 0;
  }
}

/* 为底部播放栏留出空间 */
@media (min-width: 641px) {
  body {
    padding-bottom: 78px !important;
  }
}
@media (max-width: 640px) {
  body {
    padding-bottom: 66px !important;
  }
}

/* ================================================================
   时间驱动向上滚动字幕条 (#ap-subtitle-bar)
   基于 LRC 时间码，逐帧同步当前播放位置
   三种模式：逐行滚动 / 逐字高亮 / 单句切换
   ================================================================ */
.ap-subtitle-bar {
  position: fixed;
  bottom: 78px;
  left: 50%;
  transform: translateX(-50%);
  width: min(700px, 92vw);
  background: rgba(30, 30, 30, 0.94);
  backdrop-filter: blur(20px) saturate(120%);
  -webkit-backdrop-filter: blur(20px) saturate(120%);
  border-radius: 14px 14px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: none;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.3);
  z-index: 9997;
  overflow: hidden;
  font-family: 'Noto Serif SC', 'Inter', sans-serif;
  padding: 10px 16px 12px;
}

.ap-subtitle-modes {
  display: flex;
  gap: 4px;
  justify-content: flex-end;
  margin-bottom: 8px;
}

.ap-subtitle-mode {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.62rem;
  padding: 3px 10px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.25s;
  font-family: inherit;
}
.ap-subtitle-mode:hover {
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
}
.ap-subtitle-mode.active {
  color: #C49A4A;
  background: rgba(196, 154, 74, 0.15);
  border-color: rgba(196, 154, 74, 0.3);
  font-weight: 600;
}

.ap-subtitle-stage {
  position: relative;
  min-height: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  overflow: hidden;
}

.ap-subtitle-line {
  text-align: center;
  line-height: 1.5;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  white-space: normal;
  word-break: break-all;
}

.ap-subtitle-prev {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.2);
  opacity: 0.6;
}

.ap-subtitle-curr {
  font-size: 1.08rem;
  color: #C49A4A;
  font-weight: 700;
  letter-spacing: 1px;
}

.ap-subtitle-next {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.25);
  opacity: 0.7;
}

/* 逐字高亮 */
.ap-subtitle-karaoke {
  letter-spacing: 2px;
}
.ap-karaoke-done {
  color: #C49A4A;
  font-weight: 700;
  transition: color 0.08s;
}
.ap-karaoke-rest {
  color: rgba(255, 255, 255, 0.45);
  font-weight: 400;
}

@media (max-width: 640px) {
  .ap-subtitle-bar {
    bottom: 66px;
    width: 100vw;
    border-radius: 12px 12px 0 0;
    padding: 8px 12px 10px;
  }
  .ap-subtitle-stage {
    min-height: 56px;
    gap: 4px;
  }
  .ap-subtitle-curr { font-size: 0.95rem; }
  .ap-subtitle-prev, .ap-subtitle-next { font-size: 0.7rem; }
}

/* ================================================================
   高品质浮动视频面板
   ================================================================ */
.ap-video-panel {
  position: fixed;
  bottom: 82px;
  right: 24px;
  width: 340px;
  background: rgba(20, 20, 28, 0.88);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.04);
  overflow: hidden;
  z-index: 9998;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), width 0.3s ease, height 0.3s ease;
}

.ap-video-panel.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.ap-video-panel.expanded {
  width: 560px;
}

/* ---- 拖拽头部 ---- */
.ap-video-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.25);
  cursor: grab;
  user-select: none;
}
.ap-video-header:active {
  cursor: grabbing;
}

.ap-video-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.ap-video-header-btns {
  display: flex;
  gap: 4px;
}

.ap-video-hbtn {
  width: 26px;
  height: 26px;
  border: none;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  transition: all 0.2s;
}
.ap-video-hbtn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* ---- 视频区域 ---- */
.ap-video-body {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

#ap-video-el {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* ---- 播放覆盖层 ---- */
.ap-video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  transition: opacity 0.25s ease, background 0.25s ease;
  cursor: pointer;
}
.ap-video-panel .ap-video-overlay:hover {
  background: rgba(0, 0, 0, 0.15);
}

.ap-video-play-overlay {
  width: 56px;
  height: 56px;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}
.ap-video-play-overlay:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.1);
}
.ap-video-play-overlay:active {
  transform: scale(0.95);
}

/* ---- 视频进度条 ---- */
.ap-video-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: height 0.2s;
}
.ap-video-progress:hover {
  height: 6px;
}

.ap-video-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #C9A96E, #DDB87E);
  border-radius: 0 2px 2px 0;
  transition: width 0.1s linear;
  box-shadow: 0 0 8px rgba(201, 169, 110, 0.4);
}

/* ---- 视频面板音量控制 ---- */
.ap-video-controls {
  position: absolute;
  bottom: 6px;
  left: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 6;
  background: rgba(0,0,0,0.5);
  border-radius: 12px;
  padding: 2px 6px;
  opacity: 0;
  transition: opacity 0.25s;
}
.ap-video-panel:hover .ap-video-controls,
.ap-video-controls:hover {
  opacity: 1;
}
.ap-video-vol-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.85);
  font-size: 0.8rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: color 0.2s;
}
.ap-video-vol-btn:hover { color: #C9A96E; }
.ap-video-vol-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 0;
  height: 3px;
  background: rgba(255,255,255,0.25);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
  transition: width 0.25s;
}
.ap-video-panel:hover .ap-video-vol-slider,
.ap-video-controls:hover .ap-video-vol-slider {
  width: 60px;
}
.ap-video-vol-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #C9A96E;
  cursor: pointer;
}
.ap-video-vol-slider::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #C9A96E;
  cursor: pointer;
  border: none;
}

/* ---- 响应式 ---- */
@media (max-width: 640px) {
  .ap-video-panel {
    width: calc(100vw - 24px);
    right: 12px;
    bottom: 70px;
  }
  .ap-video-panel.expanded {
    width: calc(100vw - 24px);
  }
  .ap-video-title {
    max-width: 140px;
  }
}
