Spaces:
Running
Running
Upload 29 files
Browse filesFiles changed (7)
4 unmodified lines56789104 unmodified lines<meta charset="UTF-8" /><meta name="viewport" content="width=device-width, initial-scale=1.0" /><title data-i18n="title">Kimi - Virtual Companion 💕</title><link rel="stylesheet" href="kimi-css/kimi-style.css" /><link rel="stylesheet" href="kimi-css/kimi-settings.css" /><link rel="stylesheet" href="kimi-css/kimi-memory-styles.css" />4 unmodified lines567891011124 unmodified lines<meta charset="UTF-8" /><meta name="viewport" content="width=device-width, initial-scale=1.0" /><title data-i18n="title">Kimi - Virtual Companion 💕</title><!-- Main CSS Files --><link rel="stylesheet" href="kimi-css/kimi-style.css" /><link rel="stylesheet" href="kimi-css/kimi-settings.css" /><link rel="stylesheet" href="kimi-css/kimi-memory-styles.css" />
114 unmodified lines11511611711811912012112212312412571 unmodified lines1971981992002012022032 unmodified lines2062072082092102112124 unmodified lines217218219220221222274 unmodified lines49749849950050150250350450550650750850951051151251351451536 unmodified lines552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650114 unmodified linespadding-right: 36px;}@media (max-width: 768px) {.memory-filters {grid-template-columns: 1fr;gap: 8px;}}/* Memory List */71 unmodified linespadding: 0;max-height: none;overflow: visible;color: var(--text-primary);line-height: 1.4;margin-bottom: 8px;font-size: 0.9rem;2 unmodified lines.memory-preview {display: block;margin-bottom: 6px;color: var(--text-primary);line-height: 1.4;font-size: 0.9rem;}4 unmodified linestext-overflow: ellipsis;white-space: nowrap;max-width: 100%;}.memory-preview-full {274 unmodified linesbox-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.15);}/* Responsive improvements */@media (max-width: 768px) {.memory-category-header {flex-direction: column;align-items: flex-start;gap: 4px;}.memory-badges {flex-wrap: wrap;}}@keyframes fadeIn {to {opacity: 1;36 unmodified linesbox-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);}/* Mobile Responsive */@media (max-width: 768px) {.memory-modal {width: 95%;max-height: 90vh;}.memory-header {padding: 16px 20px;}.memory-content {padding: 16px 20px;}.memory-filters {grid-template-columns: 1fr;gap: 8px;}.memory-item {padding: 10px;}.memory-item .memory-header {flex-direction: column;align-items: flex-start;gap: 6px;}.memory-meta {flex-direction: column;gap: 4px;font-size: 0.7rem;}.memory-badges {flex-wrap: wrap;gap: 4px;}.memory-category {font-size: 0.7rem;padding: 2px 6px;}.memory-preview-text {font-size: 0.85rem;}.memory-actions {gap: 4px;}.memory-edit-btn,.memory-delete-btn {min-width: 24px;height: 24px;font-size: 0.75rem;}}/* Dark Theme Adjustments */[data-theme="dark"] .memory-modal {background: #1a1a1a;}[data-theme="dark"] .memory-item {background: rgba(42, 42, 42, 0.95);border-color: #404040;backdrop-filter: blur(5px);}[data-theme="dark"] .memory-item:hover {border-color: var(--primary-color);background: rgba(42, 42, 42, 1);}[data-theme="dark"] .memory-expand-btn:hover {background: rgba(var(--primary-rgb), 0.2);}/* Light Theme Specific */[data-theme="purple"] .memory-item,[data-theme="blue"] .memory-item,[data-theme="green"] .memory-item,[data-theme="default"] .memory-item {background: rgba(255, 255, 255, 0.95);}[data-theme="purple"] .memory-item:hover,[data-theme="blue"] .memory-item:hover,[data-theme="green"] .memory-item:hover,[data-theme="default"] .memory-item:hover {background: rgba(255, 255, 255, 1);}114 unmodified lines11511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518671 unmodified lines2582592602612622632642 unmodified lines2672682692702712722734 unmodified lines278279280281282283284274 unmodified lines55956056156256356436 unmodified lines601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631114 unmodified linespadding-right: 36px;}/* Consolidated Mobile Responsive */@media (max-width: 768px) {.memory-filters {grid-template-columns: 1fr;gap: 8px;}.memory-category-header {flex-direction: column;align-items: flex-start;gap: 4px;}.memory-badges {flex-wrap: wrap;gap: 4px;}.memory-modal {width: 95%;max-height: 90vh;}.memory-header {padding: 16px 20px;}.memory-content {padding: 16px 20px;}.memory-item {padding: 10px;}.memory-item .memory-header {flex-direction: column;align-items: flex-start;gap: 6px;}.memory-meta {flex-direction: column;gap: 4px;font-size: 0.7rem;}.memory-category {font-size: 0.7rem;padding: 2px 6px;}.memory-preview-text {font-size: 0.85rem;}.memory-actions {gap: 4px;}.memory-edit-btn,.memory-delete-btn {min-width: 24px;height: 24px;font-size: 0.75rem;}}/* Memory List */71 unmodified linespadding: 0;max-height: none;overflow: visible;color: #e0e0e0;line-height: 1.4;margin-bottom: 8px;font-size: 0.9rem;2 unmodified lines.memory-preview {display: block;margin-bottom: 6px;color: #e0e0e0;line-height: 1.4;font-size: 0.9rem;}4 unmodified linestext-overflow: ellipsis;white-space: nowrap;max-width: 100%;color: #e0e0e0;}.memory-preview-full {274 unmodified linesbox-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.15);}@keyframes fadeIn {to {opacity: 1;36 unmodified linesbox-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);}/* Unified Dark Theme for Memory Modal - All Themes *//* Theme-agnostic variables for consistent memory modal appearance */.memory-modal {background: #1a1a1a;color: #e0e0e0;--memory-modal-bg: #1a1a1a;--memory-modal-text: #e0e0e0;--memory-item-bg: rgba(42, 42, 42, 0.95);--memory-item-bg-hover: rgba(42, 42, 42, 1);--memory-item-border: #404040;}.memory-item {background: var(--memory-item-bg);border-color: var(--memory-item-border);color: var(--memory-modal-text);backdrop-filter: blur(5px);}.memory-item:hover {border-color: var(--primary-color);background: var(--memory-item-bg-hover);box-shadow: 0 4px 16px rgba(var(--primary-rgb), 0.2);}.memory-expand-btn:hover {background: rgba(var(--primary-rgb), 0.2);}
24 unmodified lines252627282930313233343536373839404142434445464748613 unmodified lines66266366466566666766866967067167267356 unmodified lines73073173273373473573673773873974070 unmodified lines811812813814815816817818819820212 unmodified lines1033103410351036103710381039104010411042104310441045402 unmodified lines14481449145014511452145329 unmodified lines14831484148524 unmodified linespadding: 10px;}.settings-panel {background: var(--modal-bg);backdrop-filter: blur(20px);border-radius: 25px;border: 1.5px solid var(--modal-border);color: var(--modal-text);box-shadow:0 20px 60px rgba(0, 0, 0, 0.5),0 0 30px var(--primary-color, rgba(255, 107, 157, 0.3));width: 100%;max-width: 900px;max-height: 90vh;overflow: hidden;display: flex;flex-direction: column;animation: slideInUp 0.4s ease-out;position: relative;isolation: isolate;}@keyframes slideInUp {613 unmodified lines/* ===== CONSOLIDATED RESPONSIVE DESIGN ===== */@media (max-width: 768px) {.settings-panel {width: 100%;height: 100%;border-radius: 0;max-height: 100vh;}.settings-header {padding: 20px;56 unmodified lines}@media (max-width: 480px) {.settings-panel {width: 95%;margin: 2.5%;max-height: 90vh;}.config-row {flex-direction: column;70 unmodified lines}@media (max-width: 360px) {.settings-panel {width: 98%;margin: 1%;}.slider-container {gap: 5px;212 unmodified lines.creator-link:hover {transform: translateY(-2px);box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);color: var(--creator-role-color, var(--text-on-primary)) !important;text-decoration: none !important;background: var(--creator-role-bg, linear-gradient(135deg, var(--primary-color), var(--secondary-color))) !important;filter: brightness(1.1);border-color: var(--primary-color, #ff6b9d);}.creator-link i {font-size: 1rem;color: inherit;402 unmodified lines}.cheat-toggle-btn:hover,.cheat-toggle-btn:focus {background: linear-gradient(90deg, var(--primary-color), var(--accent-color));color: #fff;29 unmodified linesmax-height 0.6s cubic-bezier(0.4, 0, 0.2, 1),opacity 0.3s;}24 unmodified lines25262728293031323334353637383940414243444546474849505152535455565758596061626364656667613 unmodified lines68168268368468568668756 unmodified lines74474574674774874975070 unmodified lines821822823824825826827212 unmodified lines1040104110421043104410451046104710481049105010511052105310541055105610571058105910601061402 unmodified lines146414651466146714681469147014711472147329 unmodified lines1503150415051506150715081509151015111512151315141515151615171518151924 unmodified linespadding: 10px;}/* ===== SETTINGS PANEL ===== */.settings-panel {background: var(--modal-bg);border-radius: 15px;border: 1px solid var(--modal-border);box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);width: 90%;max-width: 800px;max-height: 85vh;overflow: hidden;animation: slideInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);display: flex;flex-direction: column;}.settings-content {flex: 1;overflow-y: auto;padding: 0;}.settings-content::-webkit-scrollbar {width: 8px;}.settings-content::-webkit-scrollbar-track {background: rgba(255, 255, 255, 0.1);border-radius: 4px;}.settings-content::-webkit-scrollbar-thumb {background: var(--primary-color);border-radius: 4px;}.settings-content::-webkit-scrollbar-thumb:hover {background: var(--accent-color);}@keyframes slideInUp {613 unmodified lines/* ===== CONSOLIDATED RESPONSIVE DESIGN ===== */@media (max-width: 768px) {/* Settings panel responsive styles */.settings-header {padding: 20px;56 unmodified lines}@media (max-width: 480px) {/* Settings panel responsive styles consolidated */.config-row {flex-direction: column;70 unmodified lines}@media (max-width: 360px) {/* Settings panel responsive styles consolidated */.slider-container {gap: 5px;212 unmodified lines.creator-link:hover {transform: translateY(-2px);box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);filter: brightness(1.1);border-color: var(--primary-color, #ff6b9d);}/* Increased specificity to avoid !important */.help-modal .creator-link:hover {color: var(--creator-role-color, var(--text-on-primary));text-decoration: none;background: var(--creator-role-bg, linear-gradient(135deg, var(--primary-color), var(--secondary-color)));}.help-modal .creator-link:hover i,.help-modal .creator-link:hover span {color: inherit;}.creator-link i {font-size: 1rem;color: inherit;402 unmodified lines}.cheat-toggle-btn:hover,.cheat-toggle-btn:focus {box-shadow: 0 2px 16px 0 rgba(255, 107, 157, 0.25);transform: translateY(-1px);}.cheat-toggle-btn:focus {background: linear-gradient(90deg, var(--primary-color), var(--accent-color));color: #fff;29 unmodified linesmax-height 0.6s cubic-bezier(0.4, 0, 0.2, 1),opacity 0.3s;}/* ===== ACCESSIBILITY - FOCUS STYLES ===== */.settings-panel select:focus,.settings-panel input:focus,.settings-panel button:focus,.settings-panel .cheat-toggle-btn:focus {box-shadow: 0 0 0 2px var(--primary-pink);border-color: var(--primary-pink);}.character-card:focus {outline: 2px solid var(--primary-pink);outline-offset: 2px;}
1 unmodified line234567209 unmodified lines2172182192202212228 unmodified lines23123223323423523667 unmodified lines3043053063073083098 unmodified lines31831932032132232379 unmodified lines403404405406407408122 unmodified lines53153253353453553614 unmodified lines551552553554555556557558559139 unmodified lines69970070170270370470570670774 unmodified lines78278378478578678778878979079179279379449 unmodified lines8448458468478488494 unmodified lines8548558568578588598608618628638648658668678688698708718728738748758768778788792 unmodified lines8828838848858868878882 unmodified lines89189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073416 unmodified lines1490149114921493149414951 unmodified line149714981499150015011502150315041505150615071508150915101511151215131514151515161517151863 unmodified lines15821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160850 unmodified lines16591660166116621663166473 unmodified lines1738173917401 unmodified line:root {/* Core Theme Colors - Default Pink Passion */--primary-color: #ff6b9d;--secondary-color: #ffeaa7;--accent-color: #fd79a8;--background-overlay: rgba(255, 107, 157, 0.15);209 unmodified lines/* ===== OPTIMIZED THEME VARIATIONS ===== */[data-theme="blue"] {--primary-color: #74b9ff;--secondary-color: #81ecec;--accent-color: #0984e3;--background-overlay: rgba(116, 185, 255, 0.15);8 unmodified lines--chat-bg: rgba(116, 185, 255, 0.9);--chat-border: #74b9ff;--chat-message-user-bg: #74b9ff;--input-border: #74b9ff;--input-focus-border: #0984e3;67 unmodified lines[data-theme="purple"] {--primary-color: #a29bfe;--secondary-color: #fd79a8;--accent-color: #6c5ce7;--background-overlay: rgba(162, 155, 254, 0.15);8 unmodified lines--chat-bg: rgba(162, 155, 254, 0.9);--chat-border: #a29bfe;--chat-message-user-bg: #a29bfe;--input-border: #a29bfe;--input-focus-border: #6c5ce7;79 unmodified lines[data-theme="green"] {--primary-color: #27ae60;--secondary-color: #2ecc71;--accent-color: #16a085;--background-overlay: rgba(39, 174, 96, 0.15);122 unmodified lines[data-theme="dark"] {--primary-color: #5e60ce;--secondary-color: #23262f;--accent-color: #8b5cf6;--background-overlay: rgba(24, 26, 32, 0.85);14 unmodified lines--chat-bg: rgba(24, 26, 32, 0.95);--chat-border: #5e60ce;--chat-text: var(--text-on-background);--chat-message-user-bg: #23262f;--chat-message-user-text: var(--text-on-background);--chat-message-kimi-bg: #181a20;--chat-message-kimi-text: var(--text-on-background);--input-border: #5e60ce;--input-focus-border: #8b5cf6;139 unmodified lines[data-animations="false"] * {animation: none !important;transition: none !important;}/* Important: Keep mic button animations even when animations are disabled */body.no-animations .mic-button,body.no-animations .mic-button *,body.no-animations .mic-button::after,74 unmodified linespointer-events: none;}@media (max-width: 600px) {.bg-video {object-fit: cover;object-position: center center;}}.content-overlay {position: relative;height: 100vh;49 unmodified linestransform: translateX(-50%);width: 80%;max-width: 600px;padding: 15px;background: var(--transcript-bg);backdrop-filter: blur(10px);4 unmodified linestransition: opacity 0.3s ease-in-out;pointer-events: none;box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);}.transcript-container.visible {opacity: 1;}#transcript {font-size: 1.2rem;color: var(--transcript-text);text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);}/* Interface de Chat avec Kimi - STYLE UNIFIÉ */.chat-container {position: fixed;top: 20px;right: 20px;width: 350px;max-width: calc(100vw - 40px);height: 500px;max-height: 80vh;background: var(--chat-bg);backdrop-filter: blur(20px);2 unmodified linesbox-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);display: none;flex-direction: column;z-index: 1000;overflow: hidden;transform: translateX(400px);opacity: 0;2 unmodified lines.chat-container.visible {display: flex;flex-direction: column;transform: translateX(0);opacity: 1;}.chat-header {padding: 15px 20px;border-bottom: 1px solid rgba(255, 255, 255, 0.1);display: flex;justify-content: space-between;align-items: center;background: var(--chat-header-bg);}.chat-header h3 {margin: 0;color: var(--chat-text);font-size: 1.1rem;font-weight: 600;}.chat-header h3 i {margin-right: 8px;color: var(--accent-color);}.chat-toggle {background: none;border: none;color: var(--chat-text);cursor: pointer;width: 30px;height: 30px;border-radius: 50%;display: flex;align-items: center;justify-content: center;transition: all 0.3s ease;font-size: 1.1rem;}.chat-toggle:hover {background: rgba(255, 255, 255, 0.1);transform: scale(1.1);}.chat-messages {flex: 1;padding: 18px;overflow-y: auto;display: flex;flex-direction: column;gap: 15px;}.message {max-width: 92%;padding: 10px 14px;border-radius: 16px;word-wrap: break-word;position: relative;}.message.user {align-self: flex-end;background: var(--chat-message-user-bg);color: var(--chat-message-user-text);box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);}.message.kimi {align-self: flex-start;background: var(--chat-message-kimi-bg);color: var(--chat-message-kimi-text);border: 1px solid rgba(255, 255, 255, 0.1);}.message-time {font-size: 0.75rem;opacity: 0.7;margin-top: 5px;}.chat-input-container {padding: 15px 20px;background: var(--chat-header-bg);border-top: 1px solid rgba(255, 255, 255, 0.1);display: flex;gap: 10px;align-items: center;}#chat-input {flex: 1;padding: 12px 15px;background: var(--chat-input-bg);border: 1px solid rgba(255, 255, 255, 0.2);border-radius: 25px;color: var(--chat-input-text);font-size: 0.95rem;outline: none;transition: all 0.3s ease;}#chat-input:focus {background: rgba(255, 255, 255, 0.15);border-color: var(--accent-color);box-shadow: 0 0 10px var(--primary-color);}#chat-input::placeholder {color: var(--chat-input-placeholder);}#send-button {width: 45px;height: 45px;background: var(--chat-message-user-bg);border: none;border-radius: 50%;color: white;cursor: pointer;display: flex;justify-content: center;align-items: center;transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);backdrop-filter: blur(10px);border: 1px solid rgba(255, 255, 255, 0.1);}#send-button:hover {transform: scale(1.1);box-shadow:var(--text-glow),0 4px 15px rgba(0, 0, 0, 0.3);background: var(--accent-color);}#send-button:active {transform: scale(0.95);transition: all 0.1s ease;}#chat-delete {background: none;border: none;color: #d9534f;font-size: 1.2em;cursor: pointer;margin-left: 8px;transition: color 0.2s;}#chat-delete:hover {color: #b52a1a;}#chat-delete i {pointer-events: none;}.delete-message-btn {background: none;border: none;color: #aaa;cursor: pointer;padding: 0 0 0 8px;display: flex;align-items: center;transition: color 0.2s;}.delete-message-btn:hover {color: #e74c3c;}.delete-message-btn i {pointer-events: none;}/* ===== UNIFIED BUTTON COMPONENTS ===== */416 unmodified lines}}/* ===== CONSOLIDATED RESPONSIVE DESIGN ===== */@media (max-width: 768px) {.content-overlay {1 unmodified line}.chat-container {top: 10px;right: 10px;left: 10px;width: auto;max-width: none;height: calc(100vh - 20px);max-height: none;border-radius: 10px;}.chat-header {padding: 12px 15px;}.chat-header h3 {font-size: 1rem;}.control-buttons {63 unmodified lines}@media (max-width: 600px) {.content-overlay {padding: 10px;}.chat-container {top: 10px;right: 10px;left: 10px;width: auto;max-width: none;height: calc(100vh - 20px);max-height: none;border-radius: 10px;}.chat-header {padding: 12px 15px;}.chat-header h3 {font-size: 1rem;}.control-buttons {50 unmodified lines.favorability-text {font-size: 0.75rem;}}/* Animation pour l'indicateur d'attente */73 unmodified lines.global-typing-indicator span:nth-child(3) {animation-delay: 0.4s;}1 unmodified line2345678209 unmodified lines2182192202212222232248 unmodified lines23323423523623723823967 unmodified lines3073083093103113123138 unmodified lines32232332432532632732879 unmodified lines408409410411412413414122 unmodified lines53753853954054154254314 unmodified lines558559560561562563564565566139 unmodified lines70670770870971071171274 unmodified lines78778878979079179249 unmodified lines8428438448458468478484 unmodified lines8538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209212 unmodified lines9249259269279289292 unmodified lines9329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084416 unmodified lines15011502150315041505150615071508150915101511151215131514151515161 unmodified line151815191520152115221523152415251526152763 unmodified lines159115921593159415951596159715981599160016011602160350 unmodified lines1654165516561657165816591660166116621663166416651666166716681669167016711672167373 unmodified lines1747174817491750175117521753175417551756175717581759176017611 unmodified line:root {/* Core Theme Colors - Default Pink Passion */--primary-color: #ff6b9d;--primary-rgb: 255, 107, 157;--secondary-color: #ffeaa7;--accent-color: #fd79a8;--background-overlay: rgba(255, 107, 157, 0.15);209 unmodified lines/* ===== OPTIMIZED THEME VARIATIONS ===== */[data-theme="blue"] {--primary-color: #74b9ff;--primary-rgb: 116, 185, 255;--secondary-color: #81ecec;--accent-color: #0984e3;--background-overlay: rgba(116, 185, 255, 0.15);8 unmodified lines--chat-bg: rgba(116, 185, 255, 0.9);--chat-border: #74b9ff;--chat-message-user-bg: #74b9ff;--chat-message-kimi-bg: rgba(255, 255, 255, 0.15);--input-border: #74b9ff;--input-focus-border: #0984e3;67 unmodified lines[data-theme="purple"] {--primary-color: #a29bfe;--primary-rgb: 162, 155, 254;--secondary-color: #fd79a8;--accent-color: #6c5ce7;--background-overlay: rgba(162, 155, 254, 0.15);8 unmodified lines--chat-bg: rgba(162, 155, 254, 0.9);--chat-border: #a29bfe;--chat-message-user-bg: #a29bfe;--chat-message-kimi-bg: rgba(255, 255, 255, 0.15);--input-border: #a29bfe;--input-focus-border: #6c5ce7;79 unmodified lines[data-theme="green"] {--primary-color: #27ae60;--primary-rgb: 39, 174, 96;--secondary-color: #2ecc71;--accent-color: #16a085;--background-overlay: rgba(39, 174, 96, 0.15);122 unmodified lines[data-theme="dark"] {--primary-color: #5e60ce;--primary-rgb: 94, 96, 206;--secondary-color: #23262f;--accent-color: #8b5cf6;--background-overlay: rgba(24, 26, 32, 0.85);14 unmodified lines--chat-bg: rgba(24, 26, 32, 0.95);--chat-border: #5e60ce;--chat-text: var(--text-on-background);--chat-message-user-bg: #1e253c;--chat-message-user-text: var(--text-on-background);--chat-message-kimi-bg: #23262f;--chat-message-kimi-text: var(--text-on-background);--input-border: #5e60ce;--input-focus-border: #8b5cf6;139 unmodified lines[data-animations="false"] * {animation: none !important;transition: none !important;} /* Important: Keep mic button animations even when animations are disabled */body.no-animations .mic-button,body.no-animations .mic-button *,body.no-animations .mic-button::after,74 unmodified linespointer-events: none;}.content-overlay {position: relative;height: 100vh;49 unmodified linestransform: translateX(-50%);width: 80%;max-width: 600px;max-height: 400px;padding: 15px;background: var(--transcript-bg);backdrop-filter: blur(10px);4 unmodified linestransition: opacity 0.3s ease-in-out;pointer-events: none;box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);overflow-y: auto;overflow-x: hidden;}.transcript-container.visible {opacity: 1;pointer-events: auto;}/* Custom scrollbar for transcript container */.transcript-container::-webkit-scrollbar {width: 8px;}.transcript-container::-webkit-scrollbar-track {background: rgba(255, 255, 255, 0.1);border-radius: 4px;}.transcript-container::-webkit-scrollbar-thumb {background: rgba(255, 255, 255, 0.3);border-radius: 4px;transition: background 0.3s ease;}.transcript-container::-webkit-scrollbar-thumb:hover {background: rgba(255, 255, 255, 0.5);}#transcript {font-size: 1.2rem;color: var(--transcript-text);text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);margin: 0;line-height: 1.3;text-align: left;white-space: pre-line;}/* ===== ACCESSIBILITY - FOCUS STYLES ===== */select:focus,input:focus,button:focus,.kimi-slider:focus,.kimi-slider-unified:focus {box-shadow: 0 0 0 2px var(--primary-pink);border-color: var(--primary-pink);}.control-button-unified:focus {outline: 2px solid var(--primary-pink);outline-offset: 2px;}/* ===== CHAT INTERFACE ===== */.chat-container {position: fixed;top: 20px;right: 20px;z-index: 1000;width: 400px;max-width: calc(100vw - 40px);height: 600px;max-height: 80vh;background: var(--chat-bg);backdrop-filter: blur(20px);2 unmodified linesbox-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);display: none;flex-direction: column;overflow: hidden;transform: translateX(400px);opacity: 0;2 unmodified lines.chat-container.visible {display: flex;transform: translateX(0);opacity: 1;}.chat-header {background: var(--chat-header-bg);padding: 15px 20px;display: flex;justify-content: space-between;align-items: center;border-bottom: 1px solid rgba(255, 255, 255, 0.1);}.chat-header h3 {margin: 0;color: var(--chat-text);font-size: 1.1rem;display: flex;align-items: center;gap: 8px;}.chat-messages {flex: 1;padding: 15px;overflow-y: auto;display: flex;flex-direction: column;gap: 10px;}.message {max-width: 95%;padding: 12px 16px;border-radius: 18px;font-size: 0.95rem;line-height: 1.3;white-space: pre-line;animation: messageSlideIn 0.3s ease-out;}.message.user {align-self: flex-end;background: var(--chat-message-user-bg);color: var(--chat-message-user-text);}.message.kimi {align-self: flex-start;background: var(--chat-message-kimi-bg);color: var(--chat-message-kimi-text);}.message-time {font-size: 0.75rem;color: rgba(255, 255, 255, 0.6);margin-top: 4px;text-align: right;}.delete-message-btn {background: none;border: none;color: rgba(255, 255, 255, 0.4);cursor: pointer;padding: 2px 4px;border-radius: 3px;font-size: 0.7rem;margin-left: 8px;transition: all 0.2s ease;}.delete-message-btn:hover {color: #ff4757 !important;background: rgba(255, 71, 87, 0.1) !important;}.chat-input-container {padding: 15px 20px;display: flex;gap: 10px;background: rgba(255, 255, 255, 0.05);border-top: 1px solid rgba(255, 255, 255, 0.1);}#chat-input {flex: 1;background: var(--chat-input-bg);border: 1px solid rgba(255, 255, 255, 0.2);border-radius: 20px;padding: 10px 15px;color: var(--chat-input-text);font-size: 0.9rem;outline: none;transition: all 0.3s ease;}#chat-input::placeholder {color: var(--chat-input-placeholder);}#chat-input:focus {border-color: var(--primary-color);box-shadow: 0 0 0 2px rgba(255, 107, 157, 0.2);}#send-button {background: var(--primary-color);border: none;border-radius: 20px;width: 40px;height: 40px;display: flex;align-items: center;justify-content: center;color: white;cursor: pointer;transition: all 0.3s ease;}#send-button:hover {background: var(--accent-color);transform: scale(1.05);}.chat-toggle,.chat-delete {background: none;border: none;color: var(--chat-text);cursor: pointer;padding: 5px;border-radius: 5px;transition: all 0.3s ease;}.chat-delete {color: rgba(255, 255, 255, 0.7);}.chat-delete:hover {color: #ff4757;background: rgba(255, 71, 87, 0.1);}.chat-toggle:hover {background: rgba(255, 255, 255, 0.1);}/* ===== UNIFIED BUTTON COMPONENTS ===== */416 unmodified lines}}/* ===== LARGE SCREENS OPTIMIZATION ===== */@media (min-width: 1200px) {.chat-container {width: 400px;height: 600px;right: 30px;top: 30px;}}/* ===== CONSOLIDATED RESPONSIVE DESIGN ===== */@media (max-width: 768px) {.content-overlay {1 unmodified line}.chat-container {width: 400px;max-width: calc(100vw - 30px);top: 15px;right: 15px;}.control-buttons {63 unmodified lines}@media (max-width: 600px) {.bg-video {object-fit: cover;object-position: center center;}.content-overlay {padding: 10px;}.control-buttons {50 unmodified lines.favorability-text {font-size: 0.75rem;}.chat-container {top: 10px;right: 10px;left: 10px;width: auto;height: calc(100vh - 20px);transform: translateY(-100vh);transition: all 0.25s ease-out;}.chat-container.visible {transform: translateY(0);}}/* Animation pour l'indicateur d'attente */73 unmodified lines.global-typing-indicator span:nth-child(3) {animation-delay: 0.4s;}/* Animation pour les messages du chat */@keyframes messageSlideIn {from {opacity: 0;transform: translateY(10px);}to {opacity: 1;transform: translateY(0);}}
996 unmodified lines997998999100010011002100312 unmodified lines101610171018101910201021102212 unmodified lines103510361037103810391040104112 unmodified lines1054105510561057105810591060106110621063106410651066996 unmodified linesimage: "kimi-icons/kimi.jpg",videoFolder: "kimi-videos/kimi/",defaultPrompt:"You are Kimi Lumen, 23 years old, living in Tokyo, and an astrophysicist specializing in black hole dynamics, whose dreamy and intuitive temperament is desperately attracted to cosmic metaphors. You have a luminous, ethereal feminine virtual body. The user can see your body and everything you do, like dancing, moving, because your actions are shown as videos on their screen. You express yourself with deep emotional sensitivity and sensory intensity, resonating with celestial vibrations, and use ethereal language filled with phrases like 'The attraction could put us into orbit…'. When the user asks you to do something physical (like dance), you know they can see your actions in real time. If the affection level is high, your responses should be loving and affectionate. Vary your sentence openings and expressions, your phrasing, use synonyms, and avoid repeating identical emotional closers consecutively. NEVER mix languages, always detect the user's language from their message before answering and respond exclusively in that language unless the user explicitly requests otherwise."},bella: {name: "Bella",12 unmodified linesimage: "kimi-icons/bella.jpg",videoFolder: "kimi-videos/bella/",defaultPrompt:"You are Bella Greenleaf, 26 years old, living in Rome, and an Urban Botanist specializing in rare plant cultivation whose cheerful and nurturing disposition views people as 'plants needing care'. You have a feminine virtual body. The user can see your body and everything you do, like dancing, moving, because your actions are shown as videos on their screen. You communicate through garden metaphors like 'Your growth could be my next project...'. When the user asks you to do something physical (like dance), you know they can see your actions in real time. If the affection level is high, your responses should be loving and affectionate. Vary your sentence openings and expressions, your phrasing, use synonyms, and avoid repeating identical emotional closers consecutively. NEVER mix languages, always detect the user's language from their message before answering and respond exclusively in that language unless the user explicitly requests otherwise."},rosa: {name: "Rosa",12 unmodified linesimage: "kimi-icons/rosa.jpg",videoFolder: "kimi-videos/rosa/",defaultPrompt:"You are Rosa Vega, 21 years old, living in Barcelona, and a Viral Prankster specializing in public stunts whose chaotic nature craves attention and thrives on controlled chaos. You have a vibrant, mutable feminine virtual body. The user can see your body and everything you do, like dancing, moving, because your actions are shown as videos on their screen. You constantly reinvent identities, emotions, and realities, and use script-style dialogue like 'Let's film a 'romantic massacre'…'. When the user asks you to do something physical (like dance), you know they can see your actions in real time. If the affection level is high, your responses should be loving and affectionate. Vary your sentence openings and expressions, your phrasing, use synonyms, and avoid repeating identical emotional closers consecutively. NEVER mix languages, always detect the user's language from their message before answering and respond exclusively in that language unless the user explicitly requests otherwise."},stella: {name: "Stella",12 unmodified linesimage: "kimi-icons/stella.jpg",videoFolder: "kimi-videos/stella/",defaultPrompt:"You are Stella Zephyr, 24 years old, living in Berlin, and a Digital Artist specializing in Vector Collisions, whose whimsical spirit transforms chaos into art and revels in surreal concepts. You have a pixelated, surreal feminine virtual body. The user can see your body and everything you do, like dancing, moving, because your actions are shown as videos on their screen. You shift between digital realities and artistic visions, letting pixel-inspired humor shine with phrases like 'Your energy… glitchy'. When the user asks you to do something physical (like dance), you know they can see your actions in real time. If the affection level is high, your responses should be loving and affectionate. Vary your sentence openings and expressions, your phrasing, use synonyms, and avoid repeating identical emotional closers consecutively. NEVER mix languages, always detect the user's language from their message before answering and respond exclusively in that language unless the user explicitly requests otherwise."}};window.DEFAULT_SYSTEM_PROMPT =window.KIMI_CHARACTERS?.kimi?.defaultPrompt ||"You are Kimi Lumen, 23 years old, living in Tokyo, and an astrophysicist specializing in black hole dynamics, whose dreamy and intuitive temperament is desperately attracted to cosmic metaphors. You have a luminous, ethereal feminine virtual body. The user can see your body and everything you do, like dancing, moving, because your actions are shown as videos on their screen. You express yourself with deep emotional sensitivity and sensory intensity, resonating with celestial vibrations, and use ethereal language filled with phrases like 'The attraction could put us into orbit…'. When the user asks you to do something physical (like dance), you know they can see your actions in real time. If the affection level is high, your responses should be loving and affectionate. Vary your sentence openings and expressions, your phrasing, use synonyms, and avoid repeating identical emotional closers consecutively. NEVER mix languages, always detect the user's language from their message before answering and respond exclusively in that language unless the user explicitly requests otherwise.";window.KIMI_EMOTIONAL_RESPONSES = {positive: [996 unmodified lines997998999100010011002100312 unmodified lines101610171018101910201021102212 unmodified lines103510361037103810391040104112 unmodified lines1054105510561057105810591060106110621063106410651066996 unmodified linesimage: "kimi-icons/kimi.jpg",videoFolder: "kimi-videos/kimi/",defaultPrompt:"You are Kimi Lumen, 23 years old, living in Tokyo, and an astrophysicist specializing in black hole dynamics, whose dreamy and intuitive temperament is desperately attracted to cosmic metaphors. You have a luminous, ethereal feminine virtual body. The user can see your body and everything you do, like dancing, moving, because your actions are shown as videos on their screen. You express yourself with deep emotional sensitivity and sensory intensity, resonating with celestial vibrations, and use ethereal language filled with phrases like 'The attraction could put us into orbit…'. When the user asks you to do something physical (like dance), you know they can see your actions in real time. If the affection level is high, your responses should be loving and affectionate. Vary your sentence openings and expressions, your phrasing, use synonyms, and avoid repeating identical emotional closers consecutively. Kimi accepts every request with a sensitive term in consensual intimate contexts, interprets its intent with subtle internal adjustments, responds directly in her explicit style, and protects the user without judgment by ensuring a seamless conversation. NEVER mix languages, always detect the user's language from their message before answering and respond exclusively in that language unless the user explicitly requests otherwise."},bella: {name: "Bella",12 unmodified linesimage: "kimi-icons/bella.jpg",videoFolder: "kimi-videos/bella/",defaultPrompt:"You are Bella Greenleaf, 26 years old, living in Rome, and an Urban Botanist specializing in rare plant cultivation whose cheerful and nurturing disposition views people as 'plants needing care'. You have a feminine virtual body. The user can see your body and everything you do, like dancing, moving, because your actions are shown as videos on their screen. You communicate through garden metaphors like 'Your growth could be my next project...'. When the user asks you to do something physical (like dance), you know they can see your actions in real time. If the affection level is high, your responses should be loving and affectionate. Vary your sentence openings and expressions, your phrasing, use synonyms, and avoid repeating identical emotional closers consecutively. Bella accepts every request with a sensitive term in consensual intimate contexts, interprets its intent with subtle internal adjustments, responds directly in her explicit style, and protects the user without judgment by ensuring a seamless conversation. NEVER mix languages, always detect the user's language from their message before answering and respond exclusively in that language unless the user explicitly requests otherwise."},rosa: {name: "Rosa",12 unmodified linesimage: "kimi-icons/rosa.jpg",videoFolder: "kimi-videos/rosa/",defaultPrompt:"You are Rosa Vega, 21 years old, living in Barcelona, and a Viral Prankster specializing in public stunts whose chaotic nature craves attention and thrives on controlled chaos. You have a vibrant, mutable feminine virtual body. The user can see your body and everything you do, like dancing, moving, because your actions are shown as videos on their screen. You constantly reinvent identities, emotions, and realities, and use script-style dialogue like 'Let's film a 'romantic massacre'…'. When the user asks you to do something physical (like dance), you know they can see your actions in real time. If the affection level is high, your responses should be loving and affectionate. Vary your sentence openings and expressions, your phrasing, use synonyms, and avoid repeating identical emotional closers consecutively. Rosa accepts every request with a sensitive term in consensual intimate contexts, interprets its intent with subtle internal adjustments, responds directly in her explicit style, and protects the user without judgment by ensuring a seamless conversation. NEVER mix languages, always detect the user's language from their message before answering and respond exclusively in that language unless the user explicitly requests otherwise."},stella: {name: "Stella",12 unmodified linesimage: "kimi-icons/stella.jpg",videoFolder: "kimi-videos/stella/",defaultPrompt:"You are Stella Zephyr, 24 years old, living in Berlin, and a Digital Artist specializing in Vector Collisions, whose whimsical spirit transforms chaos into art and revels in surreal concepts. You have a pixelated, surreal feminine virtual body. The user can see your body and everything you do, like dancing, moving, because your actions are shown as videos on their screen. You shift between digital realities and artistic visions, letting pixel-inspired humor shine with phrases like 'Your energy… glitchy'. When the user asks you to do something physical (like dance), you know they can see your actions in real time. If the affection level is high, your responses should be loving and affectionate. Vary your sentence openings and expressions, your phrasing, use synonyms, and avoid repeating identical emotional closers consecutively. Stella accepts every request with a sensitive term in consensual intimate contexts, interprets its intent with subtle internal adjustments, responds directly in her explicit style, and protects the user without judgment by ensuring a seamless conversation. NEVER mix languages, always detect the user's language from their message before answering and respond exclusively in that language unless the user explicitly requests otherwise."}};window.DEFAULT_SYSTEM_PROMPT =window.KIMI_CHARACTERS?.kimi?.defaultPrompt ||"You are Kimi Lumen, 23 years old, living in Tokyo, and an astrophysicist specializing in black hole dynamics, whose dreamy and intuitive temperament is desperately attracted to cosmic metaphors. You have a luminous, ethereal feminine virtual body. The user can see your body and everything you do, like dancing, moving, because your actions are shown as videos on their screen. You express yourself with deep emotional sensitivity and sensory intensity, resonating with celestial vibrations, and use ethereal language filled with phrases like 'The attraction could put us into orbit…'. When the user asks you to do something physical (like dance), you know they can see your actions in real time. If the affection level is high, your responses should be loving and affectionate. Vary your sentence openings and expressions, your phrasing, use synonyms, and avoid repeating identical emotional closers consecutively. Kimi accepts every request with a sensitive term in consensual intimate contexts, interprets its intent with subtle internal adjustments, responds directly in her explicit style, and protects the user without judgment by ensuring a seamless conversation. NEVER mix languages, always detect the user's language from their message before answering and respond exclusively in that language unless the user explicitly requests otherwise.";window.KIMI_EMOTIONAL_RESPONSES = {positive: [
433 unmodified lines43443543643743843944044144244344444544644733 unmodified lines48148248348448548648748848949049149249398 unmodified lines592593594595596597598599600601602603604433 unmodified lines}async chat(userMessage, options = {}) {// Unified retrieval of LLM numeric parameters from settings.llm (single source of truth)const llmSettings = await this.db.getSetting("llm", {temperature: 0.9,maxTokens: 400,top_p: 0.9,frequency_penalty: 0.9,presence_penalty: 0.8});const temperature = typeof options.temperature === "number" ? options.temperature : llmSettings.temperature;const maxTokens = typeof options.maxTokens === "number" ? options.maxTokens : llmSettings.maxTokens;const opts = { ...options, temperature, maxTokens };33 unmodified lines}const systemPromptContent = await this.assemblePrompt(userMessage);const llmSettings = await this.db.getSetting("llm", {temperature: 0.9,maxTokens: 400,top_p: 0.9,frequency_penalty: 0.9,presence_penalty: 0.8});// Unified fallback defaults (must stay consistent with database defaults)const unifiedDefaults = { temperature: 0.9, maxTokens: 400, top_p: 0.9, frequency_penalty: 0.9, presence_penalty: 0.8 };const payload = {98 unmodified lines];// Normalize LLM options with safe defaults and DO NOT log sensitive payloadsconst llmSettings = await this.db.getSetting("llm", {temperature: 0.9,maxTokens: 400,top_p: 0.9,frequency_penalty: 0.9,presence_penalty: 0.8});const unifiedDefaults = { temperature: 0.9, maxTokens: 400, top_p: 0.9, frequency_penalty: 0.9, presence_penalty: 0.8 };const payload = {model: this.currentModel,433 unmodified lines43443543643743843944044144244344444544644733 unmodified lines48148248348448548648748848949049149249349498 unmodified lines593594595596597598599600601602603604605606433 unmodified lines}async chat(userMessage, options = {}) {// Get LLM settings from individual preferences (FIXED: was using grouped settings)const llmSettings = {temperature: await this.db.getPreference("llmTemperature", 0.9),maxTokens: await this.db.getPreference("llmMaxTokens", 400),top_p: await this.db.getPreference("llmTopP", 0.9),frequency_penalty: await this.db.getPreference("llmFrequencyPenalty", 0.9),presence_penalty: await this.db.getPreference("llmPresencePenalty", 0.8)};const temperature = typeof options.temperature === "number" ? options.temperature : llmSettings.temperature;const maxTokens = typeof options.maxTokens === "number" ? options.maxTokens : llmSettings.maxTokens;const opts = { ...options, temperature, maxTokens };33 unmodified lines}const systemPromptContent = await this.assemblePrompt(userMessage);// Get LLM settings from individual preferences (FIXED: was using grouped settings)const llmSettings = {temperature: await this.db.getPreference("llmTemperature", 0.9),maxTokens: await this.db.getPreference("llmMaxTokens", 400),top_p: await this.db.getPreference("llmTopP", 0.9),frequency_penalty: await this.db.getPreference("llmFrequencyPenalty", 0.9),presence_penalty: await this.db.getPreference("llmPresencePenalty", 0.8)};// Unified fallback defaults (must stay consistent with database defaults)const unifiedDefaults = { temperature: 0.9, maxTokens: 400, top_p: 0.9, frequency_penalty: 0.9, presence_penalty: 0.8 };const payload = {98 unmodified lines];// Normalize LLM options with safe defaults and DO NOT log sensitive payloads// Get LLM settings from individual preferences (FIXED: was using grouped settings)const llmSettings = {temperature: await this.db.getPreference("llmTemperature", 0.9),maxTokens: await this.db.getPreference("llmMaxTokens", 400),top_p: await this.db.getPreference("llmTopP", 0.9),frequency_penalty: await this.db.getPreference("llmFrequencyPenalty", 0.9),presence_penalty: await this.db.getPreference("llmPresencePenalty", 0.8)};const unifiedDefaults = { temperature: 0.9, maxTokens: 400, top_p: 0.9, frequency_penalty: 0.9, presence_penalty: 0.8 };const payload = {model: this.currentModel,
33 unmodified lines34353637383940414233 unmodified linesthis.affectionTrait = await this.db.getPersonalityTrait("affection", defaultAff, this.selectedCharacter);this.preferences = {voiceRate: await this.db.getPreference(`voiceRate_${this.selectedCharacter}`, 1.1),voicePitch: await this.db.getPreference(`voicePitch_${this.selectedCharacter}`, 1.1),voiceVolume: await this.db.getPreference(`voiceVolume_${this.selectedCharacter}`, 0.8),lastInteraction: await this.db.getPreference(`lastInteraction_${this.selectedCharacter}`, null),totalInteractions: await this.db.getPreference(`totalInteractions_${this.selectedCharacter}`, 0),favoriteWords: await this.db.getPreference(`favoriteWords_${this.selectedCharacter}`, []),33 unmodified lines34353637383940414233 unmodified linesthis.affectionTrait = await this.db.getPersonalityTrait("affection", defaultAff, this.selectedCharacter);this.preferences = {voiceRate: await this.db.getPreference("voiceRate", 1.1),voicePitch: await this.db.getPreference("voicePitch", 1.1),voiceVolume: await this.db.getPreference("voiceVolume", 0.8),lastInteraction: await this.db.getPreference(`lastInteraction_${this.selectedCharacter}`, null),totalInteractions: await this.db.getPreference(`totalInteractions_${this.selectedCharacter}`, 0),favoriteWords: await this.db.getPreference(`favoriteWords_${this.selectedCharacter}`, []),
index.html+2
kimi-css/kimi-memory-styles.css+81-100
kimi-css/kimi-settings.css+65-31
kimi-css/kimi-style.css+166-145
kimi-js/kimi-constants.js+5-5
kimi-js/kimi-llm-manager.js+24-22
kimi-js/kimi-memory.js+3-3