.my-page {
  min-height: 100vh;
  background: #0b0d12;
  color: #fff;
  padding-bottom: calc(24px + var(--safe-bottom));
}
.my-main {
  padding: calc(16px + var(--safe-top)) 14px 16px;
}
.my-profile-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
.my-profile-info {
  flex: 1 1 auto;
  min-width: 0;
}
.my-back-btn {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.my-me-btn {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
.my-me-btn:active {
  transform: scale(0.96);
}
.my-avatar-wrap {
  position: relative;
  flex: 0 0 auto;
}
.my-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  background: #333;
}
.my-avatar.ph {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  font-size: 24px;
}
.my-vip-badge {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--yellow);
  color: #111;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.my-album-name {
  font-size: 20px;
  font-weight: 700;
}
.my-stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 8px;
}
.my-stat b {
  margin-left: 2px;
}
.my-tabs {
  display: flex;
  width: 100%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  margin: 8px 0 14px;
}
.my-tab {
  flex: 1 1 0;
  min-width: 0;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.45);
  font-size: 15px;
  font-weight: 400;
  text-align: center;
  padding: 12px 4px 14px;
  position: relative;
  cursor: pointer;
}
.my-tab.active {
  color: #fff;
  font-weight: 600;
}
.my-tab.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 2px;
  background: var(--yellow);
}
.my-video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.my-video-cell {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 10px;
  overflow: hidden;
  background: #555;
  border: none;
  color: #fff;
  cursor: pointer;
}
.my-video-cell.add {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  background: #5a5a5a;
}
.my-video-thumb,
.my-video-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ph-cover {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  font-size: 22px;
}
.list-loading,
.list-empty,
.fund-empty {
  text-align: center;
  color: var(--muted);
  padding: 28px 12px;
}
.earn-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}
.earn-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 16px;
}
.earn-card-withdraw {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.earn-card-main {
  min-width: 0;
}
.earn-lbl {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}
.earn-val {
  font-size: 22px;
  font-weight: 700;
}
.earn-card-income .earn-val {
  color: #f5c518;
}
.earn-card-withdraw .earn-val {
  color: #7ddea3;
}
.earn-withdraw-btn {
  flex-shrink: 0;
  border: none;
  border-radius: 999px;
  background: #3b82f6;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 14px;
  cursor: pointer;
}
.earn-withdraw-btn:active {
  transform: scale(0.96);
}
.fund-title {
  font-size: 15px;
  margin-bottom: 10px;
}
.fund-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.fund-type {
  font-size: 14px;
}
.fund-time {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}
.fund-amt {
  font-weight: 600;
}
.player-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: #000;
  width: 100%;
  height: 100%;
  height: 100dvh;
  overflow: hidden;
}
.player-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  background: #000;
  z-index: 0;
}
.player-close {
  position: absolute;
  top: calc(12px + var(--safe-top));
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: #fff;
  color: #111;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}
.player-side-acts {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding-bottom: var(--safe-bottom);
}
.player-side-act {
  border: none;
  background: transparent;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}
.player-side-act i {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.player-side-act span {
  font-size: 12px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.dlg-mask {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(0, 0, 0, 0.55);
}
.dlg-mask.show {
  display: block;
}
.dlg {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 91;
  width: min(92vw, 400px);
  max-height: 86vh;
  overflow-y: auto;
  background: #161922;
  color: #fff;
  border-radius: 14px;
  padding: 16px 16px 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}
.dlg.show {
  display: block;
}
.dlg-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}
.dlg-sub {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 14px;
  line-height: 1.4;
}
.dlg-field {
  display: block;
  margin-bottom: 12px;
}
.withdraw-all-btn {
  display: block;
  width: 100%;
  border: none;
  background: transparent;
  color: #60a5fa;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  padding: 0 0 12px;
  cursor: pointer;
}
.cover-uploader {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}
.cover-preview-wrap {
  position: relative;
  width: 88px;
  height: 88px;
}
.cover-preview {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 10px;
  background: #333;
  display: block;
}
.cover-remove {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}
.cover-pick {
  position: relative;
  width: 88px;
  height: 88px;
  border: 1px dashed rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 12px;
  cursor: pointer;
  overflow: hidden;
}
.cover-pick.is-disabled {
  opacity: 0.5;
  pointer-events: none;
}
.cover-pick i {
  font-size: 20px;
}
.cover-file {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.cover-tips {
  margin-top: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.4;
}
.field-lbl {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 6px;
}
.field-inp {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: #0b0d12;
  color: #fff;
  padding: 10px 12px;
  font-size: 14px;
  resize: vertical;
}
.shelf-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.field-switch {
  width: 44px;
  height: 24px;
}
.dlg-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 14px;
}
.dlg-btn {
  min-width: 88px;
  height: 38px;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}
.dlg-btn.ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.dlg-btn.primary {
  background: var(--yellow, #f5d76e);
  color: #111;
}
.dlg-btn:disabled {
  opacity: 0.55;
}
.stats-dlg-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 6px;
}
.stats-dlg-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 10px;
  text-align: center;
}
.stats-dlg-wide {
  grid-column: 1 / -1;
}
.stats-dlg-val {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}
.stats-dlg-lbl {
  margin-top: 4px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
}

.publish-mask {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}
.publish-sheet {
  width: 100%;
  max-width: 520px;
  max-height: min(88vh, 720px);
  overflow: auto;
  position: relative;
  background: #161922;
  border-radius: 16px;
  padding: 16px;
  color: #fff;
}
.publish-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.publish-head h3 {
  font-size: 17px;
  font-weight: 700;
}
.publish-x {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.publish-hint {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.5;
  margin-bottom: 10px;
}
.publish-input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: #0b0d12;
  color: #fff;
  padding: 12px;
  font-size: 14px;
  resize: vertical;
  min-height: 110px;
}
.publish-status {
  margin-top: 10px;
  font-size: 13px;
  color: var(--yellow, #f5d76e);
}
.publish-submit {
  margin-top: 14px;
  width: 100%;
  height: 44px;
  border: none;
  border-radius: 10px;
  background: var(--yellow, #f5d76e);
  color: #111;
  font-weight: 700;
  font-size: 15px;
}
.publish-submit:disabled {
  opacity: 0.6;
}

.publish-task-head {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  padding: 0 2px;
  margin-top: 18px;
  margin-bottom: 10px;
}
.publish-task-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
  max-height: min(42vh, 360px);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding-right: 2px;
}
.publish-task {
  position: relative;
  background: #0b0d12;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 14px 88px 14px 14px;
}
.publish-task-status {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  line-height: 1.2;
  white-space: nowrap;
}
.publish-task-status.processing {
  background: rgba(251, 191, 36, 0.15);
  color: #facc15;
}
.publish-task-status.done {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
}
.publish-task-status.failed {
  background: rgba(248, 113, 113, 0.15);
  color: #f87171;
}
.publish-task-row {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.55;
  word-break: break-all;
}
.publish-task-row + .publish-task-row {
  margin-top: 6px;
}
.publish-task-lbl {
  color: rgba(255, 255, 255, 0.45);
}
.publish-task-msg {
  color: #f87171;
  font-size: 12px;
}
.publish-loading {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 16px;
  min-width: 140px;
  padding: 22px 24px;
  border-radius: 16px;
  background: #1c2030;
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}
.publish-loading-spin {
  width: 32px;
  height: 32px;
  margin: 0 auto 12px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--yellow, #f5d76e);
  border-radius: 50%;
  animation: publish-spin 0.8s linear infinite;
}
.publish-loading-msg {
  font-size: 14px;
  color: #fff;
  line-height: 1.4;
}
@keyframes publish-spin {
  to {
    transform: rotate(360deg);
  }
}
