added watchparties

This commit is contained in:
2026-01-04 16:49:59 +01:00
parent cde09c6ffa
commit d9c1ba3d27
48 changed files with 7585 additions and 167 deletions

View File

@@ -11,6 +11,7 @@
<link rel="stylesheet" href="/views/css/components/updateNotifier.css">
<link rel="stylesheet" href="/views/css/components/local-library.css">
<link rel="stylesheet" href="/views/css/components/titlebar.css">
<link rel="stylesheet" href="/views/css/components/create-room.css"/>
<link rel="icon" href="/public/assets/waifuboards.ico" type="image/x-icon">
<script src="/src/scripts/titlebar.js"></script>
</head>
@@ -124,6 +125,7 @@
</a>
</div>
<script src="/src/scripts/utils/auth-utils.js"></script>
<script src="/src/scripts/room-modal.js"></script>
<script src="/src/scripts/utils/notification-utils.js"></script>
<script src="/src/scripts/utils/search-manager.js"></script>
<script src="/src/scripts/utils/list-modal-manager.js"></script>

View File

@@ -10,9 +10,9 @@
<link rel="stylesheet" href="/views/css/components/titlebar.css">
<link rel="stylesheet" href="/views/css/components/anilist-modal.css">
<link rel="stylesheet" href="/views/css/components/updateNotifier.css">
<script src="/src/scripts/room-modal.js"></script>
<link rel="icon" href="/public/assets/waifuboards.ico" type="image/x-icon">
<script src="/src/scripts/titlebar.js"></script>
<link rel="stylesheet" href="/views/css/components/local-library.css">
</head>
<body>
<div id="titlebar"> <div class="title-left">
@@ -101,6 +101,7 @@
</div>
<script src="/src/scripts/utils/auth-utils.js"></script>
<script src="/src/scripts/room-modal.js"></script>
<script src="/src/scripts/utils/notification-utils.js"></script>
<script src="/src/scripts/utils/search-manager.js"></script>
<script src="/src/scripts/utils/list-modal-manager.js"></script>

View File

@@ -53,6 +53,13 @@
<span>Profile</span>
</a>
<button class="dropdown-item" id="nav-create-party">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round">
<path stroke-linecap="round" stroke-linejoin="round" d="M15 19.128a9.38 9.38 0 0 0 2.625.372 9.337 9.337 0 0 0 4.121-.952 4.125 4.125 0 0 0-7.533-2.493M15 19.128v-.003c0-1.113-.285-2.16-.786-3.07M15 19.128v.106A12.318 12.318 0 0 1 8.624 21c-2.331 0-4.512-.645-6.374-1.766l-.001-.109a6.375 6.375 0 0 1 11.964-3.07M12 6.375a3.375 3.375 0 1 1-6.75 0 3.375 3.375 0 0 1 6.75 0Zm8.25 2.25a2.625 2.625 0 1 1-5.25 0 2.625 2.625 0 0 1 5.25 0Z" />
</svg>
<span>Watchparty</span>
</button>
<button class="dropdown-item" id="nav-settings">
<svg width="18" height="18" fill="none" stroke="currentColor" stroke-width="2" viewBox="0 0 24 24">
<circle cx="12" cy="12" r="3"/>

View 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; }
}

View File

@@ -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
View 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;
}

View File

@@ -10,7 +10,7 @@
<link rel="icon" href="/public/assets/waifuboards.ico" type="image/x-icon">
<link rel="stylesheet" href="/views/css/components/updateNotifier.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css">
<script src="/src/scripts/room-modal.js"></script>
<script src="https://unpkg.com/masonry-layout@4/dist/masonry.pkgd.min.js" async></script>
<link rel="stylesheet" href="/views/css/components/titlebar.css">
<script src="/src/scripts/titlebar.js"></script>
@@ -66,6 +66,7 @@
</div>
<script src="/src/scripts/updateNotifier.js"></script>
<script src="/src/scripts/room-modal.js"></script>
<script src="/src/scripts/gallery/gallery.js"></script>
<script src="/src/scripts/rpc-inapp.js"></script>
<script src="/src/scripts/auth-guard.js"></script>

View File

@@ -12,6 +12,7 @@
<link rel="icon" href="/public/assets/waifuboards.ico" type="image/x-icon">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css">
<link rel="stylesheet" href="/views/css/components/updateNotifier.css">
<script src="/src/scripts/room-modal.js"></script>
<script src="/src/scripts/titlebar.js"></script>
</head>
<body>
@@ -56,6 +57,7 @@
</div>
<script src="/src/scripts/updateNotifier.js"></script>
<script src="/src/scripts/room-modal.js"></script>
<script src="/src/scripts/gallery/image.js"></script>
<script src="/src/scripts/rpc-inapp.js"></script>
<script src="/src/scripts/auth-guard.js"></script>

View File

@@ -10,6 +10,8 @@
<link rel="stylesheet" href="/views/css/components/updateNotifier.css">
<link rel="icon" href="/public/assets/waifuboards.ico" type="image/x-icon">
<link rel="stylesheet" href="/views/css/components/titlebar.css">
<link rel="stylesheet" href="/views/css/components/create-room.css"/>
<script src="/src/scripts/titlebar.js"></script>
</head>
<body>
<div id="titlebar">
@@ -66,9 +68,9 @@
</main>
<script src="/src/scripts/utils/notification-utils.js"></script>
<link rel="stylesheet" href="/views/css/components/create-room.css"/>
<script src="/src/scripts/updateNotifier.js"></script>
<script src="/src/scripts/marketplace.js"></script>
<script src="/src/scripts/titlebar.js"></script>
<script src="/src/scripts/rpc-inapp.js"></script>
<script src="/src/scripts/auth-guard.js"></script>
<script src="/src/scripts/settings.js"></script>

View File

@@ -11,6 +11,7 @@
<link rel="stylesheet" href="/views/css/profile.css">
<link rel="stylesheet" href="/views/css/components/updateNotifier.css">
<link rel="stylesheet" href="/views/css/components/titlebar.css">
<link rel="stylesheet" href="/views/css/components/create-room.css"/>
<script src="/src/scripts/titlebar.js"></script>
</head>
<body>
@@ -227,6 +228,7 @@
</div>
<script src="/src/scripts/updateNotifier.js"></script>
<script src="/src/scripts/room-modal.js"></script>
<script src="/src/scripts/rpc-inapp.js"></script>
<script src="/src/scripts/auth-guard.js"></script>
<script src="/src/scripts/utils/auth-utils.js"></script>

267
desktop/views/room.html Normal file
View File

@@ -0,0 +1,267 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="icon" href="/public/assets/waifuboards.ico" type="image/x-icon" />
<title>Watch Party - WaifuBoard</title>
<script src="https://cdn.jsdelivr.net/npm/hls.js@latest"></script>
<script type="module">
import JASSUB from 'https://cdn.jsdelivr.net/npm/jassub@1.8.8/dist/jassub.es.js';
window.JASSUB = JASSUB;
</script>
<link rel="stylesheet" href="/views/css/globals.css" />
<link rel="stylesheet" href="/views/css/anime/player.css" />
<link rel="stylesheet" href="/views/css/room.css" />
<link rel="stylesheet" href="/views/css/components/titlebar.css">
<script src="/src/scripts/titlebar.js"></script>
</head>
<body>
<div id="titlebar">
<div class="title-left">
<img class="app-icon" src="/public/assets/waifuboards.ico" alt=""/>
<span class="app-title">WaifuBoard</span>
</div>
<div class="title-right">
<button class="min"></button>
<button class="max">🗖</button>
<button class="close"></button>
</div>
</div>
<div id="room-view">
<div class="room-layout" id="room-layout">
<div class="video-area">
<div class="room-header">
<div class="header-left">
<button id="leave-room-btn" class="btn-icon-glass" title="Leave">
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M19 12H5M12 19l-7-7 7-7"/></svg>
</button>
<div class="room-info">
<h2 id="room-name">Loading...</h2>
<div id="now-playing-info" class="np-fade">
<span id="np-title" class="np-title">Waiting selection...</span>
<span class="np-sep"></span>
<span id="np-episode" class="np-badge">Episode --</span>
</div>
</div>
</div>
<div class="header-center" id="host-controls" style="display: none;">
<div class="quick-controls-group">
<div class="sd-toggle small" id="room-sd-toggle" data-state="sub">
<div class="sd-bg"></div>
<div class="sd-option active" data-val="sub">Sub</div>
<div class="sd-option" data-val="dub">Dub</div>
</div>
<select id="room-ext-select" class="glass-select-sm" title="Extension">
<option value="" disabled selected>Ext</option>
</select>
<select id="room-server-select" class="glass-select-sm" title="Server">
<option value="" disabled selected>Server</option>
</select>
</div>
</div>
<div class="header-right">
<div class="viewers-pill">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"></path><circle cx="9" cy="7" r="4"></circle><path d="M23 21v-2a4 4 0 0 0-3-3.87"></path><path d="M16 3.13a4 4 0 0 1 0 7.75"></path></svg>
<span id="room-viewers">0</span>
</div>
<button id="select-anime-btn" class="btn-glass-primary" style="display: none;">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5"><circle cx="11" cy="11" r="8"></circle><path d="m21 21-4.35-4.35"></path></svg>
<span>Change Anime</span>
</button>
<button id="toggle-chat-btn" class="btn-icon-glass" title="Toggle Chat">
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><line x1="9" y1="3" x2="9" y2="21"></line></svg>
</button>
</div>
</div>
<div class="player-wrapper">
<div class="player-container show-cursor">
<div class="video-frame">
<canvas id="subtitles-canvas"></canvas>
<div id="video-toast-container" class="video-toast-container"></div>
<video id="player" crossorigin="anonymous" playsinline></video>
<div id="player-loading" class="player-loading-overlay">
<div class="spinner"></div>
<p id="player-loading-text">Waiting for host...</p>
</div>
</div>
<div class="custom-controls">
<div class="progress-container">
<div class="progress-buffer"></div>
<div class="progress-played"></div>
<div class="progress-handle"></div>
</div>
<div class="controls-row">
<div class="controls-left">
<button class="control-btn play-pause" id="play-pause-btn">
<svg viewBox="0 0 24 24"><path d="M8 5v14l11-7z"/></svg>
</button>
<button class="control-btn volume" id="volume-btn">
<svg viewBox="0 0 24 24"><path d="M3 9v6h4l5 5V4L7 9H3zm13.5 3c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02z"/></svg>
</button>
<input type="range" class="volume-slider" id="volume-slider" min="0" max="100" value="100">
<span class="time-display" id="time-display">0:00 / 0:00</span>
</div>
<div class="controls-center"></div>
<div class="controls-right">
<button class="control-btn settings" id="settings-btn">
<svg viewBox="0 0 24 24"><path d="M19.14,12.94c0.04-0.3,0.06-0.61,0.06-0.94c0-0.32-0.02-0.64-0.07-0.94l2.03-1.58c0.18-0.14,0.23-0.41,0.12-0.61 l-1.92-3.32c-0.12-0.22-0.37-0.29-0.59-0.22l-2.39,0.96c-0.5-0.38-1.03-0.7-1.62-0.94L14.4,2.81c-0.04-0.24-0.24-0.41-0.48-0.41 h-3.84c-0.24,0-0.43,0.17-0.47,0.41L9.25,5.35C8.66,5.59,8.12,5.92,7.63,6.29L5.24,5.33c-0.22-0.08-0.47,0-0.59,0.22L2.74,8.87 C2.62,9.08,2.66,9.34,2.86,9.48l2.03,1.58C4.84,11.36,4.8,11.69,4.8,12s0.02,0.64,0.07,0.94l-2.03,1.58 c-0.18,0.14-0.23,0.41-0.12,0.61l1.92,3.32c0.12,0.22,0.37,0.29,0.59,0.22l2.39-0.96c0.5,0.38,1.03,0.7,1.62,0.94l0.36,2.54 c0.05,0.24,0.24,0.41,0.48,0.41h3.84c0.24,0,0.44-0.17,0.47-0.41l0.36-2.54c0.59-0.24,1.13-0.56,1.62-0.94l2.39,0.96 c0.22,0.08,0.47,0,0.59-0.22l1.92-3.32c0.12-0.22,0.07-0.47-0.12-0.61L19.14,12.94z M12,15.6c-1.98,0-3.6-1.62-3.6-3.6 s1.62-3.6,3.6-3.6s3.6,1.62,3.6,3.6S13.98,15.6,12,15.6z"/></svg>
</button>
<div class="settings-panel" id="settings-panel"></div>
<button class="control-btn fullscreen" id="fullscreen-btn">
<svg viewBox="0 0 24 24"><path d="M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"/></svg>
</button>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="chat-sidebar" id="chat-sidebar">
<div class="chat-header">
<h3>Chat</h3>
<button id="toggle-users-btn" class="btn-icon-glass" title="Toggle User List">
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"></path>
<circle cx="9" cy="7" r="4"></circle>
<path d="M23 21v-2a4 4 0 0 0-3-3.87"></path>
</svg>
</button>
</div>
<div class="users-list" id="users-list" style="display: none;"></div>
<div class="chat-messages" id="chat-messages"></div>
<form class="chat-input" id="chat-form" autocomplete="off">
<input type="text" id="chat-input" placeholder="Type a message..." maxlength="500" autocomplete="off" autocapitalize="off" spellcheck="false" />
<button type="submit">
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><line x1="22" y1="2" x2="11" y2="13"></line><polygon points="22 2 15 22 11 13 2 9 22 2"></polygon></svg>
</button>
</form>
</div>
</div>
</div>
<div class="modal-overlay" id="join-room-modal">
<div class="modal-content">
<div id="join-host-info" class="join-host-info" style="display: none;">
<div class="join-avatar-container">
<img id="join-host-avatar" src="" alt="Host">
</div>
<p id="join-host-text" class="join-text"></p>
</div>
<h2 class="modal-title" style="text-align: center;">Join Room</h2>
<form id="join-room-form">
<div class="form-group">
<label>Your Name</label>
<input type="text" id="guest-name-input" placeholder="Enter your name" maxlength="30" />
</div>
<div class="form-group" id="password-group" style="display: none;">
<label>Room Password</label>
<input type="password" id="join-password-input" placeholder="Enter password" maxlength="50" />
</div>
<div class="form-actions" style="justify-content: center;">
<button type="button" class="btn-cancel" id="cancel-join-btn">Go Back</button>
<button type="submit" class="btn-confirm">Join Party</button>
</div>
</form>
</div>
</div>
<div class="modal-overlay" id="anime-search-modal">
<div class="modal-content anime-search-content">
<button class="modal-close" id="close-search-modal"></button>
<div id="step-search">
<h2 class="modal-title">Select Anime</h2>
<div class="search-bar">
<input type="text" id="anime-search-input" placeholder="Search anime..." />
<button id="anime-search-btn">Search</button>
</div>
<div id="anime-results" class="anime-results"></div>
</div>
<div id="step-config" style="display: none;">
<div class="modal-header-row">
<button class="btn-icon-small" id="back-to-search" title="Back">
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M19 12H5M12 19l-7-7 7-7"/></svg>
</button>
<h2 class="modal-title" id="selected-anime-title">Configure Stream</h2>
</div>
<div class="config-layout">
<div class="config-sidebar">
<img id="config-cover" class="config-cover" src="" alt="Cover">
<div style="width: 100%">
<div class="cfg-section-title">Episode</div>
<div class="ep-control">
<button class="ep-btn" id="ep-dec"></button>
<input type="number" id="inp-episode" class="ep-input" value="1" min="1">
<button class="ep-btn" id="ep-inc">+</button>
</div>
</div>
</div>
<div class="config-main">
<div style="display:flex; justify-content:space-between; align-items:end; gap:10px; flex-wrap:wrap;">
<div>
<div class="cfg-section-title">Source</div>
<div class="chips-grid" id="ext-chips-container">
</div>
</div>
<div>
<div class="cfg-section-title">Audio</div>
<div class="cat-toggle" id="modal-sd-toggle">
<div class="cat-opt active" data-val="sub">Subtitles</div>
<div class="cat-opt" data-val="dub">Dubbed</div>
</div>
</div>
</div>
<div>
<div class="cfg-section-title">Select Server</div>
<div class="chips-grid" id="server-chips-container">
<div class="grid-loader">Select a source first</div>
</div>
</div>
<div id="config-error" style="color:#ff6b6b; font-size:0.9rem; display:none; background:rgba(255,0,0,0.1); padding:10px; border-radius:8px;"></div>
<div class="form-actions" style="margin-top:auto;">
<button id="btn-launch-stream" class="btn-confirm full-width" disabled>
<svg width="20" height="20" viewBox="0 0 24 24" fill="currentColor"><path d="M8 5v14l11-7z"/></svg>
Play in Room
</button>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="/src/scripts/utils/auth-utils.js"></script>
<script src="/src/scripts/utils/search-manager.js"></script>
<script src="/src/scripts/anime/subtitle-renderer.js"></script>
<script src="/src/scripts/anime/player.js"></script>
<script src="/src/scripts/room.js"></script>
</body>
</html>

View File

@@ -13,6 +13,7 @@
<link rel="stylesheet" href="/views/css/components/navbar.css">
<link rel="stylesheet" href="/views/css/components/updateNotifier.css">
<link rel="stylesheet" href="/views/css/components/titlebar.css">
<link rel="stylesheet" href="/views/css/components/create-room.css"/>
<script src="/src/scripts/titlebar.js"></script>
</head>
<body>
@@ -89,6 +90,7 @@
</div>
<script src="/src/scripts/updateNotifier.js"></script>
<script src="/src/scripts/room-modal.js"></script>
<script src="/src/scripts/schedule/schedule.js"></script>
<script src="/src/scripts/rpc-inapp.js"></script>
<script src="/src/scripts/auth-guard.js"></script>