/**
 * Emby 播放记录显示样式
 * 
 * @author lywq
 * @since 1.0.0
 */

/* 播放记录容器 */
emby-play-history {
  display: inline-block;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.emby-play-history-container {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  max-width: 300px;
  transition: all 0.3s ease;
}

.emby-play-history-container:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

/* 缩略图 */
.emby-play-history-image {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
  background-color: #f0f0f0;
}

/* 内容区域 */
.emby-play-history-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* 标题 */
.emby-play-history-title {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 艺术家 */
.emby-play-history-artist {
  font-size: 12px;
  color: #666;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 时间 */
.emby-play-history-time {
  font-size: 12px;
  color: #999;
  line-height: 1.4;
}

/* 暗色主题支持 */
@media (prefers-color-scheme: dark) {
  .emby-play-history-container {
    background-color: rgba(30, 30, 30, 0.95);
  }

  .emby-play-history-title {
    color: #e0e0e0;
  }

  .emby-play-history-artist {
    color: #b0b0b0;
  }

  .emby-play-history-time {
    color: #888;
  }

  .emby-play-history-image {
    background-color: #404040;
  }
}

/* 响应式设计 */
@media (max-width: 480px) {
  .emby-play-history-container {
    max-width: 100%;
    padding: 6px 10px;
  }

  .emby-play-history-image {
    width: 40px;
    height: 40px;
  }

  .emby-play-history-title {
    font-size: 13px;
  }

  .emby-play-history-artist,
  .emby-play-history-time {
    font-size: 11px;
  }
}

@keyframes emby-play-history-music-bar {
  0%, 100% { height: 40%; }
  50% { height: 100%; }
}
