/* 播放器外壳：固定 16:9 比例，黑底，圆角 */
.player-shell {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: .5rem;
    overflow: hidden;
}

.player-shell video {
    display: block;
    width: 100%;
    height: 100%;
    background: #000;
}

/* 覆盖层：显示加载中 / 错误 / 初始提示，不拦截鼠标事件，避免挡住原生控制条 */
.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    text-align: center;
    color: #fff;
    font-size: .9rem;
    line-height: 1.5;
    background: rgba(0, 0, 0, .6);
    pointer-events: none;
    transition: opacity .2s ease, visibility .2s ease;
}

.player-overlay.overlay-hidden {
    opacity: 0;
    visibility: hidden;
}

#playBtn {
    min-width: 96px;
}

/* 播放速度按钮激活态 */
#rateGroup .btn.active {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
}

/* 历史记录里的链接文字，超长省略 */
.history-url {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* 小屏幕适配 */
@media (max-width: 400px) {
    .player-overlay { font-size: .8rem; }
    #playBtn { min-width: 80px; }
}
