All checks were successful
Build and Publish Docker Image / build-and-push (push) Successful in 47s
4780 lines
90 KiB
CSS
4780 lines
90 KiB
CSS
/* ── Markdown prose ── */
|
||
.md p {
|
||
margin: 0 0 0.85em;
|
||
}
|
||
.md p:last-child {
|
||
margin-bottom: 0;
|
||
}
|
||
.md a {
|
||
color: var(--color-accent);
|
||
text-decoration: underline;
|
||
text-underline-offset: 2px;
|
||
}
|
||
.md a:hover {
|
||
text-decoration: none;
|
||
}
|
||
.md strong {
|
||
font-weight: 700;
|
||
}
|
||
.md em {
|
||
font-style: italic;
|
||
}
|
||
.md code {
|
||
font-family: monospace;
|
||
background: var(--color-bg);
|
||
border: 1px solid var(--color-border);
|
||
border-radius: 3px;
|
||
padding: 0.1em 0.35em;
|
||
font-size: 0.88em;
|
||
}
|
||
.md pre {
|
||
background: var(--color-bg);
|
||
border: 1px solid var(--color-border);
|
||
border-radius: 8px;
|
||
padding: 0.75rem 1rem;
|
||
overflow-x: auto;
|
||
margin: 0.6em 0;
|
||
}
|
||
.md pre code {
|
||
background: none;
|
||
border: none;
|
||
padding: 0;
|
||
}
|
||
.md ul, .md ol {
|
||
padding-left: 1.5em;
|
||
margin: 0.4em 0;
|
||
}
|
||
.md li {
|
||
margin: 0.15em 0;
|
||
}
|
||
.md blockquote {
|
||
border-left: 3px solid var(--color-border);
|
||
margin: 0.5em 0;
|
||
padding: 0.2em 0.75em;
|
||
opacity: 0.75;
|
||
}
|
||
.md h1, .md h2, .md h3, .md h4, .md h5, .md h6 {
|
||
margin: 0.6em 0 0.2em;
|
||
font-weight: 700;
|
||
line-height: 1.25;
|
||
}
|
||
|
||
.md img {
|
||
max-width: 100%;
|
||
height: auto;
|
||
display: block;
|
||
}
|
||
|
||
/* Compact / card mode: strip vertical spacing */
|
||
.md--inline p,
|
||
.md--inline ul,
|
||
.md--inline ol,
|
||
.md--inline pre,
|
||
.md--inline blockquote {
|
||
margin: 0;
|
||
}
|
||
.md--inline li {
|
||
margin: 0;
|
||
}
|
||
.md--inline ul,
|
||
.md--inline ol {
|
||
padding-left: 1.2em;
|
||
}
|
||
|
||
/* ── Dump detail page ── */
|
||
.dump-detail {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 1rem;
|
||
}
|
||
|
||
.dump-post-header {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 1rem;
|
||
padding: 1.25rem;
|
||
margin-bottom: 3px;
|
||
background: var(--color-surface);
|
||
border-radius: 12px 12px 0 0;
|
||
}
|
||
|
||
.dump-header-block {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 1rem;
|
||
}
|
||
|
||
.dump-header-left {
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: center;
|
||
gap: 0.5rem;
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
.dump-header-right {
|
||
flex: 1;
|
||
min-width: 0;
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 0.3rem;
|
||
}
|
||
|
||
.dump-title {
|
||
margin: 0;
|
||
font-size: 1.5rem;
|
||
font-weight: 700;
|
||
line-height: 1.25;
|
||
word-break: break-word;
|
||
}
|
||
|
||
.dump-title-view {
|
||
position: relative;
|
||
display: inline-flex;
|
||
align-items: baseline;
|
||
gap: 0.4rem;
|
||
border-radius: 6px;
|
||
max-width: 100%;
|
||
}
|
||
|
||
.dump-title-view--editable {
|
||
cursor: pointer;
|
||
}
|
||
|
||
.dump-title-view--editable:hover {
|
||
background: var(--color-surface);
|
||
}
|
||
|
||
.dump-title-edit-btn {
|
||
font-size: 0.85rem;
|
||
color: var(--color-muted);
|
||
opacity: 0;
|
||
transition: opacity 0.1s;
|
||
pointer-events: none;
|
||
}
|
||
|
||
.dump-title-view--editable:hover .dump-title-edit-btn {
|
||
opacity: 1;
|
||
}
|
||
|
||
.dump-title-editor {
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
align-items: center;
|
||
gap: 0.5rem;
|
||
}
|
||
|
||
.dump-title-input {
|
||
flex: 1;
|
||
min-width: 12rem;
|
||
padding: 0.4rem 0.6rem;
|
||
border-radius: 8px;
|
||
border: 2px solid var(--color-border);
|
||
background-color: var(--color-bg);
|
||
color: var(--color-text);
|
||
font-size: 1.25rem;
|
||
font-weight: 700;
|
||
font-family: "Saira", sans-serif;
|
||
outline: none;
|
||
}
|
||
|
||
.dump-title-error {
|
||
width: 100%;
|
||
margin: 0;
|
||
font-size: 0.85rem;
|
||
color: var(--color-danger);
|
||
}
|
||
|
||
.dump-comment {
|
||
font-size: 1.05rem;
|
||
line-height: 1.72;
|
||
opacity: 0.85;
|
||
border-left: 3px solid var(--color-accent);
|
||
margin: 0;
|
||
padding: 0.5rem 1rem;
|
||
word-break: break-word;
|
||
}
|
||
|
||
.dump-rich-content {
|
||
padding: 1.25rem;
|
||
background: var(--color-surface);
|
||
border-radius: 0 0 12px 12px;
|
||
}
|
||
|
||
.dump-url-link {
|
||
display: inline-block;
|
||
word-break: break-all;
|
||
padding: 1rem;
|
||
border: 2px solid var(--color-border);
|
||
border-radius: 8px;
|
||
width: 100%;
|
||
box-sizing: border-box;
|
||
}
|
||
|
||
.dump-actions {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 0.75rem;
|
||
}
|
||
|
||
.dump-actions a {
|
||
color: var(--color-text);
|
||
text-decoration: none;
|
||
font-size: 0.9rem;
|
||
opacity: 0.7;
|
||
transition: opacity 0.15s, color 0.15s;
|
||
}
|
||
|
||
.dump-actions a:hover {
|
||
opacity: 1;
|
||
color: var(--color-accent);
|
||
}
|
||
|
||
.dump-actions a:last-child {
|
||
margin-left: auto;
|
||
}
|
||
|
||
/* ── Forms ── */
|
||
|
||
/* Unified form system: `.form` container + `.form-field` / `.form-label` /
|
||
`.form-hint` building blocks, shared by every form. */
|
||
.form {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 1rem;
|
||
}
|
||
|
||
.form-field {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 0.4rem;
|
||
}
|
||
|
||
.form-label {
|
||
font-size: 0.85rem;
|
||
font-weight: 600;
|
||
opacity: 0.6;
|
||
}
|
||
|
||
.form input,
|
||
.form textarea {
|
||
width: 100%;
|
||
box-sizing: border-box;
|
||
padding: 0.65rem 1rem;
|
||
border-radius: 8px;
|
||
border: 2px solid var(--color-border);
|
||
background-color: var(--color-bg);
|
||
color: var(--color-text);
|
||
font-size: 1rem;
|
||
font-family: "Saira", sans-serif;
|
||
font-optical-sizing: auto;
|
||
font-weight: 400;
|
||
font-style: normal;
|
||
line-height: 1.5;
|
||
transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
|
||
outline: none;
|
||
}
|
||
|
||
/* A submit/secondary button placed as a direct child of `.form` (the auth
|
||
forms, which have no action row) spans the full width like the inputs.
|
||
Buttons inside `.form-actions` keep their intrinsic width. */
|
||
.form > .btn-primary,
|
||
.form > .btn-secondary,
|
||
.form > .btn-danger {
|
||
width: 100%;
|
||
}
|
||
|
||
.form textarea {
|
||
resize: vertical;
|
||
}
|
||
|
||
.form input:hover,
|
||
.form textarea:hover {
|
||
border-color: color-mix(
|
||
in srgb,
|
||
var(--color-accent) 45%,
|
||
var(--color-border) 55%
|
||
);
|
||
}
|
||
|
||
.form input:focus,
|
||
.form textarea:focus {
|
||
border-color: var(--color-accent);
|
||
background-color: color-mix(
|
||
in srgb,
|
||
var(--color-accent) 4%,
|
||
var(--color-bg) 96%
|
||
);
|
||
box-shadow: 0 0 0 3px
|
||
color-mix(in srgb, var(--color-accent) 18%, transparent);
|
||
}
|
||
|
||
.form input:disabled,
|
||
.form textarea:disabled {
|
||
opacity: 0.6;
|
||
}
|
||
|
||
.form-hint {
|
||
font-size: 0.8rem;
|
||
opacity: 0.7;
|
||
margin-top: 0.1rem;
|
||
}
|
||
|
||
.form-hint--error {
|
||
color: var(--color-error, #c0392b);
|
||
opacity: 1;
|
||
}
|
||
|
||
.form-success {
|
||
color: var(--color-success, green);
|
||
margin: 0;
|
||
}
|
||
|
||
.dump-create-title-row {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 0.5rem;
|
||
}
|
||
|
||
.dump-create-title-row input {
|
||
flex: 1;
|
||
}
|
||
|
||
.dump-create-title-edit-btn {
|
||
background: none;
|
||
border: none;
|
||
cursor: pointer;
|
||
font-size: 1rem;
|
||
line-height: 1;
|
||
color: var(--color-muted);
|
||
border-radius: 4px;
|
||
padding: 0.4rem;
|
||
transition: color 0.15s;
|
||
}
|
||
|
||
.dump-create-title-edit-btn:hover {
|
||
color: var(--color-text);
|
||
}
|
||
|
||
/* ── New dump form ── */
|
||
.dump-create-wrapper {
|
||
width: 100%;
|
||
max-width: 520px;
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 0.75rem;
|
||
animation: page-enter 0.2s ease both;
|
||
}
|
||
|
||
.dump-create-header {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
gap: 1rem;
|
||
padding: 0 0.25rem;
|
||
}
|
||
|
||
.dump-create-title {
|
||
margin: 0;
|
||
font-size: 1.4rem;
|
||
font-weight: 700;
|
||
}
|
||
|
||
.dump-create-form {
|
||
width: 100%;
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 1.25rem;
|
||
background: var(--color-surface);
|
||
border-radius: 14px;
|
||
border: 1.5px solid var(--color-border);
|
||
padding: 1.5rem;
|
||
}
|
||
|
||
/* ── Mode toggle — segmented control ── */
|
||
.visibility-toggle {
|
||
display: flex;
|
||
background: var(--color-bg);
|
||
border: 1.5px solid var(--color-border);
|
||
border-radius: 9px;
|
||
padding: 3px;
|
||
gap: 2px;
|
||
}
|
||
|
||
.visibility-toggle button {
|
||
flex: 1;
|
||
padding: 0.3rem 0.9rem;
|
||
border-radius: 6px;
|
||
border: none;
|
||
background: transparent;
|
||
color: var(--color-text);
|
||
cursor: pointer;
|
||
font-size: 0.88rem;
|
||
font-weight: 600;
|
||
transition: background 0.15s, color 0.15s;
|
||
white-space: nowrap;
|
||
}
|
||
|
||
.visibility-toggle button.active {
|
||
background: var(--color-accent);
|
||
color: var(--color-on-accent);
|
||
}
|
||
|
||
.visibility-toggle button:not(.active):hover {
|
||
background: color-mix(in srgb, var(--color-accent) 12%, transparent);
|
||
}
|
||
|
||
.file-input-info {
|
||
margin: 0.25rem 0 0;
|
||
font-size: 0.85rem;
|
||
opacity: 0.7;
|
||
}
|
||
|
||
/* ── FileDropZone ── */
|
||
.fdz-wrapper {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 0.4rem;
|
||
}
|
||
|
||
.fdz-label {
|
||
font-size: 0.9rem;
|
||
font-weight: 500;
|
||
}
|
||
|
||
.fdz {
|
||
border: 2px dashed var(--color-border-subtle);
|
||
border-radius: 10px;
|
||
background: var(--color-surface);
|
||
cursor: pointer;
|
||
transition: border-color 0.15s, background 0.15s;
|
||
outline: none;
|
||
}
|
||
|
||
.fdz:hover:not(.fdz--disabled):not(.fdz--filled),
|
||
.fdz:focus-visible {
|
||
border-color: var(--color-accent);
|
||
}
|
||
|
||
.fdz--drag {
|
||
border-color: var(--color-accent);
|
||
background: color-mix(in srgb, var(--color-accent) 8%, var(--color-surface));
|
||
}
|
||
|
||
.fdz--disabled {
|
||
cursor: not-allowed;
|
||
opacity: 0.55;
|
||
}
|
||
|
||
.fdz--filled {
|
||
cursor: default;
|
||
border-style: solid;
|
||
}
|
||
|
||
.fdz__empty {
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: center;
|
||
gap: 0.3rem;
|
||
padding: 2rem 1.5rem;
|
||
user-select: none;
|
||
}
|
||
|
||
.fdz__upload-icon {
|
||
width: 2rem;
|
||
height: 2rem;
|
||
opacity: 0.4;
|
||
margin-bottom: 0.2rem;
|
||
}
|
||
|
||
.fdz__hint {
|
||
margin: 0;
|
||
font-size: 0.9rem;
|
||
font-weight: 500;
|
||
}
|
||
|
||
.fdz__browse {
|
||
margin: 0;
|
||
font-size: 0.85rem;
|
||
color: var(--color-text-secondary);
|
||
}
|
||
|
||
.fdz__browse-link {
|
||
color: var(--color-accent);
|
||
text-decoration: underline;
|
||
text-underline-offset: 2px;
|
||
}
|
||
|
||
.fdz__limit {
|
||
margin: 0.25rem 0 0;
|
||
font-size: 0.78rem;
|
||
color: var(--color-text-muted);
|
||
}
|
||
|
||
.fdz__file {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 0.75rem;
|
||
padding: 0.85rem 1rem;
|
||
}
|
||
|
||
.fdz__file-icon {
|
||
font-size: 1.5rem;
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
.fdz__file-meta {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 0.15rem;
|
||
min-width: 0;
|
||
flex: 1;
|
||
}
|
||
|
||
.fdz__file-name {
|
||
font-size: 0.9rem;
|
||
font-weight: 600;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
}
|
||
|
||
.fdz__file-size {
|
||
font-size: 0.78rem;
|
||
color: var(--color-text-muted);
|
||
}
|
||
|
||
.fdz__clear {
|
||
flex-shrink: 0;
|
||
background: none;
|
||
border: none;
|
||
cursor: pointer;
|
||
color: var(--color-text-muted);
|
||
font-size: 0.8rem;
|
||
padding: 0.3rem 0.5rem;
|
||
border-radius: 4px;
|
||
transition: color 0.12s, background 0.12s;
|
||
line-height: 1;
|
||
}
|
||
|
||
.fdz__clear:hover {
|
||
color: var(--color-text);
|
||
background: var(--color-border-subtle);
|
||
}
|
||
|
||
/* ── Local file / URL preview (DumpCreate) ── */
|
||
.local-preview-image {
|
||
width: 100%;
|
||
max-height: 320px;
|
||
object-fit: contain;
|
||
border-radius: 10px;
|
||
background: var(--color-bg);
|
||
display: block;
|
||
}
|
||
|
||
.local-preview-generic {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 0.75rem;
|
||
padding: 0.85rem 1rem;
|
||
border-radius: 10px;
|
||
background: var(--color-bg);
|
||
border: 2px solid var(--color-border);
|
||
}
|
||
|
||
.local-preview-icon {
|
||
font-size: 1.5rem;
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
.local-preview-name {
|
||
font-weight: 600;
|
||
font-size: 0.95rem;
|
||
min-width: 0;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
}
|
||
|
||
.local-preview-size {
|
||
margin-left: auto;
|
||
font-size: 0.8rem;
|
||
opacity: 0.5;
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
.preview-loading {
|
||
margin: 0;
|
||
font-size: 0.85rem;
|
||
opacity: 0.5;
|
||
font-style: italic;
|
||
}
|
||
|
||
/* File previews (Dump page) */
|
||
.file-preview-image {
|
||
max-width: 100%;
|
||
border-radius: 8px;
|
||
display: block;
|
||
}
|
||
|
||
.file-preview-play-btn {
|
||
position: relative;
|
||
width: 100%;
|
||
padding: 0;
|
||
border: none;
|
||
background: #000;
|
||
cursor: pointer;
|
||
display: block;
|
||
border-radius: 8px;
|
||
overflow: hidden;
|
||
}
|
||
|
||
.file-preview-video-thumb {
|
||
width: 100%;
|
||
max-height: 480px;
|
||
object-fit: contain;
|
||
display: block;
|
||
}
|
||
|
||
.file-preview-play-btn .rich-content-play-overlay {
|
||
font-size: 3rem;
|
||
}
|
||
|
||
.audio-file-preview {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 0.75rem;
|
||
padding: 0.75rem 1rem;
|
||
background: color-mix(
|
||
in srgb,
|
||
var(--color-accent) 8%,
|
||
var(--color-surface) 92%
|
||
);
|
||
border: 2px solid var(--color-border);
|
||
border-radius: 0 0 12px 12px;
|
||
}
|
||
|
||
.audio-file-preview--active .waveform-bar {
|
||
fill: var(--color-accent);
|
||
}
|
||
|
||
.audio-file-preview--active .audio-player-btn {
|
||
background: var(--color-accent-hover);
|
||
}
|
||
|
||
.file-preview-audio-btn {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 0.75rem;
|
||
padding: 1rem 1.25rem;
|
||
border: 2px solid var(--color-border);
|
||
border-radius: 10px;
|
||
background: var(--color-bg);
|
||
cursor: pointer;
|
||
color: var(--color-text);
|
||
width: 100%;
|
||
font-size: 0.95rem;
|
||
transition: border-color 0.15s;
|
||
}
|
||
|
||
.file-preview-audio-btn:hover {
|
||
border-color: var(--color-accent);
|
||
}
|
||
|
||
.file-preview-audio-icon {
|
||
font-size: 1.5rem;
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
.file-preview-audio-label {
|
||
flex: 1;
|
||
min-width: 0;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
text-align: left;
|
||
}
|
||
|
||
.file-preview-audio-play {
|
||
flex-shrink: 0;
|
||
opacity: 0.5;
|
||
}
|
||
|
||
/* ── Video player ── */
|
||
.video-player {
|
||
width: 100%;
|
||
border-radius: 0 0 12px 12px;
|
||
overflow: hidden;
|
||
border: 2px solid var(--color-border);
|
||
position: relative;
|
||
}
|
||
|
||
.video-player-video {
|
||
width: 100%;
|
||
max-height: 480px;
|
||
object-fit: contain;
|
||
display: block;
|
||
cursor: pointer;
|
||
}
|
||
|
||
.video-player:not(.video-player--controls-visible) .video-player-video {
|
||
cursor: none;
|
||
}
|
||
|
||
.video-player .video-player-controls {
|
||
position: absolute;
|
||
bottom: 0;
|
||
left: 0;
|
||
right: 0;
|
||
border-radius: 0;
|
||
border: none;
|
||
background: linear-gradient(transparent, rgba(0, 0, 0, 0.38));
|
||
color: var(--color-on-accent);
|
||
opacity: 0;
|
||
pointer-events: none;
|
||
transition: opacity 0.25s ease;
|
||
}
|
||
|
||
.video-player--controls-visible .video-player-controls {
|
||
opacity: 1;
|
||
pointer-events: auto;
|
||
}
|
||
|
||
.video-player-controls .audio-player-time {
|
||
color: var(--color-on-accent);
|
||
opacity: 0.85;
|
||
}
|
||
|
||
.video-player-controls .audio-player-vol-btn {
|
||
color: var(--color-on-accent);
|
||
}
|
||
|
||
.video-player-controls .audio-player-track {
|
||
background: rgba(255, 255, 255, 0.25);
|
||
}
|
||
|
||
.video-player-controls .audio-player-btn {
|
||
background: rgba(255, 255, 255, 0.2);
|
||
backdrop-filter: blur(4px);
|
||
}
|
||
|
||
.video-player-controls .audio-player-btn:hover {
|
||
background: rgba(255, 255, 255, 0.35);
|
||
}
|
||
|
||
/* ── Custom audio player ── */
|
||
.audio-player {
|
||
display: flex;
|
||
align-items: center;
|
||
flex-wrap: nowrap;
|
||
gap: 0.6rem;
|
||
padding: 0.75rem 1rem;
|
||
background: color-mix(
|
||
in srgb,
|
||
var(--color-accent) 8%,
|
||
var(--color-surface) 92%
|
||
);
|
||
border-radius: 0 0 12px 12px;
|
||
border: 2px solid var(--color-border);
|
||
width: 100%;
|
||
box-sizing: border-box;
|
||
min-width: 0;
|
||
overflow: hidden;
|
||
}
|
||
|
||
.audio-player-btn {
|
||
flex-shrink: 0;
|
||
width: 2.2rem;
|
||
height: 2.2rem;
|
||
border-radius: 50%;
|
||
border: none;
|
||
background: var(--color-accent);
|
||
color: var(--color-on-accent);
|
||
cursor: pointer;
|
||
display: grid;
|
||
place-items: center;
|
||
padding: 0.45rem;
|
||
transition: background 0.15s, transform 0.1s;
|
||
}
|
||
|
||
.audio-player-btn:hover {
|
||
background: var(--color-accent-hover);
|
||
transform: scale(1.08);
|
||
}
|
||
|
||
.audio-player-btn svg {
|
||
width: 100%;
|
||
height: 100%;
|
||
display: block;
|
||
}
|
||
|
||
.audio-player-time {
|
||
font-size: 0.78rem;
|
||
font-variant-numeric: tabular-nums;
|
||
opacity: 0.6;
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
.audio-player-track {
|
||
position: relative;
|
||
flex: 1;
|
||
min-width: 48px;
|
||
height: 4px;
|
||
border-radius: 2px;
|
||
background: color-mix(
|
||
in srgb,
|
||
var(--color-accent) 20%,
|
||
var(--color-border) 80%
|
||
);
|
||
}
|
||
|
||
/* ── Waveform ── */
|
||
.waveform-svg {
|
||
flex: 1;
|
||
min-width: 0;
|
||
height: 48px;
|
||
cursor: pointer;
|
||
display: block;
|
||
}
|
||
|
||
.waveform-bar {
|
||
fill: color-mix(in srgb, var(--color-accent) 25%, var(--color-border) 75%);
|
||
}
|
||
|
||
.waveform-bar--played {
|
||
fill: var(--color-accent);
|
||
}
|
||
|
||
.waveform-skeleton {
|
||
flex: 1;
|
||
min-width: 0;
|
||
height: 48px;
|
||
border-radius: 3px;
|
||
background: color-mix(
|
||
in srgb,
|
||
var(--color-accent) 12%,
|
||
var(--color-border) 88%
|
||
);
|
||
position: relative;
|
||
overflow: hidden;
|
||
cursor: pointer;
|
||
}
|
||
|
||
.waveform-skeleton-fill {
|
||
position: absolute;
|
||
inset: 0 auto 0 0;
|
||
background: var(--color-accent);
|
||
opacity: 0.45;
|
||
transition: width 0.1s linear;
|
||
}
|
||
|
||
.audio-player-track--volume {
|
||
flex: 1 1 100px;
|
||
max-width: 120px;
|
||
}
|
||
|
||
.audio-player-fill {
|
||
position: absolute;
|
||
inset: 0 auto 0 0;
|
||
background: var(--color-accent);
|
||
border-radius: 2px;
|
||
pointer-events: none;
|
||
}
|
||
|
||
.audio-player-range {
|
||
position: absolute;
|
||
inset: 0;
|
||
width: 100%;
|
||
height: 100%;
|
||
margin: 0;
|
||
opacity: 0;
|
||
cursor: pointer;
|
||
}
|
||
|
||
.audio-player-volume {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 0.4rem;
|
||
flex-shrink: 1;
|
||
min-width: 0;
|
||
}
|
||
|
||
.audio-player-vol-btn {
|
||
flex-shrink: 0;
|
||
width: 1.4rem;
|
||
height: 1.4rem;
|
||
border: none;
|
||
background: transparent;
|
||
color: var(--color-text);
|
||
cursor: pointer;
|
||
display: grid;
|
||
place-items: center;
|
||
padding: 0;
|
||
opacity: 0.55;
|
||
transition: opacity 0.15s;
|
||
}
|
||
|
||
.audio-player-vol-btn:hover {
|
||
opacity: 1;
|
||
}
|
||
|
||
.audio-player-vol-btn svg {
|
||
width: 100%;
|
||
height: 100%;
|
||
display: block;
|
||
}
|
||
|
||
.file-preview-pdf {
|
||
width: 100%;
|
||
height: 80vh;
|
||
min-height: 600px;
|
||
border-radius: 8px;
|
||
border: 2px solid var(--color-border);
|
||
display: block;
|
||
}
|
||
|
||
.file-download-link {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
gap: 0.5rem;
|
||
padding: 0.75rem 1.5rem;
|
||
border: 2px solid var(--color-accent);
|
||
border-radius: 8px;
|
||
color: var(--color-accent);
|
||
text-decoration: none;
|
||
font-weight: 500;
|
||
transition: background 0.15s, color 0.15s;
|
||
}
|
||
|
||
.file-download-link:hover {
|
||
background: var(--color-accent);
|
||
color: var(--color-on-accent);
|
||
}
|
||
|
||
.dump-file-notice {
|
||
margin: 0 0 0.25rem;
|
||
font-size: 0.9rem;
|
||
opacity: 0.8;
|
||
}
|
||
|
||
.rich-content-card {
|
||
display: flex;
|
||
border: 2px solid var(--color-border);
|
||
border-radius: 10px;
|
||
overflow: hidden;
|
||
transition: border-color 0.2s;
|
||
}
|
||
|
||
.rich-content-card:has(.rich-content-body:hover) {
|
||
border-color: var(--color-accent);
|
||
}
|
||
|
||
.rich-content-card--youtube {
|
||
border-color: var(--color-youtube);
|
||
}
|
||
.rich-content-card--youtube:has(.rich-content-body:hover) {
|
||
border-color: var(--color-youtube-hover);
|
||
}
|
||
.rich-content-card--youtube .rich-content-badge {
|
||
background: var(--color-youtube);
|
||
}
|
||
|
||
.rich-content-card--bandcamp {
|
||
border-color: var(--color-bandcamp);
|
||
}
|
||
.rich-content-card--bandcamp:has(.rich-content-body:hover) {
|
||
border-color: var(--color-bandcamp-hover);
|
||
}
|
||
.rich-content-card--bandcamp .rich-content-badge {
|
||
background: var(--color-bandcamp);
|
||
}
|
||
|
||
.rich-content-card--soundcloud {
|
||
border-color: var(--color-soundcloud);
|
||
}
|
||
.rich-content-card--soundcloud:has(.rich-content-body:hover) {
|
||
border-color: var(--color-soundcloud-hover);
|
||
}
|
||
.rich-content-card--soundcloud .rich-content-badge {
|
||
background: var(--color-soundcloud);
|
||
}
|
||
|
||
/* ── Global persistent player ── */
|
||
.global-player {
|
||
position: fixed;
|
||
bottom: 1rem;
|
||
left: 50%;
|
||
transform: translateX(-50%);
|
||
width: calc(100% - 2.5rem);
|
||
max-width: 860px;
|
||
z-index: 1000;
|
||
background: var(--color-surface);
|
||
border: 2px solid var(--color-border);
|
||
border-radius: 10px;
|
||
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45), 0 2px 8px rgba(0, 0, 0, 0.3);
|
||
animation: player-enter 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) both;
|
||
transition: opacity 0.2s ease, box-shadow 0.2s ease;
|
||
}
|
||
.global-player--reduced {
|
||
opacity: 0.6;
|
||
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
|
||
}
|
||
.global-player--reduced:hover {
|
||
opacity: 1;
|
||
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45), 0 2px 8px rgba(0, 0, 0, 0.3);
|
||
}
|
||
@keyframes player-enter {
|
||
from {
|
||
transform: translateX(-50%) translateY(1.5rem);
|
||
}
|
||
to {
|
||
transform: translateX(-50%) translateY(0);
|
||
}
|
||
}
|
||
.global-player-header {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 0.75rem;
|
||
padding: 0.5rem 1rem;
|
||
}
|
||
.global-player-title {
|
||
flex: 1;
|
||
font-weight: 600;
|
||
font-size: 0.9rem;
|
||
white-space: nowrap;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
}
|
||
.global-player-body {
|
||
display: grid;
|
||
grid-template-rows: 1fr;
|
||
transition: grid-template-rows 0.3s ease;
|
||
}
|
||
.global-player--reduced .global-player-body {
|
||
grid-template-rows: 0fr;
|
||
}
|
||
.global-player-iframe-wrap,
|
||
.global-player-media-wrap {
|
||
overflow: hidden;
|
||
min-height: 0;
|
||
border-radius: 0 0 8px 8px;
|
||
}
|
||
.global-player iframe {
|
||
width: 100%;
|
||
border: none;
|
||
display: block;
|
||
}
|
||
.global-player-iframe--youtube {
|
||
aspect-ratio: 16/9;
|
||
max-height: 40vh;
|
||
}
|
||
.global-player-iframe--soundcloud {
|
||
height: 166px;
|
||
}
|
||
.global-player-iframe--bandcamp {
|
||
height: 120px;
|
||
}
|
||
.global-player.global-player--bandcamp {
|
||
max-width: 600px;
|
||
}
|
||
.feed-loading-more {
|
||
text-align: center;
|
||
padding: 1rem;
|
||
color: var(--color-text-muted);
|
||
font-size: 0.85rem;
|
||
}
|
||
|
||
body.has-player {
|
||
padding-bottom: var(--player-height, 0px);
|
||
}
|
||
body.has-player .fab-new {
|
||
bottom: calc(var(--player-height, 0px) + 1rem);
|
||
}
|
||
.rich-content-thumbnail-btn {
|
||
position: relative;
|
||
padding: 0;
|
||
border: none;
|
||
background: none;
|
||
cursor: pointer;
|
||
display: flex;
|
||
align-self: stretch;
|
||
overflow: hidden;
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
.rich-content-play-overlay {
|
||
position: absolute;
|
||
inset: 0;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
background: rgba(0, 0, 0, 0.25);
|
||
color: #fff;
|
||
font-size: 1.75rem;
|
||
transition: background 0.18s ease;
|
||
}
|
||
|
||
.rich-content-thumbnail-btn:hover .rich-content-play-overlay {
|
||
background: rgba(0, 0, 0, 0.5);
|
||
}
|
||
|
||
.rich-content-thumbnail {
|
||
width: 180px;
|
||
min-width: 180px;
|
||
object-fit: cover;
|
||
display: block;
|
||
}
|
||
|
||
@media (max-width: 512px) {
|
||
.rich-content-card {
|
||
flex-direction: column;
|
||
}
|
||
|
||
.rich-content-thumbnail {
|
||
width: 100%;
|
||
min-width: 0;
|
||
max-height: 180px;
|
||
}
|
||
}
|
||
|
||
.rich-content-body {
|
||
display: flex;
|
||
flex-direction: column;
|
||
text-decoration: none;
|
||
color: var(--color-text);
|
||
gap: 0.4rem;
|
||
padding: 0.9rem 1.1rem;
|
||
flex: 1;
|
||
min-width: 0;
|
||
}
|
||
|
||
.rich-content-badge {
|
||
display: inline-block;
|
||
background: var(--color-youtube);
|
||
color: var(--color-text);
|
||
font-size: 0.7rem;
|
||
font-weight: 700;
|
||
letter-spacing: 0.04em;
|
||
padding: 0.15rem 0.5rem;
|
||
border-radius: 4px;
|
||
align-self: flex-start;
|
||
}
|
||
|
||
.rich-content-title {
|
||
margin: 0;
|
||
font-weight: 600;
|
||
font-size: 1rem;
|
||
line-height: 1.35;
|
||
overflow-wrap: break-word;
|
||
word-break: break-word;
|
||
}
|
||
|
||
.rich-content-description {
|
||
margin: 0;
|
||
font-size: 0.85rem;
|
||
opacity: 0.75;
|
||
display: -webkit-box;
|
||
-webkit-line-clamp: 2;
|
||
line-clamp: 2;
|
||
-webkit-box-orient: vertical;
|
||
overflow: hidden;
|
||
}
|
||
|
||
.rich-content-url {
|
||
font-size: 0.75rem;
|
||
opacity: 0.5;
|
||
white-space: nowrap;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
display: block;
|
||
}
|
||
|
||
.dump-card--fading {
|
||
filter: brightness(0.65);
|
||
}
|
||
|
||
.dump-card--dismissing {
|
||
opacity: 0;
|
||
filter: brightness(0.25);
|
||
grid-template-rows: 0fr;
|
||
pointer-events: none;
|
||
}
|
||
|
||
.rich-content-compact {
|
||
display: flex;
|
||
align-items: center;
|
||
text-decoration: none;
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
.rich-content-compact-thumbnail {
|
||
width: 36px;
|
||
height: 36px;
|
||
object-fit: cover;
|
||
border-radius: 4px;
|
||
border: 1px solid var(--color-border);
|
||
display: block;
|
||
}
|
||
|
||
.rich-content-compact-icon {
|
||
font-size: 1rem;
|
||
opacity: 0.6;
|
||
}
|
||
|
||
.avatar-img {
|
||
object-fit: cover;
|
||
border: 2px solid var(--color-surface);
|
||
border-radius: 50%;
|
||
display: block;
|
||
}
|
||
|
||
.avatar-initials {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
border-radius: 50%;
|
||
background: var(--color-accent);
|
||
color: var(--color-on-accent);
|
||
font-weight: 700;
|
||
user-select: none;
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
/* ── Vote button ── */
|
||
.vote-btn {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
gap: 0.3rem;
|
||
padding: 0.25rem 0.6rem;
|
||
border: 2px solid var(--color-border);
|
||
border-radius: 6px;
|
||
background: transparent;
|
||
color: var(--color-text);
|
||
font-size: 0.85rem;
|
||
font-weight: 600;
|
||
cursor: pointer;
|
||
transition: border-color 0.15s, background 0.15s, color 0.15s;
|
||
white-space: nowrap;
|
||
flex-shrink: 0;
|
||
font-variant-numeric: tabular-nums;
|
||
-webkit-font-smoothing: antialiased;
|
||
}
|
||
|
||
.vote-btn:hover:not(:disabled) {
|
||
border-color: var(--color-accent);
|
||
color: var(--color-accent);
|
||
}
|
||
|
||
.vote-btn--active {
|
||
border-color: var(--color-accent);
|
||
background: var(--color-accent);
|
||
color: var(--color-on-accent);
|
||
}
|
||
|
||
.vote-btn--active:hover:not(:disabled) {
|
||
background: var(--color-accent-hover);
|
||
border-color: var(--color-accent-hover);
|
||
color: var(--color-on-accent);
|
||
}
|
||
|
||
.vote-btn:focus {
|
||
outline: none;
|
||
}
|
||
|
||
.vote-btn:focus-visible {
|
||
box-shadow: 0 0 0 3px
|
||
color-mix(in srgb, var(--color-accent) 35%, transparent);
|
||
}
|
||
|
||
.vote-btn:disabled {
|
||
opacity: 0.5;
|
||
cursor: default;
|
||
}
|
||
|
||
.vote-count-clickable {
|
||
display: inline-block;
|
||
cursor: pointer;
|
||
/* Padding+matching negative margin enlarges the click target without
|
||
shifting layout — the box grows but its visual position is unchanged. */
|
||
padding: 0.4rem;
|
||
margin: -0.4rem;
|
||
}
|
||
|
||
.vote-count-clickable:hover {
|
||
text-decoration: underline;
|
||
}
|
||
|
||
/* ── Dump OP line ── */
|
||
.dump-op {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 0.5rem;
|
||
font-size: 0.85rem;
|
||
opacity: 0.7;
|
||
}
|
||
|
||
.dump-op-link {
|
||
font-weight: 600;
|
||
color: var(--color-text);
|
||
text-decoration: none;
|
||
}
|
||
|
||
.dump-op-link:hover {
|
||
color: var(--color-accent);
|
||
}
|
||
|
||
/* ── Avatar edit overlay ── */
|
||
/* ── ImagePicker (reusable clickable cover image) ── */
|
||
.img-picker {
|
||
position: relative;
|
||
flex-shrink: 0;
|
||
cursor: pointer;
|
||
outline: none;
|
||
}
|
||
|
||
.img-picker-img {
|
||
width: 100%;
|
||
height: 100%;
|
||
object-fit: cover;
|
||
display: block;
|
||
border: 1px solid var(--color-border);
|
||
}
|
||
|
||
.img-picker-placeholder {
|
||
width: 100%;
|
||
height: 100%;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
border: 2px dashed var(--color-border);
|
||
background: var(--color-bg);
|
||
color: var(--color-text);
|
||
font-size: 1.5rem;
|
||
opacity: 0.4;
|
||
box-sizing: border-box;
|
||
}
|
||
|
||
.img-picker-overlay {
|
||
position: absolute;
|
||
inset: 0;
|
||
background: var(--color-overlay);
|
||
color: var(--color-on-accent);
|
||
font-size: 1.1rem;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
opacity: 0;
|
||
transition: opacity 0.15s;
|
||
}
|
||
|
||
.img-picker:hover .img-picker-overlay,
|
||
.img-picker:focus-visible .img-picker-overlay {
|
||
opacity: 1;
|
||
}
|
||
|
||
.profile-avatar-wrapper {
|
||
position: relative;
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
.avatar-change-overlay {
|
||
position: absolute;
|
||
inset: 0;
|
||
border-radius: 50%;
|
||
background: var(--color-overlay);
|
||
color: var(--color-on-accent);
|
||
font-size: 1.1rem;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
opacity: 0;
|
||
cursor: pointer;
|
||
transition: opacity 0.15s;
|
||
}
|
||
|
||
.profile-avatar-wrapper:hover .avatar-change-overlay {
|
||
opacity: 1;
|
||
}
|
||
|
||
/* ── Public profile page ── */
|
||
.profile-header {
|
||
display: flex;
|
||
align-items: flex-start;
|
||
gap: 1.5rem;
|
||
}
|
||
|
||
.profile-info {
|
||
position: relative;
|
||
min-width: 0;
|
||
}
|
||
|
||
.profile-info-scroll {
|
||
overflow-x: auto;
|
||
scrollbar-width: none;
|
||
padding-bottom: 0.25rem;
|
||
padding-right: 0.25rem;
|
||
}
|
||
|
||
.profile-info-scroll::-webkit-scrollbar {
|
||
display: none;
|
||
}
|
||
|
||
/* Fade hint only at narrow viewports where the info column can actually overflow */
|
||
@media (max-width: 600px) {
|
||
.profile-info::after {
|
||
content: "";
|
||
position: absolute;
|
||
top: 0;
|
||
right: 0;
|
||
bottom: 0;
|
||
width: 2rem;
|
||
background: linear-gradient(to right, transparent, var(--color-bg));
|
||
pointer-events: none;
|
||
}
|
||
}
|
||
|
||
.profile-tabs-scroller {
|
||
margin-top: 0.5rem;
|
||
padding-bottom: 0.5rem;
|
||
border-bottom: 2px solid var(--color-border);
|
||
}
|
||
|
||
.profile-columns {
|
||
display: grid;
|
||
grid-template-columns: 1fr;
|
||
gap: 1.5rem;
|
||
}
|
||
|
||
@media (min-width: 900px) {
|
||
.profile-columns {
|
||
grid-template-columns: 1fr 1fr;
|
||
gap: 2rem;
|
||
align-items: start;
|
||
}
|
||
}
|
||
|
||
.profile-section ul {
|
||
list-style: none;
|
||
margin: 0;
|
||
padding: 0;
|
||
}
|
||
|
||
.empty-state {
|
||
margin: 0;
|
||
opacity: 0.5;
|
||
font-size: 0.9rem;
|
||
}
|
||
|
||
/* ── Profile section header (shared between bare h2 and wrapper div) ── */
|
||
.profile-section > h2,
|
||
.profile-section-header {
|
||
margin-bottom: 0.75rem;
|
||
border-bottom: 2px solid var(--color-border);
|
||
padding-bottom: 0.4rem;
|
||
}
|
||
|
||
.profile-section-title {
|
||
margin: 0;
|
||
}
|
||
|
||
.profile-section-header {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
gap: 1rem;
|
||
}
|
||
|
||
/* ── Profile (own) page ── */
|
||
.profile-username {
|
||
margin: 0;
|
||
font-size: 1.25rem;
|
||
font-weight: 600;
|
||
}
|
||
|
||
.profile-header .btn-border {
|
||
margin-top: 0.5rem;
|
||
}
|
||
|
||
.profile-header .follow-btn {
|
||
margin-top: 0.5rem;
|
||
}
|
||
|
||
/* ── Profile description ── */
|
||
.profile-description {
|
||
width: 100%;
|
||
margin-bottom: 1.5rem;
|
||
}
|
||
|
||
.profile-description-view {
|
||
position: relative;
|
||
padding: 0.5rem 0.6rem;
|
||
border-radius: 6px;
|
||
font-size: 0.95rem;
|
||
}
|
||
|
||
.profile-description-view--editable {
|
||
cursor: pointer;
|
||
}
|
||
|
||
.profile-description-view--editable:hover {
|
||
background: var(--color-surface);
|
||
}
|
||
|
||
.profile-description-text {
|
||
white-space: pre-wrap;
|
||
overflow-wrap: break-word;
|
||
word-break: break-word;
|
||
line-height: 1.6;
|
||
}
|
||
|
||
.profile-description-empty {
|
||
color: var(--color-muted);
|
||
font-style: italic;
|
||
}
|
||
|
||
.profile-description-edit-btn {
|
||
position: absolute;
|
||
top: 0.55rem;
|
||
right: 0.5rem;
|
||
font-size: 0.85rem;
|
||
color: var(--color-muted);
|
||
opacity: 0;
|
||
transition: opacity 0.1s;
|
||
pointer-events: none;
|
||
}
|
||
|
||
.profile-description-view--editable:hover .profile-description-edit-btn {
|
||
opacity: 1;
|
||
}
|
||
|
||
.profile-description-editor {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 0.5rem;
|
||
}
|
||
|
||
.profile-email-display {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
gap: 0.35rem;
|
||
font-size: 0.78rem;
|
||
color: var(--color-text-muted);
|
||
margin: 0.1rem 0 0.4rem;
|
||
cursor: pointer;
|
||
border-radius: 4px;
|
||
padding: 0.1rem 0.2rem;
|
||
margin-left: -0.2rem;
|
||
}
|
||
|
||
.profile-email-display:hover {
|
||
background: var(--color-surface);
|
||
}
|
||
|
||
.profile-email-display:hover .profile-description-edit-btn {
|
||
opacity: 1;
|
||
}
|
||
|
||
.profile-email-editor {
|
||
margin: 0.2rem 0 0.4rem;
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 0.4rem;
|
||
}
|
||
|
||
.profile-email-input {
|
||
width: min(260px, 100%);
|
||
padding: 0.35rem 0.6rem;
|
||
border-radius: 6px;
|
||
border: 2px solid var(--color-border);
|
||
background-color: var(--color-bg);
|
||
color: var(--color-text);
|
||
font-size: 0.85rem;
|
||
font-family: inherit;
|
||
line-height: 1.5;
|
||
transition: border-color 0.2s, box-shadow 0.2s;
|
||
outline: none;
|
||
}
|
||
|
||
.profile-email-input:focus {
|
||
border-color: var(--color-accent);
|
||
}
|
||
|
||
.profile-email-actions {
|
||
display: flex;
|
||
gap: 0.4rem;
|
||
}
|
||
|
||
.profile-email-btn {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
height: 1.75rem;
|
||
padding: 0 0.65rem;
|
||
border-radius: 5px;
|
||
border: 1.5px solid;
|
||
font-size: 0.8rem;
|
||
font-family: inherit;
|
||
font-weight: 500;
|
||
cursor: pointer;
|
||
box-sizing: border-box;
|
||
transition: background 0.15s, border-color 0.15s, color 0.15s;
|
||
}
|
||
|
||
.profile-email-btn--save {
|
||
background: var(--color-accent);
|
||
color: var(--color-on-accent);
|
||
border-color: var(--color-accent);
|
||
}
|
||
|
||
.profile-email-btn--save:hover:not(:disabled) {
|
||
background: var(--color-accent-hover);
|
||
border-color: var(--color-accent-hover);
|
||
}
|
||
|
||
.profile-email-btn--save:disabled {
|
||
opacity: 0.45;
|
||
cursor: not-allowed;
|
||
}
|
||
|
||
.profile-email-btn--cancel {
|
||
background: transparent;
|
||
color: var(--color-text-muted);
|
||
border-color: var(--color-border);
|
||
}
|
||
|
||
.profile-email-btn--cancel:hover {
|
||
color: var(--color-text);
|
||
border-color: var(--color-text-muted);
|
||
}
|
||
|
||
.profile-description-actions {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 0.5rem;
|
||
}
|
||
|
||
.profile-invited-by {
|
||
font-size: 0.78rem;
|
||
color: var(--color-text-muted);
|
||
margin: 0.15rem 0 0.4rem;
|
||
}
|
||
.profile-invited-by--founding {
|
||
font-style: italic;
|
||
}
|
||
.profile-invited-by-link {
|
||
color: var(--color-text-muted);
|
||
text-decoration: none;
|
||
font-weight: 600;
|
||
}
|
||
.profile-invited-by-link:hover {
|
||
color: var(--color-accent);
|
||
}
|
||
|
||
.profile-own-actions {
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
gap: 0.5rem;
|
||
margin-top: 0.5rem;
|
||
align-items: center;
|
||
}
|
||
.profile-own-actions .btn-border {
|
||
margin-top: 0;
|
||
}
|
||
.invite-generate {
|
||
display: contents;
|
||
}
|
||
|
||
.invite-btn {
|
||
padding: 0.3rem 0.9rem;
|
||
border: 1.5px solid var(--color-accent);
|
||
border-radius: 6px;
|
||
background: transparent;
|
||
color: var(--color-accent);
|
||
font-size: 0.85rem;
|
||
cursor: pointer;
|
||
transition: background 0.15s, color 0.15s;
|
||
}
|
||
.invite-btn:hover {
|
||
background: var(--color-accent);
|
||
color: var(--color-on-accent);
|
||
}
|
||
|
||
.invite-result {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 0.5rem;
|
||
background: var(--color-surface);
|
||
border: 1px solid var(--color-border-subtle);
|
||
border-radius: 6px;
|
||
padding: 0.3rem 0.5rem 0.3rem 0.75rem;
|
||
max-width: 480px;
|
||
}
|
||
.invite-url {
|
||
font-size: 0.75rem;
|
||
font-family: monospace;
|
||
color: var(--color-text-muted);
|
||
flex: 1;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
}
|
||
.invite-copy-btn {
|
||
padding: 0.2rem 0.65rem;
|
||
border: 1px solid var(--color-border-subtle);
|
||
border-radius: 4px;
|
||
background: transparent;
|
||
color: var(--color-text);
|
||
font-size: 0.75rem;
|
||
cursor: pointer;
|
||
white-space: nowrap;
|
||
flex-shrink: 0;
|
||
transition: background 0.12s;
|
||
}
|
||
.invite-copy-btn:hover {
|
||
background: var(--color-accent);
|
||
color: var(--color-on-accent);
|
||
border-color: var(--color-accent);
|
||
}
|
||
|
||
/* ── Profile sub-pages (dumps / upvoted / playlists) ── */
|
||
.profile-subpage-back {
|
||
display: inline-block;
|
||
font-size: 0.85rem;
|
||
color: var(--color-text-muted);
|
||
text-decoration: none;
|
||
margin-bottom: 0.75rem;
|
||
}
|
||
|
||
.profile-subpage-back:hover {
|
||
color: var(--color-text);
|
||
}
|
||
|
||
.profile-subpage-title-row {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 0.75rem;
|
||
flex-wrap: wrap;
|
||
}
|
||
|
||
.profile-subpage-title {
|
||
margin: 0;
|
||
font-size: 1.4rem;
|
||
font-weight: 700;
|
||
flex: 1;
|
||
}
|
||
|
||
/* ── Profile "View all" link ── */
|
||
.profile-view-all {
|
||
display: inline-block;
|
||
margin-top: 0.75rem;
|
||
font-size: 0.85rem;
|
||
color: var(--color-text-muted);
|
||
text-decoration: none;
|
||
}
|
||
|
||
.profile-view-all:hover {
|
||
color: var(--color-accent);
|
||
}
|
||
|
||
/* ── Border-tinted buttons ── */
|
||
.btn-border-danger,
|
||
.btn-border-success,
|
||
.btn-border {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
padding: 0.3rem 0.9rem;
|
||
border: 1.5px solid var(--color-border);
|
||
border-radius: 6px;
|
||
background: transparent;
|
||
color: var(--color-text-muted);
|
||
font-size: 0.85rem;
|
||
font-family: inherit;
|
||
cursor: pointer;
|
||
transition: border-color 0.15s, color 0.15s, background 0.15s;
|
||
}
|
||
|
||
.btn-border-danger:hover,
|
||
.btn-border-danger.active,
|
||
.btn-border:hover {
|
||
border-color: var(--color-danger);
|
||
color: var(--color-danger);
|
||
}
|
||
|
||
.btn-border-success:hover,
|
||
.btn-border-success.active {
|
||
border-color: var(--color-success);
|
||
color: var(--color-success);
|
||
}
|
||
|
||
/* ── ErrorCard ── */
|
||
.error-card-wrap {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 0.75rem;
|
||
}
|
||
|
||
.error-card {
|
||
display: flex;
|
||
align-items: flex-start;
|
||
gap: 0.6rem;
|
||
background: var(--color-danger-bg);
|
||
color: var(--color-text);
|
||
padding: 0.7rem 1rem;
|
||
border-radius: 8px;
|
||
font-size: 0.9rem;
|
||
}
|
||
|
||
.error-card-icon {
|
||
flex-shrink: 0;
|
||
line-height: 1.45;
|
||
}
|
||
|
||
.error-card-body {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 0.2rem;
|
||
}
|
||
|
||
.error-card-title {
|
||
margin: 0;
|
||
font-size: 0.95rem;
|
||
font-weight: 700;
|
||
}
|
||
|
||
.error-card-message {
|
||
margin: 0;
|
||
line-height: 1.45;
|
||
opacity: 0.85;
|
||
}
|
||
|
||
.error-card-actions {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 1rem;
|
||
flex-wrap: wrap;
|
||
}
|
||
|
||
.app-header-status {
|
||
margin: 1rem auto 0;
|
||
max-width: 860px;
|
||
width: calc(100% - 2rem);
|
||
padding: 0.75rem 1rem;
|
||
border: none;
|
||
border-radius: 10px;
|
||
background: var(--color-danger-bg);
|
||
color: var(--color-text);
|
||
line-height: 1.5;
|
||
overflow-wrap: anywhere;
|
||
word-break: break-word;
|
||
}
|
||
|
||
.app-header-status strong {
|
||
font-size: 0.95rem;
|
||
}
|
||
|
||
.page-error-wrap {
|
||
margin: 2rem auto;
|
||
max-width: 480px;
|
||
width: 100%;
|
||
}
|
||
|
||
.form-error {
|
||
color: var(--color-danger);
|
||
margin: 0;
|
||
font-size: 0.9rem;
|
||
}
|
||
|
||
/* ── Shared layout ── */
|
||
.page-shell {
|
||
display: flex;
|
||
flex-direction: column;
|
||
}
|
||
|
||
.page-content {
|
||
width: 100%;
|
||
max-width: 860px;
|
||
margin: 0 auto;
|
||
padding: 2rem 1.25rem 0;
|
||
box-sizing: border-box;
|
||
animation: page-enter 0.2s ease both;
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 2.5rem;
|
||
}
|
||
|
||
.page-content--centered {
|
||
align-items: center;
|
||
padding-top: 2.5rem;
|
||
}
|
||
|
||
.page-loading {
|
||
text-align: center;
|
||
opacity: 0.6;
|
||
padding: 4rem 1rem;
|
||
}
|
||
|
||
/* ── Shared header ── */
|
||
.app-header {
|
||
position: relative;
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 1rem;
|
||
padding: 0 1.25rem;
|
||
min-height: 3.75rem;
|
||
background: var(--color-surface);
|
||
border-bottom: 2px solid var(--color-border);
|
||
}
|
||
|
||
/* ── Floating "+ New" button ── */
|
||
.fab-new {
|
||
position: fixed;
|
||
bottom: 2rem;
|
||
right: max(1.5rem, calc((100vw - 860px) / 2 + 1.5rem));
|
||
z-index: 20;
|
||
background: var(--color-accent);
|
||
color: var(--color-on-accent);
|
||
border: none;
|
||
border-radius: 999px;
|
||
padding: 0.6rem 1.4rem;
|
||
font-size: 0.95rem;
|
||
font-weight: 700;
|
||
cursor: pointer;
|
||
box-shadow: 0 4px 20px
|
||
color-mix(in srgb, var(--color-accent) 50%, transparent);
|
||
opacity: 0;
|
||
pointer-events: none;
|
||
transform: translateY(10px) scale(0.94);
|
||
transition:
|
||
opacity 0.2s ease,
|
||
transform 0.2s ease,
|
||
background 0.15s,
|
||
box-shadow 0.15s;
|
||
}
|
||
|
||
.fab-new--visible {
|
||
opacity: 1;
|
||
pointer-events: auto;
|
||
transform: none;
|
||
}
|
||
|
||
.fab-new:hover {
|
||
background: var(--color-accent-hover);
|
||
box-shadow: 0 6px 24px
|
||
color-mix(in srgb, var(--color-accent) 60%, transparent);
|
||
transform: translateY(-1px);
|
||
}
|
||
|
||
@media (min-width: 860px) {
|
||
.app-header--has-center {
|
||
display: grid;
|
||
grid-template-columns: auto 1fr auto;
|
||
}
|
||
|
||
.app-header--has-center .app-header-nav {
|
||
grid-column: 3;
|
||
}
|
||
}
|
||
|
||
.app-header-brand {
|
||
font-size: 1.15rem;
|
||
font-weight: 700;
|
||
letter-spacing: -0.01em;
|
||
flex-shrink: 0;
|
||
color: var(--color-text);
|
||
text-decoration: none;
|
||
}
|
||
|
||
.app-header-center {
|
||
display: none;
|
||
align-items: center;
|
||
justify-content: center;
|
||
min-width: 0;
|
||
overflow-x: clip;
|
||
overflow-y: visible;
|
||
container-type: inline-size;
|
||
}
|
||
|
||
@media (min-width: 860px) {
|
||
.app-header-center {
|
||
display: flex;
|
||
}
|
||
|
||
.app-header-center .search-bar-btn {
|
||
display: none;
|
||
}
|
||
}
|
||
|
||
/* Below-header search row — small viewports only */
|
||
.header-search-below {
|
||
display: flex;
|
||
align-items: center;
|
||
padding: 0.5rem 1rem;
|
||
background: var(--color-surface);
|
||
border-bottom: 2px solid var(--color-border);
|
||
}
|
||
|
||
.header-search-below .search-bar {
|
||
flex: 1;
|
||
}
|
||
|
||
.header-search-below .search-bar-input {
|
||
max-width: 100%;
|
||
}
|
||
|
||
@media (min-width: 860px) {
|
||
.header-search-below {
|
||
display: none;
|
||
}
|
||
}
|
||
|
||
/* When the search bar is expanded, immediately clear the rest of the center —
|
||
the expanded input needs the full column width */
|
||
.app-header-center:has(.search-bar--expanded) .index-presence,
|
||
.app-header-center:has(.search-bar--expanded) .feed-sort {
|
||
display: none;
|
||
}
|
||
|
||
.app-header-center:has(.search-bar--expanded) .header-center-slot {
|
||
flex: 1;
|
||
justify-content: center;
|
||
}
|
||
|
||
/* Expanded: pin center absolutely so it aligns with the feed's visual center */
|
||
@media (min-width: 860px) {
|
||
.app-header-center:has(.search-bar--expanded) {
|
||
position: absolute;
|
||
left: 50%;
|
||
transform: translateX(-50%);
|
||
width: 420px;
|
||
pointer-events: auto;
|
||
}
|
||
}
|
||
|
||
/* As the center column shrinks (viewport narrow, search collapsed),
|
||
shed content in order: presence first, then tabs (still in .index-below-header) */
|
||
@container (max-width: 460px) {
|
||
.index-presence {
|
||
display: none;
|
||
}
|
||
}
|
||
|
||
@container (max-width: 280px) {
|
||
.feed-sort {
|
||
display: none;
|
||
}
|
||
}
|
||
|
||
.header-center-slot {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 0.75rem;
|
||
}
|
||
|
||
.app-header-brand:hover {
|
||
color: var(--color-accent);
|
||
}
|
||
|
||
.app-header-nav {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: flex-end;
|
||
gap: 0.6rem;
|
||
margin-left: auto;
|
||
flex-shrink: 0;
|
||
flex-wrap: nowrap;
|
||
}
|
||
|
||
/* Normalize all buttons in the header nav to the same height */
|
||
.app-header-nav button {
|
||
padding: 0.35rem 0.85rem;
|
||
font-size: 0.95rem;
|
||
font-family: inherit;
|
||
line-height: inherit;
|
||
}
|
||
|
||
.app-header-nav .btn-primary {
|
||
padding: 0.35rem 1rem;
|
||
}
|
||
|
||
/* Ghost search button — always visible except when the center search bar is shown */
|
||
.nav-search-btn {
|
||
display: flex;
|
||
align-items: center;
|
||
padding: 0.35rem;
|
||
background: transparent;
|
||
border: none;
|
||
color: inherit;
|
||
text-decoration: none;
|
||
font-size: 1rem;
|
||
cursor: pointer;
|
||
border-radius: 6px;
|
||
}
|
||
|
||
.nav-search-btn:hover {
|
||
background: var(--color-surface);
|
||
}
|
||
|
||
/* Text links — visible only at wide viewports */
|
||
.nav-links {
|
||
display: none;
|
||
align-items: center;
|
||
gap: 0.6rem;
|
||
}
|
||
|
||
@media (min-width: 1150px) {
|
||
.nav-links {
|
||
display: flex;
|
||
}
|
||
}
|
||
|
||
/* Avatar menu — visible only below the text-links breakpoint */
|
||
.nav-compact {
|
||
display: flex;
|
||
align-items: center;
|
||
}
|
||
|
||
@media (min-width: 1150px) {
|
||
.nav-compact {
|
||
display: none;
|
||
}
|
||
}
|
||
|
||
.app-header-user {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
text-decoration: none;
|
||
color: var(--color-text);
|
||
font-weight: 600;
|
||
font-size: 0.95rem;
|
||
padding: 0.35rem 0.85rem;
|
||
border-radius: 8px;
|
||
background: var(--color-header-user-bg);
|
||
transition: background 0.15s;
|
||
}
|
||
|
||
.app-header-user:hover {
|
||
background: var(--color-header-user-bg-hover);
|
||
}
|
||
|
||
/* ── User menu (compact nav) ── */
|
||
.user-menu {
|
||
position: relative;
|
||
}
|
||
|
||
.user-menu-trigger {
|
||
display: flex;
|
||
align-items: center;
|
||
background: transparent;
|
||
border: none;
|
||
border-radius: 8px;
|
||
padding: 0.25rem;
|
||
cursor: pointer;
|
||
transition: background 0.15s;
|
||
}
|
||
|
||
.user-menu-trigger:hover {
|
||
background: var(--color-header-user-bg-hover);
|
||
}
|
||
|
||
.user-menu-dropdown {
|
||
position: absolute;
|
||
top: calc(100% + 0.4rem);
|
||
right: 0;
|
||
min-width: 150px;
|
||
background: var(--color-surface);
|
||
border: 2px solid var(--color-border-subtle);
|
||
border-radius: 10px;
|
||
padding: 0.35rem;
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 0.15rem;
|
||
z-index: 100;
|
||
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
|
||
}
|
||
|
||
.user-menu-item {
|
||
display: block;
|
||
padding: 0.45rem 0.75rem;
|
||
border-radius: 7px;
|
||
text-decoration: none;
|
||
color: var(--color-text);
|
||
font-size: 0.9rem;
|
||
font-weight: 600;
|
||
transition: background 0.12s;
|
||
}
|
||
|
||
.user-menu-item:hover {
|
||
background: var(--color-header-user-bg-hover);
|
||
}
|
||
|
||
.user-list-popover {
|
||
/* position/top/bottom/left/max-height set inline — anchored to the
|
||
trigger's viewport rect, flipping above it when there isn't room below */
|
||
min-width: 180px;
|
||
overflow-y: auto;
|
||
background: var(--color-surface);
|
||
border: 2px solid var(--color-border-subtle);
|
||
border-radius: 10px;
|
||
padding: 0.35rem;
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 0.15rem;
|
||
z-index: 100;
|
||
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
|
||
}
|
||
|
||
.user-list-popover-item {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 0.5rem;
|
||
padding: 0.35rem 0.5rem;
|
||
border-radius: 7px;
|
||
text-decoration: none;
|
||
color: var(--color-text);
|
||
font-size: 0.85rem;
|
||
font-weight: 600;
|
||
transition: background 0.12s;
|
||
}
|
||
|
||
.user-list-popover-item:hover {
|
||
background: var(--color-header-user-bg-hover);
|
||
}
|
||
|
||
.user-list-popover-status {
|
||
margin: 0;
|
||
padding: 0.5rem 0.6rem;
|
||
font-size: 0.8rem;
|
||
color: var(--color-text-muted);
|
||
}
|
||
|
||
.user-list-popover-load-more {
|
||
background: none;
|
||
border: none;
|
||
cursor: pointer;
|
||
padding: 0.4rem 0.6rem;
|
||
font-size: 0.8rem;
|
||
font-weight: 600;
|
||
color: var(--color-accent);
|
||
text-align: left;
|
||
font-family: inherit;
|
||
}
|
||
|
||
.user-list-popover-load-more:disabled {
|
||
opacity: 0.5;
|
||
cursor: default;
|
||
}
|
||
|
||
/* ── Auth card ── */
|
||
.auth-card {
|
||
width: 100%;
|
||
max-width: 360px;
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 1.25rem;
|
||
background: var(--color-surface);
|
||
border: 2px solid var(--color-border);
|
||
border-radius: 12px;
|
||
padding: 2rem;
|
||
}
|
||
|
||
.auth-card-title {
|
||
margin: 0;
|
||
font-size: 1.5rem;
|
||
font-weight: 700;
|
||
text-align: center;
|
||
}
|
||
|
||
.auth-card-footer {
|
||
text-align: center;
|
||
font-size: 0.9rem;
|
||
opacity: 0.7;
|
||
margin: 0;
|
||
}
|
||
|
||
.auth-link-btn {
|
||
background: none;
|
||
border: none;
|
||
padding: 0;
|
||
cursor: pointer;
|
||
color: var(--color-accent);
|
||
font-size: inherit;
|
||
font-family: inherit;
|
||
text-decoration: underline;
|
||
text-underline-offset: 2px;
|
||
}
|
||
|
||
.auth-link-btn:hover {
|
||
opacity: 0.8;
|
||
}
|
||
|
||
.auth-reset-panel {
|
||
border-top: 1px solid var(--color-border-subtle);
|
||
padding-top: 1rem;
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 0.75rem;
|
||
}
|
||
|
||
.auth-reset-form {
|
||
margin: 0;
|
||
}
|
||
|
||
.auth-reset-sent {
|
||
font-size: 0.9rem;
|
||
text-align: center;
|
||
margin: 0;
|
||
opacity: 0.85;
|
||
}
|
||
|
||
/* ── Form pages (DumpCreate / DumpEdit) ── */
|
||
@keyframes page-enter {
|
||
from {
|
||
opacity: 0;
|
||
transform: translateY(10px);
|
||
}
|
||
to {
|
||
opacity: 1;
|
||
transform: none;
|
||
}
|
||
}
|
||
|
||
.form-page {
|
||
display: grid;
|
||
grid-template-columns: 1fr;
|
||
grid-template-rows: auto;
|
||
gap: 3px;
|
||
animation: page-enter 0.2s ease both;
|
||
}
|
||
|
||
@media (min-width: 860px) {
|
||
.form-page--two-col {
|
||
grid-template-columns: 1fr 1fr;
|
||
}
|
||
.form-page--two-col .form-page-header {
|
||
grid-column: 1 / -1;
|
||
}
|
||
.form-page--two-col .dump-edit-preview {
|
||
border-radius: 0 0 0 12px;
|
||
}
|
||
/* Higher specificity than the generic `.form-page .form` below so the
|
||
form's bottom-left stays square where it meets the preview. */
|
||
.form-page.form-page--two-col .form {
|
||
border-radius: 0 0 12px 0;
|
||
}
|
||
}
|
||
|
||
.form-page-header {
|
||
padding: 1.25rem;
|
||
background: var(--color-surface);
|
||
border-radius: 12px 12px 0 0;
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 0.2rem;
|
||
}
|
||
|
||
.form-page-eyebrow {
|
||
margin: 0;
|
||
font-size: 0.78rem;
|
||
font-weight: 600;
|
||
text-transform: uppercase;
|
||
letter-spacing: 0.07em;
|
||
opacity: 0.45;
|
||
}
|
||
|
||
.form-page-title {
|
||
margin: 0;
|
||
font-size: 1.4rem;
|
||
font-weight: 700;
|
||
word-break: break-word;
|
||
}
|
||
|
||
.dump-edit-preview {
|
||
padding: 1.25rem;
|
||
background: var(--color-surface);
|
||
overflow: hidden;
|
||
border-radius: 0 0 12px 12px;
|
||
}
|
||
|
||
.dump-edit-refresh {
|
||
margin-top: 0.75rem;
|
||
}
|
||
|
||
.dump-edit-thumbnail-row {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 0.75rem;
|
||
}
|
||
|
||
.form-page .form {
|
||
background: var(--color-surface);
|
||
border-radius: 0 0 12px 12px;
|
||
padding: 1.25rem;
|
||
}
|
||
|
||
.form-actions {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
padding-top: 0.75rem;
|
||
border-top: 1px solid var(--color-border-subtle);
|
||
margin-top: 0.5rem;
|
||
gap: 0.75rem;
|
||
}
|
||
|
||
.form-actions-right {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 0.75rem;
|
||
margin-left: auto;
|
||
}
|
||
|
||
/* Subtle text action. Resets the global <button> chrome so it looks the same
|
||
whether rendered as a <button> (modal/page forms) or a <Link> (DumpEdit). */
|
||
.form-cancel {
|
||
background: none;
|
||
border: none;
|
||
padding: 0;
|
||
cursor: pointer;
|
||
font-size: 0.9rem;
|
||
color: var(--color-text);
|
||
opacity: 0.6;
|
||
text-decoration: none;
|
||
transition: opacity 0.15s;
|
||
}
|
||
|
||
.form-cancel:hover {
|
||
opacity: 1;
|
||
}
|
||
|
||
/* ── Buttons ── */
|
||
.btn-primary,
|
||
.btn-secondary,
|
||
.btn-danger {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
gap: 0.25em;
|
||
white-space: nowrap;
|
||
cursor: pointer;
|
||
border-radius: 8px;
|
||
font-family: inherit;
|
||
font-size: 0.9rem;
|
||
font-weight: 600;
|
||
padding: 0.4rem 1rem;
|
||
transition:
|
||
background 0.15s,
|
||
color 0.15s,
|
||
border-color 0.15s,
|
||
box-shadow 0.15s,
|
||
transform 0.1s;
|
||
}
|
||
|
||
.btn-primary {
|
||
background: var(--color-accent);
|
||
color: var(--color-on-accent);
|
||
border: none;
|
||
box-shadow: 0 2px 8px
|
||
color-mix(in srgb, var(--color-accent) 40%, transparent);
|
||
}
|
||
|
||
.btn-primary:hover {
|
||
background: var(--color-accent-hover);
|
||
box-shadow: 0 4px 14px
|
||
color-mix(in srgb, var(--color-accent) 50%, transparent);
|
||
transform: translateY(-1px);
|
||
}
|
||
|
||
.btn-primary:active {
|
||
transform: translateY(0);
|
||
box-shadow: none;
|
||
}
|
||
|
||
.btn-primary:disabled {
|
||
opacity: 0.45;
|
||
cursor: not-allowed;
|
||
pointer-events: none;
|
||
}
|
||
|
||
.btn-secondary {
|
||
background: none;
|
||
border: 1px solid var(--color-border);
|
||
color: var(--color-text);
|
||
}
|
||
|
||
.btn-secondary:hover {
|
||
border-color: var(--color-accent);
|
||
color: var(--color-accent);
|
||
}
|
||
|
||
.btn-danger {
|
||
background: var(--color-danger-bg);
|
||
color: var(--color-text);
|
||
border: none;
|
||
}
|
||
|
||
.btn-danger:hover {
|
||
background: var(--color-danger-hover);
|
||
}
|
||
|
||
/* ── Ghost icon buttons (shared base) ── */
|
||
.modal-close-btn,
|
||
.playlist-remove-btn,
|
||
.playlist-card-delete-btn {
|
||
background: none;
|
||
border: none;
|
||
cursor: pointer;
|
||
line-height: 1;
|
||
border-radius: 4px;
|
||
transition: opacity 0.15s, color 0.15s;
|
||
}
|
||
|
||
/* ── Index page ── */
|
||
.index-page {
|
||
display: flex;
|
||
flex-direction: column;
|
||
animation: page-enter 0.2s ease both;
|
||
}
|
||
|
||
.index-presence {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 0;
|
||
}
|
||
|
||
@media (min-width: 860px) {
|
||
.index-page .dump-feed {
|
||
margin-top: 1rem;
|
||
}
|
||
}
|
||
|
||
.index-presence-avatar {
|
||
display: block;
|
||
flex-shrink: 0;
|
||
margin-left: -10px;
|
||
transition: margin-left 0.2s ease, transform 0.2s ease;
|
||
position: relative;
|
||
}
|
||
|
||
.index-presence-avatar:first-child {
|
||
margin-left: 0;
|
||
}
|
||
|
||
.index-presence:hover .index-presence-avatar {
|
||
margin-left: 4px;
|
||
}
|
||
|
||
.index-presence:hover .index-presence-avatar:first-child {
|
||
margin-left: 0;
|
||
}
|
||
|
||
.index-presence-avatar:hover {
|
||
transform: translateY(-3px) scale(1.12);
|
||
z-index: 2;
|
||
}
|
||
|
||
.index-status {
|
||
text-align: center;
|
||
opacity: 0.6;
|
||
padding: 3rem 1rem;
|
||
}
|
||
|
||
/* ── Below-header strip (presence + sort on narrow viewports) ── */
|
||
.index-below-header {
|
||
display: flex;
|
||
flex-direction: row;
|
||
align-items: center;
|
||
margin-top: 0.5rem;
|
||
gap: 0.75rem;
|
||
padding: 0.6rem 1.25rem 0.4rem;
|
||
max-width: 860px;
|
||
width: 100%;
|
||
box-sizing: border-box;
|
||
align-self: center;
|
||
}
|
||
|
||
@media (min-width: 860px) {
|
||
.index-below-header {
|
||
display: none;
|
||
}
|
||
}
|
||
|
||
/* ── Feed sort scroller + buttons ── */
|
||
|
||
/* Wrapper: constrains width, clips scroll overflow, and carries the gradient hint */
|
||
.feed-sort-scroller {
|
||
position: relative;
|
||
min-width: 0;
|
||
overflow: hidden;
|
||
}
|
||
|
||
/* Right-edge gradient: absolutely positioned over the scroll container,
|
||
always at the viewport-right edge regardless of scroll position */
|
||
.feed-sort-scroller::after {
|
||
content: "";
|
||
position: absolute;
|
||
top: 0;
|
||
right: 0;
|
||
bottom: 0;
|
||
width: 2rem;
|
||
background: linear-gradient(to right, transparent, var(--color-bg));
|
||
pointer-events: none;
|
||
}
|
||
|
||
/* In the app header the tabs never overflow — suppress the gradient there */
|
||
.app-header .feed-sort-scroller::after {
|
||
display: none;
|
||
}
|
||
|
||
/* In the index below-header the scroller should fill the available row width */
|
||
.index-below-header .feed-sort-scroller {
|
||
flex: 1;
|
||
}
|
||
|
||
.feed-sort {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 0.4rem;
|
||
overflow-x: auto;
|
||
scrollbar-width: none;
|
||
padding-bottom: 0.3rem;
|
||
padding-right: 0.25rem;
|
||
min-width: 0;
|
||
}
|
||
|
||
.feed-sort::-webkit-scrollbar {
|
||
display: none;
|
||
}
|
||
|
||
.feed-sort-btn {
|
||
padding: 0.25rem 0.8rem;
|
||
border-radius: 6px;
|
||
border: 2px solid var(--color-border);
|
||
background: transparent;
|
||
color: var(--color-text-secondary);
|
||
cursor: pointer;
|
||
font-size: 0.8rem;
|
||
font-weight: 600;
|
||
letter-spacing: 0.04em;
|
||
text-transform: uppercase;
|
||
transition: border-color 0.15s, background 0.15s, color 0.15s;
|
||
white-space: nowrap;
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
.feed-sort-btn.active {
|
||
border-color: var(--color-accent);
|
||
background: var(--color-accent);
|
||
color: var(--color-on-accent);
|
||
}
|
||
|
||
/* ── Dump feed ── */
|
||
@keyframes card-enter {
|
||
from {
|
||
opacity: 0;
|
||
transform: translateY(10px);
|
||
}
|
||
to {
|
||
opacity: 1;
|
||
transform: translateY(0);
|
||
}
|
||
}
|
||
|
||
.index-page .error-card-wrap {
|
||
max-width: 860px;
|
||
width: 100%;
|
||
padding: 1rem 1.25rem 0;
|
||
box-sizing: border-box;
|
||
align-self: center;
|
||
}
|
||
|
||
.dump-feed {
|
||
list-style: none;
|
||
margin: 0;
|
||
padding: 1rem 1.25rem 0;
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 1rem;
|
||
max-width: 860px;
|
||
width: 100%;
|
||
box-sizing: border-box;
|
||
align-self: center;
|
||
}
|
||
|
||
.dump-feed > li {
|
||
animation: card-enter 0.2s ease both;
|
||
}
|
||
|
||
/* ── Shared card skin (dump-card + playlist-card) ── */
|
||
.dump-card,
|
||
.playlist-card {
|
||
border: 2px solid var(--color-border);
|
||
border-radius: 10px;
|
||
background: var(--color-surface);
|
||
min-width: 0;
|
||
}
|
||
|
||
.dump-card:hover,
|
||
.playlist-card:hover {
|
||
border-color: var(--color-accent);
|
||
}
|
||
|
||
/* Card-specific layout */
|
||
.dump-card {
|
||
display: grid;
|
||
grid-template-rows: 1fr;
|
||
transition:
|
||
border-color 0.15s,
|
||
grid-template-rows 0.32s ease,
|
||
opacity 0.25s ease,
|
||
filter 0.3s ease;
|
||
}
|
||
|
||
.playlist-card {
|
||
position: relative;
|
||
transition: border-color 0.15s;
|
||
}
|
||
|
||
/* ── Shared card inner layout ── */
|
||
.dump-card-inner,
|
||
.playlist-card-inner {
|
||
overflow: hidden;
|
||
min-height: 0;
|
||
display: flex;
|
||
align-items: flex-start;
|
||
gap: 0.75rem;
|
||
padding: 0.75rem 1rem;
|
||
min-width: 0;
|
||
cursor: pointer;
|
||
}
|
||
|
||
/* Desktop: wrapper is transparent — preview and vote become direct flex items of dump-card-inner */
|
||
.dump-card-left {
|
||
display: contents;
|
||
}
|
||
|
||
/* With display:contents, all three are siblings in dump-card-inner's flex context.
|
||
DOM order is: preview, vote, body — use order to restore: preview, body, vote. */
|
||
.dump-card-body {
|
||
order: 1;
|
||
margin-left: 0.25rem; /* total gap to preview = container gap (0.75) + this = 1rem */
|
||
}
|
||
|
||
.dump-card-vote {
|
||
order: 2;
|
||
}
|
||
|
||
@media (max-width: 512px) {
|
||
.dump-card-inner,
|
||
.playlist-card-inner {
|
||
gap: 0.5rem;
|
||
padding: 0.6rem 0.75rem;
|
||
}
|
||
|
||
/* Reset flex order and margin — narrow mode uses dump-card-left as a real flex container */
|
||
.dump-card-body,
|
||
.dump-card-vote {
|
||
order: 0;
|
||
}
|
||
|
||
/* Left column: preview + vote stacked with fixed gap, independent of body height */
|
||
.dump-card-left {
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: center;
|
||
justify-content: center;
|
||
gap: 0.5rem;
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
.dump-card-body {
|
||
align-self: center;
|
||
}
|
||
|
||
.dump-card-meta {
|
||
flex-direction: column;
|
||
gap: 0.1rem;
|
||
}
|
||
|
||
.dump-card-comment {
|
||
display: none;
|
||
}
|
||
|
||
.playlist-card-description {
|
||
display: none;
|
||
}
|
||
}
|
||
|
||
/* ── Shared card preview thumbnail ── */
|
||
.dump-card-preview,
|
||
.playlist-card-preview {
|
||
flex-shrink: 0;
|
||
width: 48px;
|
||
height: 48px;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
border-radius: 6px;
|
||
overflow: hidden;
|
||
background: var(--color-bg);
|
||
transition: transform 0.18s ease, box-shadow 0.18s ease;
|
||
}
|
||
|
||
.dump-card-inner:hover .dump-card-preview,
|
||
.playlist-card-inner:hover .playlist-card-preview {
|
||
transform: scale(1.08);
|
||
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
|
||
}
|
||
|
||
/* ── Shared card preview icon ── */
|
||
.dump-card-preview-icon,
|
||
.playlist-card-icon {
|
||
font-size: 1.4rem;
|
||
opacity: 0.7;
|
||
line-height: 1;
|
||
}
|
||
|
||
/* Fill the 48×48 preview box and center content for media buttons */
|
||
.dump-card-preview .rich-content-thumbnail-btn {
|
||
width: 100%;
|
||
height: 100%;
|
||
align-items: center;
|
||
justify-content: center;
|
||
}
|
||
|
||
.dump-card-preview .rich-content-compact {
|
||
width: 48px;
|
||
height: 48px;
|
||
justify-content: center;
|
||
}
|
||
|
||
.dump-card-preview .rich-content-compact-thumbnail {
|
||
width: 48px;
|
||
height: 48px;
|
||
object-fit: contain;
|
||
border-radius: 0;
|
||
border: none;
|
||
}
|
||
|
||
/* ── Shared card body ── */
|
||
.dump-card-body,
|
||
.playlist-card-body {
|
||
flex: 1;
|
||
min-width: 0;
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 0.2rem;
|
||
margin-left: 0.25rem;
|
||
}
|
||
|
||
/* ── Shared card title link ── */
|
||
.dump-card-title,
|
||
.playlist-card-title {
|
||
font-weight: 600;
|
||
font-size: 1rem;
|
||
color: var(--color-text);
|
||
text-decoration: none;
|
||
word-break: break-word;
|
||
transition: color 0.15s;
|
||
line-height: 1.35;
|
||
}
|
||
|
||
.dump-card-inner:hover .dump-card-title,
|
||
.playlist-card-inner:hover .playlist-card-title {
|
||
color: var(--color-accent);
|
||
}
|
||
|
||
/* ── Unread dot ── */
|
||
.unread-dot {
|
||
display: inline-block;
|
||
width: 7px;
|
||
height: 7px;
|
||
border-radius: 50%;
|
||
background: var(--color-accent);
|
||
vertical-align: baseline;
|
||
position: relative;
|
||
top: -0.15em;
|
||
margin-right: 0.4em;
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
/* ── Shared card description / comment ── */
|
||
.dump-card-comment,
|
||
.playlist-card-description {
|
||
margin: 0;
|
||
font-size: 0.85rem;
|
||
opacity: 0.65;
|
||
word-break: break-word;
|
||
line-height: 1.4;
|
||
display: -webkit-box;
|
||
-webkit-box-orient: vertical;
|
||
overflow: hidden;
|
||
}
|
||
|
||
.dump-card-comment {
|
||
-webkit-line-clamp: 3;
|
||
line-clamp: 3;
|
||
}
|
||
|
||
.playlist-card-description {
|
||
-webkit-line-clamp: 2;
|
||
line-clamp: 3;
|
||
}
|
||
|
||
/* ── Shared card meta row ── */
|
||
.dump-card-date,
|
||
.playlist-card-meta {
|
||
font-size: 0.78rem;
|
||
opacity: 0.45;
|
||
margin-top: 0.2rem;
|
||
}
|
||
|
||
.dump-card-meta {
|
||
display: flex;
|
||
align-items: baseline;
|
||
gap: 0.5rem;
|
||
margin-top: 0.2rem;
|
||
}
|
||
|
||
.dump-card-date {
|
||
margin-top: 0;
|
||
}
|
||
|
||
.dump-edited-label,
|
||
.playlist-edited-label {
|
||
font-size: 0.72rem;
|
||
opacity: 0.5;
|
||
font-style: italic;
|
||
}
|
||
|
||
.playlist-card-meta {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 0.6rem;
|
||
}
|
||
|
||
@media (max-width: 512px) {
|
||
.playlist-card-meta {
|
||
flex-direction: column;
|
||
align-items: flex-start;
|
||
gap: 0.1rem;
|
||
}
|
||
}
|
||
|
||
.dump-card-vote {
|
||
flex-shrink: 0;
|
||
align-self: center;
|
||
}
|
||
|
||
@media (max-width: 512px) {
|
||
.index-below-header .index-presence {
|
||
display: none;
|
||
}
|
||
}
|
||
|
||
@media (max-width: 512px) {
|
||
.app-header-brand-name {
|
||
display: none;
|
||
}
|
||
|
||
.btn-new-label {
|
||
display: none;
|
||
}
|
||
}
|
||
|
||
/* ── Playlist card image thumbnail ── */
|
||
.playlist-card-img {
|
||
width: 100%;
|
||
height: 100%;
|
||
object-fit: cover;
|
||
display: block;
|
||
}
|
||
|
||
/* ── Playlist badge ── */
|
||
.playlist-badge {
|
||
display: inline-block;
|
||
font-size: 0.7rem;
|
||
font-weight: 600;
|
||
text-transform: uppercase;
|
||
letter-spacing: 0.05em;
|
||
padding: 0.1rem 0.45rem;
|
||
border-radius: 4px;
|
||
background: color-mix(in srgb, var(--color-accent) 20%, transparent);
|
||
color: var(--color-accent);
|
||
}
|
||
|
||
.playlist-badge--private {
|
||
background: color-mix(in srgb, var(--color-text-muted) 20%, transparent);
|
||
color: var(--color-text-muted);
|
||
}
|
||
|
||
/* ── Playlist card dump count ── */
|
||
.playlist-card-count {
|
||
opacity: 0.7;
|
||
}
|
||
.playlist-card-owner {
|
||
color: inherit;
|
||
text-decoration: none;
|
||
font-weight: 600;
|
||
}
|
||
.playlist-card-owner:hover {
|
||
color: var(--color-accent);
|
||
}
|
||
|
||
/* ── Playlist card delete button ── */
|
||
.playlist-card-delete-btn {
|
||
position: absolute;
|
||
top: 0.4rem;
|
||
right: 0.4rem;
|
||
color: var(--color-text);
|
||
opacity: 0;
|
||
font-size: 0.8rem;
|
||
padding: 0.2rem 0.35rem;
|
||
}
|
||
|
||
.playlist-card:hover .playlist-card-delete-btn {
|
||
opacity: 0.4;
|
||
}
|
||
|
||
.playlist-card-delete-btn:hover {
|
||
opacity: 1 !important;
|
||
color: var(--color-danger);
|
||
}
|
||
|
||
/* ── Modal (shared) ── */
|
||
.modal-backdrop {
|
||
position: fixed;
|
||
inset: 0;
|
||
background: var(--color-overlay);
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
z-index: 1000;
|
||
padding: 1rem;
|
||
}
|
||
|
||
/* Shared modal box surface */
|
||
.modal-card,
|
||
.confirm-modal {
|
||
background: var(--color-surface);
|
||
border-radius: 12px;
|
||
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
|
||
width: 100%;
|
||
}
|
||
|
||
.modal-card {
|
||
max-width: 420px;
|
||
max-height: 80vh;
|
||
display: flex;
|
||
flex-direction: column;
|
||
}
|
||
|
||
.modal-card--wide {
|
||
max-width: 600px;
|
||
}
|
||
|
||
.dump-create-success {
|
||
margin-bottom: 1rem;
|
||
font-size: 0.95rem;
|
||
color: var(--color-text-muted);
|
||
}
|
||
|
||
.dump-create-success a {
|
||
color: var(--color-accent);
|
||
font-weight: 600;
|
||
}
|
||
|
||
.confirm-modal {
|
||
max-width: 340px;
|
||
padding: 1.5rem 1.25rem 1.25rem;
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 1.25rem;
|
||
}
|
||
|
||
.modal-header {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
padding: 1rem 1.25rem;
|
||
border-bottom: 1px solid var(--color-border-subtle);
|
||
}
|
||
|
||
.modal-title {
|
||
font-weight: 700;
|
||
font-size: 1rem;
|
||
}
|
||
|
||
.modal-close-btn {
|
||
color: var(--color-text);
|
||
font-size: 1rem;
|
||
opacity: 0.6;
|
||
padding: 0.25rem;
|
||
}
|
||
|
||
.modal-close-btn:hover {
|
||
opacity: 1;
|
||
}
|
||
|
||
.modal-body {
|
||
padding: 1rem 1.25rem;
|
||
flex: 1 1 auto;
|
||
min-height: 0;
|
||
overflow-y: auto;
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 0.75rem;
|
||
}
|
||
|
||
.confirm-modal-message {
|
||
margin: 0;
|
||
font-size: 0.95rem;
|
||
line-height: 1.5;
|
||
}
|
||
|
||
.confirm-modal-actions {
|
||
display: flex;
|
||
justify-content: flex-end;
|
||
gap: 0.6rem;
|
||
}
|
||
|
||
/* ── Membership rows ── */
|
||
.playlist-membership-list {
|
||
list-style: none;
|
||
padding: 0;
|
||
margin: 0;
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 0.25rem;
|
||
overflow-y: auto;
|
||
max-height: 40vh;
|
||
}
|
||
|
||
.playlist-membership-row {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 0.75rem;
|
||
padding: 0.6rem 0.75rem;
|
||
border-radius: 8px;
|
||
cursor: pointer;
|
||
transition: background 0.15s;
|
||
}
|
||
|
||
.playlist-membership-row:hover {
|
||
background: color-mix(in srgb, var(--color-accent) 10%, transparent);
|
||
}
|
||
|
||
.playlist-membership-row--active {
|
||
background: color-mix(in srgb, var(--color-accent) 12%, transparent);
|
||
}
|
||
|
||
.playlist-membership-name {
|
||
flex: 1;
|
||
min-width: 0;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
}
|
||
|
||
.playlist-membership-check {
|
||
font-size: 1rem;
|
||
color: var(--color-accent);
|
||
width: 1.2rem;
|
||
text-align: center;
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
/* ── Inline new-playlist form ── */
|
||
.modal-new-playlist-toggle {
|
||
background: none;
|
||
border: 1px dashed var(--color-border-subtle);
|
||
border-radius: 8px;
|
||
color: var(--color-accent);
|
||
cursor: pointer;
|
||
padding: 0.6rem 1rem;
|
||
font-size: 0.9rem;
|
||
text-align: left;
|
||
width: 100%;
|
||
transition: border-color 0.15s, background 0.15s;
|
||
}
|
||
|
||
.modal-new-playlist-toggle:hover {
|
||
border-color: var(--color-accent);
|
||
background: color-mix(in srgb, var(--color-accent) 8%, transparent);
|
||
}
|
||
|
||
|
||
/* ── Playlist detail page ── */
|
||
.playlist-detail-header {
|
||
background: var(--color-surface);
|
||
border-radius: 12px;
|
||
padding: 1.25rem;
|
||
}
|
||
|
||
.playlist-detail-header-top {
|
||
display: flex;
|
||
align-items: flex-start;
|
||
gap: 1rem;
|
||
}
|
||
|
||
.playlist-detail-img {
|
||
flex-shrink: 0;
|
||
width: 72px;
|
||
height: 72px;
|
||
object-fit: cover;
|
||
border-radius: 8px;
|
||
border: 1px solid var(--color-border);
|
||
}
|
||
|
||
.playlist-detail-title-row {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 0.75rem;
|
||
flex-wrap: wrap;
|
||
}
|
||
|
||
.playlist-detail-title-row .playlist-edit-input {
|
||
flex: 1;
|
||
min-width: 0;
|
||
}
|
||
|
||
.playlist-detail-title {
|
||
margin: 0;
|
||
font-size: 1.5rem;
|
||
font-weight: 700;
|
||
word-break: break-word;
|
||
}
|
||
|
||
.playlist-detail-description {
|
||
font-size: 1rem;
|
||
margin: 0 0 0.5rem;
|
||
opacity: 0.75;
|
||
line-height: 1.75;
|
||
overflow-wrap: break-word;
|
||
word-break: break-word;
|
||
}
|
||
|
||
.playlist-detail-meta {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 0.6rem;
|
||
font-size: 0.82rem;
|
||
opacity: 0.6;
|
||
}
|
||
|
||
@media (max-width: 512px) {
|
||
.playlist-detail-meta {
|
||
flex-direction: column;
|
||
align-items: flex-start;
|
||
gap: 0.1rem;
|
||
}
|
||
}
|
||
.playlist-detail-owner {
|
||
color: inherit;
|
||
text-decoration: none;
|
||
font-weight: 600;
|
||
}
|
||
.playlist-detail-owner:hover {
|
||
color: var(--color-accent);
|
||
opacity: 1;
|
||
}
|
||
|
||
.playlist-detail-content {
|
||
flex: 1;
|
||
min-width: 0;
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 0.4rem;
|
||
}
|
||
|
||
.playlist-edit-btn {
|
||
background: none;
|
||
border: 1px solid var(--color-border-subtle);
|
||
border-radius: 6px;
|
||
cursor: pointer;
|
||
color: var(--color-text);
|
||
font-size: 0.85rem;
|
||
padding: 0.25rem 0.7rem;
|
||
opacity: 0.7;
|
||
transition: opacity 0.15s, border-color 0.15s, color 0.15s;
|
||
}
|
||
|
||
.playlist-edit-btn:hover {
|
||
opacity: 1;
|
||
border-color: var(--color-accent);
|
||
color: var(--color-accent);
|
||
}
|
||
|
||
.playlist-edit-input,
|
||
.playlist-edit-textarea {
|
||
background: var(--color-bg);
|
||
border: 2px solid var(--color-border);
|
||
border-radius: 8px;
|
||
color: var(--color-text);
|
||
font-size: 0.95rem;
|
||
padding: 0.4rem 0.65rem;
|
||
font-family: inherit;
|
||
width: 100%;
|
||
box-sizing: border-box;
|
||
outline: none;
|
||
transition: border-color 0.2s;
|
||
}
|
||
|
||
.playlist-edit-textarea {
|
||
resize: none;
|
||
overflow: hidden;
|
||
line-height: 1.5;
|
||
}
|
||
|
||
.playlist-edit-input {
|
||
font-size: 1.1rem;
|
||
font-weight: 700;
|
||
}
|
||
|
||
/* Inline edit form: stack the fields with a little more breathing room than
|
||
the tight display layout, and let the action row sit at the bottom. */
|
||
.playlist-edit-content {
|
||
gap: 0.7rem;
|
||
}
|
||
|
||
.playlist-edit-input:focus,
|
||
.playlist-edit-textarea:focus {
|
||
border-color: var(--color-accent);
|
||
}
|
||
|
||
.playlist-detail-meta .playlist-edit-toggle {
|
||
opacity: 1;
|
||
}
|
||
|
||
/* ── Playlist dump list ── */
|
||
.playlist-dump-list {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 1rem;
|
||
}
|
||
|
||
.playlist-dump-item {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 0.5rem;
|
||
padding: 0 0.25rem;
|
||
transition: background 0.15s;
|
||
border-radius: 12px;
|
||
}
|
||
|
||
.playlist-dump-item--drag-over {
|
||
background: color-mix(in srgb, var(--color-accent) 12%, transparent);
|
||
outline: 2px dashed var(--color-accent);
|
||
}
|
||
|
||
.playlist-dump-item .dump-card {
|
||
flex: 1;
|
||
min-width: 0;
|
||
}
|
||
|
||
/* ── Playlist dump item action buttons ── */
|
||
.playlist-remove-btn {
|
||
flex-shrink: 0;
|
||
color: var(--color-text);
|
||
opacity: 0.4;
|
||
font-size: 0.85rem;
|
||
padding: 0.25rem 0.35rem;
|
||
}
|
||
|
||
.playlist-remove-btn:hover {
|
||
opacity: 1;
|
||
color: var(--color-danger);
|
||
}
|
||
|
||
.playlist-cancel-btn {
|
||
flex-shrink: 0;
|
||
background: none;
|
||
border: 1px solid var(--color-border-subtle);
|
||
cursor: pointer;
|
||
color: var(--color-text);
|
||
opacity: 0.7;
|
||
font-size: 0.78rem;
|
||
padding: 0.2rem 0.5rem;
|
||
border-radius: 4px;
|
||
transition: opacity 0.15s, border-color 0.15s, color 0.15s;
|
||
white-space: nowrap;
|
||
}
|
||
|
||
.playlist-cancel-btn:hover {
|
||
opacity: 1;
|
||
border-color: var(--color-accent);
|
||
color: var(--color-accent);
|
||
}
|
||
|
||
.drag-handle {
|
||
cursor: grab;
|
||
opacity: 0.35;
|
||
font-size: 1.1rem;
|
||
flex-shrink: 0;
|
||
user-select: none;
|
||
padding: 0 0.25rem;
|
||
}
|
||
|
||
.drag-handle:active {
|
||
cursor: grabbing;
|
||
}
|
||
|
||
/* ── Add to playlist button (dump detail) ── */
|
||
.btn-add-playlist {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
padding: 0.25rem 0.6rem;
|
||
border: 2px solid var(--color-border);
|
||
border-radius: 8px;
|
||
background: none;
|
||
cursor: pointer;
|
||
color: var(--color-text);
|
||
font-size: 0.78rem;
|
||
font-weight: 600;
|
||
white-space: nowrap;
|
||
transition: border-color 0.15s, color 0.15s;
|
||
}
|
||
|
||
.btn-add-playlist:hover {
|
||
border-color: var(--color-accent);
|
||
color: var(--color-accent);
|
||
}
|
||
|
||
/* ── My Playlists page ── */
|
||
.my-playlists-header {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
gap: 1rem;
|
||
}
|
||
|
||
.my-playlists-title {
|
||
margin: 0;
|
||
font-size: 1.5rem;
|
||
font-weight: 700;
|
||
}
|
||
|
||
/* ── New playlist toggle (profile page header) ── */
|
||
.new-playlist-toggle {
|
||
background: none;
|
||
border: none;
|
||
cursor: pointer;
|
||
color: var(--color-accent);
|
||
font-size: 0.85rem;
|
||
padding: 0;
|
||
transition: opacity 0.15s;
|
||
white-space: nowrap;
|
||
}
|
||
|
||
.new-playlist-toggle:hover {
|
||
opacity: 0.75;
|
||
}
|
||
|
||
/* ── Dump card comment count ── */
|
||
.dump-card-comment-count {
|
||
font-size: 0.72rem;
|
||
color: var(--color-text-muted);
|
||
}
|
||
|
||
/* ── Dump card private badge ── */
|
||
.dump-card-private-badge {
|
||
font-size: 0.68rem;
|
||
font-weight: 600;
|
||
text-transform: uppercase;
|
||
letter-spacing: 0.04em;
|
||
padding: 0.1em 0.45em;
|
||
border-radius: 4px;
|
||
background: color-mix(in srgb, var(--color-text-muted) 18%, transparent);
|
||
color: var(--color-text-muted);
|
||
}
|
||
|
||
/* ── Comments ── */
|
||
.comment-section {
|
||
margin-top: 2.5rem;
|
||
padding-top: 1.75rem;
|
||
border-top: 2px solid var(--color-border);
|
||
}
|
||
|
||
.comment-section-title {
|
||
font-size: 0.8rem;
|
||
font-weight: 700;
|
||
color: var(--color-text-muted);
|
||
margin: 0 0 1.25rem;
|
||
text-transform: uppercase;
|
||
letter-spacing: 0.08em;
|
||
}
|
||
|
||
.related-section {
|
||
margin-top: 2.5rem;
|
||
padding-top: 1.75rem;
|
||
border-top: 2px solid var(--color-border);
|
||
}
|
||
|
||
.related-section-title {
|
||
font-size: 0.8rem;
|
||
font-weight: 700;
|
||
color: var(--color-text-muted);
|
||
margin: 0 0 1.25rem;
|
||
text-transform: uppercase;
|
||
letter-spacing: 0.08em;
|
||
}
|
||
|
||
.comment-list {
|
||
list-style: none;
|
||
margin: 0;
|
||
padding: 0;
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 0.35rem;
|
||
}
|
||
|
||
.comment-node {
|
||
display: flex;
|
||
flex-direction: column;
|
||
}
|
||
|
||
.comment-node-inner {
|
||
display: flex;
|
||
gap: 0.75rem;
|
||
padding: 0.75rem 0.85rem;
|
||
border-radius: 8px;
|
||
background: var(--color-surface);
|
||
transition: background 0.12s;
|
||
}
|
||
|
||
.comment-node-inner:hover {
|
||
background: color-mix(
|
||
in srgb,
|
||
var(--color-surface) 80%,
|
||
var(--color-accent) 20%
|
||
);
|
||
}
|
||
|
||
.comment-avatar {
|
||
flex-shrink: 0;
|
||
padding-top: 1px;
|
||
}
|
||
|
||
.comment-content {
|
||
flex: 1;
|
||
min-width: 0;
|
||
}
|
||
|
||
.comment-meta {
|
||
display: flex;
|
||
align-items: baseline;
|
||
gap: 0.5rem;
|
||
margin-bottom: 0.4rem;
|
||
}
|
||
|
||
.comment-author {
|
||
font-weight: 700;
|
||
font-size: 0.85rem;
|
||
color: var(--color-accent);
|
||
text-decoration: none;
|
||
}
|
||
|
||
.comment-author:hover {
|
||
text-decoration: underline;
|
||
}
|
||
|
||
.comment-time {
|
||
font-size: 0.75rem;
|
||
color: var(--color-text-muted);
|
||
text-decoration: none;
|
||
}
|
||
.comment-time:hover {
|
||
text-decoration: underline;
|
||
text-underline-offset: 2px;
|
||
}
|
||
|
||
@keyframes comment-highlight {
|
||
0% {
|
||
background: color-mix(in srgb, var(--color-accent) 18%, transparent);
|
||
}
|
||
100% {
|
||
background: transparent;
|
||
}
|
||
}
|
||
.comment-node--highlight {
|
||
border-radius: 6px;
|
||
animation: comment-highlight 2s ease-out forwards;
|
||
}
|
||
|
||
.comment-edited {
|
||
font-size: 0.72rem;
|
||
color: var(--color-text-muted);
|
||
opacity: 0.7;
|
||
font-style: italic;
|
||
}
|
||
|
||
.comment-body {
|
||
font-size: 0.9rem;
|
||
line-height: 1.65;
|
||
color: var(--color-text);
|
||
overflow-wrap: break-word;
|
||
word-break: break-word;
|
||
}
|
||
|
||
.comment-actions {
|
||
display: flex;
|
||
gap: 0.25rem;
|
||
margin-top: 0.5rem;
|
||
}
|
||
|
||
.comment-action-btn {
|
||
background: none;
|
||
border: 1px solid transparent;
|
||
border-radius: 4px;
|
||
padding: 0.15rem 0.45rem;
|
||
font-size: 0.75rem;
|
||
color: var(--color-text-muted);
|
||
cursor: pointer;
|
||
font-family: inherit;
|
||
transition: color 0.1s, border-color 0.1s, background 0.1s;
|
||
}
|
||
|
||
.comment-action-btn:hover {
|
||
color: var(--color-text);
|
||
border-color: var(--color-border-subtle);
|
||
background: color-mix(in srgb, var(--color-text) 6%, transparent);
|
||
}
|
||
|
||
.comment-delete-btn:hover {
|
||
color: var(--color-danger);
|
||
border-color: color-mix(in srgb, var(--color-danger) 40%, transparent);
|
||
background: color-mix(in srgb, var(--color-danger) 10%, transparent);
|
||
}
|
||
|
||
.comment-action-btn--liked {
|
||
color: var(--color-danger);
|
||
border-color: color-mix(in srgb, var(--color-danger) 40%, transparent);
|
||
background: color-mix(in srgb, var(--color-danger) 10%, transparent);
|
||
}
|
||
|
||
.comment-action-btn--liked:hover {
|
||
color: var(--color-danger);
|
||
border-color: color-mix(in srgb, var(--color-danger) 60%, transparent);
|
||
background: color-mix(in srgb, var(--color-danger) 16%, transparent);
|
||
}
|
||
|
||
.like-count-clickable {
|
||
display: inline-block;
|
||
cursor: pointer;
|
||
/* Padding+matching negative margin enlarges the click target without
|
||
shifting layout — the box grows but its visual position is unchanged. */
|
||
padding: 0.3rem;
|
||
margin: -0.3rem;
|
||
}
|
||
|
||
.like-count-clickable:hover {
|
||
text-decoration: underline;
|
||
}
|
||
|
||
.comment-replies {
|
||
padding-left: max(0.4rem, calc(1.25rem - var(--depth, 0) * 0.1rem));
|
||
margin-left: max(0.25rem, calc(1.1rem - var(--depth, 0) * 0.09rem));
|
||
margin-top: 0.35rem;
|
||
border-left: 2px solid
|
||
color-mix(in srgb, var(--color-accent) 30%, transparent);
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 0.35rem;
|
||
}
|
||
|
||
.comment-form {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 0.5rem;
|
||
margin-top: 0.6rem;
|
||
}
|
||
|
||
.comment-top-form {
|
||
margin-bottom: 1.5rem;
|
||
padding: 1rem;
|
||
background: var(--color-surface);
|
||
border-radius: 8px;
|
||
border: 1px solid var(--color-border-subtle);
|
||
}
|
||
|
||
.comment-top-form-inner {
|
||
display: flex;
|
||
gap: 0.75rem;
|
||
align-items: flex-start;
|
||
}
|
||
|
||
.comment-top-form-body {
|
||
flex: 1;
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 0.5rem;
|
||
min-width: 0;
|
||
}
|
||
|
||
.comment-reply-textarea {
|
||
width: 100%;
|
||
box-sizing: border-box;
|
||
background: var(--color-bg);
|
||
border: 1px solid var(--color-border-subtle);
|
||
border-radius: 6px;
|
||
padding: 0.55rem 0.75rem;
|
||
font-family: inherit;
|
||
font-size: 0.875rem;
|
||
color: var(--color-text);
|
||
resize: none;
|
||
overflow: hidden;
|
||
min-height: 2.4rem;
|
||
transition: border-color 0.15s, box-shadow 0.15s;
|
||
}
|
||
|
||
.comment-reply-textarea:focus {
|
||
outline: none;
|
||
border-color: var(--color-accent);
|
||
box-shadow: 0 0 0 3px
|
||
color-mix(in srgb, var(--color-accent) 20%, transparent);
|
||
}
|
||
|
||
.comment-form-actions {
|
||
display: flex;
|
||
gap: 0.5rem;
|
||
align-items: center;
|
||
}
|
||
|
||
.comment-submit-btn {
|
||
background: var(--color-accent);
|
||
color: #fff;
|
||
border: none;
|
||
border-radius: 6px;
|
||
padding: 0.4rem 1rem;
|
||
font-family: inherit;
|
||
font-size: 0.82rem;
|
||
font-weight: 700;
|
||
cursor: pointer;
|
||
transition: background 0.15s, opacity 0.15s;
|
||
letter-spacing: 0.02em;
|
||
}
|
||
|
||
.comment-submit-btn:not(:disabled):hover {
|
||
background: var(--color-accent-hover);
|
||
}
|
||
|
||
.comment-submit-btn:disabled {
|
||
opacity: 0.4;
|
||
cursor: default;
|
||
}
|
||
|
||
.comment-cancel-btn {
|
||
background: transparent;
|
||
border: 1.5px solid var(--color-border-subtle);
|
||
border-radius: 6px;
|
||
padding: 0.4rem 1rem;
|
||
font-family: inherit;
|
||
font-size: 0.82rem;
|
||
color: var(--color-text);
|
||
opacity: 0.6;
|
||
cursor: pointer;
|
||
transition: opacity 0.15s;
|
||
}
|
||
|
||
.comment-cancel-btn:hover {
|
||
opacity: 1;
|
||
}
|
||
|
||
.comment-node-inner--deleted {
|
||
opacity: 0.35;
|
||
}
|
||
|
||
.comment-node-inner--deleted:hover {
|
||
background: var(--color-surface);
|
||
}
|
||
|
||
.comment-avatar-placeholder {
|
||
border-radius: 50%;
|
||
background: var(--color-border-subtle);
|
||
}
|
||
|
||
.comment-deleted-placeholder {
|
||
font-size: 0.85rem;
|
||
font-style: italic;
|
||
color: var(--color-text-muted);
|
||
margin: 0;
|
||
padding: 0.2rem 0;
|
||
}
|
||
|
||
/* ── Followed user list ── */
|
||
.followed-user-list {
|
||
list-style: none;
|
||
margin: 0;
|
||
padding: 0;
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 0.5rem;
|
||
}
|
||
|
||
.followed-user-card {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
gap: 0.75rem;
|
||
padding: 0.4rem 0.5rem;
|
||
border-radius: 6px;
|
||
}
|
||
|
||
.followed-user-card-link {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 0.6rem;
|
||
text-decoration: none;
|
||
color: var(--color-text);
|
||
min-width: 0;
|
||
flex: 1;
|
||
}
|
||
|
||
.followed-user-card-link:hover .followed-user-card-name {
|
||
color: var(--color-accent);
|
||
}
|
||
|
||
.followed-user-card-name {
|
||
font-size: 0.9rem;
|
||
font-weight: 600;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
}
|
||
|
||
/* ── Invite tree ── */
|
||
.invite-tree {
|
||
list-style: none;
|
||
padding: 0;
|
||
margin: 0;
|
||
}
|
||
|
||
.invite-tree-node {
|
||
position: relative;
|
||
padding: 0.2rem 0;
|
||
}
|
||
|
||
.invite-tree-node:last-child {
|
||
padding-bottom: 0;
|
||
}
|
||
|
||
/* Child list: indented, left edge aligns with parent avatar center */
|
||
.invite-tree-node > .invite-tree {
|
||
position: relative;
|
||
margin-left: 11px; /* center 2px line on 24px avatar: 12px - 1px */
|
||
padding-left: calc(12px + 0.5rem);
|
||
}
|
||
|
||
/* Vertical connector: starts below parent avatar, stops at last child avatar center */
|
||
.invite-tree-node > .invite-tree::before {
|
||
content: "";
|
||
position: absolute;
|
||
left: 0;
|
||
top: 0;
|
||
bottom: 12px;
|
||
width: 2px;
|
||
background: var(--color-border-subtle);
|
||
}
|
||
|
||
/* Horizontal connector: from vertical line to each child's avatar left edge */
|
||
.invite-tree-node > .invite-tree > .invite-tree-node::before {
|
||
content: "";
|
||
position: absolute;
|
||
left: calc(-12px - 0.5rem);
|
||
top: calc(0.2rem + 11px); /* centered on 24px avatar */
|
||
width: calc(12px + 0.5rem);
|
||
height: 2px;
|
||
background: var(--color-border-subtle);
|
||
}
|
||
|
||
.invite-tree-user {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
gap: 0.5rem;
|
||
color: var(--color-text);
|
||
text-decoration: none;
|
||
font-size: 0.9rem;
|
||
font-weight: 600;
|
||
}
|
||
|
||
.invite-tree-user:hover {
|
||
color: var(--color-accent);
|
||
}
|
||
|
||
.invite-tree-empty {
|
||
color: var(--color-text-muted);
|
||
font-size: 0.9rem;
|
||
}
|
||
|
||
/* ── Follow button ── */
|
||
.follow-btn {
|
||
padding: 0.25rem 0.9rem;
|
||
border-radius: 6px;
|
||
border: 2px solid var(--color-accent);
|
||
background: transparent;
|
||
color: var(--color-accent);
|
||
cursor: pointer;
|
||
font-size: 0.8rem;
|
||
font-weight: 600;
|
||
letter-spacing: 0.04em;
|
||
text-transform: uppercase;
|
||
font-family: inherit;
|
||
transition: background 0.15s, color 0.15s;
|
||
}
|
||
|
||
.follow-btn:hover {
|
||
background: var(--color-accent);
|
||
color: var(--color-on-accent, #fff);
|
||
}
|
||
|
||
.follow-btn:disabled {
|
||
opacity: 0.5;
|
||
cursor: not-allowed;
|
||
}
|
||
|
||
.follow-btn--following {
|
||
background: var(--color-accent);
|
||
color: var(--color-on-accent, #fff);
|
||
}
|
||
|
||
.follow-btn--following:hover {
|
||
background: transparent;
|
||
color: var(--color-accent);
|
||
}
|
||
|
||
/* ── Followed feed layout ── */
|
||
.followed-feed {
|
||
width: 100%;
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: center;
|
||
}
|
||
|
||
.followed-sub-nav {
|
||
padding: 0.75rem 1.25rem;
|
||
align-self: center;
|
||
}
|
||
|
||
.followed-feed .dump-feed {
|
||
padding-top: 0;
|
||
}
|
||
|
||
.followed-feed .index-status {
|
||
padding-top: 0.75rem;
|
||
padding-bottom: 0.75rem;
|
||
}
|
||
|
||
/* ── Journal masonry grid ── */
|
||
|
||
.journal-grid {
|
||
list-style: none;
|
||
margin: 0;
|
||
padding: 1rem 1.25rem 0;
|
||
display: grid;
|
||
grid-template-columns: repeat(3, 1fr);
|
||
grid-auto-flow: dense;
|
||
gap: 0.875rem;
|
||
max-width: 1100px;
|
||
width: 100%;
|
||
box-sizing: border-box;
|
||
align-self: center;
|
||
}
|
||
|
||
.journal-card {
|
||
border: 2px solid var(--color-border);
|
||
border-radius: 10px;
|
||
background: var(--color-surface);
|
||
overflow: hidden;
|
||
cursor: pointer;
|
||
transition: border-color 0.15s, opacity 0.15s;
|
||
min-width: 0;
|
||
}
|
||
|
||
.journal-card:hover {
|
||
border-color: var(--color-accent);
|
||
}
|
||
|
||
/* Large: spans 2 columns, media header + body */
|
||
.journal-card--large {
|
||
grid-column: span 2;
|
||
}
|
||
|
||
.journal-card--large .journal-card-media {
|
||
width: 100%;
|
||
aspect-ratio: 16 / 9;
|
||
overflow: hidden;
|
||
background: var(--color-bg);
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
position: relative;
|
||
}
|
||
|
||
.journal-card--large .journal-card-media .rich-content-play-overlay {
|
||
font-size: 2rem;
|
||
}
|
||
|
||
.journal-card--large .journal-card-media:hover .rich-content-play-overlay {
|
||
background: rgba(0, 0, 0, 0.5);
|
||
}
|
||
|
||
.journal-card--large .journal-card-media img {
|
||
width: 100%;
|
||
height: 100%;
|
||
object-fit: cover;
|
||
display: block;
|
||
}
|
||
|
||
/* Medium: icon left + content right */
|
||
.journal-card--medium .journal-card-inner {
|
||
display: flex;
|
||
align-items: flex-start;
|
||
gap: 0.75rem;
|
||
padding: 0.75rem;
|
||
}
|
||
|
||
.journal-card-icon {
|
||
flex-shrink: 0;
|
||
width: 44px;
|
||
height: 44px;
|
||
border-radius: 6px;
|
||
overflow: hidden;
|
||
background: var(--color-bg);
|
||
border: 1px solid var(--color-border);
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
font-size: 1.4rem;
|
||
}
|
||
|
||
.journal-card-icon img {
|
||
width: 100%;
|
||
height: 100%;
|
||
object-fit: cover;
|
||
display: block;
|
||
}
|
||
|
||
/* Shared body */
|
||
.journal-card-body {
|
||
padding: 0.75rem;
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 0.3rem;
|
||
min-width: 0;
|
||
flex: 1;
|
||
}
|
||
|
||
.journal-card--medium .journal-card-body {
|
||
padding: 0;
|
||
}
|
||
|
||
.journal-card-title {
|
||
font-weight: 600;
|
||
font-size: 0.95rem;
|
||
color: var(--color-text);
|
||
text-decoration: none;
|
||
line-height: 1.35;
|
||
word-break: break-word;
|
||
}
|
||
|
||
.journal-card-title:hover {
|
||
color: var(--color-accent);
|
||
}
|
||
|
||
.journal-card-comment {
|
||
font-size: 0.82rem;
|
||
opacity: 0.65;
|
||
display: -webkit-box;
|
||
-webkit-box-orient: vertical;
|
||
overflow: hidden;
|
||
margin: 0;
|
||
line-height: 1.4;
|
||
}
|
||
|
||
.journal-card--large .journal-card-comment {
|
||
-webkit-line-clamp: 3;
|
||
line-clamp: 3;
|
||
}
|
||
|
||
.journal-card--medium .journal-card-comment {
|
||
-webkit-line-clamp: 1;
|
||
line-clamp: 1;
|
||
}
|
||
|
||
.journal-card-footer {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
gap: 0.5rem;
|
||
margin-top: 0.2rem;
|
||
}
|
||
|
||
.journal-card-meta {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 0.5rem;
|
||
font-size: 0.78rem;
|
||
color: var(--color-text-secondary);
|
||
flex-wrap: wrap;
|
||
}
|
||
|
||
/* Small: single compact row */
|
||
.journal-card--small {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
gap: 0.5rem;
|
||
padding: 0.55rem 0.875rem;
|
||
}
|
||
|
||
.journal-card--small .journal-card-title {
|
||
flex: 1;
|
||
white-space: nowrap;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
font-size: 0.87rem;
|
||
}
|
||
|
||
/* feed-end message */
|
||
.feed-end {
|
||
text-align: center;
|
||
padding: 1.5rem 1rem;
|
||
font-size: 0.82rem;
|
||
color: var(--color-text-secondary);
|
||
opacity: 0.55;
|
||
}
|
||
|
||
@media (max-width: 860px) {
|
||
.journal-grid {
|
||
grid-template-columns: repeat(2, 1fr);
|
||
}
|
||
}
|
||
|
||
@media (max-width: 540px) {
|
||
.journal-grid {
|
||
grid-template-columns: 1fr;
|
||
padding: 0.75rem 1rem 0;
|
||
}
|
||
|
||
.journal-card--large {
|
||
grid-column: span 1;
|
||
}
|
||
}
|
||
|
||
/* ── Notification bell ── */
|
||
@keyframes bell-ring {
|
||
0% {
|
||
transform: rotate(0deg);
|
||
}
|
||
12% {
|
||
transform: rotate(-20deg);
|
||
}
|
||
28% {
|
||
transform: rotate(20deg);
|
||
}
|
||
42% {
|
||
transform: rotate(-14deg);
|
||
}
|
||
56% {
|
||
transform: rotate(10deg);
|
||
}
|
||
70% {
|
||
transform: rotate(-6deg);
|
||
}
|
||
84% {
|
||
transform: rotate(3deg);
|
||
}
|
||
100% {
|
||
transform: rotate(0deg);
|
||
}
|
||
}
|
||
|
||
.notification-bell {
|
||
position: relative;
|
||
background: var(--color-header-user-bg);
|
||
border: none;
|
||
cursor: pointer;
|
||
font-size: 0.95rem;
|
||
font-weight: 600;
|
||
padding: 0.35rem 0.85rem;
|
||
border-radius: 8px;
|
||
transition: background 0.15s;
|
||
display: inline-flex;
|
||
align-items: center;
|
||
}
|
||
.notification-bell:hover {
|
||
background: var(--color-header-user-bg-hover);
|
||
}
|
||
.notification-bell-icon {
|
||
display: inline-block;
|
||
transform-origin: 50% 10%;
|
||
}
|
||
.notification-bell--ringing .notification-bell-icon {
|
||
animation: bell-ring 0.65s cubic-bezier(0.36, 0.07, 0.19, 0.97);
|
||
}
|
||
.notification-badge {
|
||
position: absolute;
|
||
top: -3px;
|
||
right: -3px;
|
||
background: var(--color-danger);
|
||
color: #fff;
|
||
font-size: 0.6rem;
|
||
font-weight: 700;
|
||
min-width: 16px;
|
||
height: 16px;
|
||
border-radius: 8px;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
padding: 0 3px;
|
||
line-height: 1;
|
||
pointer-events: none;
|
||
box-shadow: 0 0 0 2px var(--color-bg);
|
||
}
|
||
|
||
/* ── Notifications page ── */
|
||
.notifications-page {
|
||
max-width: 680px;
|
||
margin: 0 auto;
|
||
padding: 1.5rem 1rem 3rem;
|
||
}
|
||
.notifications-header {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
gap: 1rem;
|
||
margin-bottom: 1.75rem;
|
||
}
|
||
.notifications-title {
|
||
font-size: 1.4rem;
|
||
font-weight: 700;
|
||
margin: 0;
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 0.5rem;
|
||
}
|
||
.notifications-title-bell {
|
||
font-size: 1.2rem;
|
||
}
|
||
.notifications-unread-pill {
|
||
font-size: 0.75rem;
|
||
font-weight: 700;
|
||
background: color-mix(in srgb, var(--color-danger) 18%, transparent);
|
||
color: var(--color-danger);
|
||
border: 1px solid color-mix(in srgb, var(--color-danger) 35%, transparent);
|
||
border-radius: 12px;
|
||
padding: 0.2rem 0.65rem;
|
||
white-space: nowrap;
|
||
}
|
||
.notifications-empty {
|
||
text-align: center;
|
||
padding: 3rem 1rem;
|
||
color: var(--color-text-muted);
|
||
}
|
||
.notifications-empty-icon {
|
||
font-size: 2.5rem;
|
||
display: block;
|
||
margin-bottom: 0.75rem;
|
||
opacity: 0.5;
|
||
}
|
||
.notifications-empty p {
|
||
margin: 0.25rem 0;
|
||
}
|
||
.notifications-empty-hint {
|
||
font-size: 0.85rem;
|
||
max-width: 340px;
|
||
margin: 0.5rem auto 0 !important;
|
||
line-height: 1.5;
|
||
}
|
||
|
||
.notif-group {
|
||
margin-bottom: 2rem;
|
||
}
|
||
.notif-group-label {
|
||
font-size: 0.68rem;
|
||
font-weight: 700;
|
||
letter-spacing: 0.12em;
|
||
text-transform: uppercase;
|
||
color: var(--color-text-muted);
|
||
margin: 0 0 0.6rem;
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 0.6rem;
|
||
}
|
||
.notif-group-label::after {
|
||
content: "";
|
||
flex: 1;
|
||
height: 1px;
|
||
background: var(--color-border-subtle);
|
||
}
|
||
.notification-list {
|
||
list-style: none;
|
||
margin: 0;
|
||
padding: 0;
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 1rem;
|
||
}
|
||
.notification-item {
|
||
background: var(--color-surface);
|
||
border-radius: 10px;
|
||
border: 1px solid var(--color-border-subtle);
|
||
border-left: 3px solid transparent;
|
||
transition: background 0.12s, border-color 0.12s;
|
||
overflow: hidden;
|
||
}
|
||
.notification-item:hover {
|
||
background: color-mix(
|
||
in srgb,
|
||
var(--color-surface) 80%,
|
||
var(--color-text) 8%
|
||
);
|
||
}
|
||
.notification-item-link {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 0.875rem;
|
||
padding: 0.875rem 1rem;
|
||
text-decoration: none;
|
||
color: inherit;
|
||
width: 100%;
|
||
}
|
||
.notification-item--unread {
|
||
border-left-color: var(--color-accent);
|
||
background: color-mix(in srgb, var(--color-accent) 9%, var(--color-surface));
|
||
}
|
||
.notification-item--unread:hover {
|
||
background: color-mix(in srgb, var(--color-accent) 14%, var(--color-surface));
|
||
}
|
||
.notif-dot {
|
||
width: 8px;
|
||
height: 8px;
|
||
border-radius: 50%;
|
||
background: var(--color-accent);
|
||
box-shadow: 0 0 5px color-mix(in srgb, var(--color-accent) 70%, transparent);
|
||
flex-shrink: 0;
|
||
align-self: center;
|
||
}
|
||
.notif-icon {
|
||
width: 36px;
|
||
height: 36px;
|
||
border-radius: 50%;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
font-size: 0.9rem;
|
||
flex-shrink: 0;
|
||
}
|
||
.notif-icon--upvote {
|
||
background: color-mix(in srgb, #f59e0b 30%, transparent);
|
||
color: #f59e0b;
|
||
}
|
||
.notif-icon--follow {
|
||
background: color-mix(in srgb, #8b5cf6 30%, transparent);
|
||
color: #8b5cf6;
|
||
}
|
||
.notif-icon--dump {
|
||
background: color-mix(in srgb, #3b82f6 30%, transparent);
|
||
color: #3b82f6;
|
||
}
|
||
.notif-icon--playlist {
|
||
background: color-mix(in srgb, #10b981 30%, transparent);
|
||
color: #10b981;
|
||
}
|
||
|
||
.notification-body {
|
||
flex: 1;
|
||
display: flex;
|
||
align-items: baseline;
|
||
gap: 0.75rem;
|
||
min-width: 0;
|
||
}
|
||
.notification-content {
|
||
flex: 1;
|
||
font-size: 0.875rem;
|
||
line-height: 1.5;
|
||
min-width: 0;
|
||
}
|
||
.notification-time {
|
||
font-size: 0.72rem;
|
||
color: var(--color-text-muted);
|
||
white-space: nowrap;
|
||
flex-shrink: 0;
|
||
}
|
||
.load-more-btn {
|
||
display: block;
|
||
margin: 1.5rem auto 0;
|
||
padding: 0.5rem 1.5rem;
|
||
background: none;
|
||
border: 1px solid var(--color-border-subtle);
|
||
border-radius: 6px;
|
||
cursor: pointer;
|
||
font-size: 0.875rem;
|
||
color: var(--color-text-muted);
|
||
transition: border-color 0.15s, color 0.15s;
|
||
}
|
||
.load-more-btn:hover:not(:disabled) {
|
||
border-color: var(--color-accent);
|
||
color: var(--color-accent);
|
||
}
|
||
.load-more-btn:disabled {
|
||
opacity: 0.5;
|
||
cursor: not-allowed;
|
||
}
|
||
|
||
/* ── Mention autocomplete ── */
|
||
.mention-textarea-wrap {
|
||
position: relative;
|
||
}
|
||
|
||
.mention-textarea-wrap textarea {
|
||
width: 100%;
|
||
box-sizing: border-box;
|
||
}
|
||
|
||
.mention-textarea-wrap--dragover textarea {
|
||
outline: 2px dashed var(--color-accent, #6c8ebf);
|
||
outline-offset: -2px;
|
||
}
|
||
|
||
.input-with-count {
|
||
display: flex;
|
||
flex-direction: column;
|
||
width: 100%;
|
||
}
|
||
|
||
.text-editor-count {
|
||
display: block;
|
||
text-align: right;
|
||
font-size: 0.7rem;
|
||
color: var(--color-text-muted);
|
||
margin-top: 2px;
|
||
user-select: none;
|
||
}
|
||
.text-editor-count--warn {
|
||
color: var(--color-warning, #c97a00);
|
||
}
|
||
.text-editor-count--danger {
|
||
color: var(--color-danger, #c0392b);
|
||
font-weight: 600;
|
||
}
|
||
|
||
.mention-dropdown {
|
||
position: absolute;
|
||
top: 100%;
|
||
left: 0;
|
||
right: 0;
|
||
z-index: 200;
|
||
list-style: none;
|
||
margin: 2px 0 0;
|
||
padding: 4px 0;
|
||
background: var(--color-surface);
|
||
border: 1px solid var(--color-border);
|
||
border-radius: 8px;
|
||
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
|
||
max-height: 220px;
|
||
overflow-y: auto;
|
||
}
|
||
.mention-dropdown-item {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 8px;
|
||
padding: 6px 12px;
|
||
cursor: pointer;
|
||
transition: background 0.1s;
|
||
}
|
||
.mention-dropdown-item:hover,
|
||
.mention-dropdown-item--selected {
|
||
background: var(--color-bg);
|
||
}
|
||
.mention-dropdown-username {
|
||
font-size: 0.9rem;
|
||
color: var(--color-text);
|
||
}
|
||
|
||
/* ── Emoji picker (frimousse) ── */
|
||
.emoji-picker-float {
|
||
position: absolute;
|
||
bottom: calc(100% + 4px);
|
||
left: 0;
|
||
z-index: 201;
|
||
width: 320px;
|
||
background: var(--color-surface);
|
||
border: 1px solid var(--color-border);
|
||
border-radius: 8px;
|
||
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
|
||
overflow: hidden;
|
||
}
|
||
|
||
.emoji-picker-search-row {
|
||
display: flex;
|
||
align-items: center;
|
||
border-bottom: 1px solid var(--color-border);
|
||
background: var(--color-bg);
|
||
}
|
||
|
||
.emoji-picker-float input {
|
||
display: block;
|
||
flex: 1;
|
||
min-width: 0;
|
||
padding: 8px 10px;
|
||
border: none;
|
||
background: transparent;
|
||
color: var(--color-text);
|
||
font-size: 0.9rem;
|
||
outline: none;
|
||
}
|
||
.emoji-picker-float input::placeholder {
|
||
color: var(--color-text-muted, #888);
|
||
}
|
||
|
||
.emoji-picker-close-btn {
|
||
flex-shrink: 0;
|
||
padding: 0 10px;
|
||
height: 100%;
|
||
background: none;
|
||
border: none;
|
||
color: var(--color-text);
|
||
opacity: 0.45;
|
||
cursor: pointer;
|
||
font-size: 0.75rem;
|
||
line-height: 1;
|
||
}
|
||
.emoji-picker-close-btn:hover {
|
||
opacity: 1;
|
||
}
|
||
/* frimousse uses bare attributes (no data- prefix) */
|
||
.emoji-picker-float [frimousse-viewport] {
|
||
max-height: 220px;
|
||
/* frimousse already sets overflow-y: auto inline */
|
||
}
|
||
.emoji-picker-float [frimousse-category-header] {
|
||
padding: 4px 8px 2px;
|
||
font-size: 0.75rem;
|
||
font-weight: 600;
|
||
color: var(--color-text-muted, #888);
|
||
background: var(--color-surface);
|
||
text-transform: uppercase;
|
||
letter-spacing: 0.04em;
|
||
}
|
||
.emoji-picker-float [frimousse-emoji] {
|
||
flex: 0 0 calc(100% / var(--frimousse-list-columns, 9));
|
||
background: none;
|
||
border: none;
|
||
padding: 4px 0;
|
||
font-size: 1.35em;
|
||
line-height: 1;
|
||
cursor: pointer;
|
||
border-radius: 4px;
|
||
transition: background 0.1s;
|
||
}
|
||
.emoji-picker-float [frimousse-emoji]:hover,
|
||
.emoji-picker-float [frimousse-emoji][data-active] {
|
||
background: var(--color-bg);
|
||
}
|
||
.emoji-picker-float [frimousse-loading],
|
||
.emoji-picker-float [frimousse-empty] {
|
||
display: block;
|
||
padding: 16px;
|
||
text-align: center;
|
||
font-size: 0.85rem;
|
||
color: var(--color-text-muted, #888);
|
||
}
|
||
|
||
.notif-icon--mention {
|
||
font-weight: 700;
|
||
font-family: monospace;
|
||
}
|
||
|
||
/* ── Tooltip ── */
|
||
.tooltip {
|
||
background: var(--color-surface);
|
||
color: var(--color-text);
|
||
border: 1px solid var(--color-border-subtle);
|
||
padding: 0.3em 0.65em;
|
||
border-radius: 5px;
|
||
font-size: 0.78rem;
|
||
font-style: normal;
|
||
white-space: nowrap;
|
||
pointer-events: none;
|
||
z-index: 9999;
|
||
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
|
||
}
|
||
|
||
/* ── Search bar (in header center slot) ── */
|
||
.search-bar {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 0.4rem;
|
||
width: 100%;
|
||
max-width: 420px;
|
||
}
|
||
|
||
.search-bar--collapsible {
|
||
width: auto;
|
||
max-width: none;
|
||
}
|
||
|
||
.search-bar--collapsible.search-bar--expanded {
|
||
width: 100%;
|
||
max-width: 420px;
|
||
}
|
||
|
||
.search-bar-input {
|
||
flex: 1;
|
||
padding: 0.3rem 0.7rem;
|
||
border-radius: 8px;
|
||
border: 2px solid var(--color-border-subtle);
|
||
background: var(--color-bg);
|
||
color: var(--color-text);
|
||
font-size: 0.875rem;
|
||
font-family: inherit;
|
||
outline: none;
|
||
transition:
|
||
max-width 0.25s ease,
|
||
opacity 0.2s ease,
|
||
padding 0.25s ease,
|
||
border-width 0.25s ease,
|
||
border-color 0.15s;
|
||
min-width: 0;
|
||
}
|
||
|
||
/* Collapsed state: hide the input while keeping it in the DOM */
|
||
.search-bar--collapsible .search-bar-input {
|
||
max-width: 0;
|
||
opacity: 0;
|
||
padding-left: 0;
|
||
padding-right: 0;
|
||
border-width: 0;
|
||
pointer-events: none;
|
||
}
|
||
|
||
/* Expanded state: animate it open */
|
||
.search-bar--collapsible.search-bar--expanded .search-bar-input {
|
||
max-width: 380px;
|
||
opacity: 1;
|
||
padding-left: 0.7rem;
|
||
padding-right: 0.7rem;
|
||
border-width: 2px;
|
||
pointer-events: auto;
|
||
}
|
||
|
||
.search-bar-input:focus {
|
||
border-color: var(--color-accent);
|
||
}
|
||
|
||
.search-bar-btn {
|
||
padding: 0.3rem 0.55rem;
|
||
background: transparent;
|
||
border: 2px solid var(--color-border-subtle);
|
||
border-radius: 8px;
|
||
cursor: pointer;
|
||
font-size: 0.875rem;
|
||
flex-shrink: 0;
|
||
transition: border-color 0.15s;
|
||
}
|
||
|
||
.search-bar-btn:hover {
|
||
border-color: var(--color-accent);
|
||
}
|
||
|
||
/* ── Search page ── */
|
||
.search-page {
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: center;
|
||
padding-bottom: 3rem;
|
||
}
|
||
|
||
.search-tabs {
|
||
width: 100%;
|
||
max-width: 860px;
|
||
padding: 1rem 1.25rem 0;
|
||
box-sizing: border-box;
|
||
}
|
||
|
||
.search-page-empty {
|
||
padding: 3rem 1.25rem;
|
||
color: var(--color-text-secondary);
|
||
text-align: center;
|
||
font-size: 0.95rem;
|
||
}
|
||
|
||
/* ── User results ── */
|
||
.user-results {
|
||
list-style: none;
|
||
margin: 0;
|
||
padding: 0.75rem 1.25rem 0;
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 0.5rem;
|
||
max-width: 860px;
|
||
width: 100%;
|
||
box-sizing: border-box;
|
||
}
|
||
|
||
.user-result-item {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 0.2rem;
|
||
padding: 0.75rem 1rem;
|
||
background: var(--color-surface);
|
||
border-radius: 10px;
|
||
border: 2px solid var(--color-border-subtle);
|
||
text-decoration: none;
|
||
color: var(--color-text);
|
||
transition: border-color 0.15s;
|
||
}
|
||
|
||
.user-result-item:hover {
|
||
border-color: var(--color-accent);
|
||
}
|
||
|
||
.user-result-name {
|
||
font-weight: 600;
|
||
font-size: 0.95rem;
|
||
}
|
||
|
||
.user-result-description {
|
||
font-size: 0.85rem;
|
||
color: var(--color-text-secondary);
|
||
white-space: nowrap;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
}
|
||
|
||
/* ── Profile appearance settings ── */
|
||
.profile-appearance-grid {
|
||
display: grid;
|
||
grid-template-columns: max-content max-content;
|
||
gap: 0.75rem 1rem;
|
||
align-items: center;
|
||
}
|
||
|
||
.profile-appearance-row {
|
||
display: contents;
|
||
}
|
||
|
||
@media (max-width: 512px) {
|
||
.profile-appearance-grid {
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: flex-start;
|
||
gap: 1rem;
|
||
}
|
||
|
||
.profile-appearance-row {
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: flex-start;
|
||
gap: 0.3rem;
|
||
}
|
||
}
|
||
|
||
.profile-appearance-label {
|
||
font-size: 0.85rem;
|
||
font-weight: 600;
|
||
opacity: 0.7;
|
||
}
|