/* card.css - 中央圆形播放器布局（原始设计） */

/* 主容器 */
.card {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  animation: fadeIn 1s var(--ease-smooth) both;
}

/* 布局：垂直居中 */
.card__layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 60px;
  max-width: 100%;
  width: 100%;
}

/* 封面列：顶部位置 */
.card__cover-col {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 圆形封面播放器 */
.cover {
  position: relative;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow:
    0 0 60px var(--accent-glow),
    0 0 120px var(--accent-glow),
    inset 0 0 60px rgba(0, 0, 0, 0.5);
  animation: scaleIn 1.5s var(--ease-smooth) 0.3s both;
  transition: all 0.6s var(--ease-smooth);
}

/* 封面悬停效果 */
.cover:hover {
  transform: scale(1.03);
  box-shadow:
    0 0 80px var(--accent-glow),
    0 0 160px var(--accent-glow),
    inset 0 0 60px rgba(0, 0, 0, 0.5);
}

/* 封面图片 */
.cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 旋转动画（播放时） */
.cover.is-playing {
  animation: rotate 20s linear infinite;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* 封面光效遮罩 */
.cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(255, 255, 255, 0.1) 90deg,
    transparent 180deg,
    rgba(255, 255, 255, 0.05) 270deg,
    transparent 360deg
  );
  animation: shimmer 3s linear infinite;
  pointer-events: none;
}

@keyframes shimmer {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* 封面兜底 */
.cover__fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.cover__note {
  font-size: 120px;
  color: var(--accent);
  opacity: 0.2;
  user-select: none;
}

/* 内容列：底部信息 */
.card__content-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
  min-width: 0;
  animation: fadeIn 1.2s var(--ease-smooth) 0.6s both;
  max-width: 1600px; /* 加宽内容区域 */
  width: 100%;
}

/* 头部标签 */
.card__head {
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0.5;
}

.card__brand {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.card__date {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--text-tertiary);
}

.card__date::before {
  content: "·";
  margin-right: 12px;
}

/* 歌曲信息 */
.meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 100%; /* 不限制宽度 */
}

.meta__title {
  font-size: 36px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  margin: 0;
  animation: fadeIn 0.6s ease 0.3s both;
}

/* Loading 状态脉冲动画 */
.meta__title:empty::after {
  content: "Loading...";
  opacity: 0.6;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 0.3; }
}

.meta__artist {
  font-size: 18px;
  font-weight: 400;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
  transition: color 0.4s ease;
}

/* 寄语 */
.note {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-tertiary);
  font-style: italic;
  max-width: 100%; /* 不限制宽度 */
  margin-top: 8px;
  transition: color 0.4s ease;
}

/* 响应式 */
@media (max-width: 768px) {
  /* 顶部留白避开固定角落按钮（按钮底边约 60px） */
  .card {
    padding: 76px 24px 40px;
  }

  .cover {
    width: 300px;
    height: 300px;
  }

  .card__layout {
    gap: 40px;
  }

  .meta__title {
    font-size: 28px;
  }

  .meta__artist {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .card {
    padding: 72px 16px 32px;
  }

  .cover {
    width: 240px;
    height: 240px;
  }

  .card__layout {
    gap: 32px;
  }

  .meta__title {
    font-size: 24px;
  }

  .meta__artist {
    font-size: 14px;
  }

  .note {
    font-size: 13px;
  }
}
