mirror of
https://github.com/ancsemi/Haven.git
synced 2026-10-26 16:45:16 +00:00
606 lines
13 KiB
CSS
606 lines
13 KiB
CSS
/* ═══════════════════════════════════════════════════════════
|
|
MUSIC
|
|
═══════════════════════════════════════════════════════════ */
|
|
|
|
.music-panel {
|
|
display: none;
|
|
flex-direction: column;
|
|
background: var(--bg-tertiary);
|
|
border-bottom: 2px solid var(--accent);
|
|
}
|
|
.music-panel-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 6px 12px;
|
|
background: var(--bg-tertiary);
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
color: var(--text-secondary);
|
|
}
|
|
.music-panel-header-left {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
min-width: 0;
|
|
}
|
|
.music-panel-copy {
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-width: 0;
|
|
gap: 2px;
|
|
}
|
|
.music-up-next {
|
|
font-size: 10px;
|
|
color: var(--text-muted, #888);
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
max-width: 320px;
|
|
}
|
|
.music-activity-hint {
|
|
flex: 1;
|
|
text-align: right;
|
|
font-size: 10px;
|
|
font-style: italic;
|
|
color: var(--text-muted, #888);
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
padding: 0 10px;
|
|
opacity: 0.8;
|
|
}
|
|
.music-panel-header-left #music-popout-btn {
|
|
flex-shrink: 0;
|
|
}
|
|
.music-panel-controls {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
}
|
|
.music-panel-controls .stream-vol-slider { width: 80px; }
|
|
|
|
/* Seek slider + time labels */
|
|
.music-seek-slider {
|
|
-webkit-appearance: none;
|
|
appearance: none;
|
|
flex: 1; min-width: 60px; max-width: 200px;
|
|
height: 6px;
|
|
background: transparent;
|
|
}
|
|
.music-seek-slider::-webkit-slider-thumb {
|
|
-webkit-appearance: none;
|
|
width: 12px;
|
|
height: 12px;
|
|
border-radius: 50%;
|
|
background: var(--accent, #5865f2);
|
|
cursor: pointer;
|
|
margin-top: -4px;
|
|
}
|
|
.music-seek-slider::-moz-range-thumb {
|
|
width: 12px;
|
|
height: 12px;
|
|
border-radius: 50%;
|
|
background: var(--accent, #5865f2);
|
|
cursor: pointer;
|
|
border: none;
|
|
}
|
|
.music-time {
|
|
font-size: 10px; color: var(--text-muted, #888);
|
|
font-variant-numeric: tabular-nums; min-width: 32px; text-align: center;
|
|
user-select: none;
|
|
}
|
|
.music-embed-container {
|
|
min-height: 80px;
|
|
max-height: 260px;
|
|
overflow: hidden;
|
|
background: #000;
|
|
}
|
|
.music-embed-container iframe {
|
|
width: 100%;
|
|
border: none;
|
|
display: block;
|
|
}
|
|
.music-queue-modal { max-width: 780px; }
|
|
.music-queue-table-wrap {
|
|
max-height: 420px;
|
|
overflow: auto;
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-md);
|
|
background: var(--bg-secondary);
|
|
}
|
|
.music-queue-table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
font-size: 12px;
|
|
table-layout: fixed;
|
|
}
|
|
.music-queue-table th,
|
|
.music-queue-table td {
|
|
padding: 10px 8px;
|
|
border-bottom: 1px solid var(--border);
|
|
text-align: left;
|
|
vertical-align: middle;
|
|
box-sizing: border-box;
|
|
}
|
|
.music-queue-table th {
|
|
position: sticky;
|
|
top: 0;
|
|
background: var(--bg-tertiary);
|
|
z-index: 1;
|
|
font-size: 11px;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.04em;
|
|
color: var(--text-muted);
|
|
}
|
|
.music-queue-col-handle { width: 34px; }
|
|
.music-queue-col-pos {
|
|
width: 52px;
|
|
white-space: nowrap;
|
|
}
|
|
.music-queue-col-requested-by {
|
|
width: 160px;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
.music-queue-col-title,
|
|
.music-queue-title-cell {
|
|
width: 100%;
|
|
min-width: 0;
|
|
}
|
|
.music-queue-col-actions {
|
|
width: 56px;
|
|
text-align: right;
|
|
white-space: nowrap;
|
|
}
|
|
.music-queue-table.music-queue-readonly .music-queue-col-handle,
|
|
.music-queue-table.music-queue-readonly .music-queue-col-actions {
|
|
display: none;
|
|
}
|
|
.music-queue-empty {
|
|
text-align: center !important;
|
|
color: var(--text-muted);
|
|
padding: 20px 8px !important;
|
|
}
|
|
.music-queue-row.dragging { opacity: 0.45; }
|
|
.music-queue-row.drag-over {
|
|
outline: 1px dashed var(--accent);
|
|
outline-offset: -3px;
|
|
background: var(--bg-tertiary);
|
|
}
|
|
.music-queue-drag-handle {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 22px;
|
|
height: 22px;
|
|
border-radius: 6px;
|
|
color: var(--text-muted);
|
|
cursor: grab;
|
|
user-select: none;
|
|
}
|
|
.music-queue-drag-handle:hover {
|
|
background: var(--bg-tertiary);
|
|
color: var(--text-primary);
|
|
}
|
|
.music-queue-pos {
|
|
font-variant-numeric: tabular-nums;
|
|
color: var(--text-muted);
|
|
}
|
|
.music-queue-title {
|
|
display: block;
|
|
font-weight: 600;
|
|
color: var(--text-primary);
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
.music-queue-requestor {
|
|
display: block;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
.music-queue-remove-btn {
|
|
border: none;
|
|
background: transparent;
|
|
color: var(--danger, #ff6b6b);
|
|
cursor: pointer;
|
|
font-size: 15px;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 24px;
|
|
height: 24px;
|
|
}
|
|
.music-queue-remove-btn:hover { opacity: 0.8; }
|
|
|
|
/* Overlay blocks direct clicks on the iframe; sync goes through Haven controls only */
|
|
.music-embed-wrapper {
|
|
position: relative;
|
|
width: 100%;
|
|
}
|
|
.music-embed-overlay {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
z-index: 2;
|
|
cursor: default;
|
|
/* Transparent but captures all clicks / pointer events */
|
|
}
|
|
|
|
/* ── Music Active Indicator (minimized panel) ──────────── */
|
|
|
|
.music-indicator {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
padding: 5px 12px;
|
|
font-size: 11px;
|
|
font-weight: 500;
|
|
border-radius: var(--radius);
|
|
background: var(--accent);
|
|
color: var(--accent-text);
|
|
border: none;
|
|
cursor: pointer;
|
|
animation: pulse-glow 2s ease-in-out infinite;
|
|
white-space: nowrap;
|
|
height: 30px;
|
|
box-sizing: border-box;
|
|
line-height: 1.3;
|
|
}
|
|
.music-indicator:hover { filter: brightness(1.2); }
|
|
|
|
/* ── Music PiP Overlay ─────────────────────────────────── */
|
|
|
|
.music-pip-overlay {
|
|
position: fixed;
|
|
bottom: 24px;
|
|
right: 24px;
|
|
width: 340px;
|
|
z-index: 10000;
|
|
background: var(--bg-secondary);
|
|
border: 1px solid var(--border);
|
|
border-radius: 12px;
|
|
box-shadow: 0 8px 32px rgba(0,0,0,0.45);
|
|
overflow: hidden;
|
|
display: flex;
|
|
flex-direction: column;
|
|
resize: both;
|
|
min-width: 260px;
|
|
min-height: 140px;
|
|
}
|
|
.music-pip-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 6px 10px;
|
|
background: var(--bg-tertiary);
|
|
border-bottom: 2px solid var(--accent);
|
|
cursor: grab;
|
|
user-select: none;
|
|
}
|
|
.music-pip-header:active { cursor: grabbing; }
|
|
.music-pip-copy {
|
|
flex: 1;
|
|
min-width: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 2px;
|
|
}
|
|
.music-pip-label {
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
color: var(--text-secondary);
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
.music-pip-up-next {
|
|
max-width: none;
|
|
}
|
|
.music-pip-btn {
|
|
background: rgba(255,255,255,0.08);
|
|
border: none;
|
|
color: var(--text-primary);
|
|
cursor: pointer;
|
|
font-size: 14px;
|
|
padding: 4px 8px;
|
|
border-radius: 4px;
|
|
line-height: 1;
|
|
}
|
|
.music-pip-btn:hover { background: rgba(255,255,255,0.18); }
|
|
.music-pip-embed {
|
|
flex: 1;
|
|
overflow: hidden;
|
|
background: #000;
|
|
min-height: 80px;
|
|
}
|
|
.music-pip-embed .music-embed-wrapper {
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
.music-pip-embed iframe {
|
|
width: 100%;
|
|
height: 100%;
|
|
border: none;
|
|
display: block;
|
|
}
|
|
.music-pip-controls {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 6px 10px;
|
|
background: var(--bg-tertiary);
|
|
}
|
|
.music-pip-vol-icon {
|
|
font-size: 14px;
|
|
cursor: pointer;
|
|
user-select: none;
|
|
}
|
|
.music-pip-vol {
|
|
-webkit-appearance: none;
|
|
appearance: none;
|
|
height: 6px;
|
|
background: rgba(255,255,255,0.25);
|
|
border-radius: 3px;
|
|
border: 1px solid rgba(255,255,255,0.12);
|
|
outline: none;
|
|
flex: 1;
|
|
max-width: 120px;
|
|
}
|
|
.music-pip-vol::-webkit-slider-thumb {
|
|
-webkit-appearance: none;
|
|
width: 14px;
|
|
height: 14px;
|
|
background: var(--accent);
|
|
border-radius: 50%;
|
|
cursor: pointer;
|
|
margin-top: -4px;
|
|
}
|
|
.music-pip-vol::-moz-range-thumb {
|
|
width: 14px;
|
|
height: 14px;
|
|
background: var(--accent);
|
|
border-radius: 50%;
|
|
cursor: pointer;
|
|
border: none;
|
|
}
|
|
|
|
/* ── PiP Opacity Slider ───────────────────────────────── */
|
|
.pip-opacity-divider {
|
|
width: 1px;
|
|
height: 16px;
|
|
background: var(--border);
|
|
margin: 0 2px;
|
|
flex-shrink: 0;
|
|
}
|
|
.pip-opacity-slider {
|
|
max-width: 70px;
|
|
}
|
|
|
|
/* ── Music Modal extras ────────────────────────────────── */
|
|
|
|
.music-link-preview {
|
|
min-height: 0;
|
|
transition: all 0.2s;
|
|
}
|
|
.music-link-preview.active {
|
|
background: var(--bg-primary);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-sm);
|
|
padding: 8px 12px;
|
|
margin: 8px 0;
|
|
font-size: 13px;
|
|
color: var(--text-secondary);
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
.music-platforms-hint {
|
|
display: flex;
|
|
gap: 6px;
|
|
margin: 8px 0 4px;
|
|
flex-wrap: wrap;
|
|
}
|
|
.platform-badge {
|
|
font-size: 10px;
|
|
padding: 2px 8px;
|
|
border-radius: 10px;
|
|
font-weight: 600;
|
|
letter-spacing: 0.3px;
|
|
text-transform: uppercase;
|
|
}
|
|
.platform-badge.spotify { background: rgba(29,185,84,0.15); color: #1db954; }
|
|
.platform-badge.youtube { background: rgba(255,0,0,0.12); color: #ff4444; }
|
|
.platform-badge.soundcloud { background: rgba(255,85,0,0.12); color: #ff5500; }
|
|
|
|
/* ── Music Search Picker ─────────────────────────────── */
|
|
.music-search-picker {
|
|
position: absolute;
|
|
bottom: 60px;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
width: 440px;
|
|
max-width: calc(100% - 32px);
|
|
background: var(--bg-card, #1e2030);
|
|
border: 1px solid var(--border-light, #333);
|
|
border-radius: 12px;
|
|
z-index: 200;
|
|
box-shadow: 0 8px 32px rgba(0,0,0,0.5);
|
|
overflow: hidden;
|
|
animation: pickerSlideIn 0.2s ease-out;
|
|
}
|
|
|
|
@keyframes pickerSlideIn {
|
|
from { opacity: 0; transform: translateX(-50%) translateY(12px); }
|
|
to { opacity: 1; transform: translateX(-50%) translateY(0); }
|
|
}
|
|
|
|
.music-search-picker-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 10px 14px;
|
|
border-bottom: 1px solid var(--border-light, #333);
|
|
font-size: 13px;
|
|
color: var(--text-primary, #eee);
|
|
}
|
|
|
|
.music-search-picker-header strong {
|
|
color: var(--accent, #ffd700);
|
|
}
|
|
|
|
.music-search-picker-close {
|
|
background: none;
|
|
border: none;
|
|
color: var(--text-muted, #888);
|
|
font-size: 16px;
|
|
cursor: pointer;
|
|
padding: 2px 6px;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.music-search-picker-close:hover {
|
|
background: var(--bg-hover, #333);
|
|
color: var(--text-primary, #eee);
|
|
}
|
|
|
|
.music-search-picker-list {
|
|
max-height: 320px;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.music-search-picker-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
padding: 8px 14px;
|
|
cursor: pointer;
|
|
transition: background 0.15s;
|
|
border-bottom: 1px solid rgba(255,255,255,0.04);
|
|
}
|
|
|
|
.music-search-picker-item:hover {
|
|
background: var(--bg-hover, #2a2d40);
|
|
}
|
|
|
|
.music-search-picker-item:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.music-search-picker-thumb {
|
|
width: 48px;
|
|
height: 36px;
|
|
border-radius: 4px;
|
|
overflow: hidden;
|
|
flex-shrink: 0;
|
|
background: rgba(255,255,255,0.05);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.music-search-picker-thumb img {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
}
|
|
|
|
.music-search-picker-thumb span {
|
|
font-size: 18px;
|
|
}
|
|
|
|
.music-search-picker-info {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.music-search-picker-title {
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
color: var(--text-primary, #eee);
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.music-search-picker-meta {
|
|
font-size: 11px;
|
|
color: var(--text-muted, #888);
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.music-search-picker-play {
|
|
background: var(--accent, #ffd700);
|
|
color: #000;
|
|
border: none;
|
|
border-radius: 50%;
|
|
width: 28px;
|
|
height: 28px;
|
|
font-size: 12px;
|
|
cursor: pointer;
|
|
flex-shrink: 0;
|
|
transition: transform 0.15s, background 0.15s;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.music-search-picker-play:hover {
|
|
transform: scale(1.15);
|
|
}
|
|
|
|
.music-search-picker-footer {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
padding: 8px 14px;
|
|
border-top: 1px solid var(--border-light, #333);
|
|
gap: 8px;
|
|
}
|
|
|
|
.music-search-picker-more,
|
|
.music-search-picker-cancel {
|
|
padding: 6px 16px;
|
|
border-radius: 6px;
|
|
border: none;
|
|
font-size: 12px;
|
|
cursor: pointer;
|
|
font-weight: 500;
|
|
transition: background 0.15s;
|
|
}
|
|
|
|
.music-search-picker-more {
|
|
background: var(--accent, #ffd700);
|
|
color: #000;
|
|
}
|
|
|
|
.music-search-picker-more:hover {
|
|
filter: brightness(1.1);
|
|
}
|
|
|
|
.music-search-picker-cancel {
|
|
background: rgba(255,255,255,0.08);
|
|
color: var(--text-muted, #888);
|
|
}
|
|
|
|
.music-search-picker-cancel:hover {
|
|
background: rgba(255,255,255,0.15);
|
|
color: var(--text-primary, #eee);
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.music-panel-header { padding: 4px 8px; font-size: 11px; }
|
|
.music-embed-container { max-height: 180px; }
|
|
.music-pip-overlay {
|
|
width: 280px;
|
|
bottom: 12px;
|
|
right: 12px;
|
|
}
|
|
}
|