body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background:#1a1a2e}.app{display:flex;flex-direction:column;height:100vh;max-width:600px;margin:0 auto;background:#1a1a2e}.app-loading{display:flex;justify-content:center;align-items:center;min-height:100vh;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;font-size:1.125rem}.app-header{display:flex;justify-content:space-between;align-items:center;padding:16px 20px;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;box-shadow:0 2px 10px #0000001a}.app-header h1{font-size:1.5rem;font-weight:600}.user-badge{background:#fff3;padding:6px 12px;border-radius:20px;font-size:.875rem;font-weight:500}.app-main{flex:1;overflow-y:auto;padding:16px;background:#1a1a2e;background-image:url(/bg.png);background-size:cover;background-position:center;background-repeat:no-repeat;background-attachment:fixed}.app-footer{padding:20px;background:#1a1a2e;display:flex;justify-content:center;align-items:center}.auth-screen{display:flex;justify-content:center;align-items:center;min-height:100vh;background:linear-gradient(135deg,#667eea,#764ba2);padding:20px}.auth-form{background:#fff;padding:32px;border-radius:16px;box-shadow:0 10px 40px #0003;width:100%;max-width:400px}.auth-form h1{text-align:center;margin-bottom:24px;color:#333;font-size:2rem}.auth-form input{width:100%;padding:14px;margin-bottom:12px;border:2px solid #e0e0e0;border-radius:8px;font-size:1rem;transition:border-color .3s}.auth-form input:focus{outline:none;border-color:#667eea}.auth-form input:disabled{background:#f5f5f5;cursor:not-allowed}.auth-form button{width:100%;padding:14px;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;border-radius:8px;font-size:1rem;font-weight:600;cursor:pointer;transition:transform .2s,box-shadow .2s}.auth-form button:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 4px 12px #667eea66}.auth-form button:disabled{opacity:.6;cursor:not-allowed}.error-message{padding:12px;margin-bottom:16px;background:#fee;color:#c33;border-radius:8px;font-size:.875rem;text-align:center}.user-selection{display:flex;flex-direction:column;gap:12px}.user-selection p{text-align:center;color:#666;font-size:1rem;margin-bottom:8px}.user-button{width:100%;padding:16px;background:#fff;color:#667eea;border:2px solid #667eea;border-radius:8px;font-size:1.125rem;font-weight:600;cursor:pointer;transition:all .2s}.user-button:hover{background:#667eea;color:#fff;transform:translateY(-2px);box-shadow:0 4px 12px #667eea4d}.selected-user{text-align:center;color:#667eea;font-size:1rem;font-weight:600;margin-bottom:16px}.back-button{margin-top:8px;background:#e0e0e0!important;color:#666!important}.back-button:hover:not(:disabled){background:#d0d0d0!important;transform:translateY(0)!important;box-shadow:none!important}.message-feed{display:flex;flex-direction:column;gap:16px;padding-bottom:20px}.message-feed.loading{display:flex;justify-content:center;align-items:center;min-height:200px;color:#666;font-size:1rem}.loading-more{text-align:center;padding:12px;color:#666;font-size:.875rem}.no-messages{text-align:center;padding:40px 20px;color:#999;font-size:1rem}.date-separator{display:flex;align-items:center;justify-content:center;margin:20px 0 16px;position:relative}.date-separator:before,.date-separator:after{content:"";flex:1;height:1px;background:#ffffff1a}.date-separator span{padding:0 16px;color:#999;font-size:.75rem;font-weight:500;text-transform:uppercase;letter-spacing:.5px}.message{display:flex;margin-bottom:12px;overflow:visible;min-height:150px}.message-content{display:flex;flex-direction:column;align-items:center;max-width:none;overflow:visible}.message-video{width:100%;height:100%;border-radius:50%;object-fit:cover;background:#000;cursor:pointer;transition:all .3s ease}.message-video:hover{transform:scale(1.05)}.video-placeholder{background:linear-gradient(135deg,#667eea,#764ba2)}.message-meta{margin-top:8px;display:flex;gap:8px;font-size:.75rem;color:#666}.video-player{position:relative;width:300px;height:300px;border-radius:50%;overflow:hidden;background:#000;transition:all .3s ease;display:flex;align-items:center;justify-content:center}.video-player.expanded{width:min(80vw,80vh);height:min(80vw,80vh);max-width:850px;max-height:850px;z-index:100;position:relative}.progress-ring{position:absolute;top:0;left:0;width:100%;height:100%;transform:rotate(-90deg);pointer-events:none}.progress-ring-progress{fill:none;stroke:#e74c3c;stroke-width:2;stroke-linecap:round;transition:stroke-dashoffset .1s linear}.play-button{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:60px;height:60px;border-radius:50%;background:#ffffffe6;border:none;cursor:pointer;font-size:1.5rem;display:flex;align-items:center;justify-content:center;padding-left:4px;transition:all .2s;z-index:10}.play-button:hover{transform:translate(-50%,-50%) scale(1.1);background:#fff}.play-button:active{transform:translate(-50%,-50%) scale(.95)}.video-loading{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;justify-content:center}.download-progress-ring{width:60px;height:60px;transform:rotate(-90deg)}.download-progress-bg{stroke:#fff3}.download-progress-bar{stroke:#667eea;transition:stroke-dashoffset .2s ease-out}.download-progress-text{position:absolute;color:#fff;font-size:.75rem;font-weight:600}.play-overlay{position:absolute;top:0;left:0;width:100%;height:100%;background:#0000004d;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:background .2s}.play-icon{width:50px;height:50px;border-radius:50%;background:#fff;display:flex;align-items:center;justify-content:center;font-size:1.25rem;color:#333}.pause-overlay{position:absolute;top:0;left:0;width:100%;height:100%;background:transparent;display:flex;align-items:center;justify-content:center;cursor:pointer;z-index:10}.pause-icon{width:50px;height:50px;border-radius:50%;background:#ffffff26;display:flex;align-items:center;justify-content:center}.pause-icon svg{opacity:.15}.record-button{width:80px;height:80px;padding:0;background:#e74c3c;color:#fff;border:4px solid rgba(255,255,255,.3);border-radius:50%;font-size:2rem;cursor:pointer;transition:transform .2s,box-shadow .2s,background .2s;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 20px #e74c3c66}.record-button:hover:not(:disabled){transform:scale(1.1);background:#c0392b;box-shadow:0 6px 30px #e74c3c99}.record-button:active:not(:disabled){transform:scale(.95)}.video-recorder{position:fixed;top:0;left:0;right:0;bottom:0;z-index:1000;background:#000000f2;display:flex;align-items:center;justify-content:center}.recorder-close-btn{position:absolute;top:20px;right:20px;width:44px;height:44px;border-radius:50%;background:#ffffff1a;border:none;cursor:pointer;display:flex;align-items:center;justify-content:center;color:#fff;transition:background .2s;z-index:10}.recorder-close-btn:hover{background:#fff3}.recorder-error-toast{position:absolute;top:20px;left:50%;transform:translate(-50%);background:#e74c3ce6;color:#fff;padding:12px 24px;border-radius:25px;font-size:.875rem;z-index:10}.recorder-center{display:flex;flex-direction:column;align-items:center;gap:30px}.recorder-canvas-wrapper{position:relative;width:300px;height:300px;border-radius:50%;overflow:hidden;background:#000}.recorder-canvas{width:100%;height:100%;border-radius:50%;object-fit:cover}.recording-progress-ring{position:absolute;top:0;left:0;width:100%;height:100%;transform:rotate(-90deg);pointer-events:none}.recording-progress-bg{stroke:#e74c3c4d}.recording-progress-bar{stroke:#e74c3c;stroke-linecap:round;transition:stroke-dashoffset .1s linear}.recording-indicator{position:absolute;bottom:15px;left:50%;transform:translate(-50%);display:flex;align-items:center;gap:8px;background:#e74c3ce6;color:#fff;padding:6px 16px;border-radius:20px;font-size:.875rem;font-weight:600;font-family:monospace}.recording-dot{width:8px;height:8px;border-radius:50%;background:#fff;animation:pulse 1s infinite}@keyframes pulse{0%,to{opacity:1}50%{opacity:.3}}.recorder-controls-bottom{display:flex;gap:24px;align-items:center}.recorder-icon-btn{width:60px;height:60px;border-radius:50%;border:none;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .2s}.recorder-icon-btn:disabled{opacity:.5;cursor:not-allowed}.switch-btn{background:#ffffff26;color:#fff}.switch-btn:hover:not(:disabled){background:#ffffff40;transform:scale(1.1)}.record-btn{width:80px;height:80px;background:#fff;color:#e74c3c}.record-btn:hover:not(:disabled){transform:scale(1.1);box-shadow:0 0 30px #ffffff4d}.record-btn.recording{background:#e74c3c;color:#fff;animation:recording-pulse 1.5s infinite}@keyframes recording-pulse{0%,to{box-shadow:0 0 #e74c3c80}50%{box-shadow:0 0 0 15px #e74c3c00}}.retake-btn{background:#ffffff26;color:#fff}.retake-btn:hover:not(:disabled){background:#ffffff40;transform:scale(1.1)}.send-btn{background:#2ecc71;color:#fff}.send-btn:hover:not(:disabled){background:#27ae60;transform:scale(1.1)}.recorder-preview-wrapper{position:relative;width:300px;height:300px;border-radius:50%;overflow:hidden;background:#000}.recorder-preview-video{width:100%;height:100%;border-radius:50%;object-fit:cover}.upload-progress-ring{position:absolute;top:0;left:0;width:100%;height:100%;transform:rotate(-90deg);pointer-events:none}.upload-progress-bg{stroke:#2ecc7133}.upload-progress-bar{stroke:#2ecc71;stroke-linecap:round;transition:stroke-dashoffset .2s ease-out}.camera-loading-overlay{position:absolute;top:0;left:0;right:0;bottom:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;background:#000000f2;color:#fff;font-size:1rem}.camera-loading-spinner{width:40px;height:40px;border:3px solid rgba(255,255,255,.2);border-top-color:#fff;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.install-button{position:fixed;top:16px;left:50%;transform:translate(-50%);background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;padding:12px 24px;border-radius:25px;font-size:.9rem;font-weight:600;cursor:pointer;z-index:1000;box-shadow:0 4px 20px #667eea66;transition:all .3s ease;display:flex;align-items:center;gap:8px}.install-button:hover{transform:translate(-50%) translateY(-2px);box-shadow:0 6px 30px #667eea99}.install-button:active{transform:translate(-50%) scale(.95)}@supports (-webkit-touch-callout: none){.message-video,.play-button{-webkit-tap-highlight-color:transparent}}@media (max-width: 600px){.app{max-width:100%}.play-button{width:50px;height:50px;font-size:1.25rem}.record-button{width:70px;height:70px}.record-button svg{width:35px;height:35px}.video-player{width:280px;height:280px}.video-player.expanded{width:min(80vw,80vh);height:min(80vw,80vh);max-width:850px;max-height:850px}}*{margin:0;padding:0;box-sizing:border-box}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background-color:#f5f5f5;min-height:100vh}#root{min-height:100vh}.container{max-width:600px;margin:0 auto;padding:20px;min-height:100vh;display:flex;flex-direction:column}.auth-screen{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:100vh;padding:20px}.auth-form{background:#fff;padding:30px;border-radius:12px;box-shadow:0 2px 10px #0000001a;width:100%;max-width:350px}.auth-form h1{margin-bottom:24px;text-align:center;color:#333;font-size:24px}.auth-form input{width:100%;padding:12px;margin-bottom:12px;border:1px solid #ddd;border-radius:6px;font-size:16px}.auth-form button{width:100%;padding:12px;background:#007aff;color:#fff;border:none;border-radius:6px;font-size:16px;cursor:pointer;margin-top:8px}.auth-form button:hover{background:#0056b3}.error-message{color:#dc3545;margin-bottom:12px;text-align:center;font-size:14px}.chat-screen{display:flex;flex-direction:column;height:100vh;background:#f5f5f5}.messages-container{flex:1;overflow-y:auto;padding:10px 10px 80px}.messages-container::-webkit-scrollbar{width:6px}.messages-container::-webkit-scrollbar-thumb{background:#ccc;border-radius:3px}.message{display:flex;margin-bottom:12px;animation:fadeIn .3s ease}@keyframes fadeIn{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.message.mine{justify-content:flex-end}.message.theirs{justify-content:flex-start}.message-video-wrapper{position:relative;width:150px;height:150px;border-radius:50%;overflow:hidden;background:#000;box-shadow:0 2px 8px #0000001a}.message-video{width:100%;height:100%;object-fit:cover;border-radius:50%;cursor:pointer}.message-video-played{opacity:.7}.message-timestamp{font-size:12px;color:#666;margin-top:4px;text-align:center}.message.mine .message-timestamp{margin-right:12px}.message.theirs .message-timestamp{margin-left:12px}.loading-indicator{text-align:center;padding:20px;color:#666}.recording-controls{position:fixed;bottom:0;left:0;right:0;background:#fff;padding:10px;box-shadow:0 -2px 10px #0000001a;display:flex;justify-content:center;align-items:center;gap:12px;max-width:600px;margin:0 auto}.record-button{width:60px;height:60px;border-radius:50%;background:#007aff;color:#fff;border:none;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:transform .2s}.record-button:hover{transform:scale(1.1)}.record-button.recording{background:#dc3545;animation:pulse 1s infinite}@keyframes pulse{0%,to{transform:scale(1)}50%{transform:scale(1.1)}}.switch-camera-button{width:40px;height:40px;border-radius:50%;background:#f0f0f0;border:none;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:20px}.camera-preview{position:fixed;top:0;left:0;right:0;bottom:0;background:#000000e6;display:flex;flex-direction:column;align-items:center;justify-content:center;z-index:1000;padding:20px}.camera-preview video{width:300px;height:300px;border-radius:50%;object-fit:cover;background:#000;margin-bottom:20px}.camera-controls{display:flex;gap:16px;align-items:center}.capture-button{width:70px;height:70px;border-radius:50%;background:#fff;border:4px solid #fff;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .2s}.capture-button.recording{background:#dc3545;transform:scale(.9)}.cancel-button{width:50px;height:50px;border-radius:50%;background:#333;color:#fff;border:none;cursor:pointer;font-size:24px;display:flex;align-items:center;justify-content:center}.send-button{width:50px;height:50px;border-radius:50%;background:#28a745;color:#fff;border:none;cursor:pointer;font-size:24px;display:flex;align-items:center;justify-content:center}.switch-preview-camera-button{position:absolute;top:40px;right:40px;width:40px;height:40px;border-radius:50%;background:#fff3;color:#fff;border:none;cursor:pointer;font-size:20px;display:flex;align-items:center;justify-content:center}.recording-timer{color:#fff;font-size:18px;margin-bottom:10px}.uploading-indicator{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);background:#000c;color:#fff;padding:20px 40px;border-radius:8px;z-index:1001;text-align:center}.spinner{border:3px solid rgba(255,255,255,.3);border-top:3px solid white;border-radius:50%;width:30px;height:30px;animation:spin 1s linear infinite;margin:0 auto 10px}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@media (max-width: 480px){.container{padding:10px}.auth-form{padding:20px}.message-video-wrapper{width:120px;height:120px}.recording-controls{padding:8px}.record-button{width:50px;height:50px}.camera-preview video{width:250px;height:250px}}.video-player{position:relative;width:280px;height:280px;transition:all .3s ease}.video-player.playing{width:380px;height:380px}.video-player .message-video{width:100%;height:100%;object-fit:cover;border-radius:50%;cursor:pointer}.video-player.playing .message-video{object-fit:cover;background:#000}.video-player img.message-video{object-fit:cover}.progress-ring{position:absolute;top:-5px;left:-5px;width:calc(100% + 10px);height:calc(100% + 10px);pointer-events:none;transform:rotate(-90deg)}.progress-ring-bg{fill:none;stroke:#fff3;stroke-width:2}.progress-ring-progress{fill:none;stroke:#007aff;stroke-width:2;stroke-linecap:round;transition:stroke-dashoffset .1s linear}.play-button{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:50px;height:50px;border-radius:50%;background:#0009;color:#fff;border:none;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:20px;transition:all .2s ease}.play-button:hover{background:#000c;transform:translate(-50%,-50%) scale(1.1)}.video-placeholder{background:#ccc;border-radius:50%}.video-loading{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);background:#000000b3;color:#fff;padding:8px 16px;border-radius:4px;font-size:14px}.play-overlay{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;background:#0000004d;border-radius:50%;cursor:pointer;transition:all .2s ease}.play-overlay:hover{background:#00000080}.play-icon{width:50px;height:50px;border-radius:50%;background:#ffffff26;display:flex;align-items:center;justify-content:center;font-size:20px;color:#fff}.pause-overlay{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;background:#0006;border-radius:50%;cursor:pointer;opacity:0;transition:opacity .2s ease}.video-player.playing .pause-overlay{opacity:1}.pause-overlay:hover{opacity:1;background:#00000080}.pause-icon{width:60px;height:60px;border-radius:50%;background:#ffffff26;display:flex;align-items:center;justify-content:center;font-size:18px;color:#fff;letter-spacing:-2px}@media (max-width: 480px){.video-player{width:120px;height:120px}.video-player.playing{width:220px;height:220px}.play-button,.play-icon{width:40px;height:40px;font-size:16px}}.message-feed{flex:1;overflow-y:auto;padding:10px 10px 80px;-webkit-overflow-scrolling:touch}.message-feed::-webkit-scrollbar{width:6px}.message-feed::-webkit-scrollbar-thumb{background:#ccc;border-radius:3px}.message-feed.loading{display:flex;align-items:center;justify-content:center;min-height:200px}.loading-more{text-align:center;padding:10px;color:#666;font-size:14px}.no-messages{text-align:center;padding:40px 20px;color:#666}.date-separator{text-align:center;padding:10px 0;margin:10px 0}.date-separator span{background:#e0e0e0;color:#666;padding:4px 12px;border-radius:12px;font-size:12px}.message{display:flex;margin-bottom:16px;animation:fadeIn .3s ease}.message.own{justify-content:flex-end}.message.other{justify-content:flex-start}.message-content{display:flex;flex-direction:column;align-items:center;gap:4px}.message.own .message-content{align-items:flex-end}.message.other .message-content{align-items:flex-start}.message-meta{display:flex;gap:8px;align-items:center;font-size:11px;color:#666}.message-time{font-weight:500}.message-size{opacity:.7}
