/**
 *
 * 音乐搜索器 - CSS 文件
 *
 * @author  MaiCong <i@maicong.me>
 * @link    https://github.com/maicong/music
 * @since   1.5.4
 *
 */

/* 全局HTML样式设置 */
html {
  /* 设置全局字体族，兼容多种系统和浏览器 */
  font-family: -apple-system, BlinkMacSystemFont, 'San Francisco', 'Microsoft YaHei', 'PingFang SC',
    'Hiragino Sans GB', 'WenQuanYi Micro Hei', 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell',
    'Fira Sans', 'Droid Sans', 'Noto Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif,
    'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
  /* 禁止文本自动缩放（针对移动设备横屏切换时） */
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/*  body基础样式 */
body {
  margin: 0; /* 清除默认外边距 */
  /* 移除移动端点击元素时的高亮效果 */
  -webkit-tap-highlight-color: transparent;
  /* 优化字体渲染（亚像素抗锯齿） */
  -webkit-font-smoothing: subpixel-antialiased;
}

/* 链接元素样式 */
a {
  /* 所有属性变化添加0.3秒过渡动画 */
  -webkit-transition: all .3s;
  transition: all .3s;
}

/* 关于页面样式 */
.about {
  background: #fff; /* 白色背景 */
  color: #7f8c8d; /* 灰色文本 */
}

.about-color {
  color: #34495e; /* 深灰色文本 */
}

.about-title {
  font-size: 180%; /* 标题字体大小为默认的1.8倍 */
  text-align: center; /* 文本居中 */
}

/* 主内容区域样式 */
.main {
  margin: 60px 0; /* 上下外边距60px，左右0 */
}

/* 音乐标签页样式 */
.music-tabs > li > a {
  padding: 0.5em 1em; /* 内边距上下0.5em，左右1em */
  cursor: pointer; /* 鼠标悬停显示手型光标 */
}

/* 音乐主内容区域样式 */
.music-main {
  display: none; /* 默认隐藏，通过JS控制显示 */
}

/* 音乐主内容区域内输入框样式 */
.music-main input {
  text-overflow: ellipsis; /* 文本溢出时显示省略号 */
}

/* 输入框聚焦和悬停状态 */
.music-main input:focus,
.music-main input:hover {
  background: #eee; /* 浅灰色背景 */
  border-color: #ccc; /* 灰色边框 */
  color: #222; /* 深灰色文本 */
}

/* 音乐类型选择器样式 */
.music-type .am-radio-inline,
.music-type label {
  color: #7f8c8d; /* 灰色文本 */
}

/* 单选框图标样式 */
.music-type .am-icon-unchecked,
.music-type .am-icon-checked {
  color: #0e90d2; /* 蓝色图标 */
}

/* 提示信息区域样式 */
.music-tips {
  margin-top: 50px; /* 上外边距50px */
}

/* 提示信息内引用块样式 */
.music-tips blockquote {
  /* 等宽字体，适合显示代码或命令 */
  font-family: Menlo, Monaco, Consolas, 'Courier New', monospace;
  font-size: 14px; /* 字体大小14px */
  margin-top: 30px; /* 上外边距30px */
}

/* 提示信息内段落文本样式 */
.music-tips p span {
  display: inline-block; /* 行内块元素，可设置宽高 */
  min-width: 50px; /* 最小宽度50px */
}

/* 提示信息内粗体文本样式 */
.music-tips p b {
  font-weight: 500; /* 中等加粗 */
  color: #c7254e; /* 暗红色文本 */
}

/* 溢出内容容器样式 */
.music-overflow {
  max-height: 200px; /* 最大高度200px */
  overflow: hidden; /* 超出部分隐藏 */
}

/* "查看更多"按钮样式 */
.music-more {
  padding: 10px; /* 内边距10px */
  text-align: center; /* 文本居中 */
  font-size: 14px; /* 字体大小14px */
  color: #666; /* 深灰色文本 */
  background: #eee; /* 浅灰色背景 */
  cursor: pointer; /* 鼠标悬停显示手型光标 */
}

/* 页脚样式 */
.footer {
  position: relative; /* 相对定位 */
  left: 0;
  bottom: 0;
  width: 100%; /* 宽度100% */
  overflow: hidden; /* 超出部分隐藏 */
}

/* 页脚内段落样式 */
.footer p {
  color: #7f8c8d; /* 灰色文本 */
  margin: 0; /* 清除默认外边距 */
  padding: 15px; /* 内边距15px */
  text-align: center; /* 文本居中 */
  background: #2d3e50; /* 深蓝色背景 */
}

/* 页脚内链接样式 */
.footer p a {
  color: #7f8c8d; /* 灰色链接 */
}

/* 页脚内链接悬停状态 */
.footer p a:hover {
  color: #bbb; /* 亮灰色链接 */
}

/* 页脚内所有链接样式 */
.footer a {
  text-decoration: underline; /* 下划线装饰 */
}

/* 警告提示框样式 */
.am-alert {
  display: none; /* 默认隐藏 */
}

/* 弹窗内容区域样式 */
.am-popup-bd {
  height: 100%; /* 高度100% */
}

/* APlayer播放器基础样式 */
.aplayer {
  padding: 10px !important; /* 内边距10px（强制覆盖） */
  margin: 0 !important; /* 清除外边距（强制覆盖） */
  border: 1px solid #ccc; /*  灰色边框 */
}

/* 播放器内歌曲信息样式 */
.aplayer .aplayer-info .aplayer-music .aplayer-title,
.aplayer .aplayer-info .aplayer-music .aplayer-author {
  font-size: 16px !important; /* 字体大小16px（强制覆盖） */
  color: #555 !important; /* 深灰色文本（强制覆盖） */
}

/* 播放列表索引样式 */
.aplayer .aplayer-list ol li .aplayer-list-index {
  display: inline-block; /* 行内块元素 */
  width: 20px; /* 宽度20px */
  text-align: right; /* 文本右对齐 */
}

/* 歌词文本样式 */
.aplayer .aplayer-lrc p {
  color: #0e90d2 !important; /* 蓝色歌词（强制覆盖） */
}

/* 播放器"更多"按钮样式 */
.aplayer .aplayer-more {
  position: relative; /* 相对定位 */
  font-size: 12px; /* 字体大小12px */
  padding: 8px 10px; /* 内边距8px 10px */
  margin-top: 10px; /* 上外边距10px */
  text-align: center; /* 文本居中 */
  color: #888; /* 灰色文本 */
  cursor: pointer; /* 鼠标悬停显示手型光标 */
  /* 颜色过渡动画 */
  -webkit-transition: color .3s;
  transition: color .3s;
}

/* "更多"按钮悬停和激活状态 */
.aplayer .aplayer-more:hover,
.aplayer .aplayer-more:active {
  color: #0e90d2; /* 蓝色文本 */
}

/* 带歌词的播放器专辑封面样式 */
.aplayer.aplayer-withlrc .aplayer-pic {
  width: 45px !important; /* 宽度60px（强制覆盖） */
  height: 45px !important; /* 高度60px（强制覆盖） */
  /* 内阴影效果 */
  -webkit-box-shadow: inset 0 0 3px 0 rgba(0, 0, 0, .5);
  box-shadow: inset 0 0 3px 0 rgba(0, 0, 0, .5);
}

/* 带歌词的播放器信息区域样式 */
.aplayer.aplayer-withlrc .aplayer-info {
  margin-left: 10px !important; /* 左外边距120px（强制覆盖） */
  height: 120px !important; /* 高度120px（强制覆盖） */
}

/* 带播放列表的播放器信息区域样式 */
.aplayer.aplayer-withlist .aplayer-info {
  /* 使用flex布局 */
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column; /* 垂直排列 */
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between; /* 两端对齐 */
  border-bottom: 0 !important; /* 去除下边框（强制覆盖） */
}

/* 带播放列表的播放器列表区域样式 */
.aplayer.aplayer-withlist .aplayer-list {
  height: auto !important; /* 高度自适应（强制覆盖） */
  padding-top: 20px; /* 上内边距20px */
  -webkit-transition: none; /* 禁用过渡动画 */
  transition: none;
}

/* 隐藏的播放列表样式 */
.aplayer.aplayer-withlist .aplayer-list-hide {
  padding: 0; /* 清除内边距 */
}