/* ==============================================================================
   星澜 · Nova 数字博主主页 V2 (1920x1080 沉浸电视大屏样式)
   严格像素级对齐 Figma 画板 218:1976 (Redraw page to UI dimensions)
   ============================================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-user-select: none;
  user-select: none;
}

html, body {
  position: fixed;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #05060d;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  color: #ffffff;
}

/* 电视 10-Foot 视口容器与居中缩放舞台 */
.screen-viewport {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #05060d;
}

.app-stage {
  position: relative;
  width: 1920px;
  height: 1080px;
  min-width: 1920px;
  min-height: 1080px;
  overflow: hidden;
  transform-origin: center center;
  background-color: #05060d;
}

/* 1. 太空环境背景图与 Figma 级双层遮罩 */
.space-ambient-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 1080px;
  overflow: hidden;
  z-index: 1;
}

.ambient-bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/creator_v2/bg_orbit_earth.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

/* 水平渐变遮罩 (Figma 218:1981) */
.ambient-overlay-h {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 6, 13, 0.70) 0%, rgba(5, 6, 13, 0.60) 50%, rgba(5, 6, 13, 0.92) 100%);
  pointer-events: none;
}

/* 垂直暗角遮罩 (Figma 218:1982) */
.ambient-overlay-v {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 6, 13, 0.50) 0%, rgba(5, 6, 13, 0.0) 50%, rgba(5, 6, 13, 0.85) 100%);
  pointer-events: none;
}

/* 2. 主体横向双栏布局 (741px + 1048px, gap 51px) */
.page-layout-container {
  position: absolute;
  inset: 0;
  width: 1920px;
  height: 1080px;
  display: flex;
  flex-direction: row;
  padding: 0 40px;
  gap: 51px;
  z-index: 10;
}

/* ==============================================================================
   左侧个人资料 Sidebar (宽度 741px)
   ============================================================================== */
.creator-sidebar {
  width: 741px;
  height: 1080px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 56px 40px 56px 0;
  gap: 24px;
  position: relative;
  box-sizing: border-box;
}

/* 头像与外环 */
.avatar-container {
  position: relative;
  width: 188px;
  height: 188px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-glow-ring {
  width: 188px;
  height: 188px;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, #ed6aff 0%, #8e51ff 50%, #00d3f3 100%);
  box-shadow: 0 0 35px rgba(142, 81, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.avatar-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

/* 在线胶囊标签 */
.avatar-status-pill {
  position: absolute;
  bottom: -4px;
  width: 62px;
  height: 31px;
  border-radius: 16px;
  background: linear-gradient(90deg, #00d492, #00d5be);
  color: #062018;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.25), 0 10px 15px rgba(0, 0, 0, 0.2);
  z-index: 5;
}

/* 姓名与性别属性 */
.creator-title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 63px;
}

.creator-name {
  font-size: 42px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 1.05px;
  line-height: 63px;
}

.creator-gender-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

/* 粉丝关注与获赞 */
.creator-metrics-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  height: 29px;
}

.metric-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 19px;
  line-height: 29px;
}

.metric-value {
  font-weight: 600;
  color: #ffffff;
}

.metric-label {
  color: #c4cdf0;
  font-weight: 400;
}

.metric-divider {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.2);
}

/* 诗意简介 */
.creator-bio-text {
  font-size: 22px;
  line-height: 44px;
  color: #C9D2F0;
  text-align: center;
  max-width: 448px;
  font-weight: 400;
}

/* 标签胶囊组 */
.creator-tags-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.tag-capsule {
  padding: 6px 20px;
  border-radius: 20px;
  border: 0.92px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
  color: #a6b4e0;
  font-size: 18px;
  line-height: 27px;
  white-space: nowrap;
}

/* 操作按钮组 */
.creator-actions-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 8px;
}

.btn-follow {
  height: 68px;
  padding: 0 34px;
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(16px);
  color: #ffffff;
  font-size: 24px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
  box-sizing: border-box;
}

.btn-follow .follow-icon {
  font-size: 30px;
  line-height: 1;
}

.btn-follow.followed {
  background: rgba(0, 212, 146, 0.2);
  border-color: rgba(0, 212, 146, 0.6);
  color: #00d492;
}

.btn-interactive {
  height: 68px;
  padding: 0 40px;
  border-radius: 34px;
  background: linear-gradient(90deg, #2b7fff 0%, #615fff 50%, #e12afb 100%);
  color: #ffffff;
  font-size: 24px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
  border: 1.5px solid transparent;
  outline: none;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==============================================================================
   右侧 Bento 作品展区 (宽度 1048px)
   ============================================================================== */
.works-section {
  width: 1048px;
  flex: 1;
  height: 1080px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 56px;
  padding-bottom: 40px;
  position: relative;
  box-sizing: border-box;
}

.works-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 903px;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.works-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.works-heading {
  font-size: 26px;
  font-weight: 700;
  color: #ffffff;
  line-height: 39px;
}

.works-count-badge {
  min-width: 32px;
  height: 32px;
  padding: 0 10px;
  border-radius: 16px;
  background: rgba(0, 211, 243, 0.15);
  box-shadow: 0 0 0 1px rgba(83, 234, 253, 0.4);
  color: #53eafd;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 作品栏右对齐更新周期徽标 (每周一更新) */
.works-update-schedule {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.3px;
  backdrop-filter: blur(12px);
}

.update-schedule-icon {
  flex-shrink: 0;
  stroke: #53eafd;
}

/* 作品卡片滚动区 */
.works-scroll-viewport {
  width: 934px;
  height: 920px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
  padding: 16px 20px 80px 14px;
  margin-top: -16px;
  box-sizing: border-box;
}

.works-scroll-viewport::-webkit-scrollbar {
  display: none;
}

/* 旗舰主打大卡 (903×508px) */
.featured-card {
  width: 903px;
  height: 508px;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  background: #11162e;
  margin-bottom: 24px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
  border: 3.5px solid transparent;
  box-sizing: border-box;
}

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

.card-duration-badge {
  position: absolute;
  top: 16px;
  right: 20px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(16px);
  border-radius: 6px;
  padding: 4px 10px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 3;
}

.featured-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(5, 6, 13, 0.35) 60%, rgba(5, 6, 13, 0.95) 100%);
  pointer-events: none;
}

.featured-meta-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 28px;
  z-index: 3;
}

.featured-title {
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.4;
  margin-bottom: 12px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.featured-stats-line {
  display: flex;
  align-items: center;
  gap: 16px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
}

.stat-play {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Bento 双列卡片网格 (441×248px) */
.works-bento-grid {
  display: grid;
  grid-template-columns: repeat(2, 441px);
  gap: 24px;
  width: 906px;
  padding-bottom: 80px;
}

.reco-card {
  width: 441px;
  height: 248px;
  border-radius: 14px;
  position: relative;
  overflow: hidden;
  background: rgba(12, 16, 36, 0.7);
  border: 3.5px solid transparent;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

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

.reco-card-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(5, 6, 13, 0.45) 65%, rgba(5, 6, 13, 0.95) 100%);
  pointer-events: none;
}

.reco-card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px 16px;
  z-index: 2;
}

.reco-card-title {
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.reco-card-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
}

.meta-play, .meta-like {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* 金句手记卡 (纯净暗夜深蓝) */
.quote-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  background: rgba(17, 22, 46, 0.85);
  backdrop-filter: blur(16px);
  border: 3.5px solid transparent;
}

.quote-symbol {
  font-size: 32px;
  color: #4f6bff;
  line-height: 1;
  font-family: serif;
}

.quote-text {
  font-size: 17px;
  line-height: 1.5;
  color: #ffffff;
  font-weight: 500;
  margin: 6px 0;
}

.quote-bottom-info {
  margin-top: auto;
}

.quote-title {
  font-size: 15px;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.quote-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #798eb5;
  font-size: 13px;
}

/* ==============================================================================
   遥控器焦点样式 (TV Focus Engine)
   ============================================================================== */
.focusable {
  outline: none;
}

.btn-follow.focused {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.22);
  border-color: #ffffff;
  box-shadow: 0 0 0 3.5px #ffffff, 0 8px 30px rgba(255, 255, 255, 0.45);
  z-index: 10;
}

.btn-follow.followed.focused {
  background: rgba(0, 212, 146, 0.3);
  border-color: #ffffff;
  color: #00ffaa;
  box-shadow: 0 0 0 3.5px #ffffff, 0 8px 30px rgba(0, 212, 146, 0.6);
  z-index: 10;
}

.btn-interactive.focused {
  transform: scale(1.05);
  border-color: #ffffff;
  box-shadow: 0 0 0 3.5px #ffffff, 0 12px 35px rgba(142, 81, 255, 0.95), 0 0 30px rgba(225, 42, 251, 0.6);
}

.featured-card.focused {
  transform: scale(1.015);
  border-color: #ffffff;
  box-shadow: 0 0 0 3.5px #ffffff, 0 18px 45px rgba(0, 0, 0, 0.8), 0 0 35px rgba(99, 102, 241, 0.5);
  z-index: 5;
}

.reco-card.focused {
  transform: scale(1.035);
  border-color: #ffffff;
  box-shadow: 0 0 0 3.5px #ffffff, 0 14px 32px rgba(0, 0, 0, 0.8), 0 0 25px rgba(99, 102, 241, 0.45);
  z-index: 5;
}

/* ==============================================================================
   全屏播放放映厅 Modal
   ============================================================================== */
.fullscreen-player-modal {
  position: absolute;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
}

.fullscreen-player-modal.active {
  display: flex;
}

.player-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(20px);
}

.player-modal-content {
  position: relative;
  z-index: 1001;
  width: 1600px;
  height: 900px;
  background: #000000;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 0 2px rgba(255, 255, 255, 0.2);
  display: flex;
  flex-direction: column;
}

.player-video-box {
  width: 100%;
  height: 820px;
  background: #000000;
}

.modal-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.player-modal-header {
  height: 80px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(18, 22, 38, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.player-video-title {
  font-size: 22px;
  font-weight: 600;
  color: #ffffff;
}

.player-close-btn {
  padding: 10px 24px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.player-close-btn.focused {
  background: #ffffff;
  color: #000000;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
}

/* ==============================================================================
   轻量 Toast 提示
   ============================================================================== */
.toast-container {
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2000;
  pointer-events: none;
}

.toast-msg {
  padding: 12px 28px;
  background: rgba(17, 24, 39, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 500;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  animation: toastFade 2.4s ease forwards;
}

@keyframes toastFade {
  0% { opacity: 0; transform: translateY(-20px); }
  15% { opacity: 1; transform: translateY(0); }
  80% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-20px); }
}

@keyframes avatarPulse {
  0% { box-shadow: 0 0 25px rgba(142, 81, 255, 0.3); }
  100% { box-shadow: 0 0 45px rgba(237, 106, 255, 0.5), 0 0 20px rgba(0, 211, 243, 0.3); }
}
