/* ============================================================
 * tem_film_community 社区整改 v1 统一样式
 * 适配现有 hl-* 命名空间（与 tem_movie skin 一致），新增 com-* 前缀避免冲突
 * ============================================================ */

/* ===== 全局区块容器 ===== */
.com-wrap { max-width: 1200px; margin: 0 auto; padding: 20px 15px 60px; }
.com-section { background: var(--com-card-bg, #fff); border-radius: 12px; padding: 24px; margin-bottom: 20px; box-shadow: 0 2px 12px rgba(0,0,0,0.04); }
.com-section__title { font-size: 22px; font-weight: 700; margin: 0 0 16px; display:flex; align-items:center; gap:8px; }
.com-section__title i { color: var(--com-accent, #ff6b6b); }
.com-section__sub { font-size: 13px; color: #888; margin-left: 8px; font-weight: 400; }

/* 暗色主题适配 */
.hl-bg-site .com-section, body.dark .com-section { background: #1f1f28; color: #ddd; }
.hl-bg-site .com-section__title, body.dark .com-section__title { color: #eee; }

/* ===== 卡片网格 ===== */
.com-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.com-card { background: var(--com-card-bg, #fff); border-radius: 10px; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.com-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,0.12); }
.com-card__img { position: relative; padding-top: 140%; }
.com-card__img img { position:absolute; top:0; left:0; width:100%; height:100%; object-fit:cover; }
.com-card__tag { position:absolute; top:6px; left:6px; background: rgba(0,0,0,0.7); color:#fff; font-size:11px; padding:2px 6px; border-radius:4px; }
.com-card__title { padding: 8px 10px; font-size:14px; font-weight:600; color: var(--com-text, #222); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.com-card__meta { padding: 0 10px 10px; font-size:12px; color:#888; }

/* ===== 工具入口大按钮 ===== */
.com-tools { display:grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap:16px; margin-bottom:24px; }
.com-tool { display:block; padding:24px 20px; border-radius:12px; text-align:center; color:#fff; text-decoration:none; font-weight:600; font-size:18px; transition: transform .15s; }
.com-tool:hover { color:#fff; text-decoration:none; transform: translateY(-2px); }
.com-tool i { font-size:32px; display:block; margin-bottom:6px; }
.com-tool--find { background: linear-gradient(135deg, #667eea, #764ba2); }
.com-tool--fortune { background: linear-gradient(135deg, #f093fb, #f5576c); }
.com-tool--blindbox { background: linear-gradient(135deg, #4facfe, #00f2fe); }
.com-tool--roast { background: linear-gradient(135deg, #fa709a, #fee140); }
.com-tool--quiz { background: linear-gradient(135deg, #30cfd0, #330867); }
.com-tool--personality { background: linear-gradient(135deg, #ff9a9e, #fad0c4); color:#333; }
.com-tool--follow { background: linear-gradient(135deg, #84fab0, #8fd3f4); color:#333; }
.com-tool--level { background: linear-gradient(135deg, #ffecd2, #fcb69f); color:#333; }
.com-tool--sign { background: linear-gradient(135deg, #ff6b6b, #ee5a24); }
.com-tool--lottery { background: linear-gradient(135deg, #ffd700, #ffa500); color:#5a3d00; }
.com-tool--invite { background: linear-gradient(135deg, #11998e, #38ef7d); color:#0a3d2e; }
.com-tool--month { background: linear-gradient(135deg, #8e2de2, #4a00e0); }

/* ===== 吐槽大会 ===== */
.com-roast-targets { display:grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap:20px; margin-bottom:24px; }
.com-roast-target { background: var(--com-card-bg, #fff); border-radius:12px; padding:16px; border:2px solid transparent; transition: border-color .15s; }
.com-roast-target.is-active { border-color: #ff6b6b; }
.com-roast-target__poster { width: 80px; height: 110px; object-fit: cover; border-radius:6px; }
.com-roast-target__head { display:flex; gap:12px; margin-bottom:12px; }
.com-roast-target__info { flex:1; }
.com-roast-target__title { font-size:16px; font-weight:700; margin:0 0 4px; color: var(--com-text, #222); }
.com-roast-target__score { color:#ff6b6b; font-weight:700; }
.com-roast-target__tags { display:flex; flex-wrap:wrap; gap:6px; margin-top:8px; }
.com-roast-target__tag { background:#f1f1f1; padding:3px 8px; border-radius:12px; font-size:12px; cursor:pointer; user-select:none; }
.com-roast-target__tag.is-checked { background:#ff6b6b; color:#fff; }
.hl-bg-site .com-roast-target__tag, body.dark .com-roast-target__tag { background:#2a2a35; color:#bbb; }

.com-roast-form { margin: 16px 0; }
.com-roast-form__textarea { width:100%; min-height:80px; padding:10px; border:1px solid #ddd; border-radius:8px; font-size:14px; resize:vertical; background: var(--com-card-bg, #fff); color: var(--com-text, #222); }
.com-roast-form__actions { display:flex; gap:8px; margin-top:8px; align-items:center; }
.com-roast-form__count { font-size:12px; color:#888; flex:1; }
.com-btn { display:inline-block; padding:8px 18px; background:#ff6b6b; color:#fff; border:none; border-radius:6px; cursor:pointer; font-size:14px; font-weight:500; }
.com-btn:hover { background:#ff5252; color:#fff; }
.com-btn--ghost { background:transparent; border:1px solid #ddd; color: var(--com-text, #555); }
.com-btn--ghost:hover { background:#f1f1f1; color:#333; }

.com-roast-list { margin-top:24px; }
.com-roast-item { padding:14px 0; border-bottom:1px solid #eee; }
.com-roast-item:last-child { border-bottom:none; }
.com-roast-item__head { display:flex; align-items:center; gap:8px; margin-bottom:6px; }
.com-roast-item__avatar { width:32px; height:32px; border-radius:50%; background:#ff6b6b; color:#fff; display:flex; align-items:center; justify-content:center; font-size:13px; }
.com-roast-item__nick { font-weight:600; color:var(--com-text, #222); }
.com-roast-item__time { font-size:11px; color:#999; margin-left:auto; }
.com-roast-item__content { font-size:14px; line-height:1.6; color: var(--com-text, #333); margin: 4px 0; word-break:break-word; }
.com-roast-item__tags { display:flex; flex-wrap:wrap; gap:6px; margin:6px 0; }
.com-roast-item__tag { background:#fff3e0; color:#ff9800; font-size:11px; padding:2px 6px; border-radius:10px; }
.com-roast-item__actions { display:flex; gap:14px; font-size:12px; color:#999; }
.com-roast-item__action { cursor:pointer; user-select:none; }
.com-roast-item__action:hover { color:#ff6b6b; }
.hl-bg-site .com-roast-item, body.dark .com-roast-item { border-color:#2a2a35; }

/* ===== 投票分布柱状图 ===== */
.com-vote-bars { margin-top:12px; }
.com-vote-bar { display:flex; align-items:center; gap:8px; margin:6px 0; font-size:13px; }
.com-vote-bar__label { width:120px; flex-shrink:0; color: var(--com-text, #444); }
.com-vote-bar__track { flex:1; height:14px; background:#f1f1f1; border-radius:7px; overflow:hidden; }
.hl-bg-site .com-vote-bar__track, body.dark .com-vote-bar__track { background:#2a2a35; }
.com-vote-bar__fill { height:100%; background: linear-gradient(90deg, #ff6b6b, #ff9800); border-radius:7px; transition: width .5s; }
.com-vote-bar__pct { width:48px; text-align:right; color:#888; }

/* ===== 每日运势 / 盲盒 ===== */
.com-fortune-card { background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%); border-radius:16px; padding:32px 24px; text-align:center; margin-bottom:20px; color:#5a3825; }
.com-fortune-card__title { font-size:14px; opacity:.8; margin:0 0 8px; }
.com-fortune-card__text { font-size:20px; font-weight:700; margin:0 0 12px; line-height:1.5; }
.com-fortune-card__pick { font-size:13px; opacity:.85; }

.com-blindbox-stage { display:flex; justify-content:center; align-items:center; min-height:280px; background: linear-gradient(135deg, #2b3a67, #6a82fb); border-radius:16px; color:#fff; padding:24px; margin-bottom:16px; flex-direction:column; gap:16px; }
.com-blindbox-closed { width:160px; height:200px; background:rgba(255,255,255,0.12); border:2px dashed rgba(255,255,255,0.4); border-radius:12px; display:flex; align-items:center; justify-content:center; font-size:60px; cursor:pointer; transition: transform .2s; }
.com-blindbox-closed:hover { transform: scale(1.05); }
.com-blindbox-opened img { width:140px; height:200px; object-fit:cover; border-radius:8px; box-shadow: 0 6px 20px rgba(0,0,0,0.4); }
.com-blindbox-result__title { font-size:18px; font-weight:700; margin-top:8px; }

/* ===== 段位 + 勋章 ===== */
.com-level-hero { background: linear-gradient(135deg, #232526, #414345); color:#fff; border-radius:16px; padding:24px; margin-bottom:20px; display:flex; align-items:center; gap:18px; }
.com-level-hero__badge { width:72px; height:72px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:28px; font-weight:700; color:#fff; flex-shrink:0; box-shadow: 0 4px 12px rgba(0,0,0,0.3); }
.com-level-hero__nick { font-size:18px; font-weight:700; margin:0; }
.com-level-hero__score { font-size:14px; opacity:.85; margin-top:4px; }
.com-level-progress { margin-top:8px; height:8px; background:rgba(255,255,255,0.15); border-radius:4px; overflow:hidden; }
.com-level-progress__fill { height:100%; background:linear-gradient(90deg, #ffd700, #ff6b6b); }

.com-badges { display:flex; flex-wrap:wrap; gap:10px; margin-top:8px; }
.com-badge { padding:6px 12px; border-radius:18px; font-size:12px; font-weight:600; background:linear-gradient(135deg, #ffd700, #ffa500); color:#fff; }
.com-badge--locked { background:#e0e0e0; color:#999; }

/* ===== 段位排行榜卡片列表 ===== */
.com-rank-list { display:flex; flex-direction:column; gap:10px; }
.com-rank-item { display:flex; align-items:center; gap:12px; padding:14px 16px; border-radius:10px; background:#f8f9fa; border:1px solid #eee; transition: all .15s; }
.com-rank-item:hover { transform: translateX(4px); box-shadow: 0 3px 12px rgba(0,0,0,.06); }
.hl-bg-site .com-rank-item, body.dark .com-rank-item { background:#1f1f28; border-color:#2a2a35; }

/* 前三名特殊样式 */
.com-rank-item--gold { background: linear-gradient(135deg, #fff9e6 0%, #fff3d4 100%); border-color: #ffd70055; }
.com-rank-item--silver { background: linear-gradient(135deg, #f8f8f8 0%, #ededed 100%); border-color: #c0c0c055; }
.com-rank-item--bronze { background: linear-gradient(135deg, #fdf0e6 0%, #f5e0d0 100%); border-color: #cd7f3255; }
.hl-bg-site .com-rank-item--gold, body.dark .com-rank-item--gold { background: linear-gradient(135deg, #2a2614 0%, #1f1f28 100%); border-color: #ffd70040; }
.hl-bg-site .com-rank-item--silver, body.dark .com-rank-item--silver { background: linear-gradient(135deg, #252529 0%, #1f1f28 100%); border-color: #c0c0c040; }
.hl-bg-site .com-rank-item--bronze, body.dark .com-rank-item--bronze { background: linear-gradient(135deg, #2a2118 0%, #1f1f28 100%); border-color: #cd7f3240; }

/* 我的行高亮 */
.com-rank-item--me { border-color: #ff6b6b !important; box-shadow: 0 0 0 2px rgba(255,107,107,.15); background: linear-gradient(135deg, #fff5f5 0%, #fff 60%); }
.hl-bg-site .com-rank-item--me, body.dark .com-rank-item--me { background: linear-gradient(135deg, #2a1a1a 0%, #1f1f28 60%); }

.com-rank-item__medal { font-size:28px; flex-shrink:0; width:36px; text-align:center; line-height:1; }
.com-rank-item__rank { font-size:18px; font-weight:700; color:#999; flex-shrink:0; width:36px; text-align:center; }
.hl-bg-site .com-rank-item__rank, body.dark .com-rank-item__rank { color:#888; }

.com-rank-item__avatar { width:42px; height:42px; border-radius:50%; flex-shrink:0; display:flex; align-items:center; justify-content:center; color:#fff; font-size:16px; font-weight:700; box-shadow: 0 2px 8px rgba(0,0,0,.15); }

.com-rank-item__info { flex:1; min-width:0; display:flex; flex-direction:column; gap:4px; }
.com-rank-item__nick { font-size:15px; font-weight:600; color:#222; display:flex; align-items:center; gap:6px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.hl-bg-site .com-rank-item__nick, body.dark .com-rank-item__nick { color:#eee; }
.com-rank-item__me-tag { display:inline-block; font-size:10px; padding:1px 6px; background:#ff6b6b; color:#fff; border-radius:8px; font-weight:400; }
.com-rank-item__level { display:inline-block; padding:2px 10px; border-radius:10px; font-size:11px; font-weight:600; width:fit-content; }

.com-rank-item__score { font-size:22px; font-weight:800; color:#ff6b6b; flex-shrink:0; line-height:1; }
.com-rank-item__score-label { font-size:12px; font-weight:400; color:#999; margin-left:2px; }
.hl-bg-site .com-rank-item__score-label, body.dark .com-rank-item__score-label { color:#888; }

@media (max-width: 480px) {
    .com-rank-item { padding:12px 10px; gap:8px; }
    .com-rank-item__avatar { width:36px; height:36px; font-size:14px; }
    .com-rank-item__nick { font-size:14px; }
    .com-rank-item__score { font-size:18px; }
    .com-rank-item__medal { font-size:24px; width:30px; }
    .com-rank-item__rank { font-size:16px; width:30px; }
}

/* ===== 人格测试 ===== */
.com-personality-quiz { max-width:640px; margin:0 auto; }
.com-personality-q { background:var(--com-card-bg, #fff); border-radius:12px; padding:20px; margin-bottom:14px; }
.com-personality-q__text { font-size:16px; font-weight:600; margin:0 0 12px; color: var(--com-text, #222); }
.com-personality-options { display:flex; flex-direction:column; gap:8px; }
.com-personality-option { padding:12px 14px; border:1px solid #eee; border-radius:8px; cursor:pointer; transition: all .15s; }
.com-personality-option:hover { border-color:#ff6b6b; background:#fff8f8; }
.com-personality-option.is-selected { border-color:#ff6b6b; background:#fff0f0; color:#ff5252; }

.com-personality-result { text-align:center; padding:40px 20px; background: linear-gradient(135deg, #fce4ec, #fff3e0); border-radius:16px; margin-top:20px; }
.com-personality-result__type { font-size:36px; font-weight:800; color:#ff5252; margin:0 0 8px; }
.com-personality-result__name { font-size:20px; font-weight:600; color:#444; margin:0 0 16px; }
.com-personality-result__desc { font-size:14px; color:#666; line-height:1.6; max-width:480px; margin:0 auto 20px; }
.com-personality-result__share { display:inline-block; padding:10px 20px; background:#333; color:#fff; border-radius:8px; text-decoration:none; font-size:14px; }

/* ===== Bingo 卡 ===== */
.com-bingo-grid { display:grid; grid-template-columns: repeat(5, 1fr); gap:6px; max-width:540px; margin:0 auto; }
.com-bingo-cell { aspect-ratio: 1; padding:6px; background:var(--com-card-bg, #fff); border:1px solid #eee; border-radius:6px; display:flex; align-items:center; justify-content:center; font-size:11px; text-align:center; cursor:pointer; transition:all .15s; color: var(--com-text, #333); }
.com-bingo-cell.is-marked { background:linear-gradient(135deg, #ff6b6b, #ff9800); color:#fff; border-color:transparent; }
.com-bingo-cell.is-bingo-line { box-shadow: 0 0 0 2px #ffd700 inset; }

/* ===== 追剧日历 ===== */
.com-calendar-grid { display:grid; grid-template-columns: 70px repeat(7, 1fr); gap:4px; margin-top:8px; }
.com-calendar-grid__head { font-size:12px; color:#888; text-align:center; padding:6px 0; }
.com-calendar-grid__time { font-size:12px; color:#888; padding:6px; }
.com-calendar-grid__cell { background: var(--com-card-bg, #fff); border-radius:6px; padding:6px; font-size:12px; min-height:60px; border-left:3px solid #ff6b6b; }
.com-calendar-grid__cell--empty { background:transparent; border-left:none; }
.hl-bg-site .com-calendar-grid__cell, body.dark .com-calendar-grid__cell { background:#1f1f28; }

/* ===== 简易 Toast ===== */
.com-toast { position:fixed; bottom:30px; left:50%; transform:translateX(-50%); background:rgba(0,0,0,0.85); color:#fff; padding:10px 20px; border-radius:6px; font-size:14px; z-index:9999; opacity:0; pointer-events:none; transition: opacity .15s; }
.com-toast.is-show { opacity:1; }

/* ===== 空状态 ===== */
.com-empty { text-align:center; padding:60px 20px; color:#999; font-size:14px; }
.com-empty i { font-size:48px; display:block; margin-bottom:12px; opacity:.4; }

/* ===== 片单详情页列表项 ===== */
.com-list-hero { background: linear-gradient(135deg, #667eea, #764ba2); color:#fff; border-radius:16px; padding:32px 24px; margin-bottom:20px; }
.com-list-hero__tag { display:inline-block; background:rgba(255,255,255,0.2); padding:4px 12px; border-radius:12px; font-size:12px; margin-bottom:8px; }
.com-list-hero__title { font-size:26px; font-weight:800; margin:0 0 8px; }
.com-list-hero__meta { font-size:13px; opacity:.85; margin:0; }
.com-list-join-meta { background: var(--com-card-bg, #fff); border-radius:10px; padding:16px 18px; margin-bottom:16px; }
.com-list-join-meta p { margin:4px 0; font-size:14px; color: var(--com-text, #444); }
.com-list-join-meta strong { color: var(--com-text, #222); }

.com-list-items { list-style:none; padding:0; margin:0; }
.com-list-item { display:flex; gap:14px; padding:14px 0; border-bottom:1px solid #eee; align-items:flex-start; }
.com-list-item:last-child { border-bottom:none; }
.com-list-item__num { width:32px; height:32px; flex-shrink:0; border-radius:50%; background:linear-gradient(135deg,#ff6b6b,#ff9800); color:#fff; display:flex; align-items:center; justify-content:center; font-size:13px; font-weight:700; }
.com-list-item__thumb { display:block; width:80px; height:110px; flex-shrink:0; border-radius:6px; overflow:hidden; }
.com-list-item__thumb img { width:100%; height:100%; object-fit:cover; }
.com-list-item__body { flex:1; min-width:0; }
.com-list-item__body h3 { margin:0 0 6px; font-size:16px; font-weight:700; }
.com-list-item__body h3 a { color: var(--com-text, #222); }
.com-list-item__meta { margin:0 0 6px; font-size:12px; color:#888; display:flex; flex-wrap:wrap; gap:12px; }
.com-list-item__brief { margin:0; font-size:13px; color:#666; line-height:1.5; }
.com-list-item__actions { flex-shrink:0; align-self:center; }
.hl-bg-site .com-list-item, body.dark .com-list-item { border-color:#2a2a35; }
.hl-bg-site .com-list-item__body h3 a, body.dark .com-list-item__body h3 a { color:#eee; }

/* ===== 简易分页 ===== */
.com-pagination { display:flex; justify-content:center; align-items:center; gap:6px; margin:24px 0 8px; flex-wrap:wrap; }
.com-pagination a, .com-pagination span { display:inline-block; min-width:32px; height:32px; line-height:30px; padding:0 10px; border:1px solid #eee; border-radius:6px; font-size:13px; color: var(--com-text, #555); text-decoration:none; background: var(--com-card-bg, #fff); cursor:pointer; }
.com-pagination a:hover { border-color:#ff6b6b; color:#ff6b6b; }
.com-pagination .is-current { background:#ff6b6b; color:#fff; border-color:#ff6b6b; }
.com-pagination .is-disabled { color:#bbb; cursor:not-allowed; background:transparent; }
.hl-bg-site .com-pagination a, body.dark .com-pagination a, .hl-bg-site .com-pagination span, body.dark .com-pagination span { background:#1f1f28; border-color:#2a2a35; color:#bbb; }

/* ============================================================
 * 播放页（tem_film_pages_play.tpl）样式协调
 * 把社区卡片风格应用到 tem_movie 原生组件，统一视觉
 * ============================================================ */

/* ===== 看点列表（play 页） ===== */
.com-highlights { display:grid; grid-template-columns:repeat(auto-fit, minmax(260px, 1fr)); gap:14px; }
.com-highlight { display:flex; gap:12px; align-items:flex-start; padding:14px; background:var(--com-card-bg,#fff); border:1px solid #f0f0f0; border-radius:10px; transition:all .15s; }
.com-highlight:hover { border-color:#ff6b6b; box-shadow:0 4px 14px rgba(255,107,107,0.1); transform:translateY(-2px); }
.com-highlight__icon { font-size:24px; color:#ff6b6b; flex-shrink:0; }
.com-highlight__body { flex:1; min-width:0; }
.com-highlight__label { margin:0 0 4px; font-size:13px; font-weight:700; color:var(--com-text,#222); }
.com-highlight__text { margin:0; font-size:13px; color:#666; line-height:1.5; }
.com-highlight__text a { color:#ff6b6b; }

/* ===== 顶部 hero（替代旧 player-wrap） ===== */
.com-play-hero{
    background: linear-gradient(135deg,#232526,#414345);
    color:#fff;
    border-radius:12px;
    padding:24px;
    margin-bottom:16px;
    box-shadow:0 4px 14px rgba(0,0,0,.18);
}
.com-play-hero__inner{display:flex;gap:16px;align-items:flex-start;}
.com-play-hero__poster{
    display:block;width:120px;height:160px;
    background-size:cover;background-position:center;
    border-radius:8px;flex-shrink:0;
    background-color:rgba(255,255,255,.08);
}
.com-play-hero__body{flex:1;min-width:0;}
.com-play-hero__title{
    margin:0 0 8px;font-size:22px;font-weight:700;color:#fff;
    line-height:1.3;
}
.com-play-hero__title em{
    font-size:14px;opacity:.7;font-style:normal;font-weight:400;margin-left:6px;
}
.com-play-hero__meta{
    font-size:13px;opacity:.85;margin-bottom:8px;line-height:1.6;
}
.com-play-hero__meta a, .com-play-hero__year{color:#ffd700;}
.com-play-hero__cast{
    font-size:13px;opacity:.85;margin-bottom:8px;line-height:1.6;
}
.com-play-hero__cast em{font-style:normal;opacity:.7;margin-right:4px;}
.com-play-hero__cast a{color:#fff;}
.com-play-hero__desc{
    margin:0;font-size:13px;opacity:.75;line-height:1.6;
    max-height:60px;overflow:hidden;
}

/* ===== 操作按钮区 ===== */
.com-play-actions{
    display:flex;gap:10px;flex-wrap:wrap;
}
.com-play-actions .com-btn{
    display:inline-flex;align-items:center;gap:6px;
    text-decoration:none;
}

/* ===== 集数列表（套用 com-section 卡片） ===== */
.com-play-playlist .hl-rb-head{
    margin-bottom:12px;
}
.com-play-playlist__title{font-size:18px;font-weight:700;}
.com-play-playlist__count{font-size:13px;}
/* 集数项样式微调（沿用 tem_movie 的 hl-list-item） */
.com-play-playlist .hl-list-item{
    margin-bottom:8px;
}
.com-play-playlist .hl-list-item a{
    border-radius:6px;
    -webkit-transition:all .15s;transition:all .15s;
}
.com-play-playlist .hl-list-item a:hover{
    background:#ff6b6b;color:#fff !important;
}
.com-play-playlist .hl-list-item .hl-play-active,
.com-play-playlist .hl-list-item .is-current{
    background:#ff6b6b;color:#fff !important;
}

/* ===== 评论区 ===== */
.com-play-comments .com-section__title{
    border-bottom:1px solid rgba(0,0,0,.05);padding-bottom:14px;margin-bottom:16px;
}
.hl-bg-site .com-play-comments .com-section__title,
body.dark .com-play-comments .com-section__title{border-color:#2a2a35;}
.com-play-comments__actions{
    flex-wrap:wrap;gap:8px;
}
/* 统一表单元素样式（替代 inline style） */
.com-play-input{
    padding:6px 10px;border:1px solid #ddd;border-radius:6px;
    font-size:13px;background:var(--com-card-bg,#fff);color:var(--com-text,#222);
    -webkit-transition:border-color .15s;transition:border-color .15s;
}
.com-play-input:focus{outline:none;border-color:#ff6b6b;}
.com-play-input::placeholder{color:#999;}
#commentNick{width:160px;}
.com-play-select{
    appearance:none;-webkit-appearance:none;
    padding-right:24px;
    background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='%23999' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat:no-repeat;background-position:right 8px center;
    background-size:10px;
    cursor:pointer;
}
.com-play-captcha{width:130px;}
.com-play-pagination{margin-top:12px;}

/* ===== 右侧栏 ===== */
.com-play-side__block{
    margin-bottom:16px;
}
.com-play-side__block:last-child{margin-bottom:0;}
.com-play-side .hl-rb-title{font-size:18px;font-weight:700;}
.com-play-side .hl-rb-head{margin-bottom:12px;}

/* ===== 底部相关影视 ===== */
.com-play-related-wrap{margin-top:24px;}
.com-play-related .hl-rb-head{margin-bottom:16px;}
.com-play-related .hl-rb-title{font-size:20px;font-weight:700;}

/* ===== 暗色主题适配 ===== */
.hl-bg-site .com-play-hero, body.dark .com-play-hero{
    background:linear-gradient(135deg,#1a1a22,#2a2a32);
    color:#eee;
}
.hl-bg-site .com-play-hero__title, body.dark .com-play-hero__title{color:#fff;}
.hl-bg-site .com-play-hero__cast a, body.dark .com-play-hero__cast a{color:#fff;}
.hl-bg-site .com-play-input, body.dark .com-play-input{
    background:#1f1f28;border-color:#2a2a35;color:#ddd;
}

/* ===== 响应式 ===== */
@media (max-width: 768px){
    .com-play-hero{padding:18px 16px;}
    .com-play-hero__poster{width:96px;height:130px;}
    .com-play-hero__title{font-size:18px;}
    .com-play-hero__meta, .com-play-hero__cast, .com-play-hero__desc{font-size:12px;}
    .com-play-actions .com-btn{font-size:13px;padding:6px 14px;}
    .com-play-input{font-size:12px;padding:6px 8px;}
    #commentNick{width:120px;}
    .com-play-captcha{width:100px;}
}
@media (max-width: 480px){
    .com-play-hero__inner{flex-direction:column;align-items:center;text-align:center;}
    .com-play-hero__poster{margin:0 auto;}
    .com-play-hero__cast em{display:block;margin:4px 0;}
}

/* ============================================================
 * 详情页：每集说明显示区 + 集数项交互
 * ============================================================ */
/* 每集说明容器（套用 hl-row-box 卡片样式，仅添加少量自定义） */
.hl-ep-summary-wrap{
    margin-top:16px;
}
.hl-ep-summary-head{
    display:flex;align-items:center;justify-content:space-between;
    margin-bottom:12px;padding-bottom:10px;
    border-bottom:1px dashed #e1e6ed;
}
.hl-bg-site .hl-ep-summary-head, body.dark .hl-ep-summary-head{border-color:#2a2a35;}
.hl-ep-summary-title{
    margin:0;     /* hl-rb-title 已提供字号字重，这里只清边距 */
}
.hl-ep-summary-title span{color:#ff6b6b;}   /* 集名红色高亮 */
.hl-ep-summary-meta{
    font-size:12px;color:#9aa3ac;
}
.hl-ep-summary-body{
    font-size:14px;line-height:1.7;color:#5b646d;
    min-height:48px;padding:4px 0;
    -webkit-transition:opacity .15s;transition:opacity .15s;
}
.hl-bg-site .hl-ep-summary-body, body.dark .hl-ep-summary-body{color:#bcbfc4;}

/* 集数项（替代原 .playSubmit） */
.hl-ep-item{
    display:block;margin:0 0 4px;
    text-align:center;font-size:13px;
    background:#f5f7fa;color:#5b646d;
    border-radius:6px;
    -webkit-transition:all .15s;transition:all .15s;
    cursor:pointer;
}
.hl-ep-item:hover{
    background:#ff6b6b;color:#fff !important;
    -webkit-transform:translateY(-1px);transform:translateY(-1px);
}
.hl-ep-item.hl-ep-active{
    background:linear-gradient(135deg,#ff8a5b,#ff5252);
    color:#fff !important;
    box-shadow:0 4px 12px rgba(255,82,82,.32);
}
.hl-bg-site .hl-ep-item, body.dark .hl-ep-item{
    background:#2a2a35;color:#bcbfc4;
}
.hl-bg-site .hl-ep-item:hover, body.dark .hl-ep-item:hover{
    background:#ff6b6b;color:#fff !important;
}

/* 已下线播放按钮提示 */
.hl-play-removed-tip{
    display:inline-block;padding:8px 16px;
    background:rgba(255,107,107,.08);color:#ff6b6b !important;
    border-radius:6px;border:1px dashed rgba(255,107,107,.3);
}
.hl-bg-site .hl-play-removed-tip, body.dark .hl-play-removed-tip{
    background:rgba(255,107,107,.12);
}

@media (max-width: 768px){
    .hl-ep-summary-title{font-size:16px;}
    .hl-ep-summary-body{font-size:13px;}
    .hl-ep-item{font-size:12px;}
}

/* ============================================================
 * 首页引流卡片（tem_movie_index.tpl 集成）
 * 选片工具入口 + 社区四卡片（吐槽/片单/追剧日历/段位）
 * ============================================================ */

/* com-tool 副标题 */
.com-tool { display:flex; flex-direction:column; gap:6px; align-items:center; justify-content:center; padding:22px 16px; }
.com-tool__sub { font-size:12px; font-weight:400; opacity:.85; }
.com-tool i { margin-bottom:4px; }

/* com-empty 文案段 */
.com-empty p { margin:0 0 12px; }

/* ===== 社区四卡片 grid ===== */
.com-home-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(280px, 1fr)); gap:18px; padding:8px 0; }
.com-home-card { background: var(--com-card-bg, #fff); border-radius:12px; overflow:hidden; box-shadow:0 2px 12px rgba(0,0,0,0.05); display:flex; flex-direction:column; transition: transform .15s, box-shadow .15s; border:1px solid #f0f0f0; }
.com-home-card:hover { transform: translateY(-2px); box-shadow:0 6px 20px rgba(0,0,0,0.08); }
.hl-bg-site .com-home-card, body.dark .com-home-card { background:#1f1f28; border-color:#2a2a35; color:#ddd; }
.com-home-card__head { display:flex; justify-content:space-between; align-items:center; padding:14px 18px; border-bottom:1px solid #f0f0f0; }
.hl-bg-site .com-home-card__head, body.dark .com-home-card__head { border-color:#2a2a35; }
.com-home-card__head h3 { margin:0; font-size:16px; font-weight:700; color:var(--com-text, #222); display:flex; align-items:center; gap:6px; }
.hl-bg-site .com-home-card__head h3, body.dark .com-home-card__head h3 { color:#eee; }
.com-home-card__head h3 i { color:#ff6b6b; font-size:18px; }
.com-home-card__more { font-size:13px; color:#ff6b6b; text-decoration:none; }
.com-home-card__more:hover { text-decoration:underline; }
.com-home-card__body { padding:16px 18px; flex:1; display:flex; flex-direction:column; gap:10px; }

/* ===== 吐槽大会卡片 ===== */
.com-home-roast { background:linear-gradient(135deg, #fff5f5 0%, #fff 60%); }
.hl-bg-site .com-home-roast, body.dark .com-home-roast { background:linear-gradient(135deg, #2a1a1a 0%, #1f1f28 60%); }
.com-home-roast__title { font-size:16px; font-weight:700; color:#222; line-height:1.4; }
.hl-bg-site .com-home-roast__title, body.dark .com-home-roast__title { color:#eee; }
.com-home-roast__meta { display:flex; flex-wrap:wrap; gap:10px; font-size:12px; color:#888; }
.com-home-roast__meta span { display:flex; align-items:center; gap:3px; }
.com-home-roast__meta i { color:#ff6b6b; }
.com-home-roast__tags { display:flex; flex-wrap:wrap; gap:6px; }
.com-roast-tagchip { display:inline-block; padding:3px 10px; background:rgba(255,107,107,0.12); color:#ff6b6b; border-radius:12px; font-size:12px; }
.com-home-roast__btn { display:inline-block; padding:8px 18px; background:linear-gradient(135deg,#ff6b6b,#ff9800); color:#fff !important; border-radius:20px; text-decoration:none; font-size:13px; font-weight:600; text-align:center; margin-top:auto; transition: transform .15s; }
.com-home-roast__btn:hover { transform: scale(1.03); text-decoration:none; }

/* ===== 片单卡片 ===== */
.com-home-lists__grid { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:8px; }
.com-home-lists__item { border:1px solid #f0f0f0; border-radius:8px; transition: all .15s; }
.hl-bg-site .com-home-lists__item, body.dark .com-home-lists__item { border-color:#2a2a35; }
.com-home-lists__item:hover { border-color:#ff6b6b; background:rgba(255,107,107,0.04); }
.com-home-lists__item a { display:block; padding:10px 12px; text-decoration:none; color:inherit; }
.com-home-lists__title { font-size:14px; font-weight:600; color:#222; margin-bottom:4px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.hl-bg-site .com-home-lists__title, body.dark .com-home-lists__title { color:#eee; }
.com-home-lists__theme { font-size:12px; color:#ff6b6b; margin-bottom:6px; }
.com-home-lists__meta { display:flex; justify-content:space-between; font-size:11px; color:#999; }
.com-home-lists__btn { display:inline-block; padding:7px 16px; background:#ff6b6b; color:#fff !important; border-radius:18px; text-decoration:none; font-size:13px; text-align:center; margin-top:auto; }
.com-home-lists__btn:hover { background:#ff5252; text-decoration:none; }

/* ===== 追剧日历卡片 ===== */
.com-home-calendar__list { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:8px; }
.com-home-calendar__item { display:flex; align-items:center; gap:10px; padding:8px 10px; border-bottom:1px dashed #f0f0f0; font-size:13px; }
.hl-bg-site .com-home-calendar__item, body.dark .com-home-calendar__item { border-color:#2a2a35; }
.com-home-calendar__item:last-child { border-bottom:none; }
.com-home-calendar__date { flex-shrink:0; padding:3px 8px; background:#ff6b6b; color:#fff; border-radius:4px; font-size:12px; font-weight:600; min-width:40px; text-align:center; }
.com-home-calendar__title { flex:1; min-width:0; color:#222; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.hl-bg-site .com-home-calendar__title, body.dark .com-home-calendar__title { color:#eee; }
.com-home-calendar__ep { color:#ff6b6b; font-size:12px; flex-shrink:0; }
.com-home-calendar__pf { font-size:11px; color:#999; padding:2px 6px; background:#f5f5f5; border-radius:3px; flex-shrink:0; }
.hl-bg-site .com-home-calendar__pf, body.dark .com-home-calendar__pf { background:#2a2a35; color:#bbb; }
.com-home-calendar__btn { display:inline-block; padding:7px 16px; background:linear-gradient(135deg,#84fab0,#8fd3f4); color:#333 !important; border-radius:18px; text-decoration:none; font-size:13px; text-align:center; margin-top:auto; }
.com-home-calendar__btn:hover { text-decoration:none; filter:brightness(1.05); }

/* ===== 我的段位卡片 ===== */
.com-home-user { background:linear-gradient(135deg, #fffaf0 0%, #fff 60%); }
.hl-bg-site .com-home-user, body.dark .com-home-user { background:linear-gradient(135deg, #2a2418 0%, #1f1f28 60%); }
.com-home-user__row { display:flex; justify-content:space-between; align-items:center; }
.com-home-user__nick { font-size:14px; font-weight:600; color:#222; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:60%; }
.hl-bg-site .com-home-user__nick, body.dark .com-home-user__nick { color:#eee; }
.com-home-user__lv { padding:4px 12px; border-radius:12px; font-size:12px; font-weight:700; color:#fff; }
.com-home-user__lv--bronze { background:#a67c52; }
.com-home-user__lv--silver { background:#9e9e9e; }
.com-home-user__lv--gold { background:#ffd700; color:#5a4500; }
.com-home-user__lv--platinum { background:#5dade2; }
.com-home-user__lv--diamond { background:linear-gradient(135deg,#b9f2ff,#7ad7f0); color:#0a4d5c; }
.com-home-user__lv--king { background:linear-gradient(135deg,#ff4d4f,#ff7a7a); }
.com-home-user__score { font-size:13px; color:#666; display:flex; align-items:center; gap:4px; }
.hl-bg-site .com-home-user__score, body.dark .com-home-user__score { color:#bbb; }
.com-home-user__score i { color:#ffd700; }
.com-home-user__progress { width:100%; height:6px; background:#f0f0f0; border-radius:3px; overflow:hidden; }
.hl-bg-site .com-home-user__progress, body.dark .com-home-user__progress { background:#2a2a35; }
.com-home-user__progress-bar { height:100%; background:linear-gradient(90deg,#ff6b6b,#ffd700); transition: width .3s; }
.com-home-user__next { font-size:12px; color:#999; }
.com-home-user__badges { display:flex; flex-wrap:wrap; gap:6px; margin-top:auto; }
.com-home-user__badge { display:inline-block; padding:3px 10px; background:rgba(255,215,0,0.15); color:#b8860b; border:1px solid rgba(255,215,0,0.3); border-radius:12px; font-size:12px; }
.hl-bg-site .com-home-user__badge, body.dark .com-home-user__badge { color:#ffd700; border-color:rgba(255,215,0,0.3); }
.com-home-user__badge--empty { background:transparent; color:#bbb; border:1px dashed #ddd; }
.hl-bg-site .com-home-user__badge--empty, body.dark .com-home-user__badge--empty { border-color:#444; }

@media (max-width: 768px) {
	.com-home-grid { grid-template-columns:1fr; }
	.com-tool { padding:18px 12px; }
	.com-home-card__head { padding:12px 14px; }
	.com-home-card__body { padding:14px; }
}
.hl-bg-site .com-highlight, body.dark .com-highlight { background:#1f1f28; border-color:#2a2a35; }
.hl-bg-site .com-highlight__label, body.dark .com-highlight__label { color:#eee; }
.hl-bg-site .com-highlight__text, body.dark .com-highlight__text { color:#bbb; }

/* ============================================================
 * 追剧日历独立样式（follow/calendar/ 专用，com-calendar-week 体系）
 * 迁移自 follow_calendar.php 内联 style + 模板内联 <style> 块
 * ============================================================ */
/* Hero 横幅（从模板 L31-33 内联 style 迁移） */
.com-calendar-hero {
    background: linear-gradient(135deg, #84fab0, #8fd3f4);
    color: #333;
    text-align: center;
    padding: 32px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(132, 250, 176, 0.2);
}
.com-calendar-hero__title { margin: 0 0 6px; font-size: 24px; font-weight: 800; }
.com-calendar-hero__desc  { margin: 0; font-size: 14px; opacity: .92; }
.hl-bg-site .com-calendar-hero, body.dark .com-calendar-hero {
    background: linear-gradient(135deg, #1e4d3a, #2a4a5e);
    color: #eee;
}

/* 日历 7 列网格（从模板 L18-22 <style> 块迁移 + 视觉升级） */
.com-calendar-week {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}
/* 今日单元格高亮（覆盖现有 com-calendar-grid__cell 的背景色） */
.com-calendar-grid__cell.is-today {
    border-color: #ff6b6b !important;
    background: #fff0f0 !important;
}
.hl-bg-site .com-calendar-grid__cell.is-today, body.dark .com-calendar-grid__cell.is-today {
    background: #2a1a1a !important;
}

/* 日期标题行（从 _render_day_cell L73 内联迁移） */
.com-calendar-date {
    margin: 0 0 8px;
    padding: 0;
    font-size: 11px;
    color: #888;
    line-height: 1.3;
}
.com-calendar-date__today {
    color: #ff6b6b;
    font-weight: 600;
    margin-left: 2px;
}
.hl-bg-site .com-calendar-date, body.dark .com-calendar-date { color: #999; }

/* 剧集项（从 _render_day_cell L69 内联迁移） */
.com-calendar-item {
    margin: 4px 0;
    padding: 0;
    font-size: 12px;
    line-height: 1.45;
    word-break: break-word;
    color: inherit;
}
.com-calendar-item__link {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}
.com-calendar-item__link:hover { color: #ff6b6b; text-decoration: underline; }
.com-calendar-ep,
.com-calendar-platform {
    display: inline-block;
    margin-left: 4px;
    color: #888;
    font-size: 11px;
    vertical-align: baseline;
}
.hl-bg-site .com-calendar-ep, body.dark .com-calendar-ep,
.hl-bg-site .com-calendar-platform, body.dark .com-calendar-platform { color: #888; }

/* 空状态文本（替换 L83 内联 style） */
.com-empty-text { color: #999; font-size: 13px; }

/* ============================================================
 * 追剧日历三档响应式断点（核心：768px 平板 4 列、576px 手机 2 列）
 * ============================================================ */
/* 1. 笔记本/大平板（≤1024px）：网格间距略缩 */
@media (max-width: 1024px) {
    .com-calendar-week { gap: 10px; }
}

/* 2. 平板端（≤768px）：7 列 → 4 列，卡片/标题尺寸缩小 */
@media (max-width: 768px) {
    .com-wrap { padding: 16px 12px 40px; }
    .com-section { padding: 18px; border-radius: 10px; margin-bottom: 16px; }
    .com-section__title { font-size: 18px; margin-bottom: 12px; gap: 6px; }

    .com-calendar-hero { padding: 24px 16px; border-radius: 10px; }
    .com-calendar-hero__title { font-size: 22px; }

    .com-calendar-week {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
        margin-bottom: 14px;
    }
    .com-calendar-grid__cell {
        padding: 8px;
        min-height: 72px;
        border-left-width: 2px;
        font-size: 12px;
    }
    .com-calendar-date { font-size: 10px; margin-bottom: 6px; }
    .com-calendar-item { font-size: 12px; line-height: 1.4; }
    .com-calendar-ep, .com-calendar-platform { font-size: 10px; margin-left: 3px; }

    /* 复用已有通用组件平板缩小（保持一致） */
    .com-tools { grid-template-columns: 1fr 1fr; }
    .com-grid { grid-template-columns: repeat(3, 1fr); }
    .com-roast-targets { grid-template-columns: 1fr; }
    .com-card__title { font-size: 13px; }
    .com-calendar-grid { grid-template-columns: 50px repeat(7, 1fr); font-size: 11px; }
    /* 不覆盖上面的 com-calendar-grid__cell（跟随日历优先级更高） */
}

/* 3. 手机端（≤576px）：核心验收断点 — 4 列 → 2 列卡片式，禁止横滚 */
@media (max-width: 576px) {
    html, body { overflow-x: hidden; }
    .com-wrap { padding: 12px 10px 30px; }
    .com-section {
        padding: 14px;
        border-radius: 8px;
        margin-bottom: 14px;
        box-shadow: 0 1px 6px rgba(0, 0, 0, .05);
    }
    .com-section__title {
        font-size: 16px;
        margin-bottom: 10px;
        gap: 6px;
    }

    .com-calendar-hero { padding: 20px 14px; border-radius: 10px; }
    .com-calendar-hero__title { font-size: 20px; }
    .com-calendar-hero__desc  { font-size: 13px; }

    /* 最关键：手机端 7/4 列 → 2 列卡片式布局，每格足够宽可读 */
    .com-calendar-week {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        margin-bottom: 14px;
    }
    .com-calendar-grid__cell {
        min-height: 80px;
        padding: 10px 8px;
        border-left-width: 3px;
        font-size: 12px;
    }
    .com-calendar-date { font-size: 11px; margin-bottom: 6px; }
    /* 剧名 2 行截断，避免超出卡片 */
    .com-calendar-item {
        font-size: 12px;
        line-height: 1.4;
        margin: 3px 0;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .com-calendar-ep, .com-calendar-platform { font-size: 10px; }

    /* 其他通用组件手机尺寸 */
    .com-grid { grid-template-columns: repeat(2, 1fr); }
    .com-tools { grid-template-columns: 1fr; }
}

/* 4. 超小屏兜底（≤380px）：进一步压缩 */
@media (max-width: 380px) {
    .com-wrap { padding-left: 8px; padding-right: 8px; }
    .com-section { padding: 12px; }
    .com-calendar-hero { padding: 16px 12px; }
    .com-calendar-hero__title { font-size: 18px; }
    .com-calendar-week { gap: 6px; }
    .com-calendar-grid__cell { min-height: 76px; padding: 8px 6px; }
    .com-calendar-item { font-size: 11px; -webkit-line-clamp: 3; }
}

/* ============================================================
 * 追剧日历 v2：按日期纵向 Timeline 卡片式列表
 * 适配高密度数据（95+ 条剧集），彻底替代原 7 列 Grid
 * Class 命名空间：com-cal-stats* | com-cal-list* | com-cal-day* | com-cal-item-row*
 * ============================================================ */

/* ===== Hero 顶部数据统计 Chip Bar ===== */
.com-cal-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 14px;
    margin-top: 16px;
}
.com-cal-stats__chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(8px);
    color: #1b3a2f;
    font-size: 13px;
    line-height: 1;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}
.com-cal-stats__chip i { font-size: 15px; }
.com-cal-stats__chip b { font-size: 18px; font-weight: 800; color: #0f2a20; }
.com-cal-stats__chip em {
    font-style: normal;
    font-size: 12px;
    color: #2e5946;
    margin-left: 2px;
    opacity: .85;
}
.com-cal-stats__chip--total { background: rgba(255, 215, 0, 0.45); }
.com-cal-stats__chip--days  { background: rgba(255, 107, 107, 0.35); }
.com-cal-stats__chip--range { background: rgba(102, 126, 234, 0.25); }
.hl-bg-site .com-cal-stats__chip, body.dark .com-cal-stats__chip {
    background: rgba(30, 50, 42, 0.6);
    color: #ddd;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}
.hl-bg-site .com-cal-stats__chip b, body.dark .com-cal-stats__chip b { color: #fff; }
.hl-bg-site .com-cal-stats__chip em, body.dark .com-cal-stats__chip em { color: #bbb; }

/* ===== Timeline 日期块容器 ===== */
.com-section--timeline { position: relative; }
.com-cal-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: relative;
}

/* ===== 单个日期块（Day Block） ===== */
.com-cal-day {
    background: var(--com-card-bg, #fff);
    border-radius: 14px;
    border: 1px solid #eee;
    overflow: hidden;
    transition: box-shadow .2s, transform .15s;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.035);
    position: relative;
}
.com-cal-day:hover {
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}
/* 今日高亮：左红边 4px + 浅红底 */
.com-cal-day.is-today {
    border-left: 4px solid #ff6b6b;
    background: linear-gradient(90deg, #fff5f5 0%, #fff 12%);
}
.hl-bg-site .com-cal-day.is-today, body.dark .com-cal-day.is-today {
    background: linear-gradient(90deg, #2a1a1a 0%, #1f1f28 12%);
    border-color: #442828;
}
.hl-bg-site .com-cal-day, body.dark .com-cal-day {
    background: #1f1f28;
    border-color: #2a2a35;
    color: #ddd;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
}

/* ===== Day 头部（日期 Chip + Badges） ===== */
.com-cal-day__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 18px 12px;
    border-bottom: 1px dashed #f0f0f0;
    background: linear-gradient(135deg, #f8fdfb 0%, #f8fbff 100%);
    flex-wrap: wrap;
}
.hl-bg-site .com-cal-day__head, body.dark .com-cal-day__head {
    background: linear-gradient(135deg, #1c2a26 0%, #1c202c 100%);
    border-bottom-color: #333846;
}
.com-cal-day__head.is-today {
    background: linear-gradient(135deg, #fff0f0 0%, #fffaf8 100%);
}
.com-cal-day__head.is-weekend {
    background: linear-gradient(135deg, #fef9ec 0%, #fffdf5 100%);
}
.hl-bg-site .com-cal-day__head.is-today, body.dark .com-cal-day__head.is-today {
    background: linear-gradient(135deg, #2a1c1c 0%, #26201e 100%);
}
.hl-bg-site .com-cal-day__head.is-weekend, body.dark .com-cal-day__head.is-weekend {
    background: linear-gradient(135deg, #2a261a 0%, #262420 100%);
}

.com-cal-day__chip {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
}
.com-cal-day__mmdd {
    font-size: 22px;
    font-weight: 800;
    color: var(--com-accent, #ff6b6b);
    letter-spacing: -0.5px;
    line-height: 1;
}
.com-cal-day__weekday {
    font-size: 13px;
    color: #777;
    font-weight: 600;
}
.hl-bg-site .com-cal-day__weekday, body.dark .com-cal-day__weekday { color: #aaa; }

.com-cal-day__badges {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.com-cal-day__today-flag {
    display: inline-block;
    padding: 3px 10px;
    background: linear-gradient(135deg, #ff6b6b, #ff5252);
    color: #fff;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
    box-shadow: 0 1px 4px rgba(255, 82, 82, 0.28);
}
.com-cal-day__count {
    display: inline-block;
    padding: 3px 10px;
    background: #f1f3f7;
    color: #556;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
}
.hl-bg-site .com-cal-day__count, body.dark .com-cal-day__count {
    background: #2a2a35;
    color: #aaa;
}

/* ===== Day 内部：剧集条目列表 ===== */
.com-cal-day__items {
    display: flex;
    flex-direction: column;
    padding: 6px 10px 10px;
}

/* ===== 单条剧集行 ===== */
.com-cal-item-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 8px;
    margin: 3px 0;
    transition: background .12s;
    min-height: 40px;
}
.com-cal-item-row:hover { background: rgba(255, 107, 107, 0.06); }
.hl-bg-site .com-cal-item-row:hover, body.dark .com-cal-item-row:hover {
    background: rgba(255, 107, 107, 0.10);
}
.com-cal-item-row + .com-cal-item-row {
    border-top: 1px dashed #f1f1f1;
}
.hl-bg-site .com-cal-item-row + .com-cal-item-row,
body.dark .com-cal-item-row + .com-cal-item-row {
    border-top-color: #2e2e39;
}

/* 序号 chip（1-N）：第 1 条金色 */
.com-cal-item-row__idx {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    background: #f1f3f7;
    color: #778;
}
.com-cal-item-row.is-first .com-cal-item-row__idx {
    background: linear-gradient(135deg, #ffd700, #ffa500);
    color: #5a3d00;
    box-shadow: 0 1px 4px rgba(255, 165, 0, 0.35);
}
.hl-bg-site .com-cal-item-row__idx, body.dark .com-cal-item-row__idx {
    background: #2e2e39;
    color: #aab;
}

/* 剧名：flex:1 占满剩余空间，超长省略 */
.com-cal-item-row__title {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--com-text, #222);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}
.com-cal-item-row__title:hover {
    color: #ff6b6b;
    text-decoration: underline;
}
.hl-bg-site .com-cal-item-row__title, body.dark .com-cal-item-row__title { color: #eee; }

/* 右侧 meta：EP + Platform，flex wrap 避免超长溢出 */
.com-cal-item-row__meta {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    max-width: 45%;
    justify-content: flex-end;
}
.com-cal-item-row__ep {
    display: inline-block;
    padding: 3px 8px;
    background: rgba(102, 126, 234, 0.12);
    color: #5567d5;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}
.com-cal-item-row__platform {
    display: inline-block;
    padding: 3px 9px;
    background: rgba(0, 0, 0, 0.035);
    color: #666;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid rgba(0, 0, 0, 0.06);
}
.hl-bg-site .com-cal-item-row__ep, body.dark .com-cal-item-row__ep {
    background: rgba(102, 126, 234, 0.2);
    color: #aab4f3;
}
.hl-bg-site .com-cal-item-row__platform, body.dark .com-cal-item-row__platform {
    background: rgba(255, 255, 255, 0.04);
    color: #bbb;
    border-color: rgba(255, 255, 255, 0.07);
}

/* ============================================================
 * 追剧日历 v2 响应式断点（Timeline 列表）
 * 断点：≤1024 / ≤768 / ≤576 / ≤380
 * ============================================================ */
@media (max-width: 1024px) {
    .com-cal-item-row__meta { max-width: 50%; }
    .com-cal-day__head { padding: 13px 16px 11px; }
    .com-cal-list { gap: 16px; }
}

@media (max-width: 768px) {
    /* 统计 Chip bar：允许换行 + 紧凑 */
    .com-cal-stats { gap: 8px 10px; margin-top: 14px; }
    .com-cal-stats__chip { padding: 7px 12px; font-size: 12px; }
    .com-cal-stats__chip b { font-size: 16px; }

    .com-cal-list { gap: 14px; }
    .com-cal-day { border-radius: 12px; }
    .com-cal-day__head { padding: 12px 14px 10px; }
    .com-cal-day__mmdd { font-size: 20px; }
    .com-cal-day__weekday { font-size: 12px; }
    .com-cal-day__items { padding: 4px 8px 8px; }

    /* 条目行：meta 换到下一行（wrap），剧名占整行 */
    .com-cal-item-row {
        flex-wrap: wrap;
        gap: 8px;
        padding: 10px 8px;
    }
    .com-cal-item-row__title {
        font-size: 14px;
        order: 2;
        flex-basis: calc(100% - 34px); /* idx chip 24 + gap 10 */
    }
    .com-cal-item-row__meta {
        order: 3;
        max-width: 100%;
        margin-left: 34px; /* 对齐 idx 右侧 */
        justify-content: flex-start;
    }
    .com-cal-item-row__idx { order: 1; }
}

@media (max-width: 576px) {
    html, body { overflow-x: hidden; }

    .com-cal-stats {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        margin-top: 12px;
    }
    .com-cal-stats__chip { justify-content: center; padding: 8px 6px; font-size: 12px; }
    .com-cal-stats__chip--range { grid-column: 1 / -1; }
    .com-cal-stats__chip b { font-size: 15px; }
    .com-cal-stats__chip em { font-size: 11px; }

    .com-cal-list { gap: 12px; }
    .com-cal-day { border-radius: 10px; }
    .com-cal-day.is-today { border-left-width: 3px; }

    .com-cal-day__head {
        padding: 10px 12px 9px;
        gap: 8px;
    }
    .com-cal-day__chip { gap: 6px; }
    .com-cal-day__mmdd { font-size: 18px; }
    .com-cal-day__weekday { font-size: 11px; }
    .com-cal-day__today-flag { padding: 2px 8px; font-size: 10px; }
    .com-cal-day__count { padding: 2px 8px; font-size: 10px; }

    .com-cal-day__items { padding: 3px 6px 6px; }
    .com-cal-item-row {
        padding: 8px 6px;
        margin: 2px 0;
        min-height: 36px;
    }
    .com-cal-item-row__idx {
        width: 20px; height: 20px; font-size: 11px; border-radius: 5px;
    }
    .com-cal-item-row__title {
        font-size: 13px;
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        line-height: 1.35;
        flex-basis: calc(100% - 30px);
    }
    .com-cal-item-row__meta {
        margin-left: 30px;
        gap: 4px;
    }
    .com-cal-item-row__ep { font-size: 10px; padding: 2px 6px; }
    .com-cal-item-row__platform { font-size: 10px; padding: 2px 7px; }
}

@media (max-width: 380px) {
    .com-cal-stats { grid-template-columns: 1fr; }
    .com-cal-stats__chip--range { grid-column: auto; }

    .com-cal-day__mmdd { font-size: 17px; }
    .com-cal-day__head { padding: 9px 10px 8px; }
    .com-cal-day__badges { gap: 5px; }

    .com-cal-item-row { padding: 7px 4px; gap: 6px; }
    .com-cal-item-row__title {
        font-size: 12.5px;
        -webkit-line-clamp: 3;
        flex-basis: calc(100% - 26px);
    }
    .com-cal-item-row__meta { margin-left: 26px; }
}

/* ===== v3 找片页(/find/) 文字截断控制（纯 CSS，不改 PHP/HTML，增量追加不删老规则） ===== */

/* ===== A. 高分推荐卡：等高链路 + meta 行截断（解决主演串长换行→卡高参差不齐） ===== */
.com-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    align-self: stretch;
}
.com-grid {
    align-items: stretch;
}
.com-card__img {
    flex-shrink: 0;
}
.com-card__title {
    flex-shrink: 1;
    min-width: 0;
}
.com-card__meta {
    flex-shrink: 0;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-bottom: 10px;
}
.com-card__meta .score {
    font-weight: 700;
    color: #ffb300;
    display: inline-block;
    white-space: nowrap;
}
/* 暗色模式同步（沿用 header.js hl-bg-site 切换机制） */
body.dark .com-card,
.hl-bg-site .com-card {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* ===== B. 热门标签云：max-width + ellipsis + word-break（防长复合标签撑破行宽） ===== */
.tag-cloud-item {
    max-width: 140px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
    word-break: break-all;
    overflow-wrap: anywhere;
    line-height: 1.5;
}
body.dark .tag-cloud-item,
.hl-bg-site .tag-cloud-item {
    opacity: 0.92;
}

/* ===== C. 工具入口子描述（.com-tool 下最后一个 div = L38/43/48 的 12px 描述行） ===== */
.com-tool > div:last-of-type {
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    word-break: break-all;
}
.com-tool {
    min-width: 0;
    overflow: hidden;
}

/* ===== D. 段位条渐变卡：昵称/积分行精确截断（不影响其他 .com-section 卡片） ===== */
/* 通过段位条专属的 linear-gradient 背景色做精确命中 */
.com-wrap > .com-section[style*="linear-gradient(135deg,#232526"] p,
.com-wrap > .com-section[style*="linear-gradient(135deg, #232526"] p {
    max-width: calc(100% - 140px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    word-break: break-all;
}
.com-wrap > .com-section[style*="linear-gradient(135deg,#232526"],
.com-wrap > .com-section[style*="linear-gradient(135deg, #232526"] {
    overflow: hidden;
}
.com-wrap > .com-section[style*="linear-gradient(135deg,#232526"] strong,
.com-wrap > .com-section[style*="linear-gradient(135deg, #232526"] strong {
    white-space: nowrap;
    display: inline-block;
}

/* ===== E. @media (max-width: 768px) 平板：标签收窄 + 工具描述字号缩小 ===== */
@media (max-width: 768px) {
    .tag-cloud-item {
        max-width: 110px;
        font-size: 12px;
        padding: 4px 8px;
    }
    .com-tool > div:last-of-type {
        font-size: 11px;
    }
    .com-wrap > .com-section[style*="linear-gradient(135deg,#232526"] p,
    .com-wrap > .com-section[style*="linear-gradient(135deg, #232526"] p {
        max-width: calc(100% - 120px);
    }
}

/* ===== F. @media (max-width: 576px) 手机：片名允许 2 行 + 标签更窄 + 0 横滚承诺 ===== */
@media (max-width: 576px) {
    /* 片名：手机端允许 2 行（更友好，避免 6 字+省略号信息太少） */
    .com-card__title {
        white-space: normal !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        line-height: 1.4;
        max-height: calc(14px * 1.4 * 2 + 2px);
    }
    .tag-cloud-item {
        max-width: 90px;
        font-size: 11.5px;
        padding: 3px 7px;
        margin: 2px;
    }
    .com-tool {
        padding: 16px 10px;
    }
    .com-tool > div:last-of-type {
        font-size: 11px;
        margin-top: 2px;
    }
    /* 段位条：昵称/积分句的 max-width 更保守 */
    .com-wrap > .com-section[style*="linear-gradient(135deg,#232526"] p,
    .com-wrap > .com-section[style*="linear-gradient(135deg, #232526"] p {
        max-width: calc(100% - 100px);
        font-size: 12px;
    }
    .com-wrap > .com-section[style*="linear-gradient(135deg,#232526"] :first-child p,
    .com-wrap > .com-section[style*="linear-gradient(135deg, #232526"] :first-child p {
        max-width: calc(100% - 100px);
        font-size: 14px;
    }
    /* ===== v2 日历页延续承诺：360px 下横向滚动 = 0 ===== */
    html,
    body {
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch;
    }
    .com-wrap,
    .com-grid,
    .com-tools,
    .com-section,
    #conch-content {
        min-width: 0;
        overflow-wrap: anywhere;
        word-break: break-word;
    }
}
/* ===== END 找片页截断控制 v3 ===== */

/* ===== v3.1 roast 点赞 toggle 状态 ===== */
.com-roast-item__action.is-liked {
    color: #ff4d6d;
    font-weight: 700;
    cursor: pointer;
}
.com-roast-item__action {
    cursor: pointer;
    user-select: none;
}
