/* ===== UP主 Profile Page — Premium Dark ===== */

.up-page {
  position: relative;
  width: 375px;
  max-width: 100vw;
  min-height: 100vh;
  margin: 0 auto;
  background: #0A0A0E;
  padding-bottom: 40px;
}

/* ===== Header ===== */
.up-header {
  position: relative;
  background: linear-gradient(180deg, rgba(255,77,148,0.15) 0%, rgba(255,77,148,0.04) 55%, transparent 100%);
  padding: 48px 16px 0;
}

.up-back {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-bottom: 20px;
  transition: background 0.2s, transform 0.15s;
}
.up-back:active {
  transform: scale(0.9);
  background: rgba(255,77,148,0.15);
}

/* ===== Profile Row ===== */
.up-profile {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.up-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.up-avatar {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  border: 3px solid rgba(255,77,148,0.45);
  object-fit: cover;
  display: block;
  box-shadow: 0 0 24px rgba(255,77,148,0.15);
  background: #1A1A20;
}

.up-avatar-cam {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, #FF4D94, #FF7EB3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #0A0A0E;
}

.up-vip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-top: 8px;
  padding: 3px 10px;
  border-radius: 12px;
  background: linear-gradient(135deg, #F4D562, #E6A817);
  font-size: 10px;
  font-weight: 700;
  color: #1a1a1a;
}

/* ===== Info Area ===== */
.up-info {
  flex: 1;
  min-width: 0;
  padding-top: 4px;
}

.up-name {
  font-size: 20px;
  font-weight: 700;
  color: #F2F2F2;
  margin-bottom: 4px;
  letter-spacing: -0.3px;
}

.up-bio {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 14px;
  line-height: 1.4;
}

/* ===== Buttons ===== */
.up-btns {
  display: flex;
  gap: 10px;
}

.up-btn-follow {
  height: 32px;
  padding: 0 20px;
  border-radius: 16px;
  background: linear-gradient(135deg, #FF4D94, #FF7EB3);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: transform 0.15s, background 0.3s, box-shadow 0.3s;
  box-shadow: 0 2px 12px rgba(255,77,148,0.3);
  font-family: inherit;
}
.up-btn-follow:active { transform: scale(0.95); }

.up-btn-follow.followed {
  background: rgba(255,255,255,0.08);
  box-shadow: none;
  color: rgba(255,255,255,0.5);
}

.up-btn-msg {
  height: 32px;
  padding: 0 18px;
  border-radius: 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.65);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: all 0.2s;
  backdrop-filter: blur(4px);
  font-family: inherit;
}
.up-btn-msg:active {
  background: rgba(255,77,148,0.1);
  border-color: rgba(255,77,148,0.3);
  color: #FF4D94;
  transform: scale(0.95);
}

/* ===== Stats Row ===== */
.up-stats {
  display: flex;
  justify-content: space-around;
  padding: 24px 10px 20px;
}

.up-stat {
  text-align: center;
  flex: 1;
}

.up-stat-num {
  font-size: 18px;
  font-weight: 700;
  color: #F2F2F2;
  margin-bottom: 3px;
  letter-spacing: -0.5px;
}

.up-stat-label {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
}

/* ===== Divider ===== */
.up-divider {
  height: 1px;
  background: rgba(255,255,255,0.06);
  margin: 0 16px;
}

/* ===== Tabs ===== */
.up-tabs {
  display: flex;
  position: sticky;
  top: 0;
  z-index: 10;
  background: #0A0A0E;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.up-tab {
  flex: 1;
  text-align: center;
  padding: 14px 0;
  font-size: 14px;
  color: rgba(255,255,255,0.35);
  cursor: pointer;
  position: relative;
  transition: color 0.25s;
  font-weight: 400;
}

.up-tab.active {
  color: #FF4D94;
  font-weight: 600;
}

.up-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 2.5px;
  background: linear-gradient(90deg, #FF4D94, #FF7EB3);
  border-radius: 2px;
}

/* ===== Video Grid ===== */
.up-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 10px;
}

.up-card {
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255,255,255,0.02);
  cursor: pointer;
  transition: transform 0.2s;
}
.up-card:active { transform: scale(0.97); }

.up-card-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #141418;
}

.up-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.up-card-duration {
  position: absolute;
  left: 6px;
  bottom: 6px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
  font-variant-numeric: tabular-nums;
}

.up-card-badge {
  position: absolute;
  right: 6px;
  top: 6px;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
}

.up-card-badge.badge-free {
  background: linear-gradient(135deg, #FF4D94, #FF7EB3);
  color: #fff;
}

.up-card-badge.badge-vip {
  background: linear-gradient(135deg, #F4D562, #E6A817);
  color: #1a1a1a;
}

.up-card-badge.badge-coins {
  background: linear-gradient(135deg, #FF6B6B, #EE5A24);
  color: #fff;
}

.up-card-title {
  padding: 8px 8px 10px;
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== Empty State ===== */
.up-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 0;
}

.up-empty-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.up-empty p {
  font-size: 13px;
  color: rgba(255,255,255,0.2);
}
