init f0ckm

This commit is contained in:
2026-04-25 19:51:52 +02:00
commit b646107eb7
241 changed files with 70364 additions and 0 deletions

463
public/s/css/dm.css Normal file
View File

@@ -0,0 +1,463 @@
/* ═══════════════════════════════════════════════════════════
PRIVATE MESSAGES / DM SYSTEM
═══════════════════════════════════════════════════════════ */
/* Page layout */
.messages-page {
max-width: 720px;
margin: 0 auto;
padding: 16px;
display: flex;
flex-direction: column;
min-height: calc(100vh - 80px);
}
.messages-header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 18px;
border-bottom: 1px solid var(--border, #333);
padding-bottom: 12px;
gap: 12px;
}
.messages-header h2 {
margin: 0;
font-size: 1.1em;
letter-spacing: 0.08em;
color: var(--accent);
}
.dm-back-btn {
color: var(--accent);
font-size: 1.4em;
text-decoration: none;
line-height: 1;
padding: 4px 8px;
border-radius: 4px;
transition: background 0.15s;
}
.dm-back-btn:hover { background: var(--bg2, #222); }
.dm-convo-header-info {
display: flex;
align-items: center;
gap: 10px;
flex: 1;
}
.dm-header-avatar {
width: 32px;
height: 32px;
border-radius: 4px;
object-fit: cover;
}
.dm-header-username {
font-weight: 600;
font-size: 1em;
text-decoration: none;
color: var(--fg, #ddd);
}
.dm-header-username:hover { text-decoration: underline; }
/* Key notice banner */
.dm-key-notice {
background: rgba(255, 200, 80, 0.15);
border: 1px solid rgba(255, 200, 80, 0.4);
color: #ffc850;
padding: 10px 14px;
border-radius: 6px;
font-size: 0.88em;
display: flex;
align-items: center;
gap: 10px;
margin-bottom: 14px;
flex-wrap: wrap;
}
.dm-key-export-inline {
background: rgba(255, 200, 80, 0.25);
border: 1px solid rgba(255, 200, 80, 0.5);
color: #ffc850;
padding: 3px 10px;
border-radius: 4px;
cursor: pointer;
font-size: 0.9em;
}
.dm-key-export-inline:hover { background: rgba(255, 200, 80, 0.4); }
/* Inbox list */
.dm-inbox-list {
display: flex;
flex-direction: column;
gap: 6px;
}
.dm-convo-card {
display: flex;
align-items: center;
gap: 12px;
padding: 12px 14px;
border-radius: 8px;
background: var(--bg2, #1a1a1a);
border: 1px solid transparent;
text-decoration: none;
color: var(--fg, #ccc);
transition: background 0.15s, border-color 0.15s;
position: relative;
}
.dm-convo-card:hover {
background: var(--bg3, #222);
border-color: var(--accent);
}
.dm-convo-card.dm-convo-unread { border-color: var(--accent); }
.dm-convo-avatar {
width: 42px;
height: 42px;
border-radius: 6px;
object-fit: cover;
flex-shrink: 0;
}
.dm-convo-info {
flex: 1;
display: flex;
flex-direction: column;
gap: 2px;
min-width: 0;
}
.dm-convo-name {
font-weight: 600;
font-size: 0.95em;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.dm-convo-time {
font-size: 0.78em;
color: #666;
}
.dm-convo-badge {
background: var(--accent);
color: var(--bg, #000);
font-size: 0.72em;
font-weight: 700;
min-width: 20px;
height: 20px;
border-radius: 10px;
display: inline-flex;
align-items: center;
justify-content: center;
padding: 0 5px;
flex-shrink: 0;
}
/* Thread */
.dm-thread {
flex: 1;
overflow-y: auto;
display: flex;
flex-direction: column;
gap: 8px;
padding: 8px 0;
min-height: 200px;
max-height: calc(100vh - 280px);
}
.dm-load-more {
align-self: center;
background: transparent;
border: 1px solid #444;
color: #888;
padding: 6px 16px;
border-radius: 4px;
cursor: pointer;
font-size: 0.82em;
margin-bottom: 8px;
transition: border-color 0.15s, color 0.15s;
}
.dm-load-more:hover { border-color: var(--accent); color: var(--accent); }
/* Message bubbles */
.dm-msg {
display: flex;
flex-direction: column;
max-width: 75%;
gap: 3px;
}
.dm-msg-mine {
align-self: flex-end;
align-items: flex-end;
}
.dm-msg-theirs {
align-self: flex-start;
align-items: flex-start;
}
.dm-bubble {
padding: 9px 13px;
border-radius: 14px;
font-size: 0.92em;
line-height: 1.45;
word-break: break-word;
white-space: pre-wrap;
}
.dm-msg-mine .dm-bubble {
background: var(--accent);
color: var(--bg, #000);
border-bottom-right-radius: 4px;
}
.dm-msg-theirs .dm-bubble {
background: var(--bg2, #222);
color: var(--fg, #ddd);
border: 1px solid #333;
border-bottom-left-radius: 4px;
}
.dm-msg-time {
font-size: 0.72em;
color: #555;
padding: 0 4px;
}
.dm-unreadable {
font-style: italic;
opacity: 0.5;
font-size: 0.88em;
}
/* Send form: column layout matching comment form */
.dm-send-form {
display: flex;
flex-direction: column;
margin-top: 12px;
padding-top: 12px;
border-top: 1px solid #333;
flex-shrink: 0;
}
.dm-input {
width: 100%;
background: var(--bg2, #1a1a1a);
border: 1px solid #444;
color: var(--fg, #ddd);
border-radius: 8px;
padding: 10px 12px;
font-size: 0.92em;
resize: none;
min-height: 44px;
max-height: 140px;
font-family: inherit;
transition: border-color 0.15s;
line-height: 1.4;
box-sizing: border-box;
}
.dm-input:focus {
outline: none;
border-color: var(--accent);
}
/* Actions bar: ☺ emoji trigger on left, Send on right */
.dm-send-form .input-actions {
display: flex;
flex-direction: row;
align-items: center;
gap: 6px;
margin-top: 6px;
}
.dm-send-btn {
background: var(--accent);
color: var(--bg, #000);
border: none;
border-radius: 6px;
padding: 6px 18px;
font-weight: 700;
cursor: pointer;
font-size: 0.9em;
margin-left: auto;
transition: opacity 0.15s;
}
.dm-send-btn:hover { opacity: 0.85; }
.dm-send-btn:disabled { opacity: 0.4; cursor: not-allowed; }
/* Emojis rendered inside DM bubbles */
.dm-bubble img.emoji {
width: 22px;
height: 22px;
vertical-align: middle;
object-fit: contain;
}
/* State messages */
.dm-loading, .dm-empty, .dm-error {
color: #666;
font-size: 0.9em;
padding: 24px;
text-align: center;
line-height: 1.6;
}
.dm-error { color: #e06c6c; }
/* Key Manager Modal */
.dm-modal-overlay {
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.75);
z-index: 15000;
display: flex;
align-items: center;
justify-content: center;
padding: 16px;
}
.dm-modal {
background: var(--bg, #111);
border: 1px solid var(--accent);
border-radius: 10px;
width: 100%;
max-width: 480px;
max-height: 90vh;
overflow-y: auto;
padding: 28px;
position: relative;
}
.dm-modal h2 {
margin: 0 0 6px;
font-size: 1.1em;
color: var(--accent);
}
.dm-modal-sub {
font-size: 0.85em;
color: #888;
margin: 0 0 18px;
line-height: 1.5;
}
.dm-modal-close {
position: absolute;
top: 14px;
right: 16px;
background: none;
border: none;
color: #888;
font-size: 1.4em;
cursor: pointer;
line-height: 1;
}
.dm-modal-close:hover { color: var(--fg, #ddd); }
.dm-key-status {
background: rgba(255,255,255,0.04);
border-radius: 6px;
padding: 10px 12px;
font-size: 0.85em;
margin-bottom: 18px;
border: 1px solid #333;
}
.dm-key-section {
margin-bottom: 20px;
padding-bottom: 20px;
border-bottom: 1px solid #2a2a2a;
}
.dm-key-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.dm-key-section h3 {
font-size: 0.9em;
margin: 0 0 6px;
color: var(--fg, #ccc);
}
.dm-key-section p {
font-size: 0.82em;
color: #777;
margin: 0 0 10px;
line-height: 1.5;
}
.dm-key-input {
display: block;
width: 100%;
background: var(--bg2, #1a1a1a);
border: 1px solid #444;
color: var(--fg, #ddd);
border-radius: 6px;
padding: 8px 10px;
font-size: 0.88em;
margin-bottom: 8px;
box-sizing: border-box;
font-family: inherit;
}
.dm-key-input:focus { outline: none; border-color: var(--accent); }
.dm-key-btn {
background: var(--accent);
color: var(--bg, #000);
border: none;
border-radius: 6px;
padding: 8px 16px;
font-weight: 600;
cursor: pointer;
font-size: 0.86em;
transition: opacity 0.15s;
}
.dm-key-btn:hover { opacity: 0.85; }
.dm-key-btn-danger {
background: #d94f4f;
color: #fff;
}
.dm-key-danger h3 { color: #d94f4f; }
.dm-key-msg {
font-size: 0.82em;
margin-top: 8px;
min-height: 18px;
}
.dm-msg-ok { color: #5cb85c; }
.dm-msg-err { color: #e06c6c; }
/* Navbar DM icon */
#nav-dm-btn {
position: relative;
display: inline-flex;
align-items: center;
gap: 3px;
}
/* Mobile */
@media (max-width: 600px) {
.messages-page { padding: 10px; }
.dm-msg { max-width: 90%; }
.dm-thread { max-height: calc(100vh - 240px); }
.dm-modal { padding: 20px; }
}

11833
public/s/css/f0ckm.css Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,262 @@
@font-face {
font-family: 'Impact';
src: url('/s/impact.woff') format('woff');
}
/* Meme Creator Styles */
.meme-creator-container {
padding: 20px;
max-width: 1200px;
width: 100%;
margin: 0 auto;
position: relative;
z-index: 10;
}
.meme-header {
margin-bottom: 25px;
border-bottom: 1px solid var(--accent, #9f0);
padding-bottom: 15px;
}
.meme-title {
font-family: var(--nav-brand-font, 'VCR'), monospace;
color: var(--accent, #9f0);
text-transform: uppercase;
margin: 0;
}
.meme-subtitle {
font-family: var(--font, monospace);
color: #888;
margin: 5px 0 20px 0;
}
/* Template Grid */
.template-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
gap: 15px;
}
.template-item {
background: var(--nav-bg, #2b2b2b);
border: 1px solid var(--nav-border-color, rgba(255, 255, 255, .05));
border-radius: 4px;
overflow: hidden;
text-decoration: none;
transition: transform 0.2s ease, border-color 0.2s ease;
display: flex;
flex-direction: column;
}
.template-item:hover {
transform: translateY(-5px);
border-color: var(--accent, #9f0);
}
.template-image-wrapper {
aspect-ratio: 1/1;
overflow: hidden;
background: #000;
display: flex;
align-items: center;
justify-content: center;
}
.template-image-wrapper img {
width: 100%;
height: 100%;
object-fit: cover;
}
.template-info {
padding: 10px;
text-align: center;
}
.template-name {
font-family: var(--font, monospace);
color: var(--white, #fff);
font-size: 0.9em;
display: block;
margin-bottom: 4px;
}
.template-category-tag {
font-size: 0.7em;
color: var(--accent, #9f0);
opacity: 0.6;
text-transform: uppercase;
font-family: var(--font, monospace);
}
/* Creator Layout - Simple Flexbox */
.meme-editor-layout {
display: flex;
flex-direction: row; /* Col 1: Meme, Col 2: Controls */
justify-content: center;
gap: 30px;
margin-top: 20px;
align-items: flex-start;
}
.canvas-wrapper {
flex: 1;
min-width: 0; /* Allow shrinking */
background: #000;
border: 2px solid var(--nav-bg, #2b2b2b);
display: flex;
align-items: center;
justify-content: center;
position: relative;
box-shadow: 0 0 20px rgba(0,0,0,0.5);
overflow: visible;
}
canvas#memeCanvas {
max-width: 100%;
height: auto;
cursor: crosshair;
touch-action: none;
pointer-events: auto !important;
display: block;
position: relative;
}
.meme-controls {
width: 380px;
flex-shrink: 0;
background: var(--nav-bg, #2b2b2b);
padding: 24px;
border-radius: 8px;
border: 1px solid var(--nav-border-color, rgba(255, 255, 255, .05));
box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
/* Form Styles — SCOPED to .meme-layout-wrapper to prevent global leakage */
.meme-layout-wrapper .form-group {
margin-bottom: 20px;
}
.meme-layout-wrapper .form-group label {
display: block;
font-family: var(--font, monospace);
color: var(--accent, #9f0);
margin-bottom: 8px;
font-size: 0.9em;
text-transform: uppercase;
}
.meme-layout-wrapper .form-group textarea,
.meme-layout-wrapper .form-group input[type="text"],
.meme-layout-wrapper .form-group select {
width: 100%;
background: var(--black, #000);
border: 1px solid #444;
color: var(--white, #fff);
padding: 10px;
font-family: var(--font, monospace);
border-radius: 2px;
box-sizing: border-box;
}
.meme-layout-wrapper .form-group textarea:focus,
.meme-layout-wrapper .form-group input[type="text"]:focus {
border-color: var(--accent, #9f0);
outline: none;
}
.meme-layout-wrapper .checkbox-group {
display: flex;
gap: 15px;
}
.meme-layout-wrapper .checkbox-group label {
display: flex;
align-items: center;
gap: 5px;
color: var(--white, #fff);
text-transform: none;
cursor: pointer;
}
.meme-layout-wrapper input[type="range"] {
width: 100%;
accent-color: var(--accent, #9f0);
}
.meme-layout-wrapper .layer-input-group {
border-bottom: 1px solid rgba(255,255,255,0.05);
padding-bottom: 15px;
margin-bottom: 20px;
}
.meme-layout-wrapper .layer-input-group:last-child {
border-bottom: none;
}
.meme-layout-wrapper .remove-layer:hover {
color: #ff0000 !important;
transform: scale(1.1);
}
/* .btn — SCOPED to .meme-layout-wrapper to prevent global leakage into navbar */
.meme-layout-wrapper .btn {
padding: 12px;
font-family: var(--font, monospace);
font-weight: bold;
text-transform: uppercase;
border: none;
cursor: pointer;
border-radius: 2px;
display: inline-block;
text-align: center;
text-decoration: none;
width: 100%;
box-sizing: border-box;
margin-bottom: 10px;
}
.meme-layout-wrapper .btn-primary {
background: var(--accent, #9f0);
color: var(--black, #000);
}
.meme-layout-wrapper .btn-secondary {
background: #444;
color: var(--white, #fff);
}
/* Mobile Stacking - Simple 2-Row Layout */
@media (max-width: 950px) {
.meme-editor-layout {
display: grid !important;
grid-template-columns: 1fr !important;
grid-template-rows: 0.6fr 1fr !important;
gap: 20px;
}
.meme-controls {
width: 100% !important;
grid-row: 2;
overflow: visible !important;
}
.canvas-wrapper {
width: 100% !important;
grid-row: 1;
margin-bottom: 10px;
overflow: visible !important;
height: auto !important;
}
}
@media (max-width: 480px) {
.meme-creator-container, .meme-select-container {
padding: 10px;
}
.template-grid {
grid-template-columns: repeat(2, 1fr);
gap: 10px;
}
}

816
public/s/css/upload.css Normal file
View File

@@ -0,0 +1,816 @@
/* Upload Page Styles */
.upload-container {
max-width: 800px;
width: 100%;
padding: 0;
animation: uploadReveal 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
opacity: 0;
margin: 0 auto;
}
@keyframes uploadReveal {
from {
opacity: 0;
transform: translateY(10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.upload-container h2 {
margin-bottom: 0.5rem;
color: var(--accent);
text-align: center;
}
/* Upload Limit Info */
.upload-limit-info {
text-align: center;
margin-bottom: 1.5rem;
font-size: 0.9rem;
opacity: 0.7;
}
.upload-limit-info i {
margin-right: 0.3rem;
}
.limit-unlimited {
color: var(--accent);
}
.limit-exhausted {
color: #ff6b6b;
font-weight: 600;
opacity: 1;
}
.limit-remaining {
color: rgba(255, 255, 255, 0.7);
}
/* Upload Form */
.upload-form {
display: flex;
flex-direction: column;
gap: 1.5rem;
background: rgba(255, 255, 255, 0.02);
padding: 1rem;
border-radius: 0;
border: 1px solid rgba(255, 255, 255, 0.05);
}
.form-section label {
display: block;
margin-bottom: 0.5rem;
font-weight: 500;
}
.required {
color: #ff6b6b;
}
/* Drop Zone */
.drop-zone {
border: 2px dashed rgba(255, 255, 255, 0.2);
border-radius: 0;
padding: 5px;
text-align: center;
cursor: pointer;
transition: all 0.2s;
position: relative;
min-height: 200px;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
.drop-zone:hover,
.drop-zone.dragover {
border-color: var(--accent);
background: rgba(255, 255, 255, 0.02);
}
.drop-zone input[type="file"] {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
opacity: 0;
cursor: pointer;
}
.drop-zone-prompt {
color: rgba(255, 255, 255, 0.5);
pointer-events: none;
/* Let input handle clicks */
}
/* File Preview (Stacked) */
.file-preview {
display: flex;
flex-direction: column;
/* Stacked */
align-items: center;
gap: 1rem;
width: 100%;
}
.preview-media {
max-width: 100%;
max-height: 500px;
}
.file-preview video {
max-width: 100%;
max-height: 500px;
border-radius: 0;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
outline: none;
margin-bottom: 1rem;
}
.file-meta-row {
display: flex;
align-items: center;
gap: 1rem;
width: 100%;
justify-content: center;
}
.file-info {
display: flex;
gap: 1rem;
align-items: center;
background: rgba(0, 0, 0, 0.3);
padding: 0.5rem 1rem;
border-radius: 0;
}
.file-name {
font-weight: 500;
}
.file-size {
opacity: 0.6;
font-size: 0.9rem;
}
.btn-remove {
background: #ff6b6b;
color: white;
border: none;
padding: 0.5rem 1.5rem;
border-radius: 0;
cursor: pointer;
font-weight: 600;
transition: background 0.2s;
/* remove margin-top as it's now in a flex row */
}
.btn-remove:hover {
background: #fa5252;
}
/* Ratings */
@media(max-width: 700px) {
.rating-options {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 10px;
}
.rating-option:nth-child(3) {
grid-column: 1 / span 2;
}
.tag-suggestions {
left: 0px;
right: 0px;
}
}
.rating-options {
display: flex;
gap: 1rem;
justify-content: center;
}
.rating-option input {
display: none;
}
.rating-label {
display: block;
padding: 0.1rem 2rem;
border-radius: 0;
border: 2px solid transparent;
transition: all 0.2s;
font-weight: 600;
text-align: center;
cursor: pointer;
}
.rating-label.sfw {
background: rgba(6, 115, 24, 0.36);
border-color: rgba(19, 134, 38, 0.96);
color: #fff;
opacity: 0.5;
}
.rating-label.sfw:hover {
background: #04200c9e;
}
.rating-label.nsfw {
background: #cb009866;
border-color: rgb(255, 0, 227);
color: #f9f9f9;
opacity: 0.5;
}
.rating-label.nsfw:hover {
background: rgba(69, 0, 45, 0.74);
}
.rating-label.nsfl {
background: #2b01016e;
color: #f2f2f2;
border-color: #990000;
opacity: 0.5;
}
.rating-label.nsfl:hover {
background: #130101;
}
.rating-option input:checked + .rating-label.sfw {
background: rgba(6, 130, 8, 0.73);
border-color: #51cf66;
color: var(--white);
opacity: 1;
}
.rating-option input:checked + .rating-label.nsfw {
background: #880059;
box-shadow: 0 0 0 2px var(--bg-form), 0 0 0 4px #cd0030;
color: var(--white);
opacity: 1;
}
.rating-option input:checked + .rating-label.nsfl {
background: #500404;
box-shadow: 0 0 0 2px var(--bg-form), 0 0 0 4px #660000;
color: var(--white);
opacity: 1;
}
/* Tags */
.tag-input-container {
background: rgba(255, 255, 255, 0.05);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 0;
padding: 0.5rem;
display: flex;
flex-wrap: wrap;
position: relative;
gap: 0.5rem;
z-index: 10000 !important;
}
.tags-list {
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
}
.tag-chip {
display: inline-flex;
align-items: center;
gap: 0.3rem;
background: var(--accent);
color: #000;
padding: 0.3rem 0.6rem;
border-radius: 0;
font-size: 0.9rem;
font-weight: 500;
}
.tag-chip button {
background: none;
border: none;
color: inherit;
cursor: pointer;
padding: 0;
font-size: 1.1rem;
line-height: 1;
}
.tag-input {
flex: 1;
min-width: 120px;
background: transparent;
border: none;
color: inherit;
padding: 0.5rem;
outline: none;
}
.tag-count {
font-weight: normal;
font-size: 0.85rem;
opacity: 0.7;
}
.tag-count.valid {
color: #51cf66;
font-weight: bold;
opacity: 1;
}
/* Upload Comment */
.upload-comment-input {
position: relative;
}
.upload-comment {
width: 100%;
background: rgba(255, 255, 255, 0.05);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 0;
color: inherit;
padding: 0.6rem 0.8rem;
font-family: inherit;
font-size: 0.9rem;
resize: vertical;
min-height: 60px;
max-height: 200px;
outline: none;
transition: border-color 0.2s;
box-sizing: border-box;
}
.upload-comment:focus {
border-color: var(--accent, #7c5cbf);
}
.upload-comment::placeholder {
color: rgba(255, 255, 255, 0.3);
}
.upload-comment-input .input-actions {
display: flex;
align-items: center;
gap: 5px;
margin-top: 4px;
}
.upload-comment-input .emoji-picker {
position: absolute;
top: 100%;
left: 0;
z-index: 100;
}
.upload-form .tag-suggestions {
position: absolute !important;
min-width: 220px !important;
max-width: 320px !important;
max-height: 260px !important;
overflow-y: auto !important;
background: var(--dropdown-bg, #1a1a1a) !important;
border: 1px solid var(--black, #000) !important;
border-radius: 6px !important;
box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6) !important;
margin-top: 8px !important; /* Spacing from input */
display: none; /* Controlled by JS .style.display */
z-index: 200000 !important;
animation: tagDropIn 0.15s ease-out !important;
scrollbar-width: thin !important;
}
@keyframes tagDropIn {
from {
opacity: 0;
transform: translateY(10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
#upload-form .tag-suggestion-item {
display: flex !important;
justify-content: space-between !important;
align-items: center !important;
padding: 10px 12px !important;
min-height: 44px !important;
cursor: pointer !important;
transition: background 0.12s !important;
box-sizing: border-box !important;
user-select: none !important;
}
#upload-form .tag-suggestion-item:not(:last-child) {
border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}
#upload-form .tag-suggestion-item:hover,
#upload-form .tag-suggestion-item.active {
background: rgba(255, 255, 255, 0.1) !important;
}
#upload-form .tag-suggestion-name {
font-size: 14px !important;
color: var(--accent, #66d9ef) !important;
font-weight: 500 !important;
}
#upload-form .tag-suggestion-meta {
font-size: 11px !important;
color: rgba(255, 255, 255, 0.35) !important;
margin-left: 12px !important;
white-space: nowrap !important;
}
/* Submit Button */
.btn-upload {
background: var(--accent);
color: #000;
border: none;
padding: 1rem 2rem;
border-radius: 0;
font-size: 1.1rem;
font-weight: 700;
cursor: pointer;
transition: all 0.2s;
width: 100%;
}
.btn-upload:disabled {
background: rgba(255, 255, 255, 0.1);
color: rgba(255, 255, 255, 0.4);
cursor: not-allowed;
}
.btn-upload:not(:disabled):hover {
transform: translateY(-2px);
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}
/* Progress */
.upload-progress {
display: flex;
align-items: center;
gap: 1rem;
background: rgba(0, 0, 0, 0.2);
padding: 1rem;
border-radius: 0;
}
.progress-bar {
flex: 1;
height: 10px;
background: rgba(255, 255, 255, 0.1);
border-radius: 0;
overflow: hidden;
}
.progress-fill {
height: 100%;
background: var(--accent);
width: 0%;
transition: width 0.2s;
}
.progress-text {
font-weight: bold;
font-family: monospace;
}
.upload-status {
text-align: center;
padding: 1rem;
font-weight: 600;
}
.upload-status.error {
color: #ff6b6b;
}
.upload-status.success {
color: #51cf66;
}
/* Login Required */
.login-required {
text-align: center;
padding: 4rem 2rem;
border: 1px dashed rgba(255, 255, 255, 0.2);
border-radius: 0;
}
.btn-login {
display: inline-block;
margin-top: 1rem;
padding: 0.75rem 2rem;
background: var(--accent);
color: #000;
text-decoration: none;
border-radius: 0;
font-weight: 700;
}
/* Upload Mode Tabs */
.upload-mode-tabs {
display: flex;
gap: 0;
margin-bottom: 1rem;
border: 1px solid rgba(255, 255, 255, 0.1);
overflow: hidden;
}
.upload-mode-tab {
flex: 1;
display: flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
padding: 0.75rem 1rem;
background: transparent;
border: none;
color: rgba(255, 255, 255, 0.45);
font-size: 0.95rem;
font-weight: 600;
cursor: pointer;
transition: all 0.2s;
position: relative;
}
.upload-mode-tab:first-child {
border-right: 1px solid rgba(255, 255, 255, 0.1);
}
.upload-mode-tab:hover {
color: rgba(255, 255, 255, 0.7);
background: rgba(255, 255, 255, 0.03);
}
.upload-mode-tab.active {
color: var(--accent);
background: rgba(255, 255, 255, 0.04);
}
.upload-mode-tab.active::after {
content: '';
position: absolute;
bottom: 0;
left: 0;
right: 0;
height: 2px;
background: var(--accent);
}
.upload-mode-tab svg {
flex-shrink: 0;
}
/* URL Upload */
.url-input-container {
position: relative;
}
.url-input-container input[type="url"] {
width: 100%;
background: rgba(255, 255, 255, 0.05);
border: 2px dashed rgba(255, 255, 255, 0.2);
color: #fff;
padding: 1.5rem 1rem;
font-size: 1rem;
outline: none;
transition: border-color 0.2s;
box-sizing: border-box;
text-align: center;
}
.url-input-container input[type="url"]:focus {
border-color: var(--accent);
}
.url-input-container input[type="url"]::placeholder {
color: rgba(255, 255, 255, 0.35);
}
.url-type-badge {
display: none; /* shown via JS */
margin-top: 6px;
padding: 5px 14px;
font-size: 0.78rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 1px;
border-radius: 3px;
cursor: pointer;
pointer-events: auto;
width: fit-content;
}
.url-type-badge.youtube {
background: #ff0000;
color: #fff;
}
.url-type-badge.direct {
background: var(--accent);
color: #000;
}
.url-type-badge.fetching {
background: rgba(0, 0, 0, 0.4);
color: var(--accent);
border: 1px solid var(--accent);
display: flex;
align-items: center;
gap: 8px;
padding: 3px 12px;
}
.url-type-badge.success {
background: #2b8a3e;
color: #fff;
}
.loading-spinner {
display: inline-block;
width: 10px;
height: 10px;
border: 2px solid rgba(255, 255, 255, 0.3);
border-radius: 50%;
border-top-color: var(--accent);
animation: metaSpin 0.8s linear infinite;
}
@keyframes metaSpin {
to { transform: rotate(360deg); }
}
/* Metadata Sync Spinner */
.sync-spinner {
display: none;
align-items: center;
gap: 8px;
font-size: 0.8rem;
color: var(--accent);
margin: 5px 0 5px 5px;
background: rgba(0, 0, 0, 0.4);
padding: 4px 10px;
border-radius: 4px;
border: 1px solid rgba(255, 255, 255, 0.1);
white-space: nowrap;
}
.sync-spinner.active {
display: flex;
animation: spinnerReveal 0.3s ease-out;
}
@keyframes spinnerReveal {
from { opacity: 0; transform: translateX(-5px); }
to { opacity: 1; transform: translateX(0); }
}
.sync-spinner .spinner-icon {
width: 12px;
height: 12px;
border: 2px solid rgba(255, 255, 255, 0.2);
border-top-color: var(--accent);
border-radius: 50%;
animation: metaSpin 0.8s linear infinite;
}
.meta-suggestions-container {
margin-top: 1rem;
padding: 0.75rem;
background: rgba(88, 101, 242, 0.05);
border: 1px dashed rgba(88, 101, 242, 0.2);
border-radius: 8px;
}
.suggestions-header {
font-size: 0.75rem;
color: var(--accent);
margin-bottom: 0.5rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.5px;
display: flex;
align-items: center;
gap: 0.5rem;
}
.meta-suggestions-list {
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
}
.meta-suggestion {
padding: 0.35rem 0.75rem;
background: rgba(255, 255, 255, 0.05);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 50px;
font-size: 0.85rem;
cursor: pointer;
transition: all 0.2s ease;
display: flex;
align-items: center;
gap: 0.5rem;
color: rgba(255, 255, 255, 0.8);
}
.meta-suggestion:hover {
background: var(--accent);
border-color: var(--accent);
color: white !important;
transform: translateY(-1px);
box-shadow: 0 4px 12px rgba(88, 101, 242, 0.3);
}
.meta-suggestion i {
font-size: 0.7rem;
opacity: 0.6;
}
.meta-suggestion:hover i {
opacity: 1;
}
.meta-suggestion.selected {
opacity: 0.4;
cursor: default;
pointer-events: none;
background: rgba(255, 255, 255, 0.02);
border-color: rgba(255, 255, 255, 0.05);
color: rgba(255, 255, 255, 0.4) !important;
}
.meta-suggestion.selected i {
color: var(--accent);
opacity: 1;
}
/* GPS Privacy Warning Banner */
.gps-privacy-warning {
display: flex;
align-items: center;
gap: 10px;
padding: 10px 14px;
margin: 8px 0;
background: rgba(255, 160, 0, 0.12);
border: 1px solid rgba(255, 160, 0, 0.4);
border-radius: 8px;
font-size: 0.85em;
color: #ffa500;
flex-wrap: wrap;
}
.gps-privacy-warning i { flex-shrink: 0; font-size: 1.1em; }
.gps-privacy-warning span { flex: 1; min-width: 160px; color: var(--text, #ccc); }
.gps-privacy-warning span strong { color: #ffa500; }
.gps-strip-btn {
background: #ffa500;
color: #000;
border: none;
border-radius: 5px;
padding: 4px 12px;
font-size: 0.85em;
font-weight: bold;
cursor: pointer;
white-space: nowrap;
transition: background 0.2s;
}
.gps-strip-btn:hover { background: #ffb733; }
.gps-strip-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.gps-dismiss-btn {
background: transparent;
border: none;
color: #888;
cursor: pointer;
font-size: 1.2em;
padding: 0 4px;
line-height: 1;
margin-left: auto;
}
.gps-dismiss-btn:hover { color: #ccc; }
.gps-privacy-warning.gps-stripped {
background: rgba(76, 175, 80, 0.12);
border-color: rgba(76, 175, 80, 0.4);
color: #4caf50;
}
.gps-privacy-warning.gps-stripped i,
.gps-privacy-warning.gps-stripped span { color: #4caf50; }

495
public/s/css/v0ck.css Normal file
View File

@@ -0,0 +1,495 @@
.v0ck {
position: relative;
font-size: 0;
overflow: hidden;
/* background-color: #000;*/
background-size: contain;
background-repeat: no-repeat;
background-position: center center;
touch-action: none; /* Prevent pull-to-refresh and scroll while interacting */
z-index: 0;
}
.v0ck video {
display: block;
}
.v0ck.v0ck_fullscreen {
max-width: none;
max-height: none;
width: 100%;
height: 100%;
background-color: black;
}
#main:fullscreen .v0ck.v0ck_fullscreen {
position: fixed;
top: 0;
left: 0;
width: 100vw;
max-width: 100%;
height: 100vh;
z-index: 2147483647;
background-color: #000 !important;
background-size: contain;
background-repeat: no-repeat;
background-position: center center;
display: flex !important;
align-items: center;
justify-content: center;
}
#main:fullscreen .v0ck.v0ck_fullscreen video {
width: 100%;
height: 100%;
object-fit: contain;
min-height: 100vh;
}
/* Audio in fullscreen: hide the invisible audio element, show cover art via background */
#main:fullscreen .v0ck.v0ck_fullscreen audio {
display: none;
}
.v0ck_overlay {
pointer-events: none;
position: absolute;
z-index: 1;
top: 0;
left: 0;
height: 100%;
width: 100%;
display: none;
}
.v0ck.v0ck_initial .v0ck_overlay {
display: block;
pointer-events: auto;
cursor: pointer;
}
.v0ck_overlay>svg {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
height: 60px;
width: 60px;
filter: drop-shadow(0 0 9px var(--accent));
stroke: var(--accent);
stroke-width: 20px;
}
.v0ck_player_button {
background: none;
border: 0;
line-height: 1;
color: white;
text-align: center;
outline: 0;
padding: 8px 6px; /* Increased hit area height and horizontal spacing */
margin: 0;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
min-width: 36px;
height: 40px; /* Consistent taller height for easier tapping */
}
.v0ck_fs_btn {
max-width: none;
}
.v0ck_player_button.v0ck_tplay>svg {
height: 17px;
}
.v0ck_player_button svg:hover {
filter: drop-shadow(0 0 9px var(--accent));
fill: #000;
stroke: var(--accent);
stroke-width: 30px;
}
.v0ck_hidden {
display: none;
}
.v0ck_player_controls svg {
width: 20px;
height: 20px;
fill: #fff;
stroke: #fff;
cursor: pointer;
}
.v0ck_player_controls {
display: flex;
position: absolute;
bottom: -1px;
width: 100%;
padding: 0;
align-items: center;
z-index: 2;
background: linear-gradient(0deg, rgba(0, 0, 0, 0.8) 20%, rgba(0, 0, 0, 0) 100%);
transition: opacity .3s, transform .3s;
flex-wrap: wrap;
transform: translateY(100%) translateY(-3px);
}
.v0ck:hover .v0ck_player_controls,
.v0ck.v0ck_hover .v0ck_player_controls,
.v0ck.v0ck_swf_active .v0ck_player_controls {
transform: translateY(0);
}
.v0ck:hover .v0ck_progress,
.v0ck.v0ck_hover .v0ck_progress,
.v0ck.v0ck_swf_active .v0ck_progress {
height: 8px;
}
.v0ck_progress {
flex: 10;
position: relative;
display: flex;
flex-basis: 100%;
height: 5px;
transition: height 0.4s;
background: rgba(255, 255, 255, 0.1);
cursor: pointer;
overflow: hidden;
}
.v0ck_progress_buffered {
position: absolute;
top: 0;
left: 0;
height: 100%;
background: rgba(255, 255, 255, 0.3);
width: 0%;
transition: width 0.2s;
z-index: 1;
}
.v0ck_progress_filled {
height: 100%;
background: var(--accent);
position: relative;
z-index: 2;
flex-basis: 0%;
}
.v0ck_player_controls>input[type="range"][name="volume"]::after {
position: absolute;
top: -2px;
text-shadow: 1px 1px 1px 0 rgba(0, 0, 0, 0.5);
font-size: 0.8em;
}
.v0ck_volume_group {
display: flex;
align-items: center;
position: relative;
}
.v0ck_volume_group input[type="range"][name="volume"] {
position: relative;
height: 5px;
margin: auto;
-webkit-appearance: none;
appearance: none;
overflow: hidden;
min-width: 0;
max-width: 0;
cursor: pointer;
border-radius: 0;
transition: min-width 0.3s, max-width 0.3s, opacity 0.3s;
flex: none;
opacity: 0;
pointer-events: none;
}
@media (hover: hover) {
.v0ck_volume_group:hover input[type="range"][name="volume"] {
min-width: 50px;
max-width: 50px;
opacity: 1;
pointer-events: auto;
}
}
@media (max-width: 600px) {
.v0ck_volume_group input[type="range"][name="volume"] {
display: none !important;
}
}
.v0ck_player_controls>input[type=range]:focus {
outline: none;
}
.v0ck_player_button.v0ck_playtime {
max-width: none;
cursor: default;
min-width: 100px;
}
/* Volume/Gesture HUD */
.v0ck_hud {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background: rgba(0, 0, 0, 0.7);
color: #fff;
padding: 20px;
border-radius: 15px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
pointer-events: none;
opacity: 0;
transition: opacity 0.3s;
z-index: 100;
min-width: 100px;
}
.v0ck_hud:not(.v0ck_hidden) {
opacity: 1;
}
.v0ck_hud svg {
width: 40px;
height: 40px;
fill: #fff;
margin-bottom: 10px;
}
.v0ck_hud_bar_container {
width: 100px;
height: 6px;
background: rgba(255, 255, 255, 0.2);
border-radius: 3px;
overflow: hidden;
}
.v0ck_hud_bar {
height: 100%;
background: var(--accent);
width: 0%;
}
.v0ck_volume_group input[type="range"][name="volume"]::-webkit-slider-runnable-track {
background-color: rgb(65, 65, 65);
}
.v0ck_volume_group input[type="range"][name="volume"]::-moz-range-track {
height: 5px;
background-color: rgb(65, 65, 65);
}
.v0ck_volume_group input[type="range"][name="volume"]::-webkit-slider-thumb {
-webkit-appearance: none;
background: var(--accent);
height: 5px;
width: 0.1px;
border: 0;
box-shadow: -100vw 0 0 100vw var(--accent);
}
.v0ck_volume_group input[type="range"][name="volume"]::-moz-range-thumb {
background: var(--accent);
height: 5px;
width: 0.1px;
border: 0;
box-shadow: -100vw 0 0 100vw var(--accent);
}
.v0ck.v0ck_no_transition .v0ck_player_controls,
.v0ck.v0ck_no_transition .v0ck_progress {
transition: none !important;
}
/* Seek Marker Ripple */
.v0ck_seek_marker {
position: absolute;
top: 0;
height: 100%;
width: 2px;
background: #fff;
opacity: 0;
pointer-events: none;
z-index: 3;
}
.v0ck_seek_marker.active {
animation: v0ck-seek-ripple 0.6s ease-out;
}
@keyframes v0ck-seek-ripple {
0% { opacity: 0.8; transform: scaleX(1); }
100% { opacity: 0; transform: scaleX(20); }
}
/* Loading Spinner */
.v0ck_loader {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
z-index: 101;
pointer-events: none;
}
.v0ck_loader div {
width: 40px;
height: 40px;
border: 4px solid rgba(255, 255, 255, 0.3);
border-top: 4px solid #fff;
border-radius: 50%;
animation: v0ck-spin 0.8s linear infinite;
}
@keyframes v0ck-spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
/* ── Danmaku overlay ───────────────────────────────────────── */
.danmaku-overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
overflow-x: clip;
overflow-y: visible;
z-index: 1;
user-select: none;
}
.danmaku-pill {
position: absolute;
left: 0;
white-space: normal; /* allow multiline for quotes */
max-width: 70vw; /* prevent full-width wrapping */
display: inline-flex;
flex-direction: column; /* stack lines vertically */
align-items: flex-start;
padding: 2px 0;
font-family: var(--font, inherit);
font-size: 35px;
font-weight: 700;
line-height: 1.1;
gap: 0;
color: #fff;
/* Multi-layer outline shadow for readability over any background */
text-shadow:
-1px -1px 0 #000,
1px -1px 0 #000,
-1px 1px 0 #000,
1px 1px 0 #000,
0 0 6px rgba(0,0,0,0.9),
0 0 12px rgba(0,0,0,0.6);
will-change: transform;
background: none;
border: none;
text-align: left;
}
.danmaku-pill .dpill-text {
font-family: var(--font, inherit);
font-size: 35px;
font-weight: 700;
white-space: nowrap;
}
/* Each plain text line inside a multiline pill */
.danmaku-pill .dpill-line {
display: block;
white-space: nowrap;
}
/* Quoted lines > rendered as greentext */
.danmaku-pill .dpill-greentext {
color: #78b87a;
display: block;
white-space: nowrap;
}
/* Spoiler inside a flying pill — black-on-black, click to reveal */
.danmaku-pill .dpill-spoiler {
background: #000;
color: #000 !important;
cursor: pointer;
pointer-events: auto;
transition: color 0.15s ease, background 0.15s ease;
border-radius: 3px;
padding: 0 3px;
text-shadow: none;
}
/* Hide images (emojis, inline imgs) inside unrevealed spoiler */
.danmaku-pill .dpill-spoiler img {
opacity: 0;
transition: opacity 0.15s ease;
}
.danmaku-pill .dpill-spoiler:hover,
.danmaku-pill .dpill-spoiler.revealed {
color: #fff !important;
background: rgba(255,255,255,0.15);
text-shadow:
-1px -1px 0 #000, 1px -1px 0 #000,
-1px 1px 0 #000, 1px 1px 0 #000;
}
.danmaku-pill .dpill-spoiler:hover img,
.danmaku-pill .dpill-spoiler.revealed img {
opacity: 1;
}
/* Blur inside a flying pill — blurred text, click/hover to clear */
.danmaku-pill .dpill-blur {
filter: blur(6px);
cursor: pointer;
pointer-events: auto;
transition: filter 0.25s ease;
border-radius: 3px;
padding: 0 3px;
}
.danmaku-pill .dpill-blur:hover,
.danmaku-pill .dpill-blur.revealed {
filter: none;
}
/* Emoji inline image */
.danmaku-pill .dpill-emoji {
height: 1.3em;
width: auto;
vertical-align: middle;
object-fit: contain;
display: inline-block;
margin: 0 1px;
}
/* Inline image URL embedded in pill */
.danmaku-pill .dpill-img {
max-height: 80px;
max-width: 120px;
width: auto;
height: auto;
vertical-align: middle;
object-fit: contain;
display: inline-block;
border-radius: 4px;
margin: 0 2px;
}
@keyframes danmaku-fly {
from { transform: translateX(calc(100vw + 100%)); }
to { transform: translateX(calc(-100% - 200px)); }
}