/* --- 2. RECOMMEND (SWIPE) --- */
/* recommend.html 的 body 是 height:100vh（定值），这里显式 height:100% 让高度链
   贯通到视口高度；否则 .view 的 flex:1 会因 body 非 flex 容器而失效，
   .swipe-item 退化成背景图的固有高度，导致底部信息悬浮在屏幕中部。 */
#recommend-view { padding: 0; height: 100%; }
.swipe-container { height: 100%; overflow: hidden; }
.swipe-item { height: 100%; position: relative; background: #000; }
.bg-video { width: 100%; height: 100%; object-fit: contain; }

/* 顶部搜索按钮已移除（原 .top-nav-bar / .top-nav-search 一并清理） */

/* Center Subtitle — 流式置于 video-overlay 顶部，紧贴 TOP8 上方（在视频前景层） */
.center-subtitle {
    text-align: center;
    color: #FFFFFF;
    font-size: 20px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8), 0 0 10px rgba(0,0,0,0.5);
    padding: 0;
}

/* Bottom Overlay */
.video-overlay {
    position: absolute; bottom: 0; left: 0; right: 0; padding: 40px 16px 100px;
    display: flex; flex-direction: column; gap: 16px;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.6) 40%, transparent 100%);
    z-index: 10;
}

.video-main-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.video-info { flex: 1; padding-right: 24px; display: flex; flex-direction: column; gap: 6px; }

/* Hot Tag */
.hot-tag {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 12px;
    padding: 4px 8px;
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 500;
    width: fit-content;
    gap: 4px;
}
.hot-tag .icon-flame { width: 12px; height: 12px; color: #FF4500; fill: #FF4500; }
.hot-tag .icon-chevron { width: 10px; height: 10px; color: rgba(255,255,255,0.7); }

/* Drama Title —— 剧名与「>」图标用 flex 垂直居中对齐，避免错位 */
.drama-title {
    font-size: 18px;
    font-weight: 600;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    gap: 4px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}
.drama-title .title-text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    word-break: break-word;
}
.drama-title i { width: 18px; height: 18px; flex: 0 0 auto; }

/* Tags Row —— 题材标签用共享 .tag-chip 胶囊（见 global.css + tags.js），最多 3 个 */
.tags-row {
    display: flex;
    align-items: center;
    gap: 6px;
}
.tag {
    flex: 0 0 auto;
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    color: #FFFFFF;
}
.tag.tag-red {
    background: #FF4500;
}
.tags {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
    overflow: hidden;
}
.episodes {                                /* 集数单独成行，给标签行让出宽度 */
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
}

/* Actors Row */
.actors-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 2px;
}
.actor {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.9);
}
.actor img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255,255,255,0.3);
}

/* Description Row —— 「更多」用 flex 贴在描述最后一行右侧（紧随省略号），不再单独成行 */
.desc-row {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
    margin-top: 4px;
    display: flex;
    align-items: flex-end;          /* 「更多」与最后一行底部对齐 */
}
.desc-text {
    flex: 1 1 auto;
    min-width: 0;                   /* flex 子项允许收缩，line-clamp 才能正确截断 */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;          /* 默认展示 2 行 */
    overflow: hidden;
    margin: 0;
}
.desc-text.expanded {
    -webkit-line-clamp: 5;          /* 点击「更多」展开至 5 行，超出仍以省略号显示 */
}
.desc-toggle {
    flex: 0 0 auto;
    margin-left: 6px;
    padding: 0;
    background: none;
    border: none;
    font: inherit;
    font-size: 12px;
    font-weight: 500;
    color: #FFFFFF;
    cursor: pointer;
}

/* Watch Button — 置于 video-info 列内，宽度随介绍信息列（不再全宽） */
.watch-btn {
    margin-top: 14px;
    background: linear-gradient(90deg, #FF4B2B, #FF416C);
    color: #FFFFFF;
    border: none;
    padding: 12px 0;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(255, 65, 108, 0.3);
}

/* Actions (Right Side) */
.video-actions { display: flex; flex-direction: column; gap: 20px; }
.action-btn { 
    display: flex; flex-direction: column; align-items: center; gap: 4px; color: #fff;
}
.action-btn i { width: 32px; height: 32px; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5)); }
.action-btn span { font-size: 12px; font-weight: 500; text-shadow: 0 1px 2px rgba(0,0,0,0.5); }
