#ty-mp {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 99999;
    font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
    user-select: none;
}

/* 圆形开关按钮 */
.ty-mp__toggle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b6b, #ff4757);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(255, 71, 87, .35);
    transition: transform .25s, box-shadow .25s;
}
.ty-mp__toggle:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 16px rgba(255, 71, 87, .5);
}

/* 面板 */
.ty-mp__panel {
    position: absolute;
    left: 0;
    bottom: 62px;
    width: 300px;
    background: rgba(30, 30, 40, .92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 12px;
    padding: 14px;
    color: #eee;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
    transform: translateY(10px) scale(.96);
    opacity: 0;
    pointer-events: none;
    transition: all .25s ease;
    max-height: 70vh;
    display: flex;
    flex-direction: column;
}
#ty-mp.is-open .ty-mp__panel {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
}

.ty-mp__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 13px;
    gap: 10px;
}
.ty-mp__title {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #fff;
    font-weight: 600;
}
.ty-mp__close {
    cursor: pointer;
    color: #aaa;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
    line-height: 1;
}
.ty-mp__close:hover { color: #fff; }

/* 进度条 */
.ty-mp__progress {
    height: 4px;
    background: rgba(255, 255, 255, .15);
    border-radius: 4px;
    cursor: pointer;
    overflow: hidden;
    margin-bottom: 6px;
}
.ty-mp__progress-inner {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #ff6b6b, #ff4757);
    transition: width .1s linear;
}

.ty-mp__time {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #aaa;
    margin-bottom: 10px;
}

/* 控制按钮 */
.ty-mp__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}
.ty-mp__btn {
    background: transparent;
    border: none;
    color: #ddd;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 6px;
    transition: background .2s, color .2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.ty-mp__btn:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.ty-mp__btn--play {
    background: linear-gradient(135deg, #ff6b6b, #ff4757);
    color: #fff;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    padding: 0;
}
.ty-mp__btn--play:hover {
    background: linear-gradient(135deg, #ff5252, #ff2e3d);
}

/* 音量 */
.ty-mp__volume {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #aaa;
    margin-bottom: 8px;
}
.ty-mp__volume input[type="range"] {
    flex: 1;
    height: 3px;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, .15);
    border-radius: 3px;
    outline: none;
}
.ty-mp__volume input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ff4757;
    cursor: pointer;
}
.ty-mp__volume input[type="range"]::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ff4757;
    border: none;
    cursor: pointer;
}

/* 播放列表 */
.ty-mp__list {
    max-height: 220px;
    overflow-y: auto;
    border-top: 1px solid rgba(255, 255, 255, .08);
    padding-top: 8px;
    display: none;
}
#ty-mp.show-list .ty-mp__list { display: block; }
.ty-mp__list::-webkit-scrollbar { width: 4px; }
.ty-mp__list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .15);
    border-radius: 4px;
}
.ty-mp__item {
    padding: 7px 10px;
    font-size: 12.5px;
    color: #ccc;
    border-radius: 6px;
    cursor: pointer;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: background .15s, color .15s;
}
.ty-mp__item:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.ty-mp__item.is-active {
    color: #ff6b6b;
    background: rgba(255, 71, 87, .12);
    font-weight: 600;
}

/* 移动端适配 */
@media (max-width: 640px) {
    #ty-mp { left: 12px; bottom: 12px; }
    .ty-mp__panel { width: calc(100vw - 48px); max-width: 320px; }
}