/* ============================================================
 * player.css — 最终定稿版
 * ============================================================ */

/* ========== 缩放指示器 ========== */
.zoom-indicator { position: absolute; top: 20px; right: 20px; background: rgba(0, 0, 0, .7); backdrop-filter: blur(10px); padding: 8px 16px; border-radius: 8px; color: #fff; font-size: 14px; font-weight: 600; z-index: 30; opacity: 0; transition: opacity .3s ease, transform .3s ease; transform: translateY(-10px); pointer-events: none; border: 1px solid rgba(255, 255, 255, .1); min-width: 60px; text-align: center; }
.zoom-indicator.show { opacity: 1; transform: translateY(0); }
.zoom-indicator .zoom-value { color: #4ecdc4; font-weight: 700; }

/* ========== 滑动指示条尺寸 ========== */
.swipe-progress { width: 3px; }
.layout-desktop .swipe-progress { width: 4px; }

/* ========== 桌面端进度预览 ========== */
.progress-preview { position: absolute; bottom: 24px; left: 0; transform: translateX(-50%); background: rgba(0, 0, 0, .85); backdrop-filter: blur(8px); color: #fff; padding: 4px 12px; border-radius: 6px; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; pointer-events: none; opacity: 0; transition: opacity .15s ease; z-index: 30; border: 1px solid rgba(255, 255, 255, .08); white-space: nowrap; }
.progress-preview.show { opacity: 1; }
.progress-hover-dot { position: absolute; top: 50%; transform: translate(-50%, -50%); width: 12px; height: 12px; border-radius: 50%; background: red; pointer-events: none; opacity: 0; transition: opacity .15s ease; z-index: 1; }
.progress-hover-dot.show { opacity: 1; }

/* ============================================================
 * 容器基础样式（防止被意外挤压或拉伸）
 * ============================================================ */
#h265Player {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    overflow: hidden;
}

/* ========== 移动端小屏适配 ========== */
@media (max-width: 480px) {
    .layout-wap #title { font-size: 20px; padding: 10px 12px; }
    .layout-wap #dz { font-size: 16px; padding: 3px 8px; }
    .layout-wap #timeDisplay { font-size: 16px; padding: 3px 8px; }
    .layout-app #title { font-size: 14px; padding: 10px 12px; }
    .layout-app #dz { font-size: 12px; padding: 3px 8px; max-width: 65%; }
    .layout-app #timeDisplay { font-size: 12px; padding: 3px 8px; }
    .center-play-btn { width: 60px; height: 60px; }
    .center-play-btn svg { width: 28px; height: 28px; }
    #anniu button { width: 38px; height: 38px; flex: 0 0 38px; }
    #anniu button svg { width: 18px; height: 18px; }
    .rotate-btn { width: 38px; height: 38px; flex: 0 0 38px; }
    .rotate-btn svg { width: 18px; height: 18px; }
    .layout-wap #sliderArea { height: 11px !important; }
    .layout-wap .progress-bar { height: 18px; }
    .layout-app .progress-track-wrapper { height: 4px; }
    .layout-app .progress-bar::-webkit-slider-thumb { width: 14px; height: 14px; margin-top: -5px; }
}

/* ========== 横屏适配 ========== */
@media (orientation: landscape) and (max-height: 500px) {
    #bottom { max-height: 60px; }
    #anniu { padding: 4px 0; gap: 6px; }
    #anniu button { width: 34px; height: 34px; flex: 0 0 34px; }
    #anniu button svg { width: 16px; height: 16px; }
    .rotate-btn { width: 34px; height: 34px; flex: 0 0 34px; }
    .rotate-btn svg { width: 16px; height: 16px; }
    .layout-wap #sliderArea { height: 11px !important; }
    .layout-app .progress-track-wrapper { height: 4px; }
}

/* ========== 桌面端 hover 效果 ========== */
.layout-desktop .center-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: rgba(233, 69, 96, 1);
    box-shadow: 0 0 60px rgba(233, 69, 96, .6);
    border-color: rgba(255, 255, 255, .5);
}
.layout-desktop .center-play-btn:active {
    transform: translate(-50%, -50%) scale(.9);
}
.layout-desktop .center-play-btn svg {
    width: 40px;
    height: 40px;
    margin-left: 5px;
}

/* ========== 移动端隐藏竖条面板 ========== */
@media (max-width: 768px) {
    .vertical-slider-panel { display: none !important; }
    .vertical-slider-wrap { width: auto; height: auto; flex: 0 0 auto; }
}