/* ==========================================================================
   播放页（vod/play）专属。版面沿用 tp26（使用者 2026-09-24 指定）：
     播放卡片 ＝ 播放器 75% ＋ 右侧「猜你喜欢」直式清单 25%（右栏独立卷动）；
     卡片下方 ＝ 面包屑 → 片名资讯 → 播放列表（widget/playlist，样式在 main.css）→ 评论。
   视觉参考同一风格：播放器紧贴顶栏、无圆角，右栏 #0c1220 面板 padding 20、
   猜你喜欢是 16:9 横图＋片名；片名 24/700＋灰色集名＋青色分数。
   版型：tp34／tp39 使用者定案（2026-10-08 再确认）右栏放猜你喜欢，不采用参考站的「右栏选集」。
   ========================================================================== */

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

/* ---------- 播放卡片 ---------- */
.play-stage {
    /* 参考站播放器紧贴顶栏（y=71），下方 20 接片名 */
    padding: 0;
    margin-bottom: 20px;
}
.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;
    overflow: hidden;
    background: var(--player-panel);
}
.player-wrap { width: 75%; min-width: 0; }

/* 提示条跟卡片同色（原本参考 #181515 黑底，黑条＋黑影片＋浅灰工具栏三段深浅交错，
   使用者 2026-09-24 定案：只留影片区是黑色），下缘一条细线跟影片分开 */
.player-tips {
    height: 40px;
    padding: 0 20px;
    border-bottom: 1px solid var(--border-row);
    background: var(--player-panel);
    color: var(--text-2);
    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%;
}

/* 工具栏：等宽文字钮（参考站播放器下方「收藏／报错／分享」一列） */
.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 15px;
    font-size: 20px;
    font-weight: 700;
    line-height: 28px;
    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: 6px 10px;
    color: var(--text-1);
}
.pa-ri-link:hover { color: var(--accent); }
/* 参考站猜你喜欢：左侧 16:9 横图（约 126×71、圆角 5），右侧片名＋演员 */
.pa-ri-thumb {
    position: relative;
    flex-shrink: 0;
    width: 45%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius);
    overflow: hidden;
    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: 4px; font-size: 13px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pa-ri-remarks {
    display: block;
    max-width: 100%;
    font-size: 12px;
    line-height: 18px;
    color: var(--text-3);
    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; }

/* .hl-infos-title：片名 24px／700 ＋ 灰色集名；资讯 14px #a9b7d6，状态青字 */
.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: 700;
    line-height: 28px;
    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: 24px; color: var(--text-3); }

.play-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; font-size: 14px; 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; font-weight: 700; }
.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%; aspect-ratio: var(--poster-ratio); }
    .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: 18px; }
}
