added watchparties
This commit is contained in:
291
desktop/views/css/components/create-room.css
Normal file
291
desktop/views/css/components/create-room.css
Normal file
@@ -0,0 +1,291 @@
|
||||
/* create-room.css */
|
||||
.cr-modal-overlay {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
background: rgba(0, 0, 0, 0.7);
|
||||
backdrop-filter: blur(8px);
|
||||
display: none;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
z-index: 10001; /* Mayor que el navbar */
|
||||
opacity: 0;
|
||||
transition: opacity 0.2s ease;
|
||||
}
|
||||
|
||||
.cr-modal-overlay.show {
|
||||
display: flex;
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.cr-modal-content {
|
||||
background: rgba(20, 20, 20, 0.95);
|
||||
border: 1px solid rgba(255, 255, 255, 0.1);
|
||||
box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
|
||||
border-radius: 16px;
|
||||
padding: 32px;
|
||||
max-width: 450px;
|
||||
width: 90%;
|
||||
position: relative;
|
||||
transform: scale(0.95);
|
||||
transition: transform 0.2s ease;
|
||||
}
|
||||
|
||||
.cr-modal-overlay.show .cr-modal-content {
|
||||
transform: scale(1);
|
||||
}
|
||||
|
||||
.cr-modal-close {
|
||||
position: absolute;
|
||||
top: 20px;
|
||||
right: 20px;
|
||||
background: transparent;
|
||||
border: none;
|
||||
color: rgba(255, 255, 255, 0.5);
|
||||
cursor: pointer;
|
||||
padding: 5px;
|
||||
transition: color 0.2s;
|
||||
}
|
||||
|
||||
.cr-modal-close:hover {
|
||||
color: white;
|
||||
}
|
||||
|
||||
.cr-modal-title {
|
||||
margin: 0 0 24px 0;
|
||||
font-size: 1.5rem;
|
||||
font-weight: 800;
|
||||
color: white;
|
||||
background: linear-gradient(to right, #fff, #a78bfa);
|
||||
-webkit-background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
}
|
||||
|
||||
.cr-form-group {
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.cr-form-group label {
|
||||
display: block;
|
||||
margin-bottom: 8px;
|
||||
font-weight: 600;
|
||||
color: #e5e7eb;
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
.cr-input {
|
||||
width: 100%;
|
||||
background: rgba(255, 255, 255, 0.05);
|
||||
border: 1px solid rgba(255, 255, 255, 0.1);
|
||||
color: white;
|
||||
padding: 12px 16px;
|
||||
border-radius: 10px;
|
||||
font-size: 0.95rem;
|
||||
outline: none;
|
||||
transition: border-color 0.2s;
|
||||
}
|
||||
|
||||
.cr-input:focus {
|
||||
border-color: #8b5cf6; /* Tu color primario */
|
||||
}
|
||||
|
||||
.cr-actions {
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
gap: 12px;
|
||||
margin-top: 24px;
|
||||
}
|
||||
|
||||
.cr-btn-cancel {
|
||||
background: transparent;
|
||||
border: 1px solid rgba(255, 255, 255, 0.2);
|
||||
color: rgba(255, 255, 255, 0.8);
|
||||
padding: 10px 20px;
|
||||
border-radius: 8px;
|
||||
cursor: pointer;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.cr-btn-confirm {
|
||||
background: #8b5cf6;
|
||||
border: none;
|
||||
color: white;
|
||||
padding: 10px 24px;
|
||||
border-radius: 8px;
|
||||
font-weight: 700;
|
||||
cursor: pointer;
|
||||
transition: background 0.2s;
|
||||
}
|
||||
|
||||
.cr-btn-confirm:hover {
|
||||
background: #7c3aed;
|
||||
}
|
||||
|
||||
.cr-btn-confirm:disabled {
|
||||
opacity: 0.7;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
/* Add to room.css */
|
||||
.modal-header-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
margin-bottom: 24px;
|
||||
}
|
||||
|
||||
.btn-icon-small {
|
||||
background: rgba(255,255,255,0.1);
|
||||
border: none;
|
||||
color: white;
|
||||
padding: 6px;
|
||||
border-radius: 6px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.config-grid {
|
||||
display: flex;
|
||||
gap: 24px;
|
||||
}
|
||||
|
||||
.config-poster img {
|
||||
width: 140px;
|
||||
border-radius: 12px;
|
||||
box-shadow: 0 4px 20px rgba(0,0,0,0.5);
|
||||
}
|
||||
|
||||
.config-form {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.form-select, .form-input {
|
||||
width: 100%;
|
||||
background: rgba(255, 255, 255, 0.05);
|
||||
border: 1px solid rgba(255, 255, 255, 0.1);
|
||||
color: white;
|
||||
padding: 10px 12px;
|
||||
border-radius: 8px;
|
||||
font-size: 0.95rem;
|
||||
outline: none;
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
|
||||
.form-select:disabled {
|
||||
opacity: 0.5;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
.form-row {
|
||||
display: flex;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.form-group.half {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.full-width {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
@media (max-width: 600px) {
|
||||
.config-grid { flex-direction: column; align-items: center; }
|
||||
.config-poster img { width: 100px; }
|
||||
}
|
||||
|
||||
.modal-header-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
margin-bottom: 24px;
|
||||
}
|
||||
|
||||
.btn-icon-small {
|
||||
background: rgba(255,255,255,0.1);
|
||||
border: none;
|
||||
color: white;
|
||||
padding: 6px;
|
||||
border-radius: 6px;
|
||||
cursor: pointer;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.btn-icon-small:hover {
|
||||
background: rgba(255,255,255,0.2);
|
||||
}
|
||||
|
||||
/* Config Grid Layout */
|
||||
.config-grid {
|
||||
display: flex;
|
||||
gap: 24px;
|
||||
}
|
||||
|
||||
.config-poster img {
|
||||
width: 140px;
|
||||
border-radius: 12px;
|
||||
box-shadow: 0 4px 20px rgba(0,0,0,0.5);
|
||||
border: 1px solid rgba(255,255,255,0.1);
|
||||
}
|
||||
|
||||
.config-form {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
/* Form Elements */
|
||||
.form-select, .form-input {
|
||||
width: 100%;
|
||||
background: rgba(255, 255, 255, 0.05);
|
||||
border: 1px solid rgba(255, 255, 255, 0.1);
|
||||
color: white;
|
||||
padding: 10px 12px;
|
||||
border-radius: 8px;
|
||||
font-size: 0.95rem;
|
||||
outline: none;
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
|
||||
.form-select:focus, .form-input:focus {
|
||||
border-color: var(--brand-color);
|
||||
}
|
||||
|
||||
.form-select:disabled {
|
||||
opacity: 0.5;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
/* Form Select specific for dark mode options */
|
||||
.form-select option {
|
||||
background: #1a1a1a;
|
||||
color: white;
|
||||
}
|
||||
|
||||
.form-row {
|
||||
display: flex;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.form-group.half {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.full-width {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
/* Mobile Responsiveness */
|
||||
@media (max-width: 600px) {
|
||||
.config-grid { flex-direction: column; align-items: center; }
|
||||
.config-poster img { width: 100px; }
|
||||
.form-row { flex-direction: column; gap: 0; }
|
||||
}
|
||||
@@ -198,3 +198,13 @@ body {
|
||||
.hidden {
|
||||
display: none;
|
||||
}
|
||||
|
||||
html.electron #room-view {
|
||||
height: calc(100vh - var(--titlebar-height));
|
||||
margin-top: var(--titlebar-height);
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
html.electron #room-view .room-layout {
|
||||
height: 100%;
|
||||
}
|
||||
900
desktop/views/css/room.css
Normal file
900
desktop/views/css/room.css
Normal file
@@ -0,0 +1,900 @@
|
||||
/* =========================================
|
||||
1. VARIABLES & UTILITIES
|
||||
========================================= */
|
||||
:root {
|
||||
--brand-color: #8b5cf6;
|
||||
--brand-gradient: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
|
||||
--glass-bg: rgba(20, 20, 20, 0.6);
|
||||
--glass-border: rgba(255, 255, 255, 0.08);
|
||||
--glass-blur: blur(12px);
|
||||
--text-main: #ffffff;
|
||||
--text-muted: rgba(255, 255, 255, 0.6);
|
||||
}
|
||||
|
||||
/* Scrollbar Styles */
|
||||
::-webkit-scrollbar {
|
||||
width: 6px;
|
||||
height: 6px;
|
||||
}
|
||||
::-webkit-scrollbar-track {
|
||||
background: transparent;
|
||||
}
|
||||
::-webkit-scrollbar-thumb {
|
||||
background: rgba(255, 255, 255, 0.2);
|
||||
border-radius: 3px;
|
||||
}
|
||||
::-webkit-scrollbar-thumb:hover {
|
||||
background: rgba(255, 255, 255, 0.4);
|
||||
}
|
||||
|
||||
.spinner {
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
border: 3px solid rgba(255, 255, 255, 0.1);
|
||||
border-top-color: var(--brand-color);
|
||||
border-radius: 50%;
|
||||
animation: spin 1s linear infinite;
|
||||
}
|
||||
|
||||
@keyframes spin { to { transform: rotate(360deg); } }
|
||||
|
||||
/* =========================================
|
||||
2. UI COMPONENTS (Buttons, Inputs, Chips)
|
||||
========================================= */
|
||||
|
||||
/* Glass Buttons & Icons */
|
||||
.btn-icon-glass, .btn-icon-small, .modal-close {
|
||||
appearance: none;
|
||||
background: rgba(255, 255, 255, 0.05);
|
||||
border: 1px solid rgba(255, 255, 255, 0.05);
|
||||
color: #eee;
|
||||
border-radius: 8px;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s ease;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.btn-icon-glass { width: 36px; height: 36px; backdrop-filter: blur(8px); }
|
||||
.btn-icon-small { padding: 6px; }
|
||||
.modal-close { width: 32px; height: 32px; position: absolute; top: 20px; right: 20px; background: rgba(255, 255, 255, 0.1); }
|
||||
|
||||
.btn-icon-glass:hover, .btn-icon-small:hover {
|
||||
background: rgba(255, 255, 255, 0.15);
|
||||
border-color: rgba(255, 255, 255, 0.2);
|
||||
transform: translateY(-1px);
|
||||
color: white;
|
||||
}
|
||||
.modal-close:hover { background: rgba(255, 255, 255, 0.3); transform: rotate(90deg); }
|
||||
|
||||
.btn-glass-primary {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
background: rgba(139, 92, 246, 0.25);
|
||||
border: 1px solid rgba(139, 92, 246, 0.4);
|
||||
color: white;
|
||||
padding: 0 16px;
|
||||
height: 36px;
|
||||
border-radius: 10px;
|
||||
font-weight: 600;
|
||||
font-size: 0.9rem;
|
||||
cursor: pointer;
|
||||
backdrop-filter: blur(8px);
|
||||
transition: all 0.2s;
|
||||
}
|
||||
|
||||
.btn-glass-primary:hover {
|
||||
background: rgba(139, 92, 246, 0.4);
|
||||
box-shadow: 0 0 15px rgba(139, 92, 246, 0.2);
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
/* Primary/Confirm Buttons */
|
||||
.btn-confirm, .btn-primary {
|
||||
background: var(--brand-color);
|
||||
border: none;
|
||||
color: white;
|
||||
padding: 10px 24px;
|
||||
border-radius: 10px;
|
||||
font-weight: 700;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.btn-confirm:hover, .btn-primary:hover {
|
||||
background: #7c3aed;
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
.btn-confirm:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
|
||||
.btn-confirm.full-width { width: 100%; }
|
||||
|
||||
.btn-cancel {
|
||||
background: transparent;
|
||||
border: 1px solid rgba(255, 255, 255, 0.2);
|
||||
color: rgba(255, 255, 255, 0.8);
|
||||
padding: 10px 20px;
|
||||
border-radius: 8px;
|
||||
cursor: pointer;
|
||||
font-weight: 600;
|
||||
transition: all 0.2s;
|
||||
}
|
||||
.btn-cancel:hover { background: rgba(255, 255, 255, 0.1); color: white; }
|
||||
|
||||
/* Inputs & Selects */
|
||||
input[type="text"], input[type="password"], input[type="number"], .form-input {
|
||||
width: 100%;
|
||||
background: rgba(255, 255, 255, 0.05);
|
||||
border: 1px solid rgba(255, 255, 255, 0.1);
|
||||
color: white;
|
||||
padding: 12px 16px;
|
||||
border-radius: 10px;
|
||||
font-size: 1rem;
|
||||
outline: none;
|
||||
transition: border-color 0.2s;
|
||||
}
|
||||
|
||||
input:focus, .form-input:focus {
|
||||
border-color: var(--brand-color);
|
||||
background: rgba(255, 255, 255, 0.08);
|
||||
}
|
||||
|
||||
/* Glass Select (Header Style - FIX: Better alignment) */
|
||||
.glass-select-sm {
|
||||
appearance: none;
|
||||
-webkit-appearance: none;
|
||||
background-color: rgba(255, 255, 255, 0.05);
|
||||
border: 1px solid rgba(255, 255, 255, 0.1);
|
||||
color: #eee;
|
||||
padding: 0 32px 0 12px; /* Extra padding right for arrow */
|
||||
height: 32px;
|
||||
line-height: 30px; /* Vertically center text */
|
||||
border-radius: 8px;
|
||||
font-size: 0.85rem;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
outline: none;
|
||||
transition: all 0.2s;
|
||||
max-width: 140px;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
|
||||
/* SVG Arrow */
|
||||
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.6)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
|
||||
background-repeat: no-repeat;
|
||||
background-position: right 8px center;
|
||||
background-size: 14px;
|
||||
}
|
||||
|
||||
.glass-select-sm:hover {
|
||||
background-color: rgba(255, 255, 255, 0.1);
|
||||
border-color: rgba(255,255,255,0.3);
|
||||
color: #fff;
|
||||
}
|
||||
.glass-select-sm option { background: #1a1a1a; color: #e0e0e0; }
|
||||
|
||||
/* Chips (Config Modal) */
|
||||
.chips-grid { display: flex; flex-wrap: wrap; gap: 10px; }
|
||||
.chip {
|
||||
padding: 8px 16px;
|
||||
background: rgba(255, 255, 255, 0.05);
|
||||
border: 1px solid rgba(255, 255, 255, 0.1);
|
||||
border-radius: 8px;
|
||||
color: #ccc;
|
||||
font-size: 0.9rem;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s;
|
||||
user-select: none;
|
||||
}
|
||||
.chip:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.3); transform: translateY(-2px); }
|
||||
.chip.active {
|
||||
background: var(--brand-color);
|
||||
border-color: var(--brand-color);
|
||||
color: white;
|
||||
box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
|
||||
}
|
||||
.chip.disabled { opacity: 0.5; pointer-events: none; filter: grayscale(1); }
|
||||
|
||||
/* =========================================
|
||||
3. ROOM LAYOUT (The Watch Page)
|
||||
========================================= */
|
||||
.room-layout {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 380px;
|
||||
height: 100vh;
|
||||
overflow: hidden;
|
||||
transition: grid-template-columns 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
}
|
||||
|
||||
.room-layout.chat-hidden {
|
||||
grid-template-columns: 1fr 0px !important;
|
||||
}
|
||||
|
||||
.video-area {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
background: #000;
|
||||
flex: 1;
|
||||
min-height: 0;
|
||||
overflow: hidden;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
/* Responsive Layout */
|
||||
@media (max-width: 1200px) {
|
||||
.room-layout {
|
||||
grid-template-columns: 1fr;
|
||||
grid-template-rows: 1fr auto;
|
||||
}
|
||||
.room-layout.chat-hidden {
|
||||
grid-template-rows: 1fr 0px;
|
||||
}
|
||||
.chat-sidebar {
|
||||
height: 350px;
|
||||
border-left: none;
|
||||
border-top: 1px solid var(--glass-border);
|
||||
}
|
||||
}
|
||||
|
||||
/* =========================================
|
||||
4. ROOM HEADER
|
||||
========================================= */
|
||||
.room-header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: 0 24px;
|
||||
background: rgba(10, 10, 10, 0.85);
|
||||
backdrop-filter: blur(20px);
|
||||
border-bottom: 1px solid var(--glass-border);
|
||||
height: 64px;
|
||||
z-index: 20;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.header-left, .header-right {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 16px;
|
||||
flex: 1;
|
||||
}
|
||||
.header-right { justify-content: flex-end; }
|
||||
|
||||
/* Info Section */
|
||||
.room-info { display: flex; flex-direction: column; justify-content: center; line-height: 1.2; }
|
||||
#room-name {
|
||||
margin: 0;
|
||||
font-size: 1rem;
|
||||
font-weight: 700;
|
||||
color: white;
|
||||
letter-spacing: -0.01em;
|
||||
}
|
||||
.np-fade { display: flex; align-items: center; opacity: 0.7; font-size: 0.8rem; gap: 6px; margin-top: 2px; }
|
||||
.np-title { color: #ccc; font-weight: 500; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||
.np-sep { color: #555; }
|
||||
.np-badge {
|
||||
background: rgba(255, 255, 255, 0.1);
|
||||
color: #fff;
|
||||
padding: 1px 6px;
|
||||
border-radius: 4px;
|
||||
font-size: 0.7rem;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
/* Host Controls (Center) - FIX: Better alignment container */
|
||||
.header-center { flex: 2; display: flex; justify-content: center; z-index: 50; }
|
||||
|
||||
.quick-controls-group {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
background: rgba(20, 20, 20, 0.6);
|
||||
backdrop-filter: blur(12px);
|
||||
padding: 4px 8px; /* Slightly tighter padding */
|
||||
border-radius: 10px;
|
||||
border: 1px solid var(--glass-border);
|
||||
box-shadow: 0 4px 12px rgba(0,0,0,0.2);
|
||||
transition: all 0.2s ease;
|
||||
height: 42px; /* Explicit height to align children */
|
||||
}
|
||||
.quick-controls-group:hover { border-color: rgba(255,255,255,0.15); background: rgba(30, 30, 30, 0.7); }
|
||||
|
||||
/* Toggle Sub/Dub Mini */
|
||||
.sd-toggle.small {
|
||||
height: 32px;
|
||||
background: rgba(255, 255, 255, 0.05);
|
||||
border: 1px solid rgba(255,255,255,0.1);
|
||||
border-radius: 8px;
|
||||
padding: 2px;
|
||||
display: flex;
|
||||
position: relative;
|
||||
cursor: pointer;
|
||||
min-width: 80px;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
.sd-toggle.small .sd-bg {
|
||||
position: absolute;
|
||||
top: 2px; left: 2px;
|
||||
width: calc(50% - 2px); height: calc(100% - 4px);
|
||||
background: rgba(255, 255, 255, 0.2);
|
||||
border-radius: 6px;
|
||||
transition: transform 0.2s cubic-bezier(0.4, 0.0, 0.2, 1);
|
||||
}
|
||||
.sd-toggle[data-state="dub"] .sd-bg { transform: translateX(100%); }
|
||||
.sd-toggle.small .sd-option {
|
||||
flex: 1;
|
||||
z-index: 2;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 0.75rem;
|
||||
font-weight: 700;
|
||||
color: rgba(255,255,255,0.4);
|
||||
transition: color 0.2s;
|
||||
user-select: none;
|
||||
}
|
||||
.sd-toggle.small .sd-option.active { color: #fff; }
|
||||
|
||||
/* Viewers Pill */
|
||||
.viewers-pill {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
background: rgba(0,0,0,0.3);
|
||||
padding: 0 10px;
|
||||
border-radius: 20px;
|
||||
border: 1px solid rgba(255,255,255,0.05);
|
||||
font-size: 0.8rem;
|
||||
color: #aaa;
|
||||
height: 32px;
|
||||
}
|
||||
|
||||
/* =========================================
|
||||
5. VIDEO PLAYER AREA
|
||||
========================================= */
|
||||
.player-wrapper {
|
||||
display: flex !important;
|
||||
flex-direction: column;
|
||||
flex: 1;
|
||||
width: 100%;
|
||||
height: auto !important;
|
||||
min-height: 0;
|
||||
position: relative !important;
|
||||
z-index: 1 !important;
|
||||
background: transparent !important;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.player-container {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.video-frame {
|
||||
flex: 1;
|
||||
min-height: 0;
|
||||
position: relative;
|
||||
background: #000;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
#player {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
max-height: 100%;
|
||||
}
|
||||
|
||||
/* Custom Controls Layout Fixes */
|
||||
.custom-controls {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
z-index: 60;
|
||||
background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
|
||||
padding: 20px 10px 10px;
|
||||
}
|
||||
|
||||
/* FIX: Ensure left controls stay in one line (time display fix) */
|
||||
.controls-left {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.time-display {
|
||||
white-space: nowrap; /* Prevent line break */
|
||||
font-variant-numeric: tabular-nums; /* Monospaced numbers prevent jitter */
|
||||
font-size: 0.9rem;
|
||||
color: #ddd;
|
||||
min-width: fit-content;
|
||||
}
|
||||
|
||||
/* Subtitles Canvas */
|
||||
#subtitles-canvas {
|
||||
position: absolute;
|
||||
top: 0; left: 0;
|
||||
width: 100%; height: 100%;
|
||||
pointer-events: none;
|
||||
z-index: 10;
|
||||
}
|
||||
|
||||
/* Hide unused player buttons in Room Mode */
|
||||
#download-btn,
|
||||
#manual-match-btn,
|
||||
#server-select,
|
||||
#extension-select,
|
||||
#sd-toggle,
|
||||
.side-nav-btn {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
/* Settings Panel Position Fix */
|
||||
.settings-panel {
|
||||
position: absolute;
|
||||
bottom: 70px;
|
||||
right: 20px;
|
||||
z-index: 1000;
|
||||
max-height: 60vh;
|
||||
overflow-y: auto;
|
||||
background: rgba(15, 15, 15, 0.95);
|
||||
border: 1px solid var(--glass-border);
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
/* =========================================
|
||||
6. CHAT SIDEBAR
|
||||
========================================= */
|
||||
.chat-sidebar {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
background: rgba(15, 15, 15, 0.95);
|
||||
border-left: 1px solid var(--glass-border);
|
||||
height: 100%;
|
||||
}
|
||||
.room-layout.chat-hidden .chat-sidebar {
|
||||
opacity: 0;
|
||||
pointer-events: none;
|
||||
border-left: none;
|
||||
}
|
||||
|
||||
.chat-header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: 16px 20px;
|
||||
border-bottom: 1px solid var(--glass-border);
|
||||
}
|
||||
.chat-header h3 { margin: 0; font-size: 1.1rem; font-weight: 700; color: white; }
|
||||
|
||||
/* User List */
|
||||
.users-list {
|
||||
padding: 12px;
|
||||
border-bottom: 1px solid var(--glass-border);
|
||||
max-height: 200px;
|
||||
overflow-y: auto;
|
||||
background: rgba(0,0,0,0.2);
|
||||
}
|
||||
.user-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
padding: 8px 12px;
|
||||
border-radius: 8px;
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
.user-item:hover { background: rgba(255, 255, 255, 0.05); }
|
||||
.user-avatar {
|
||||
width: 32px; height: 32px;
|
||||
border-radius: 50%;
|
||||
background: var(--brand-gradient);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-weight: 700;
|
||||
color: white;
|
||||
font-size: 0.8rem;
|
||||
}
|
||||
.user-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
|
||||
.user-name { flex: 1; font-size: 0.9rem; color: white; }
|
||||
.user-badge {
|
||||
font-size: 0.7rem;
|
||||
background: var(--brand-color);
|
||||
color: white;
|
||||
padding: 2px 8px;
|
||||
border-radius: 4px;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
/* Messages */
|
||||
.chat-messages {
|
||||
flex: 1;
|
||||
overflow-y: auto;
|
||||
padding: 16px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 12px;
|
||||
}
|
||||
.chat-message { display: flex; gap: 10px; }
|
||||
.chat-message.system { justify-content: center; margin: 8px 0; }
|
||||
.chat-message.system .message-content {
|
||||
background: rgba(255, 255, 255, 0.05);
|
||||
color: var(--text-muted);
|
||||
font-size: 0.8rem;
|
||||
text-align: center;
|
||||
padding: 4px 12px;
|
||||
border-radius: 12px;
|
||||
}
|
||||
.message-avatar {
|
||||
width: 36px; height: 36px;
|
||||
border-radius: 50%;
|
||||
background: var(--brand-gradient);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-weight: 700;
|
||||
color: white;
|
||||
font-size: 0.9rem;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.message-body { flex: 1; min-width: 0; }
|
||||
.message-header { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
|
||||
.message-username { font-weight: 600; color: white; font-size: 0.9rem; }
|
||||
.message-time { font-size: 0.75rem; color: rgba(255, 255, 255, 0.4); }
|
||||
.message-content {
|
||||
color: rgba(255, 255, 255, 0.9);
|
||||
font-size: 0.95rem;
|
||||
line-height: 1.4;
|
||||
word-wrap: break-word;
|
||||
}
|
||||
|
||||
/* Input Area */
|
||||
.chat-input {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
padding: 16px;
|
||||
border-top: 1px solid var(--glass-border);
|
||||
}
|
||||
.chat-input input {
|
||||
flex: 1;
|
||||
background: rgba(255, 255, 255, 0.05);
|
||||
border: 1px solid var(--glass-border);
|
||||
color: white;
|
||||
padding: 12px 16px;
|
||||
border-radius: 10px;
|
||||
outline: none;
|
||||
}
|
||||
.chat-input button {
|
||||
background: var(--brand-color);
|
||||
border: none;
|
||||
color: white;
|
||||
padding: 0 16px;
|
||||
border-radius: 10px;
|
||||
cursor: pointer;
|
||||
transition: background 0.2s;
|
||||
}
|
||||
.chat-input button:hover { background: #7c3aed; }
|
||||
|
||||
/* =========================================
|
||||
7. MODALS & CONFIGURATION
|
||||
========================================= */
|
||||
.modal-overlay {
|
||||
position: fixed; inset: 0;
|
||||
background: rgba(0, 0, 0, 0.8);
|
||||
backdrop-filter: blur(8px);
|
||||
display: none;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
z-index: 10000;
|
||||
opacity: 0;
|
||||
transition: opacity 0.3s ease;
|
||||
}
|
||||
.modal-overlay.show { display: flex; opacity: 1; }
|
||||
|
||||
.modal-content {
|
||||
background: rgba(20, 20, 20, 0.95);
|
||||
border: 1px solid var(--glass-border);
|
||||
border-radius: 16px;
|
||||
padding: 32px;
|
||||
max-width: 500px;
|
||||
width: 90%;
|
||||
position: relative;
|
||||
transform: scale(0.9);
|
||||
transition: transform 0.3s ease;
|
||||
}
|
||||
.modal-overlay.show .modal-content { transform: scale(1); }
|
||||
.modal-title { margin: 0 0 24px 0; font-size: 1.5rem; font-weight: 800; color: white; }
|
||||
.modal-header-row { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
|
||||
.modal-header-row .modal-title { margin: 0; }
|
||||
|
||||
/* Forms inside modal */
|
||||
.form-group { margin-bottom: 20px; }
|
||||
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; color: white; }
|
||||
.form-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 24px; }
|
||||
|
||||
/* Search Step */
|
||||
.anime-search-content { max-width: 800px; max-height: 85vh; display: flex; flex-direction: column; }
|
||||
.search-bar { display: flex; gap: 12px; margin-bottom: 20px; }
|
||||
.search-bar button {
|
||||
background: var(--brand-color);
|
||||
border: none; color: white; padding: 12px 24px;
|
||||
border-radius: 10px; font-weight: 700; cursor: pointer;
|
||||
}
|
||||
.anime-results {
|
||||
flex: 1; overflow-y: auto;
|
||||
display: flex; flex-direction: column; gap: 12px;
|
||||
min-height: 300px;
|
||||
}
|
||||
.anime-result-item, .search-item {
|
||||
display: flex; gap: 16px; padding: 12px;
|
||||
background: rgba(255, 255, 255, 0.03);
|
||||
border: 1px solid rgba(255, 255, 255, 0.1);
|
||||
border-radius: 12px;
|
||||
cursor: pointer; text-decoration: none; color: inherit;
|
||||
transition: all 0.2s;
|
||||
}
|
||||
.anime-result-item:hover {
|
||||
background: rgba(255, 255, 255, 0.08);
|
||||
border-color: var(--brand-color);
|
||||
transform: translateX(4px);
|
||||
}
|
||||
.search-poster { width: 60px; height: 85px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
|
||||
.search-info { flex: 1; display: flex; flex-direction: column; justify-content: center; }
|
||||
.search-title { font-weight: 700; color: white; margin-bottom: 4px; font-size: 1rem; }
|
||||
.search-meta { font-size: 0.85rem; color: var(--text-muted); }
|
||||
|
||||
/* Config Step (Unified UI) */
|
||||
.config-layout { display: flex; gap: 24px; margin-top: 20px; }
|
||||
.config-sidebar { width: 140px; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
|
||||
.config-cover {
|
||||
width: 100%; aspect-ratio: 2/3; object-fit: cover;
|
||||
border-radius: 12px; box-shadow: 0 8px 20px rgba(0,0,0,0.4);
|
||||
border: 1px solid var(--glass-border);
|
||||
}
|
||||
.config-main { flex: 1; display: flex; flex-direction: column; gap: 20px; }
|
||||
.cfg-section-title {
|
||||
font-size: 0.85rem; text-transform: uppercase;
|
||||
letter-spacing: 1px; color: rgba(255,255,255,0.5);
|
||||
margin-bottom: 8px; font-weight: 700;
|
||||
}
|
||||
|
||||
/* Episode Stepper */
|
||||
.ep-control {
|
||||
display: flex; align-items: center;
|
||||
background: rgba(255,255,255,0.05);
|
||||
border: 1px solid var(--glass-border);
|
||||
border-radius: 10px; padding: 4px; width: 100%;
|
||||
}
|
||||
.ep-btn {
|
||||
width: 36px; height: 36px;
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
background: rgba(255,255,255,0.1);
|
||||
border: none; color: white; border-radius: 8px;
|
||||
cursor: pointer; transition: 0.2s;
|
||||
}
|
||||
.ep-btn:hover { background: rgba(255,255,255,0.2); }
|
||||
.ep-input {
|
||||
flex: 1; background: transparent; border: none;
|
||||
color: white; text-align: center; font-size: 1.1rem;
|
||||
font-weight: 700; outline: none;
|
||||
}
|
||||
|
||||
/* Category Toggle */
|
||||
.cat-toggle {
|
||||
display: flex; background: rgba(0,0,0,0.3);
|
||||
padding: 4px; border-radius: 10px; width: fit-content;
|
||||
}
|
||||
.cat-opt {
|
||||
padding: 6px 16px; border-radius: 8px;
|
||||
font-size: 0.85rem; color: #888;
|
||||
cursor: pointer; transition: all 0.2s; font-weight: 600;
|
||||
}
|
||||
.cat-opt.active { background: rgba(255,255,255,0.15); color: white; }
|
||||
.cat-opt.disabled { opacity: 0.3; pointer-events: none; text-decoration: line-through; }
|
||||
|
||||
.grid-loader {
|
||||
width: 100%; padding: 20px; text-align: center;
|
||||
color: var(--text-muted); font-size: 0.9rem;
|
||||
}
|
||||
|
||||
@media (max-width: 600px) {
|
||||
.config-layout { flex-direction: column; }
|
||||
.config-sidebar { width: 100%; flex-direction: row; }
|
||||
.config-cover { width: 80px; }
|
||||
.ep-control { width: auto; flex: 1; }
|
||||
}
|
||||
|
||||
/* =========================================
|
||||
8. ROOM LIST / LOBBY (If used externally)
|
||||
========================================= */
|
||||
.container { max-width: 1400px; margin: 0 auto; padding: 80px 40px 40px; }
|
||||
.header h1 {
|
||||
font-size: 2.5rem; font-weight: 800;
|
||||
background: var(--brand-gradient);
|
||||
-webkit-background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
}
|
||||
.rooms-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
|
||||
gap: 24px;
|
||||
}
|
||||
.room-card {
|
||||
background: var(--glass-bg);
|
||||
border: 1px solid var(--glass-border);
|
||||
border-radius: 16px; padding: 24px;
|
||||
backdrop-filter: var(--glass-blur);
|
||||
cursor: pointer; transition: all 0.3s;
|
||||
}
|
||||
.room-card:hover {
|
||||
transform: translateY(-4px);
|
||||
border-color: var(--brand-color);
|
||||
box-shadow: 0 8px 32px rgba(139, 92, 246, 0.3);
|
||||
}
|
||||
.room-card-title { font-size: 1.25rem; font-weight: 700; color: white; margin-bottom: 4px; }
|
||||
.room-card-host { font-size: 0.85rem; color: var(--text-muted); }
|
||||
.room-card-footer {
|
||||
display: flex; justify-content: space-between;
|
||||
align-items: center; padding-top: 16px;
|
||||
border-top: 1px solid rgba(255, 255, 255, 0.1); margin-top: 16px;
|
||||
}
|
||||
|
||||
.join-host-info {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
margin-bottom: 24px;
|
||||
animation: fadeIn 0.5s ease;
|
||||
}
|
||||
|
||||
.join-avatar-container {
|
||||
width: 80px;
|
||||
height: 80px;
|
||||
border-radius: 50%;
|
||||
padding: 3px;
|
||||
background: var(--brand-gradient);
|
||||
margin-bottom: 12px;
|
||||
box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
|
||||
}
|
||||
|
||||
.join-avatar-container img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
border-radius: 50%;
|
||||
object-fit: cover;
|
||||
border: 3px solid #1a1a1a; /* Borde oscuro para separar del gradiente */
|
||||
background: #2a2a2a;
|
||||
}
|
||||
|
||||
.join-text {
|
||||
font-size: 1.1rem;
|
||||
color: white;
|
||||
font-weight: 500;
|
||||
text-align: center;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.join-text span {
|
||||
font-weight: 700;
|
||||
color: #a78bfa;
|
||||
}
|
||||
|
||||
@keyframes fadeIn {
|
||||
from { opacity: 0; transform: translateY(-10px); }
|
||||
to { opacity: 1; transform: translateY(0); }
|
||||
}
|
||||
|
||||
.video-toast-container {
|
||||
position: absolute;
|
||||
bottom: 100px; /* Encima de la barra de controles */
|
||||
left: 20px;
|
||||
z-index: 80; /* Por encima del video, debajo de los controles */
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 10px;
|
||||
pointer-events: none; /* Permitir clicks a través de ellos */
|
||||
max-width: 400px;
|
||||
}
|
||||
|
||||
.video-toast {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
background: rgba(15, 15, 15, 0.85);
|
||||
backdrop-filter: blur(8px);
|
||||
padding: 8px 12px;
|
||||
border-radius: 8px;
|
||||
border-left: 3px solid var(--brand-color);
|
||||
color: white;
|
||||
font-size: 0.9rem;
|
||||
box-shadow: 0 4px 12px rgba(0,0,0,0.3);
|
||||
|
||||
/* Animación de entrada y salida */
|
||||
animation: toastSlideIn 0.3s ease forwards, toastFadeOut 0.5s ease 4.5s forwards;
|
||||
pointer-events: auto; /* Permitir seleccionar texto si se quiere */
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
.toast-avatar {
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
border-radius: 50%;
|
||||
object-fit: cover;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.toast-content {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
.toast-user {
|
||||
font-weight: 700;
|
||||
font-size: 0.8rem;
|
||||
color: #a78bfa;
|
||||
}
|
||||
|
||||
.toast-msg {
|
||||
color: #eee;
|
||||
margin-top: 2px;
|
||||
}
|
||||
|
||||
/* --- BADGE DE NOTIFICACIÓN (Punto Rojo) --- */
|
||||
#toggle-chat-btn {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
#toggle-chat-btn.has-unread::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 2px;
|
||||
right: 2px;
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
background-color: #ef4444; /* Rojo */
|
||||
border: 2px solid #1a1a1a;
|
||||
border-radius: 50%;
|
||||
animation: pulse 2s infinite;
|
||||
}
|
||||
|
||||
@keyframes toastSlideIn {
|
||||
from { opacity: 0; transform: translateX(-20px); }
|
||||
to { opacity: 1; transform: translateX(0); }
|
||||
}
|
||||
|
||||
@keyframes toastFadeOut {
|
||||
from { opacity: 1; transform: translateY(0); }
|
||||
to { opacity: 0; transform: translateY(-10px); visibility: hidden; }
|
||||
}
|
||||
|
||||
@keyframes pulse {
|
||||
0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
|
||||
70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
|
||||
100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
|
||||
}
|
||||
|
||||
.video-toast.system-toast {
|
||||
border-left-color: #9ca3af; /* Borde gris */
|
||||
background: rgba(20, 20, 20, 0.7); /* Un poco más transparente */
|
||||
justify-content: center;
|
||||
padding: 6px 12px;
|
||||
min-height: auto; /* Más compacto */
|
||||
}
|
||||
|
||||
.video-toast.system-toast .toast-msg {
|
||||
font-size: 0.85rem;
|
||||
font-style: italic;
|
||||
color: rgba(255, 255, 255, 0.8);
|
||||
margin: 0;
|
||||
}
|
||||
Reference in New Issue
Block a user