/* ================================================================
 * love-mi-cinema.css — 子屏 · 游戏 · 影音盛宴 · love咪放映厅
 * 设计：暗色影院氛围 + 票务检票 + 银幕 Char 头像 + 磨砂玻璃气泡聊天
 * ================================================================ */

:root {
    --lmc-bg: #0f0c14;
    --lmc-bg-2: #17121d;
    --lmc-velvet: #3b1f31;
    --lmc-gold: #e7cb92;
    --lmc-rose: #ff8aac;
    --lmc-rose-strong: #ea628b;
    --lmc-text: #f5e7e9;
    --lmc-text-dim: #b7a6b1;
    --lmc-text-faint: #7a6b74;
    --lmc-screen-glow: rgba(247, 232, 240, 0.86);
    --lmc-bubble-user-bg: linear-gradient(135deg, rgba(255, 138, 172, 0.6) 0%, rgba(234, 98, 139, 0.55) 100%);
    --lmc-bubble-char-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.08) 100%);
}

/* ==================== Overlay 容器 ==================== */
.love-mi-cinema-overlay {
    position: absolute;
    inset: 0;
    z-index: 100180;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.32s ease, visibility 0.32s ease;
    border-radius: inherit;
    overflow: hidden;
}

.love-mi-cinema-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.lmc-backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 70%, rgba(60, 20, 40, 0.7) 0%, rgba(15, 12, 20, 0.88) 52%, rgba(5, 3, 9, 0.96) 100%);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

/* ==================== 电影票选择 Picker ==================== */
.lmc-picker {
    position: relative;
    width: min(92%, 380px);
    max-height: 72%;
    margin-bottom: 10%;
    background: linear-gradient(180deg, #1c1522 0%, #2a1b30 100%);
    border: 1px solid rgba(231, 203, 146, 0.22);
    border-radius: 22px;
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(231, 203, 146, 0.08) inset;
    color: var(--lmc-text);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: lmcPickerRise 0.36s cubic-bezier(0.34, 1.2, 0.5, 1);
}

@keyframes lmcPickerRise {
    from { transform: translateY(22px) scale(0.96); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

.lmc-picker-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 18px 8px;
    border-bottom: 1px dashed rgba(231, 203, 146, 0.18);
}

.lmc-picker-title {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: var(--lmc-gold);
    margin: 0;
}

.lmc-picker-sub {
    margin: 6px 0 0;
    font-size: 11px;
    letter-spacing: 0.04em;
    color: var(--lmc-text-dim);
    line-height: 1.55;
}

.lmc-picker-close {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--lmc-text);
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
}

.lmc-picker-close:active { transform: scale(0.94); }

.lmc-picker-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 14px 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lmc-ticket-count {
    font-size: 10px;
    letter-spacing: 0.16em;
    color: var(--lmc-text-faint);
    text-transform: uppercase;
}

.lmc-ticket-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lmc-ticket-item {
    padding: 12px 14px;
    border-radius: 14px;
    background: linear-gradient(135deg, #2e1a36 0%, #402542 100%);
    border: 1px solid rgba(231, 203, 146, 0.22);
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
    position: relative;
}

.lmc-ticket-item::before {
    content: '';
    position: absolute;
    top: 10px;
    left: -6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--lmc-bg);
    box-shadow: 0 0 0 1px rgba(231, 203, 146, 0.22);
}

.lmc-ticket-item::after {
    content: '';
    position: absolute;
    top: 10px;
    right: -6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--lmc-bg);
    box-shadow: 0 0 0 1px rgba(231, 203, 146, 0.22);
}

.lmc-ticket-item:active {
    transform: translateY(1px);
    border-color: var(--lmc-gold);
    box-shadow: 0 4px 12px rgba(231, 203, 146, 0.1);
}

.lmc-ticket-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 6px;
}

.lmc-ticket-title {
    font-size: 14px;
    font-weight: 800;
    color: var(--lmc-text);
    letter-spacing: 0.04em;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lmc-ticket-serial {
    font-size: 9px;
    letter-spacing: 0.18em;
    color: var(--lmc-gold);
    opacity: 0.82;
    font-family: 'Menlo', 'Consolas', monospace;
    flex-shrink: 0;
}

.lmc-ticket-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 11px;
    color: var(--lmc-text-dim);
    letter-spacing: 0.04em;
    line-height: 1.5;
}

.lmc-ticket-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    padding-top: 6px;
    border-top: 1px dashed rgba(231, 203, 146, 0.12);
    font-size: 10px;
    color: var(--lmc-text-faint);
    letter-spacing: 0.04em;
}

.lmc-ticket-friend {
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(231, 203, 146, 0.08);
    color: var(--lmc-gold);
}

.lmc-ticket-seats {
    font-family: 'Menlo', 'Consolas', monospace;
    opacity: 0.8;
}

.lmc-empty {
    padding: 28px 12px;
    text-align: center;
    color: var(--lmc-text-dim);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.lmc-empty-icon { font-size: 36px; opacity: 0.7; }

.lmc-empty-title {
    font-size: 14px;
    font-weight: 800;
    color: var(--lmc-text);
    letter-spacing: 0.04em;
}

.lmc-empty-hint {
    font-size: 11px;
    line-height: 1.7;
    max-width: 280px;
    color: var(--lmc-text-faint);
}

.lmc-empty-btn {
    margin-top: 10px;
    padding: 8px 18px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, var(--lmc-rose) 0%, var(--lmc-rose-strong) 100%);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(234, 98, 139, 0.34);
}

.lmc-picker-foot {
    border-top: 1px solid rgba(231, 203, 146, 0.08);
    padding: 10px 14px;
}

.lmc-footnote {
    font-size: 10px;
    letter-spacing: 0.28em;
    color: var(--lmc-text-faint);
    text-align: center;
    text-transform: uppercase;
}

/* ==================== 电影院界面 ==================== */
.lmc-cinema {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1.05fr) minmax(0, 1.05fr);
    background:
        radial-gradient(ellipse at 50% 10%, rgba(60, 28, 54, 0.65) 0%, rgba(15, 12, 20, 0.95) 45%, rgba(5, 3, 9, 1) 100%),
        linear-gradient(180deg, #0f0c14 0%, #060409 100%);
    color: var(--lmc-text);
    animation: lmcCinemaEnter 0.5s ease;
}

@keyframes lmcCinemaEnter {
    from { opacity: 0; transform: scale(0.98); filter: brightness(0.6); }
    to { opacity: 1; transform: scale(1); filter: brightness(1); }
}

.lmc-cinema-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px 8px;
    gap: 10px;
    background: linear-gradient(180deg, rgba(29, 20, 36, 0.85) 0%, rgba(29, 20, 36, 0) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 4;
}

.lmc-cinema-exit,
.lmc-cinema-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(231, 203, 146, 0.22);
    color: var(--lmc-text);
    font-size: 11px;
    letter-spacing: 0.1em;
    cursor: pointer;
    font-weight: 700;
}

.lmc-cinema-exit:active,
.lmc-cinema-upload-btn:active { transform: scale(0.96); }

.lmc-cinema-upload-btn {
    background: linear-gradient(135deg, rgba(231, 203, 146, 0.2) 0%, rgba(231, 203, 146, 0.08) 100%);
    color: var(--lmc-gold);
    border-color: rgba(231, 203, 146, 0.4);
}

.lmc-cinema-title-box {
    flex: 1;
    text-align: center;
    min-width: 0;
}

.lmc-cinema-title {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--lmc-text);
    line-height: 1.1;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.lmc-cinema-subtitle {
    margin-top: 3px;
    font-size: 10px;
    color: var(--lmc-text-faint);
    letter-spacing: 0.06em;
}

/* ----- 银幕舞台 ----- */
.lmc-cinema-stage {
    position: relative;
    padding: 6px 14px 14px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    min-height: 0;
    cursor: pointer;
}

.lmc-screen-frame {
    position: relative;
    width: 100%;
    perspective: 800px;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.lmc-screen {
    position: relative;
    flex: 1;
    min-height: 0;
    border-radius: 6px;
    background: #000;
    overflow: hidden;
    box-shadow:
        0 0 0 4px #151017,
        0 0 22px 6px rgba(247, 232, 240, 0.14),
        0 20px 34px rgba(0, 0, 0, 0.6);
    transform: perspective(700px) rotateX(1.8deg);
    transform-origin: center bottom;
}

.lmc-screen::after {
    content: '';
    position: absolute;
    inset: -10% -12% -30% -12%;
    background: radial-gradient(ellipse at center, rgba(247, 232, 240, 0.24) 0%, rgba(247, 232, 240, 0) 55%);
    pointer-events: none;
    mix-blend-mode: screen;
    z-index: 3;
}

.lmc-screen-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px;
    color: rgba(16, 8, 20, 0.72);
    background: linear-gradient(160deg, rgba(255, 232, 242, 0.92) 0%, rgba(235, 218, 244, 0.82) 100%);
    text-align: center;
}

.lmc-screen-placeholder-title {
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 0.06em;
    color: rgba(16, 8, 20, 0.84);
    text-shadow: 0 0 12px rgba(247, 232, 240, 0.4);
}

.lmc-screen-placeholder-sub {
    font-size: 11px;
    letter-spacing: 0.04em;
    color: rgba(40, 24, 46, 0.58);
    line-height: 1.6;
    max-width: 92%;
}

.lmc-screen-placeholder-hint {
    margin-top: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(16, 8, 20, 0.1);
    font-size: 10px;
    letter-spacing: 0.04em;
    color: rgba(16, 8, 20, 0.56);
    line-height: 1.6;
    max-width: 96%;
}

.lmc-screen-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #000;
    object-fit: contain;
    z-index: 2;
}

.lmc-screen-base {
    position: relative;
    margin-top: 8px;
    height: 20px;
    border-radius: 0 0 8px 8px;
    background: linear-gradient(180deg, #2d1a30 0%, #150b18 100%);
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.55);
}

.lmc-screen-base::after {
    content: '';
    position: absolute;
    top: -14px;
    left: 50%;
    width: 64%;
    height: 22px;
    transform: translateX(-50%);
    background: radial-gradient(ellipse, rgba(247, 232, 240, 0.24) 0%, rgba(247, 232, 240, 0) 70%);
    pointer-events: none;
}

.lmc-stage-aisle {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
    padding-top: 10px;
    padding-bottom: 2px;
    opacity: 0.78;
}

.lmc-stage-seat {
    height: 14px;
    border-radius: 4px 4px 2px 2px;
    background: linear-gradient(180deg, #3a2339 0%, #1a0e1e 100%);
    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.04),
        0 3px 0 rgba(0, 0, 0, 0.35);
}

/* ==================== Char 头像 · 银幕悬浮按钮 ==================== */
.lmc-char-avatar {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(231, 203, 146, 0.85);
    background-color: #3b1f31;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    cursor: pointer;
    z-index: 10;
    box-shadow:
        0 0 0 3px rgba(15, 12, 20, 0.6),
        0 6px 18px rgba(255, 138, 172, 0.45),
        0 0 18px rgba(247, 232, 240, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffd9ec;
    font-weight: 900;
    font-size: 18px;
    letter-spacing: 0.04em;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.lmc-char-avatar:hover {
    transform: scale(1.05);
}

.lmc-char-avatar:active {
    transform: scale(0.96);
}

.lmc-char-avatar.is-dragging {
    cursor: grabbing;
    transform: scale(1.08);
    box-shadow:
        0 0 0 3px rgba(15, 12, 20, 0.6),
        0 12px 28px rgba(255, 138, 172, 0.55),
        0 0 24px rgba(247, 232, 240, 0.5);
}

.lmc-char-avatar.is-busy {
    pointer-events: none;
    opacity: 0.7;
}

.lmc-char-avatar-fallback {
    pointer-events: none;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.lmc-char-avatar-ring {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.5);
    pointer-events: none;
    animation: lmcCharRing 2.2s infinite ease-in-out;
}

.lmc-char-avatar.is-busy .lmc-char-avatar-ring {
    border-color: rgba(255, 200, 220, 0.95);
    animation: lmcCharRingBusy 0.9s infinite linear;
}

@keyframes lmcCharRing {
    0%, 100% { transform: scale(1); opacity: 0.55; }
    50% { transform: scale(1.06); opacity: 0.85; }
}

@keyframes lmcCharRingBusy {
    0% { transform: rotate(0deg) scale(1); }
    100% { transform: rotate(360deg) scale(1.05); }
}

/* ==================== 聊天窗口 ==================== */
.lmc-cinema-chatbox {
    display: flex;
    flex-direction: column;
    min-height: 0;
    margin: 0 10px 10px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(23, 18, 29, 0.88) 0%, rgba(15, 12, 20, 0.92) 100%);
    border: 1px solid rgba(231, 203, 146, 0.18);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.48);
    overflow: hidden;
}

.lmc-chat-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-bottom: 1px dashed rgba(231, 203, 146, 0.16);
    font-size: 10px;
    letter-spacing: 0.18em;
    color: var(--lmc-text-dim);
    text-transform: none;
    justify-content: center;
}

.lmc-chat-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--lmc-rose);
    box-shadow: 0 0 8px rgba(255, 138, 172, 0.75);
    animation: lmcPulse 1.6s infinite;
}

@keyframes lmcPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.55; transform: scale(0.85); }
}

.lmc-chat-scroll {
    flex: 1;
    min-height: 60px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 12px 14px 6px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.lmc-chat-scroll::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

.lmc-chat-empty {
    margin: auto;
    font-size: 11px;
    text-align: center;
    color: var(--lmc-text-faint);
    line-height: 1.8;
    letter-spacing: 0.04em;
    padding: 12px 8px;
}

/* ==================== 磨砂玻璃气泡 ==================== */
.lmc-bubble-row {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    width: 100%;
}

.lmc-bubble-row--user {
    justify-content: flex-end;
}

.lmc-bubble-row--char {
    justify-content: flex-start;
}

.lmc-bubble-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #4a2a4c;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    border: 1px solid rgba(231, 203, 146, 0.32);
    flex-shrink: 0;
    color: #ffd9ec;
    font-weight: 800;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lmc-bubble-user-spacer {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    visibility: hidden;
}

.lmc-bubble {
    max-width: 84%;
    padding: 10px 14px;
    border-radius: 18px;
    font-size: 13px;
    line-height: 1.78;
    word-break: break-word;
    letter-spacing: 0.02em;
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow:
        0 8px 22px rgba(0, 0, 0, 0.42),
        inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.lmc-bubble--user {
    background: var(--lmc-bubble-user-bg);
    color: #fff;
    border-bottom-right-radius: 6px;
    border-color: rgba(255, 138, 172, 0.45);
}

.lmc-bubble--char {
    background: var(--lmc-bubble-char-bg);
    color: var(--lmc-text);
    border-bottom-left-radius: 6px;
}

.lmc-bubble-row.is-char-comment .lmc-bubble--char {
    border-color: rgba(231, 203, 146, 0.55);
    box-shadow:
        0 8px 22px rgba(0, 0, 0, 0.42),
        inset 0 1px 0 rgba(255, 255, 255, 0.16),
        0 0 16px rgba(231, 203, 146, 0.32);
}

.lmc-bubble-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 4px;
}

.lmc-bubble-name {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    opacity: 0.95;
}

.lmc-bubble-time {
    font-size: 10px;
    opacity: 0.65;
    font-family: 'Menlo', 'Consolas', monospace;
}

.lmc-bubble-line {
    white-space: pre-wrap;
}

.lmc-bubble-line + .lmc-bubble-line {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px dashed rgba(255, 255, 255, 0.12);
}

/* ==================== 工具条（重回 / 字数 / 文风 / 人称 / 总结 / 结束） ==================== */
.lmc-chat-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 12px;
    border-top: 1px dashed rgba(231, 203, 146, 0.16);
    background: rgba(255, 255, 255, 0.03);
}

.lmc-toolbar-btn {
    flex: 1 1 auto;
    min-width: 48px;
    appearance: none;
    border: 1px solid rgba(231, 203, 146, 0.32);
    background: rgba(255, 255, 255, 0.06);
    color: var(--lmc-text);
    border-radius: 999px;
    height: 28px;
    padding: 0 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.lmc-toolbar-btn:hover {
    background: rgba(231, 203, 146, 0.18);
}

.lmc-toolbar-btn:active {
    transform: scale(0.96);
}

.lmc-toolbar-btn--end {
    background: linear-gradient(135deg, rgba(255, 138, 172, 0.65) 0%, rgba(234, 98, 139, 0.6) 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 6px 14px rgba(234, 98, 139, 0.32);
}

.lmc-toolbar-btn--end:hover {
    background: linear-gradient(135deg, var(--lmc-rose) 0%, var(--lmc-rose-strong) 100%);
}

/* ==================== 输入框 + 接收 / 发送 ==================== */
.lmc-chat-composer {
    display: flex;
    gap: 8px;
    align-items: flex-end;
    padding: 10px 12px;
    border-top: 1px dashed rgba(231, 203, 146, 0.16);
    background: rgba(0, 0, 0, 0.2);
}

.lmc-chat-input {
    flex: 1;
    min-height: 36px;
    max-height: 120px;
    resize: none;
    padding: 8px 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(231, 203, 146, 0.18);
    color: var(--lmc-text);
    font-size: 13px;
    font-family: inherit;
    outline: none;
    letter-spacing: 0.02em;
    line-height: 1.55;
}

.lmc-chat-input::placeholder { color: var(--lmc-text-faint); }

.lmc-chat-input:focus { border-color: rgba(231, 203, 146, 0.5); }

.lmc-chat-receive,
.lmc-chat-send {
    appearance: none;
    border: none;
    height: 36px;
    padding: 0 16px;
    border-radius: 18px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    cursor: pointer;
    flex-shrink: 0;
}

.lmc-chat-receive {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(231, 203, 146, 0.4);
    color: var(--lmc-gold);
}

.lmc-chat-receive:hover { background: rgba(231, 203, 146, 0.18); }
.lmc-chat-receive:active { transform: translateY(1px); }

.lmc-chat-receive.is-loading {
    background: linear-gradient(135deg, rgba(255, 138, 172, 0.4) 0%, rgba(234, 98, 139, 0.45) 100%);
    color: #fff;
    border-color: transparent;
    animation: lmcRecvPulse 1.4s infinite ease-in-out;
}

@keyframes lmcRecvPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 138, 172, 0.4); }
    50% { box-shadow: 0 0 0 6px rgba(255, 138, 172, 0); }
}

.lmc-chat-send {
    background: linear-gradient(135deg, var(--lmc-rose) 0%, var(--lmc-rose-strong) 100%);
    color: #fff;
    box-shadow: 0 6px 14px rgba(234, 98, 139, 0.3);
}

.lmc-chat-send:active { transform: translateY(1px); }

/* ==================== 弹窗（设置 / 总结展示） ==================== */
.lmc-modal-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    /* 须高于 .lmc-bubble-ctx-menu(100240)，否则长按菜单关闭后弹窗可能被聊天区/舞台层遮挡或点不到 */
    z-index: 100260;
}

.lmc-modal {
    position: absolute;
    inset: 0;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: lmcModalIn 0.22s ease;
}

@keyframes lmcModalIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lmc-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 3, 9, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.lmc-modal-panel {
    position: relative;
    width: min(86%, 320px);
    max-height: 82%;
    background: linear-gradient(180deg, rgba(36, 26, 44, 0.96) 0%, rgba(22, 16, 28, 0.98) 100%);
    border: 1px solid rgba(231, 203, 146, 0.22);
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: var(--lmc-text);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.55);
    animation: lmcModalRise 0.28s cubic-bezier(0.34, 1.2, 0.5, 1);
}

@keyframes lmcModalRise {
    from { transform: translateY(16px) scale(0.96); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

.lmc-modal-panel--tall {
    height: min(78%, 460px);
}

.lmc-modal-panel--sheet {
    width: min(82%, 300px);
}

.lmc-modal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px 8px;
    border-bottom: 1px dashed rgba(231, 203, 146, 0.18);
}

.lmc-modal-title {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: var(--lmc-gold);
}

.lmc-modal-close {
    appearance: none;
    border: none;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
}

.lmc-modal-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 14px 16px 6px;
    font-size: 13px;
    line-height: 1.7;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lmc-modal-hint {
    margin: 0;
    font-size: 11px;
    color: var(--lmc-text-dim);
    line-height: 1.7;
}

.lmc-modal-foot {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 10px 16px 14px;
    border-top: 1px solid rgba(231, 203, 146, 0.12);
}

.lmc-modal-foot--split {
    justify-content: space-between;
}

.lmc-btn-primary,
.lmc-btn-ghost {
    appearance: none;
    border: none;
    height: 32px;
    padding: 0 16px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.1em;
    cursor: pointer;
}

.lmc-btn-primary {
    background: linear-gradient(135deg, var(--lmc-rose) 0%, var(--lmc-rose-strong) 100%);
    color: #fff;
    box-shadow: 0 6px 14px rgba(234, 98, 139, 0.3);
}

.lmc-btn-primary:active { transform: translateY(1px); }

.lmc-btn-ghost {
    background: rgba(255, 255, 255, 0.06);
    color: var(--lmc-text);
    border: 1px solid rgba(231, 203, 146, 0.22);
}

.lmc-btn-ghost:hover { background: rgba(231, 203, 146, 0.16); }

.lmc-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(231, 203, 146, 0.18);
}

.lmc-input-row label {
    font-size: 11px;
    color: var(--lmc-text-dim);
    letter-spacing: 0.1em;
}

.lmc-modal-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--lmc-text);
    font-size: 14px;
    font-weight: 700;
    text-align: right;
    font-family: inherit;
}

.lmc-input-suffix {
    font-size: 11px;
    color: var(--lmc-text-faint);
    letter-spacing: 0.1em;
}

.lmc-pov-block + .lmc-pov-block {
    margin-top: 8px;
}

.lmc-pov-label {
    font-size: 11px;
    color: var(--lmc-gold);
    margin-bottom: 6px;
    letter-spacing: 0.12em;
}

.lmc-pov-options {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.lmc-pov-radio {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(231, 203, 146, 0.18);
    font-size: 12px;
    color: var(--lmc-text);
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.lmc-pov-radio input { accent-color: var(--lmc-rose); }

.lmc-pov-radio:hover { background: rgba(231, 203, 146, 0.12); }

.lmc-pov-radio:has(input:checked) {
    background: linear-gradient(135deg, rgba(255, 138, 172, 0.22) 0%, rgba(234, 98, 139, 0.18) 100%);
    border-color: rgba(255, 138, 172, 0.55);
}

.lmc-style-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lmc-style-row {
    appearance: none;
    border: 1px solid rgba(231, 203, 146, 0.22);
    background: rgba(255, 255, 255, 0.04);
    border-radius: 14px;
    padding: 10px 14px;
    color: var(--lmc-text);
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.lmc-style-row:hover { background: rgba(231, 203, 146, 0.14); }
.lmc-style-row:active { transform: scale(0.98); }

.lmc-style-row.is-active {
    background: linear-gradient(135deg, rgba(255, 138, 172, 0.22) 0%, rgba(234, 98, 139, 0.18) 100%);
    border-color: rgba(255, 138, 172, 0.55);
}

.lmc-style-row-title {
    font-size: 13px;
    font-weight: 700;
}

.lmc-style-row-tag {
    font-size: 10px;
    color: var(--lmc-text-faint);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    flex-shrink: 0;
}

/* 文风弹窗 · 单行外壳（编辑/删除在行内右侧） */
.lmc-style-entry {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(231, 203, 146, 0.22);
    background: rgba(255, 255, 255, 0.04);
    border-radius: 14px;
    padding: 8px 12px;
    color: var(--lmc-text);
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.lmc-style-entry:hover {
    background: rgba(231, 203, 146, 0.14);
}

.lmc-style-entry.is-active {
    background: linear-gradient(135deg, rgba(255, 138, 172, 0.22) 0%, rgba(234, 98, 139, 0.18) 100%);
    border-color: rgba(255, 138, 172, 0.55);
}

.lmc-style-entry-pick {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    appearance: none;
    border: none;
    background: transparent;
    color: inherit;
    cursor: pointer;
    text-align: left;
    font: inherit;
    padding: 2px 0;
}

.lmc-style-entry-pick:active {
    transform: scale(0.99);
}

.lmc-style-entry-pick--spread {
    flex: 1;
    width: 100%;
}

.lmc-style-entry-title {
    flex: 1;
    min-width: 0;
    font-size: 13px;
    font-weight: 700;
}

.lmc-style-inline-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.lmc-style-inline-actions .lmc-style-action-mini {
    padding: 3px 9px;
    font-size: 10px;
}

.lmc-style-action-row {
    appearance: none;
    border: 1px solid rgba(231, 203, 146, 0.2);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    min-height: 42px;
    padding: 0 14px;
    color: var(--lmc-text);
    font-size: 13px;
    font-weight: 800;
    text-align: left;
    cursor: pointer;
}

.lmc-style-action-row:hover {
    background: rgba(231, 203, 146, 0.14);
}

.lmc-style-action-row--danger {
    color: #ff8bac;
    border-color: rgba(255, 139, 172, 0.35);
}

.lmc-style-edit-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 0;
}

.lmc-style-edit-field span {
    font-size: 11px;
    color: var(--lmc-gold);
    letter-spacing: 0.12em;
}

.lmc-style-edit-field--content {
    flex: 1;
}

.lmc-style-edit-input,
.lmc-style-edit-textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid rgba(231, 203, 146, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--lmc-text);
    font-family: inherit;
    outline: none;
}

.lmc-style-edit-input {
    height: 38px;
    padding: 0 12px;
    font-size: 13px;
    font-weight: 700;
}

.lmc-style-edit-textarea {
    flex: 1;
    min-height: 190px;
    resize: none;
    padding: 10px 12px;
    font-size: 12px;
    line-height: 1.7;
}

/* 放映厅 · 编辑本条 / 编辑对方叙事：隐形滚动条（仍可滑动滚轮与触控滚动） */
textarea.lmc-style-edit-textarea[data-lmc-bubble-edit-text] {
    scrollbar-width: none;
    -ms-overflow-style: none;
}
textarea.lmc-style-edit-textarea[data-lmc-bubble-edit-text]::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

.lmc-style-empty {
    text-align: center;
    color: var(--lmc-text-faint);
    font-size: 12px;
    padding: 18px 10px;
    line-height: 1.7;
}

.lmc-summary-text {
    flex: 1;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 14px;
    padding: 12px 14px;
    font-size: 13px;
    line-height: 1.85;
    color: #fff5fa;
    white-space: pre-wrap;
    word-break: break-word;
}

/* 文风弹窗 · 透明滚动条 + 多选条目布局 */
.lmc-modal-body--style-scroll {
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
}
.lmc-modal-body--style-scroll::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}
.lmc-modal-body--style-scroll::-webkit-scrollbar-thumb,
.lmc-modal-body--style-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.lmc-modal-foot-inline {
    display: flex;
    gap: 10px;
    align-items: center;
}

.lmc-style-item {
    display: block;
}

.lmc-style-pick-mark {
    flex-shrink: 0;
    width: 22px;
    font-size: 12px;
    color: var(--lmc-rose);
    font-weight: 800;
    text-align: center;
}

.lmc-style-action-mini {
    appearance: none;
    border: 1px solid rgba(231, 203, 146, 0.22);
    background: rgba(255, 255, 255, 0.06);
    color: var(--lmc-gold);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    cursor: pointer;
}

.lmc-style-action-mini:active {
    transform: scale(0.97);
}

.lmc-style-action-mini--danger {
    color: #ff8bac;
    border-color: rgba(255, 139, 172, 0.35);
}

/* 气泡长按菜单 · 多选条 */
.lmc-bubble-ctx-menu {
    position: absolute;
    z-index: 100240;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px;
    border-radius: 12px;
    background: rgba(24, 18, 28, 0.94);
    border: 1px solid rgba(231, 203, 146, 0.22);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
    min-width: 120px;
}

.lmc-bubble-ctx-item {
    appearance: none;
    border: none;
    background: transparent;
    color: var(--lmc-text);
    font-size: 13px;
    font-weight: 700;
    text-align: left;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
}

.lmc-bubble-ctx-item:hover {
    background: rgba(255, 138, 172, 0.15);
}

.lmc-bubble-row.is-bubble-selected .lmc-bubble {
    outline: 2px solid rgba(255, 138, 172, 0.65);
    outline-offset: 2px;
}

.lmc-chat-multiselect-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 10px;
    margin-bottom: 6px;
    border-radius: 12px;
    background: rgba(255, 138, 172, 0.12);
    border: 1px solid rgba(255, 138, 172, 0.28);
    font-size: 11px;
    color: var(--lmc-text);
}

.lmc-chat-multiselect-bar[hidden] {
    display: none !important;
}

.lmc-chat-multiselect-actions {
    display: flex;
    gap: 6px;
}

/* ==================== 响应式（小容器微调） ==================== */
@container (max-width: 360px) {
    .lmc-cinema-title { font-size: 12px; }
    .lmc-screen-placeholder-title { font-size: 15px; }
    .lmc-bubble { font-size: 12px; }
    .lmc-toolbar-btn { font-size: 10px; padding: 0 8px; }
    .lmc-char-avatar { width: 42px; height: 42px; }
    .lmc-chat-receive,
    .lmc-chat-send { padding: 0 12px; font-size: 11px; }
}

@media (max-width: 360px) {
    .lmc-toolbar-btn { font-size: 10px; padding: 0 8px; }
}

/* ==================== Light-mode 微调（暗主题不变） ==================== */
html[data-appearance="light"] .love-mi-cinema-overlay {
    /* 放映厅本身在亮模式下仍保持暗色氛围：不反转颜色 */
}
