/* ========== 全屏核心样式：隐藏浏览器UI、铺满屏幕 ========== */
:-webkit-full-screen, :fullscreen {
    width: 100% !important;
    height: 100% !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #000 !important;
    z-index: 99999 !important;
}
/* 适配刘海屏/底部小黑条安全区 */
#player, .player-box {
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
    background: #000;
}
/* 全屏时隐藏页面顶部导航栏，彻底干净 */
:fullscreen header,
:-webkit-full-screen header {
    display: none !important;
}
/* 加到head里，穿透触摸、不拦截手势 */
#playerBox, #player, .plyr__video-wrapper {
    touch-action: none; /* 🔥 禁用浏览器原生滑动/缩放，iOS关键 */
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}
.plyr__controls {
    pointer-events: auto; /* 控制栏按钮依然能点，不冲突 */
}
/* ===== 兜底：强制全屏按钮始终可见，防止Plyr/UA隐藏 ===== */
.plyr__controls .plyr__control--fullscreen {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}
.player-box {
    position: relative;
    width: 100%;
    background: #000;
    border-radius: 6px;
    overflow: hidden;
    aspect-ratio: 16/9;
}
.player-container {
    width: 100%;
    height: 100%;
    display: none;
    background: #000;
}
.player-box.playing .player-container {
    display: block;
}
.player-cover {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.3s ease;
    z-index: 2;
}
.player-box.playing .player-cover {
    opacity: 0;
    pointer-events: none;
}
.play-btn {
    width: 70px;
    height: 70px;
    background: rgba(0,0,0,0.65);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 30px;
    transition: transform 0.2s ease;
    border: 2px solid #fff;
}
.player-cover:hover .play-btn {
    transform: scale(1.1);
}
.player-error {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #ff6666;
    font-size: 14px;
    background: rgba(0,0,0,0.75);
    padding: 6px 12px;
    border-radius: 4px;
    display: none;
    z-index: 3;
}
/* ==============================================
   影片信息 · 优化排版
   ============================================== */
.detail-info {
    border-top: 1px solid #eee;
    padding-top: 20px;
    margin-bottom: 25px;
}

.detail-info h2 {
    font-size: 18px;
    font-weight: 600;
    color: #000;
    border-left: 3px solid #000;
    padding-left: 10px;
    margin-bottom: 15px;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 20px;
}

.info-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.info-row-full {
    grid-column: 1 / -1;
}

.info-label {
    flex-shrink: 0;
    max-width: 80px;
    font-size: 13px;
    color: #888;
    font-weight: 500;
    padding: 1px 0;
}

.info-value {
    flex: 1;
    font-size: 14px;
    color: #333;
    line-height: 1.6;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.info-tag {
    display: inline-block;
    padding: 4px 10px;
    font-size: 12px;
    color: #fff;
    background: #1a1a1a;
    border-radius: 4px;
    transition: all 0.2s;
    white-space: nowrap;
}
.info-tag:hover {
    background: #1a1a1a;
    color: #fff;
}
/* ===== 评论按钮 ===== */
.comment .card-btn:hover .card-icon{background:#3498db;color:#fff;}
.comment .card-btn:hover{color:#3498db;}

/* ===== 评论弹窗 ===== */
.comment-modal{
    position:fixed;
    top:0;left:0;right:0;bottom:0;
    z-index:9999;
}
.comment-modal-mask{
    position:absolute;
    top:0;left:0;right:0;bottom:0;
    background:rgba(0,0,0,0.55);
}
.comment-modal-body{
    position:absolute;
    left:50%;top:50%;
    transform:translate(-50%,-50%);
    width:90%;max-width:720px;
    max-height:85vh;
    background:#fff;
    border-radius:10px;
    overflow:hidden;
    box-shadow:0 4px 20px rgba(0,0,0,0.2);
    display:flex;
    flex-direction:column;
}
.comment-modal-head{
    padding:14px 18px;
    background:#1A1A1A;
    color:#fff;
    display:flex;
    justify-content:space-between;
    align-items:center;
    font-size:15px;
    font-weight:500;
}
.comment-modal-close{
    color:#fff;
    font-size:20px;
    font-weight:300;
    cursor:pointer;
    opacity:0.8;
    transition:0.2s;
    text-decoration:none;
}
.comment-modal-close:hover{opacity:1;}
.comment-modal-content{
    flex:1;
    overflow:hidden;
}
.comment-modal-content iframe{
    width:100%;
    height:calc(85vh - 50px);
    border:none;
}

/* 手机适配 */
@media (max-width:767px){
    .comment-modal-body{width:96%;max-height:90vh;}
    .comment-modal-head{padding:12px 15px;font-size:14px;}
    .comment-modal-content iframe{height:calc(90vh - 46px);}
}
/* 响应式适配 */
@media (max-width: 767px) {
    .info-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .info-label {
        width: 70px;
    }
}
/* ==============================================
   播放页 · 操作卡片模块（始终一行5个）
   ============================================== */
.play-action-card {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    padding: 10px 0;
    margin-bottom: 10px;
    background: #1a1a1a;
    border-radius: 10px;
}

.action-card-item {
    transition: all 0.2s ease;
}
.action-card-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: #1a1a1a;
}

.card-btn {
    width: 100%;
    padding: 0 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: #fff;
    transition: all 0.2s;
}
.card-btn:hover {
    color: #999;
}
.card-btn.active {
    color: #fff;
}
.card-btn.active .card-icon {
    background: #1a1a1a;
}

.vote-like .card-btn.active { background: #1a1a1a; }
.vote-dislike .card-btn.active { background: #1a1a1a; }
.share .card-btn:hover { color: #27ae60; }
.report .card-btn:hover { color: #e74c3c; }

.card-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 16px;
    background: #f5f5f5;
    transition: all 0.2s;
    color: #1a1a1a;
}
.card-btn:hover .card-icon {
    background: #eee;
}

.card-text {
    font-size: 12px;
    line-height: 1.2;
}
.card-num {
    font-size: 12px;
    color: #fff;
}
.card-btn.active .card-num {
    color: rgba(255,255,255,0.9);
}