/**
 * APlayer 音乐播放器样式 - AListIntegration 定制版
 *
 * 主要修改：
 * - 移除所有圆角
 * - 深色主题背景 (#3a3a3a)
 * - 隐藏专辑封面
 * - 简洁的控制界面
 * - 自定义滚动条样式
 * - 响应式布局
 */

/* ============================================
   1. 基础容器 - 无圆角
   ============================================ */
.aplayer,
#aplayer {
    font-family: Arial, Helvetica, sans-serif;
    position: relative;
    border-radius: 0 !important;  /* 无圆角 */
    -webkit-border-radius: 0 !important;
    -moz-border-radius: 0 !important;
    overflow: hidden;
    user-select: none;
    line-height: normal;
    background: #3a3a3a !important;
    box-shadow: none !important;
    border: none !important;
    max-width: 100%;
    width: 100% !important;
    box-sizing: border-box;
    margin: 0;
}

.aplayer * {
    box-sizing: content-box;
}

/* ============================================
   2. SVG 图标样式
   ============================================ */
.aplayer svg {
    width: 100%;
    height: 100%;
}

.aplayer svg circle, .aplayer svg path {
    fill: #fff;
}

/* ============================================
   3. 专辑封面 - 隐藏
   ============================================ */
.aplayer-pic {
    display: none !important;  /* 隐藏封面 */
}

/* ============================================
   4. 信息区域
   ============================================ */
.aplayer-info {
    margin-left: 0 !important;
    padding: 14px 7px 0 10px;
    height: 66px;
    box-sizing: border-box;
    background: #3a3a3a !important;
    border-radius: 0 !important;
}

.aplayer-music {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    margin: 0 0 13px 5px;
    user-select: text;
    cursor: default;
    padding-bottom: 2px;
    height: 20px;
    background: #3a3a3a !important;
    border-radius: 0 !important;
}

.aplayer-title {
    font-size: 14px;
    color: #fff;
}

.aplayer-author {
    font-size: 12px;
    color: #666;
    display: none !important;  /* 隐藏作者显示 */
}

/* ============================================
   5. 控制区域 - 无圆角
   ============================================ */
.aplayer-controller {
    position: relative;
    display: flex;
    align-items: center;
    background-color: #3a3a3a !important;
    border-radius: 0 !important;
}

/* 时间显示 */
.aplayer-time {
    position: relative;
    right: 0;
    bottom: 4px;
    height: 17px;
    color: #999;
    font-size: 11px;
    padding-left: 7px;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    border-radius: 0 !important;
    background: #3a3a3a !important;
}

/* ============================================
   6. 进度条 - 无圆角
   ============================================ */
.aplayer-bar-wrap {
    margin: 0 0 0 5px;
    padding: 4px 0;
    cursor: pointer !important;
    flex: 1;
}

.aplayer-bar {
    position: relative;
    height: 6px !important;
    background: #000 !important;
    width: calc(100% - 5px);
    border-radius: 0 !important;  /* 无圆角 */
    -webkit-border-radius: 0 !important;
    -moz-border-radius: 0 !important;
}

.aplayer-loaded {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    background: #666;
    height: 6px !important;
    border-radius: 0 !important;  /* 无圆角 */
}

.aplayer-played {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    height: 6px !important;
    border-radius: 0 !important;  /* 无圆角 */
    background-color: #FFFFFF !important;
}

/* 进度条滑块 */
.aplayer-thumb {
    position: absolute;
    top: 0;
    right: 5px;
    margin-top: -2px !important;
    margin-right: -10px;
    height: 10px;
    width: 10px;
    border-radius: 0 !important;  /* 无圆角 - 改为方形 */
    -webkit-border-radius: 0 !important;
    -moz-border-radius: 0 !important;
    cursor: pointer;
    transition: all .3s ease-in-out;
    transform: scale(0);
    background-color: #FFFFFF !important;
}

.aplayer-playing .aplayer-thumb {
    transform: scale(1);
}

/* ============================================
   7. 控制按钮 - 无圆角
   ============================================ */
.aplayer-icon {
    cursor: pointer;
    transition: all .2s ease;
    position: relative !important;
    display: inline-block !important;
    width: 30px !important;
    height: 30px !important;
    line-height: 30px !important;
    vertical-align: middle !important;
    margin: 0 5px !important;
    padding: 0 !important;
    background-color: transparent !important;
    border-radius: 0 !important;  /* 无圆角 */
    -webkit-border-radius: 0 !important;
    -moz-border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
}

/* SVG 图标定位 */
.aplayer-icon svg {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 20px !important;
    height: 20px !important;
}

/* SVG 图标颜色 */
.aplayer-icon svg path {
    fill: #FFFFFF !important;
}

.aplayer-icon:hover svg path {
    fill: #FFFFFF !important;
}

/* 确保导航按钮可见 */
.aplayer-icon-back,
.aplayer-icon-forward,
.aplayer-icon-play,
.aplayer-icon-volume-down {
    display: inline-block !important;
}

/* 旋转前进按钮 */
.aplayer-info .aplayer-controller .aplayer-time .aplayer-icon.aplayer-icon-forward svg {
    transform: translate(-50%, -50%) rotate(180deg) !important;
}

/* ============================================
   8. 音量控制 - 无圆角
   ============================================ */
.aplayer-volume-bar {
    display: block !important;
    position: absolute;
    bottom: 3px;
    right: 0;
    width: 8px;
    height: 40px;
    background: #000;
    border-radius: 0 !important;  /* 无圆角 */
    -webkit-border-radius: 0 !important;
    -moz-border-radius: 0 !important;
}

.aplayer-volume {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 8px;
    border-radius: 0 !important;  /* 无圆角 */
    -webkit-border-radius: 0 !important;
    -moz-border-radius: 0 !important;
    transition: all 0.1s ease;
}

.aplayer-volume-bar-wrap {
    position: absolute;
    bottom: 15px;
    right: 5px;
    width: 25px;
    height: 40px;
    z-index: 99;
    display: none;
}

.aplayer-volume-bar-wrap.aplayer-volume-bar-wrap-active {
    display: block;
}

.aplayer-volume-wrap {
    display: inline-block;
    margin-left: 3px;
    cursor: pointer;
    position: relative;
}

.aplayer-volume-wrap:hover .aplayer-volume-bar-wrap {
    display: block;
}

/* ============================================
   9. 播放列表 - 无圆角
   ============================================ */
.aplayer-list {
    overflow: auto;
    transition: all .5s ease;
    will-change: height;
    display: block;
    overflow: hidden;
    background: #3a3a3a;
    border-top: 1px solid #4a4a4a;
    border-radius: 0 !important;  /* 无圆角 */
}

.aplayer-list.aplayer-list-hide {
    max-height: 0 !important;
}

.aplayer-list ol {
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    max-height: 200px;
    background: #3a3a3a !important;
}

/* 播放列表项 */
.aplayer-list ol li {
    position: relative;
    height: 32px;
    line-height: 32px;
    padding: 0 15px;
    font-size: 12px;
    border-top: 1px solid #4a4a4a;
    cursor: pointer;
    transition: all .2s ease;
    overflow: hidden;
    margin: 0;
    border-radius: 0 !important;  /* 无圆角 */
}

.aplayer-list ol li:first-child {
    border-top: none;
    border-radius: 0 !important;  /* 无圆角 */
}

.aplayer-list ol li:hover {
    background: #4a4a4a !important;
}

.aplayer-list ol li.aplayer-list-light {
    background: #4a4a4a !important;
}

/* 列表标题 */
.aplayer-list-title {
    color: #fff;
}

/* 自定义滚动条 - 方形 */
.aplayer-list ol::-webkit-scrollbar {
    width: 6px;  /* 显示滚动条 */
}

.aplayer-list ol::-webkit-scrollbar-track {
    background: #3a3a3a;
}

.aplayer-list ol::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 0 !important;  /* 无圆角 */
}

.aplayer-list ol::-webkit-scrollbar-thumb:hover {
    background: #666;
}

/* ============================================
   10. 隐藏不必要的元素
   ============================================ */
.aplayer-list-cur,
.aplayer-list-index,
.aplayer-icon-lrc,
.aplayer-icon-order,
.aplayer-list-author,
.aplayer-miniswitcher,
.aplayer-icon-menu,
.aplayer .aplayer-pic .aplayer-button,
.aplayer-notice,
.aplayer-miniplayer,
.aplayer-lrc,
.aplayer-lrc-contents {
    display: none !important;
}

/* ============================================
   11. 统一背景色
   ============================================ */
.aplayer-body,
.aplayer-controller,
.aplayer-info,
.aplayer-list,
.aplayer-list ol,
.aplayer-list-light {
    background-color: #3a3a3a !important;
}

/* ============================================
   12. 响应式设计
   ============================================ */
@media (max-width: 768px) {
    .aplayer {
        font-size: 12px;
    }

    .aplayer-icon {
        width: 26px !important;
        height: 26px !important;
        line-height: 26px !important;
    }

    .aplayer-list ol {
        max-height: 150px;
    }
}
