/* ========== together.css ========== */
/* Together 应用 — 灰白简约 / 线条图标 / 三个子页面 */

/* ===== 容器 ===== */
.together-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: linear-gradient(180deg, #f0f0f5 0%, #e8e8ed 50%, #e4e4e9 100%);
}

/* ===== 顶部导航 ===== */
.together-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 10px;
  flex-shrink: 0;
  position: relative;
  z-index: 10;
}

.together-back {
  width: 32px;
  height: 32px;
  border: none;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background .15s;
}
.together-back:active { background: rgba(0,0,0,.05); }
.together-back svg {
  width: 20px; height: 20px;
  stroke: #3a3a3c; fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.together-title {
  font-size: 17px;
  font-weight: 600;
  color: #1d1d1f;
  letter-spacing: -.2px;
}

/* ===== + 按钮 ===== */
.tg-add-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(255,255,255,.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 6px rgba(0,0,0,.06), 0 0 0 .5px rgba(0,0,0,.05);
  transition: background .15s;
  -webkit-tap-highlight-color: transparent;
}
.tg-add-btn:active { background: rgba(255,255,255,.8); }
.tg-add-btn svg {
  width: 16px; height: 16px;
  stroke: #3a3a3c; fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}

/* ===== 新增选项遮罩 & 菜单 ===== */
.tg-overlay {
  position: fixed;
  inset: 0;
  background: transparent;
  z-index: 100;
  display: none;
  pointer-events: none;
}
.tg-overlay.active {
  display: block;
  pointer-events: auto;
}

.tg-add-menu {
  position: absolute;
  top: 52px;
  right: 14px;
  width: 220px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,.10), 0 0 0 .5px rgba(0,0,0,.06);
  z-index: 200;
  overflow: hidden;
  opacity: 0;
  transform: scale(.92) translateY(-6px);
  transform-origin: top right;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.tg-add-menu.active {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}
.tg-add-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  width: 100%;
  border: none;
  background: none;
  cursor: pointer;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
  transition: background .12s;
}
.tg-add-menu-item + .tg-add-menu-item {
  border-top: .5px solid rgba(0,0,0,.05);
}
.tg-add-menu-item:active { background: rgba(0,0,0,.04); }
.tg-add-menu-icon {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: rgba(0,0,0,.04);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.tg-add-menu-icon svg {
  width: 17px; height: 17px;
  stroke: #3a3a3c; fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tg-add-menu-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tg-add-menu-title {
  font-size: 13px;
  font-weight: 600;
  color: #1d1d1f;
  line-height: 1.3;
}
.tg-add-menu-sub {
  font-size: 11px;
  color: #a0a0a5;
  font-weight: 400;
}

/* ═══════════════════════════════════════
   弹窗通用
   ═══════════════════════════════════════ */
.tg-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.25);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 300;
  display: none;
  opacity: 0;
  transition: opacity .2s ease;
}
.tg-modal-overlay.active {
  display: block;
  opacity: 1;
}

.tg-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -46%) scale(.96);
  width: calc(100% - 48px);
  max-width: 380px;
  max-height: 82vh;
  background: #f5f5f7;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,.14), 0 0 0 .5px rgba(0,0,0,.06);
  z-index: 400;
  display: none;
  flex-direction: column;
  opacity: 0;
  transition: opacity .22s ease, transform .22s ease;
  overflow: hidden;
}
.tg-modal.active {
  display: flex;
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.tg-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 12px;
  border-bottom: .5px solid rgba(0,0,0,.06);
  flex-shrink: 0;
}
.tg-modal-title {
  font-size: 16px;
  font-weight: 600;
  color: #1d1d1f;
  letter-spacing: -.2px;
}
.tg-modal-close {
  width: 28px; height: 28px;
  border: none;
  background: rgba(0,0,0,.06);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
  transition: background .12s;
}
.tg-modal-close:active { background: rgba(0,0,0,.1); }
.tg-modal-close svg {
  width: 13px; height: 13px;
  stroke: #6e6e73; fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
}

.tg-modal-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px 20px 4px;
}

.tg-modal-footer {
  display: flex;
  gap: 10px;
  padding: 14px 20px calc(env(safe-area-inset-bottom, 4px) + 14px);
  border-top: .5px solid rgba(0,0,0,.06);
  flex-shrink: 0;
}

/* ── 表单元素 ── */
.tg-form-group {
  margin-bottom: 16px;
}
.tg-form-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #8e8e93;
  letter-spacing: .6px;
  text-transform: uppercase;
  margin-bottom: 7px;
}
.tg-form-input {
  width: 100%;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.1);
  background: rgba(255,255,255,.75);
  padding: 0 12px;
  font-size: 14px;
  color: #1d1d1f;
  outline: none;
  box-sizing: border-box;
  transition: border-color .15s, box-shadow .15s;
  font-family: inherit;
}
.tg-form-input:focus {
  border-color: rgba(0,0,0,.22);
  box-shadow: 0 0 0 3px rgba(0,0,0,.04);
}
.tg-form-input::placeholder { color: #c7c7cc; }

/* ── 文件拖放区 ── */
.tg-file-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 18px 16px;
  border: 1.5px dashed rgba(0,0,0,.12);
  border-radius: 12px;
  background: rgba(255,255,255,.5);
  cursor: pointer;
  text-align: center;
  transition: background .15s, border-color .15s;
  -webkit-tap-highlight-color: transparent;
}
.tg-file-drop:active {
  background: rgba(255,255,255,.8);
  border-color: rgba(0,0,0,.2);
}
.tg-file-drop svg {
  width: 22px; height: 22px;
  stroke: #b0b0b5; fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tg-file-drop span {
  font-size: 12px;
  color: #a0a0a5;
  font-weight: 400;
  max-width: 200px;
  word-break: break-all;
  line-height: 1.4;
}

/* ── Tab 切换（封面/视频来源） ── */
.tg-cover-options {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}
.tg-cover-tab {
  flex: 1;
  padding: 7px 0;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  color: #8e8e93;
  background: rgba(0,0,0,.04);
  text-align: center;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background .12s, color .12s, border-color .12s;
  -webkit-tap-highlight-color: transparent;
}
.tg-cover-tab.active {
  background: rgba(255,255,255,.82);
  color: #1d1d1f;
  border-color: rgba(0,0,0,.09);
  font-weight: 600;
}

/* ── 封面 URL 区 ── */
.tg-cover-url-pane { padding-top: 0; }

/* ── 封面预览 ── */
.tg-cover-preview-wrap {
  position: relative;
  width: 80px;
  height: 80px;
  margin-top: 10px;
}
.tg-cover-preview-img {
  width: 80px;
  height: 80px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(0,0,0,.07);
}
.tg-cover-clear {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(60,60,67,.6);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tg-cover-clear svg {
  width: 10px; height: 10px;
  stroke: #fff; fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
}

/* ── B站解析结果 ── */
.tg-parse-btn {
  margin-top: 8px;
  width: 100%;
  height: 36px;
  border-radius: 9px;
  border: 1px solid rgba(0,0,0,.1);
  background: rgba(255,255,255,.7);
  font-size: 13px;
  font-weight: 600;
  color: #3a3a3c;
  cursor: pointer;
  transition: background .12s;
  -webkit-tap-highlight-color: transparent;
  font-family: inherit;
}
.tg-parse-btn:active { background: rgba(255,255,255,.95); }

.tg-bili-result {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  padding: 10px 12px;
  background: rgba(255,255,255,.65);
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.8);
}
.tg-bili-thumb {
  width: 60px;
  height: 40px;
  border-radius: 6px;
  background: linear-gradient(135deg, #dcdce1, #d0d0d5);
  flex-shrink: 0;
}
.tg-bili-info { flex: 1; min-width: 0; }
.tg-bili-title {
  font-size: 12px;
  font-weight: 600;
  color: #1d1d1f;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
}
.tg-bili-meta {
  font-size: 10px;
  color: #a0a0a5;
}

/* ── 上传状态 ── */
.tg-upload-status {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 500;
  padding: 7px 12px;
  border-radius: 8px;
  line-height: 1.4;
}
.tg-status-ok  { background: rgba(52,199,89,.1);  color: #1a7a34; }
.tg-status-error { background: rgba(255,59,48,.08); color: #c0392b; }

/* ── 底部按钮 ── */
.tg-btn-ghost {
  flex: 1;
  height: 42px;
  border-radius: 11px;
  border: 1px solid rgba(0,0,0,.1);
  background: rgba(255,255,255,.65);
  font-size: 14px;
  font-weight: 500;
  color: #6e6e73;
  cursor: pointer;
  transition: background .12s;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}
.tg-btn-ghost:active { background: rgba(255,255,255,.9); }

.tg-btn-primary {
  flex: 1.6;
  height: 42px;
  border-radius: 11px;
  border: none;
  background: #3a3a3c;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  transition: opacity .12s;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}
.tg-btn-primary:active { opacity: .82; }

/* ── 播放列表实际内容样式 ── */
.tg-pl-title {
  font-size: 12px;
  font-weight: 600;
  color: #1d1d1f;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tg-pl-artist {
  font-size: 11px;
  color: #a0a0a5;
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Active playlist item (now playing) ── */
.tg-playlist-item.tg-pl-active {
  background: rgba(58,58,60,.07);
  border-color: rgba(58,58,60,.12);
}
.tg-pl-now {
  font-size: 9px;
  font-weight: 600;
  color: #8e8e93;
  letter-spacing: .4px;
  text-transform: uppercase;
  flex-shrink: 0;
}
/* ── Empty lyrics note ── */
.tg-lyric-empty {
  color: #c7c7cc !important;
  font-style: italic;
}
/* ── Song play status ── */
#songPlayStatus {
  margin-bottom: 8px;
  width: 100%;
  max-width: 300px;
  text-align: center;
}

/* ── 歌词真实文本行 ── */
.tg-lyric-text {
  font-size: 13px;
  color: #6e6e73;
  line-height: 1.55;
  font-weight: 400;
}
.tg-lyric-line.active .tg-lyric-text {
  color: #1d1d1f;
  font-weight: 600;
}

/* ── 视频列表实际标题 ── */
.tg-vl-title {
  font-size: 12px;
  font-weight: 500;
  color: #1d1d1f;
  line-height: 1.4;
}

/* ── 视频屏内 B站嵌入标签 ── */
.tg-video-bili-label {
  font-size: 13px;
  color: rgba(255,255,255,.8);
  font-weight: 500;
  padding: 16px;
  text-align: center;
}

/* ===== 内容区 ===== */
.together-content {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.together-pane {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  opacity: 0;
  transition: opacity .25s ease;
}
.together-pane.active {
  display: flex;
  opacity: 1;
}

/* ===== 底部 Tab 栏 ===== */
.together-tabs {
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  padding: 6px 8px calc(env(safe-area-inset-bottom, 4px) + 8px);
  border-top: .5px solid rgba(0,0,0,.06);
  background: rgba(255,255,255,.55);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  flex-shrink: 0;
}
.together-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  padding: 6px 14px 4px;
  border-radius: 10px;
  transition: background .15s;
  -webkit-tap-highlight-color: transparent;
}
.together-tab:active { background: rgba(0,0,0,.04); }
.together-tab svg {
  width: 22px; height: 22px;
  stroke: #b0b0b5; fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke .2s;
}
.together-tab span {
  font-size: 10px;
  color: #b0b0b5;
  font-weight: 500;
  letter-spacing: .1px;
  transition: color .2s;
  white-space: nowrap;
}
.together-tab.active svg { stroke: #3a3a3c; }
.together-tab.active span { color: #3a3a3c; font-weight: 600; }


/* ═══════════════════════════════════════
   共用组件
   ═══════════════════════════════════════ */

/* 骨架占位条 */
.tg-skel {
  display: inline-block;
  height: 12px;
  background: rgba(0,0,0,.05);
  border-radius: 6px;
}

/* 区段标签 */
.tg-section-label {
  font-size: 10px;
  font-weight: 600;
  color: #a0a0a5;
  letter-spacing: 1.2px;
  padding: 18px 0 8px;
}

/* 分割线 */
.tg-divider {
  height: .5px;
  background: rgba(0,0,0,.06);
  margin: 16px 0;
}

/* 在线指示 */
.tg-online-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 0 14px;
}
.tg-online-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #8e8e93;
  box-shadow: 0 0 0 2px rgba(142,142,147,.15);
}
.tg-online-bar span {
  font-size: 11px;
  color: #a0a0a5;
  font-weight: 400;
}


/* ═══════════════════════════════════════
   一起听 · Listen
   ═══════════════════════════════════════ */

.tg-listen-scroll {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 专辑封面 */
.tg-album-wrap {
  position: relative;
  margin: 10px 0 24px;
}
.tg-album-cover {
  width: 200px; height: 200px;
  border-radius: 50%;
  background: linear-gradient(145deg, #e4e4e9, #d8d8dd);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(0,0,0,.06), 0 1px 0 rgba(255,255,255,.5) inset;
  position: relative;
  z-index: 1;
}
.tg-album-icon {
  width: 64px; height: 64px;
  stroke: #b8b8bd; fill: none;
  stroke-width: 1.2;
  stroke-linecap: round;
}
.tg-album-ring {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: .5px solid rgba(0,0,0,.04);
}

/* 歌曲信息 */
.tg-song-info {
  text-align: center;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

/* 进度条 */
.tg-progress-wrap {
  width: 100%;
  max-width: 300px;
  margin-bottom: 20px;
}
.tg-progress-track {
  height: 3px;
  background: rgba(0,0,0,.06);
  border-radius: 1.5px;
  position: relative;
}
.tg-progress-fill {
  height: 100%;
  background: #8e8e93;
  border-radius: 1.5px;
}
.tg-progress-thumb {
  position: absolute;
  top: -4px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid #8e8e93;
  transform: translateX(-50%);
  box-shadow: 0 1px 4px rgba(0,0,0,.1);
}
.tg-progress-time {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #b0b0b5;
  margin-top: 6px;
  font-variant-numeric: tabular-nums;
}

/* 播放控制 */
.tg-controls {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-bottom: 18px;
}
.tg-ctrl-btn {
  border: none;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background .15s;
}
.tg-ctrl-btn:active { background: rgba(0,0,0,.04); }
.tg-ctrl-btn svg {
  stroke: #6e6e73; fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tg-ctrl-sm { width: 40px; height: 40px; }
.tg-ctrl-sm svg { width: 22px; height: 22px; }
.tg-ctrl-play {
  width: 60px; height: 60px;
  background: rgba(255,255,255,.7) !important;
  box-shadow: 0 3px 16px rgba(0,0,0,.06), 0 0 0 1px rgba(255,255,255,.8) inset;
  backdrop-filter: blur(12px);
}
.tg-ctrl-play svg {
  width: 28px; height: 28px;
  stroke: #3a3a3c;
  stroke-width: 1.8;
}

/* 音量 */
.tg-volume-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 260px;
  margin-bottom: 6px;
}
.tg-vol-icon {
  width: 16px; height: 16px;
  stroke: #b0b0b5; fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.tg-volume-track {
  flex: 1;
  height: 3px;
  background: rgba(0,0,0,.06);
  border-radius: 1.5px;
}
.tg-volume-fill {
  height: 100%;
  background: #c7c7cc;
  border-radius: 1.5px;
}

/* 歌词 */
.tg-lyrics-card {
  width: 100%;
  background: rgba(255,255,255,.45);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.6);
  border-radius: 16px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,.03);
}
.tg-lyric-line {
  display: flex;
}
.tg-lyric-line .tg-skel {
  height: 10px;
  background: rgba(0,0,0,.04);
}
.tg-lyric-line.active .tg-skel {
  background: rgba(0,0,0,.1);
}

/* 播放列表 */
.tg-playlist {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tg-playlist-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,.35);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.5);
}
.tg-pl-cover {
  width: 42px; height: 42px;
  border-radius: 8px;
  background: linear-gradient(135deg, #e2e2e7, #d6d6db);
  flex-shrink: 0;
}
.tg-pl-info {
  flex: 1;
  min-width: 0;
}
.tg-pl-dur {
  font-size: 11px;
  color: #b0b0b5;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}


/* ═══════════════════════════════════════
   一起看 · Watch
   ═══════════════════════════════════════ */

.tg-watch-scroll {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px 20px 24px;
}

/* 视频播放器 */
.tg-video-player {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,.08);
  margin-bottom: 16px;
}
.tg-video-screen {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(160deg, #d2d2d7, #c4c4c9);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.tg-video-play-icon {
  width: 56px; height: 56px;
  stroke: rgba(255,255,255,.65);
  fill: none;
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tg-video-play-icon circle {
  fill: rgba(0,0,0,.15);
  stroke: rgba(255,255,255,.5);
}

/* 视频控制条 */
.tg-video-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(42,42,46,.88);
  backdrop-filter: blur(12px);
}
.tg-vc-btn {
  border: none;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  flex-shrink: 0;
}
.tg-vc-btn svg {
  width: 14px; height: 14px;
  stroke: rgba(255,255,255,.7);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tg-vc-progress {
  flex: 1;
  height: 3px;
  background: rgba(255,255,255,.15);
  border-radius: 1.5px;
}
.tg-vc-fill {
  height: 100%;
  background: rgba(255,255,255,.55);
  border-radius: 1.5px;
}
.tg-vc-time {
  font-size: 10px;
  color: rgba(255,255,255,.45);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
  white-space: nowrap;
}

/* 视频信息 */
.tg-video-info {
  padding: 4px 4px 0;
}
.tg-vi-title { margin-bottom: 6px; }
.tg-vi-meta { margin-bottom: 4px; }

/* 操作栏 */
.tg-video-actions {
  display: flex;
  justify-content: space-around;
  padding: 14px 0;
}
.tg-va-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}
.tg-va-item svg {
  width: 20px; height: 20px;
  stroke: #8e8e93; fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tg-va-item span {
  font-size: 10px;
  color: #a0a0a5;
  font-weight: 500;
}

/* 推荐视频列表 */
.tg-video-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tg-vl-item {
  display: flex;
  gap: 12px;
}
.tg-vl-thumb {
  width: 140px;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  background: linear-gradient(140deg, #dcdce1, #d0d0d5);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.tg-vl-play {
  width: 22px; height: 22px;
  stroke: rgba(255,255,255,.6);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
}
.tg-vl-badge {
  position: absolute;
  bottom: 4px;
  right: 5px;
  font-size: 9px;
  color: rgba(255,255,255,.85);
  background: rgba(0,0,0,.45);
  padding: 1px 5px;
  border-radius: 3px;
  font-variant-numeric: tabular-nums;
}
.tg-vl-info {
  flex: 1;
  padding-top: 2px;
  min-width: 0;
}


/* ═══════════════════════════════════════
   一起读 · Read
   ═══════════════════════════════════════ */

.tg-read-scroll {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px 20px 24px;
}

/* 书籍头部 */
.tg-book-header {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}
.tg-book-cover-wrap { flex-shrink: 0; }
.tg-book-cover {
  width: 72px; height: 100px;
  border-radius: 8px;
  background: linear-gradient(155deg, #e0e0e5, #d4d4d9);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,.06), 2px 0 6px rgba(0,0,0,.03);
  border: 1px solid rgba(255,255,255,.5);
}
.tg-book-icon {
  width: 36px; height: 48px;
  stroke: #b0b0b5; fill: none;
  stroke-width: 1.2;
  stroke-linecap: round;
}
.tg-book-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-width: 0;
}
.tg-book-progress-label {
  font-size: 10px;
  color: #a0a0a5;
  margin-top: 10px;
}
.tg-book-progress-bar {
  height: 3px;
  background: rgba(0,0,0,.06);
  border-radius: 1.5px;
  margin-top: 4px;
}
.tg-book-progress-fill {
  height: 100%;
  background: #a0a0a5;
  border-radius: 1.5px;
}

/* 阅读页面卡片 */
.tg-page-card {
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 18px;
  padding: 28px 24px 20px;
  min-height: 340px;
  position: relative;
  box-shadow: 0 4px 28px rgba(0,0,0,.05), 0 .5px 0 rgba(255,255,255,.9) inset;
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}

/* 书签 */
.tg-bookmark {
  position: absolute;
  top: -2px;
  right: 22px;
}
.tg-bookmark svg {
  width: 18px; height: 26px;
  stroke: #c7c7cc;
  fill: rgba(199,199,204,.15);
  stroke-width: 1.2;
  stroke-linejoin: round;
}

/* 章节标题 */
.tg-chapter-title {
  text-align: center;
  margin-bottom: 24px;
}

/* 模拟文本段落 */
.tg-paragraph {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 20px;
}
.tg-text-line {
  height: 8px;
  background: rgba(0,0,0,.055);
  border-radius: 4px;
}

/* 页码 */
.tg-page-num {
  margin-top: auto;
  text-align: center;
  font-size: 11px;
  color: #c7c7cc;
  font-weight: 400;
  letter-spacing: .5px;
  padding-top: 12px;
}

/* 翻页控制 */
.tg-page-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.tg-page-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  border: none;
  background: rgba(255,255,255,.5);
  backdrop-filter: blur(12px);
  border-radius: 10px;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 12px;
  color: #6e6e73;
  font-weight: 500;
  border: 1px solid rgba(255,255,255,.6);
  box-shadow: 0 1px 6px rgba(0,0,0,.03);
  transition: background .15s;
}
.tg-page-btn:active { background: rgba(255,255,255,.7); }
.tg-page-btn svg {
  width: 14px; height: 14px;
  stroke: #6e6e73; fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tg-page-indicator {
  font-size: 11px;
  color: #a0a0a5;
  font-weight: 400;
}

/* 阅读设置 */
.tg-read-settings {
  background: rgba(255,255,255,.45);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 14px;
  overflow: hidden;
}
.tg-rs-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
}
.tg-rs-row + .tg-rs-row {
  border-top: .5px solid rgba(0,0,0,.05);
}
.tg-rs-icon {
  width: 18px; height: 18px;
  stroke: #8e8e93; fill: none;
  stroke-width: 1.3;
  stroke-linecap: round;
  flex-shrink: 0;
}
.tg-rs-row > span {
  flex: 1;
  font-size: 13px;
  color: #3a3a3c;
  font-weight: 500;
}
.tg-rs-control {
  display: flex;
  align-items: center;
  gap: 10px;
}
.tg-rs-btn {
  font-size: 13px;
  color: #6e6e73;
  font-weight: 600;
  cursor: pointer;
  padding: 2px 4px;
}
.tg-rs-val {
  font-size: 13px;
  color: #3a3a3c;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  min-width: 20px;
  text-align: center;
}
.tg-theme-dot {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 1.5px solid rgba(0,0,0,.08);
  cursor: pointer;
  transition: box-shadow .15s;
}
.tg-td-light { background: #fff; }
.tg-td-sepia { background: #f5ecd7; }
.tg-td-dark  { background: #2c2c2e; }
.tg-theme-dot.active {
  border-color: #8e8e93;
  box-shadow: 0 0 0 2px rgba(142,142,147,.2);
}

/* 目录 */
.tg-toc {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tg-toc-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(255,255,255,.3);
  border: 1px solid rgba(255,255,255,.45);
}
.tg-toc-item.active {
  background: rgba(255,255,255,.55);
  border-color: rgba(255,255,255,.7);
}
.tg-toc-num {
  font-size: 12px;
  color: #b0b0b5;
  font-weight: 600;
  min-width: 18px;
  text-align: center;
}
.tg-toc-item.active .tg-toc-num { color: #6e6e73; }
.tg-toc-current {
  margin-left: auto;
  font-size: 9px;
  color: #8e8e93;
  font-weight: 500;
  letter-spacing: .3px;
    text-transform: uppercase;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════
   Playlist Import Section
   ═══════════════════════════════════════ */
.tg-playlist-import-divider {
  position: relative;
  margin: 24px 0 20px;
  text-align: center;
}
.tg-playlist-import-divider::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,0,0,.08) 20%, rgba(0,0,0,.08) 80%, transparent);
}
.tg-playlist-import-divider-text {
  position: relative;
  display: inline-block;
  padding: 0 12px;
  font-size: 11px;
  font-weight: 500;
  color: #a0a0a5;
  background: #f5f5f7;
  letter-spacing: .3px;
}

.tg-playlist-import-hint {
  font-size: 12px;
  color: #8e8e93;
  line-height: 1.5;
  margin: -2px 0 10px;
  font-weight: 400;
}

.tg-playlist-import-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.tg-playlist-import-input {
  flex: 1;
  min-width: 0;
}

.tg-parse-playlist-btn {
  height: 40px;
  padding: 0 18px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.1);
  background: #3a3a3c;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  transition: opacity .12s;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
  white-space: nowrap;
}
.tg-parse-playlist-btn:active { opacity: .82; }
.tg-parse-playlist-btn:disabled {
  opacity: .45;
  cursor: not-allowed;
}


