/* ==========================================================================
   播放页（vod/play）专属。版面沿用 tp26（使用者 2026-09-24 指定）：
     播放卡片 ＝ 播放器 75% ＋ 右侧「猜你喜欢」直式清单 25%（右栏独立卷动）；
     卡片下方 ＝ 面包屑 → 片名资讯 → 播放列表（widget/playlist，样式在 main.css）→ 评论。
   配色：原本照参考站做满版深色带（#27272F），接白底页面交界太硬（使用者 2026-09-24 反映），
   改成跟着皮肤走的面板卡片（白皮 #F5F5F5 = 参考站 .myui-panel-bg2、深皮 #22212F），
   只有影片区固定黑底（提示条也跟卡片同色）。工具栏仍是参考站的等宽文字钮。
   ========================================================================== */

.play-main { padding-bottom: 0; }

/* ---------- 深色播放带 ---------- */
.play-stage {
    /* 与详情页等内页同一套上边距 15（原本满版深色带贴顶栏，改卡片后需要一点呼吸） */
    padding: 15px 0 0;
    margin-bottom: var(--section-gap);
}
.play-stage-inner {
    max-width: calc(var(--content-max) + var(--page-pad) * 2);
    margin: 0 auto;
    padding: 0 var(--page-pad);
}

/* §17.30：播放器决定高度，右栏 position:absolute 脱离高度计算、自己卷动 */
.play-box {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--player-panel);
}
.player-wrap { width: 75%; min-width: 0; }

/* 提示条跟卡片同色（原本照参考站 .tips #181515 黑底，黑条＋黑影片＋浅灰工具栏三段深浅交错，
   使用者 2026-09-24 定案：只留影片区是黑色），下缘一条细线跟影片分开 */
.player-tips {
    height: 40px;
    padding: 0 20px;
    border-bottom: 1px solid var(--border);
    background: var(--player-panel);
    color: var(--text-1);
    font-size: 14px;
    line-height: 40px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-box {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    overflow: hidden;
}
.player-box > iframe,
.player-box > div {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* 工具栏：.myui-player__operate { display:flex; padding:20px 10px } li { flex:1; text-align:center } */
.player-toolbar {
    display: flex;
    padding: 20px 10px;
    background: var(--player-panel);
}
.ptb-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 0;
    padding: 0;
    border: 0;
    background: none;
    color: var(--text-2);
    font-size: 14px;
    line-height: 20px;
    white-space: nowrap;
    cursor: pointer;
}
.ptb-btn .mac-icon { font-size: 14px; }
.ptb-btn:hover { color: var(--accent); }
.ptb-btn.is-disabled { opacity: 0.4; cursor: not-allowed; pointer-events: none; }

/* ---------- 右侧「猜你喜欢」（widget/play_related_item） ---------- */
.play-aside {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 25%;
    display: flex;
    flex-direction: column;
    padding: 20px 0 10px;
}
.pa-related-hd {
    flex-shrink: 0;
    padding: 0 20px 10px;
    font-size: 24px;
    line-height: 30px;
    color: var(--text-title);
}
.pa-related-list {
    flex: 1;
    min-height: 0;
    margin: 0;
    padding: 0 10px;
    list-style: none;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--player-scroll) transparent;
}
.pa-related-list::-webkit-scrollbar { width: 4px; background-color: transparent; }
.pa-related-list::-webkit-scrollbar-thumb { background-color: var(--player-scroll); border-radius: 2px; }
.pa-related-item { display: flex; min-width: 0; }
.pa-ri-link {
    flex: 1;
    min-width: 0;
    display: flex;
    gap: 10px;
    padding: 8px 10px;
    border-radius: var(--radius-btn);
    color: var(--text-1);
}
.pa-ri-link:hover { background: var(--player-hover); color: var(--link-hover); }
.pa-ri-thumb {
    position: relative;
    flex-shrink: 0;
    width: 60px;
    aspect-ratio: 2 / 3;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-thumb);
    background: var(--bg-elevated) url("../img/load.gif") no-repeat center/cover;
}
.pa-ri-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pa-ri-info { flex: 1; min-width: 0; padding-top: 2px; }
.pa-ri-name { margin-bottom: 6px; font-size: 14px; line-height: 20px; color: inherit; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pa-ri-meta { margin-bottom: 6px; font-size: 12px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pa-ri-remarks {
    display: inline-block;
    max-width: 100%;
    padding: 0 5px;
    border-radius: var(--radius-sm);
    background: var(--badge);
    color: #fff;
    font-size: 12px;
    line-height: 20px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---------- 带子下方白底区：面包屑 → 片名资讯 → 播放列表 → 评论 ---------- */
.play-bottom-inner {
    max-width: calc(var(--content-max) + var(--page-pad) * 2);
    margin: 0 auto;
    padding: 0 var(--page-pad);
}
.play-content > .art-breadcrumb { margin-bottom: 15px; }

/* .myui-player__data：片名 24px ＋ 灰色集名，资讯 12px 灰 */
.play-info-bar { margin-bottom: var(--section-gap); }
.play-title-row { display: flex; align-items: baseline; gap: 10px; }
.play-vod-title {
    margin: 0 0 10px;
    font-size: 24px;
    font-weight: 400;
    line-height: 30px;
    color: var(--text-title);
}
.play-vod-title a { color: inherit; }
.play-vod-title a:hover { color: var(--link-hover); }
.play-cur-ep { margin-left: 4px; font-size: 18px; color: var(--text-3); }

.play-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; font-size: 12px; color: var(--text-2); }
.play-tag + .play-tag::before { content: "/"; margin: 0 4px; color: var(--text-3); }
.play-tag a { color: var(--text-2); }
.play-tag a:hover { color: var(--link-hover); }
.play-tag--score { color: var(--score-hi); font-size: 14px; }
.play-tag-divider { display: inline-block; width: 1px; height: 12px; margin: 0 10px; background: var(--border); }

/* §17.33：「简介：」标签包进裁切容器；§17.34：只用 line-clamp，不叠字元截断 */
.play-desc { display: flex; align-items: flex-start; gap: 8px; margin-top: 10px; }
.play-desc-text {
    flex: 1;
    min-width: 0;
    margin: 0;
    font-size: 14px;
    line-height: 22px;
    color: var(--text-2);
    display: -webkit-box;
    -webkit-line-clamp: 2;       /* 两行收合（tp26 使用者 2026-09-23 指定，沿用） */
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.play-desc.is-open .play-desc-text { -webkit-line-clamp: unset; overflow: visible; }
.play-desc-more { display: flex; align-items: center; flex-shrink: 0; height: 22px; padding: 0; border: 0; background: none; color: var(--text-3); cursor: pointer; }
.play-desc-more:hover { color: var(--link-hover); }
.play-desc-more .mac-icon { font-size: 16px; transition: transform 0.2s; }
.play-desc.is-open .play-desc-more .mac-icon { transform: rotate(180deg); }

/* ---------- 响应式 ---------- */
@media (max-width: 1199px) {
    .player-wrap { width: 65%; }     /* col-md-wide-65 */
    .play-aside { width: 35%; }
}

@media (max-width: 767px) {
    .play-stage { padding: 0; }
    .play-stage-inner { padding: 0; }
    .play-box { border-radius: 0; }
    .player-wrap { width: 100%; }
    .player-tips { height: 32px; padding: 0 10px; font-size: 12px; line-height: 32px; }
    /* 参考站手机：工具钮图标在上、文字在下 */
    .player-toolbar { padding: 10px 0; }
    .ptb-btn { flex-direction: column; gap: 5px; font-size: 12px; }
    .ptb-btn .mac-icon { font-size: 16px; }
    /* 右栏回到文档流，改成横向滑动一排 */
    .play-aside { position: static; width: 100%; padding: 15px 0; }
    .pa-related-hd { padding: 0 10px 10px; font-size: 18px; line-height: 24px; }
    .pa-related-list { display: flex; gap: 10px; overflow-x: auto; overflow-y: hidden; padding: 0 10px; scrollbar-width: none; }
    .pa-related-list::-webkit-scrollbar { display: none; }
    .pa-related-item { flex: 0 0 100px; }
    .pa-ri-link { flex-direction: column; gap: 6px; padding: 0; }
    .pa-ri-link:hover { background: none; }
    .pa-ri-thumb { width: 100%; }
    .pa-ri-meta { display: none; }
    .pa-ri-name { margin-bottom: 4px; font-size: 12px; }
    .pa-ri-remarks { font-size: 11px; line-height: 18px; }
    .play-vod-title { font-size: 18px; line-height: 24px; }
    .play-cur-ep { font-size: 14px; }
}
