
- Fixed double playback issue on stream page by properly scoping event delegation in streams-ui.js - Added init-personal-stream.js to handle UID for personal stream playback - Improved error handling and logging for audio playback - Added proper event propagation control to prevent duplicate event handling
2050 lines
39 KiB
CSS
2050 lines
39 KiB
CSS
/* Import component styles */
|
|
@import url('./css/components/file-upload.css');
|
|
|
|
/* Base Styles */
|
|
:root {
|
|
--primary-color: #4a6fa5;
|
|
--primary-hover: #3a5a8c;
|
|
--text-color: #f0f0f0;
|
|
--text-muted: #888;
|
|
--background: #1a1a1a;
|
|
--surface: #2a2a2a;
|
|
--border: #444;
|
|
--border-light: #555;
|
|
--border-lighter: #666;
|
|
--text-light: #999;
|
|
--text-lighter: #bbb;
|
|
--error: #ff4444;
|
|
--error-hover: #ff6666;
|
|
--success: #2e8b57;
|
|
--warning: #ff6600;
|
|
--info: #1e90ff;
|
|
--code-bg: #222;
|
|
--link-hover: #74c0fc;
|
|
--transition: all 0.2s ease;
|
|
}
|
|
|
|
/* Reset and Base Styles */
|
|
* {
|
|
box-sizing: border-box;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
body {
|
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
|
|
line-height: 1.6;
|
|
color: var(--text-color);
|
|
background-color: var(--background);
|
|
-webkit-font-smoothing: antialiased;
|
|
}
|
|
|
|
/* Typography */
|
|
h1, h2, h3, h4, h5, h6 {
|
|
margin-bottom: 1rem;
|
|
line-height: 1.2;
|
|
font-weight: 600;
|
|
}
|
|
|
|
h1 {
|
|
font-size: 2.5rem;
|
|
font-weight: 700;
|
|
}
|
|
|
|
/* Base h2 styles - applied to all h2 elements */
|
|
h2 {
|
|
font-size: 2rem;
|
|
font-weight: 600;
|
|
line-height: 1.2;
|
|
margin: 1.5rem auto; /* Center with auto margins */
|
|
color: var(--text-color);
|
|
font-family: inherit;
|
|
text-align: center; /* Center text by default */
|
|
display: block;
|
|
width: 100%;
|
|
max-width: 800px; /* Optional: Limit width for better readability */
|
|
}
|
|
|
|
/* Utility classes for h2 variations */
|
|
h2.section-header {
|
|
color: var(--text-light);
|
|
padding: 1rem 1.5rem;
|
|
margin: 0;
|
|
font-size: 1.8rem;
|
|
font-weight: 500;
|
|
text-align: center;
|
|
}
|
|
|
|
h2.guest-login {
|
|
font-size: 1.1em;
|
|
font-weight: 500;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
display: inline-block;
|
|
background: var(--success);
|
|
color: var(--text-light);
|
|
padding: 0.4em 1em;
|
|
border-radius: 5px;
|
|
text-decoration: none;
|
|
margin: 0.5em 0;
|
|
transition: background 0.2s ease;
|
|
}
|
|
|
|
h2.guest-login:hover {
|
|
background: #256b45;
|
|
}
|
|
h3 {
|
|
font-size: 1.75rem;
|
|
font-weight: 500;
|
|
text-align: center;
|
|
width: 100%;
|
|
margin: 0.5rem 0 1.5rem;
|
|
}
|
|
h4 { font-size: 1.5rem; }
|
|
h5 { font-size: 1.25rem; }
|
|
h6 { font-size: 1rem; }
|
|
|
|
p {
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
a {
|
|
color: var(--primary-color);
|
|
text-decoration: none;
|
|
transition: var(--transition);
|
|
}
|
|
|
|
a:hover {
|
|
color: var(--primary-hover);
|
|
text-decoration: underline;
|
|
}
|
|
|
|
/* Layout */
|
|
body {
|
|
min-height: 100vh;
|
|
display: flex;
|
|
flex-direction: column;
|
|
margin: 0;
|
|
}
|
|
|
|
main {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
padding: 1rem 1.25rem;
|
|
box-sizing: border-box;
|
|
width: 100%;
|
|
max-width: 800px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
/* Global section styles */
|
|
section {
|
|
width: 100%;
|
|
max-width: 100%;
|
|
margin-bottom: 1.5rem;
|
|
background: var(--surface);
|
|
border-radius: var(--border-radius);
|
|
overflow: hidden;
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
/* Page containers */
|
|
#welcome-page,
|
|
#register-page,
|
|
#stream-page,
|
|
#me-page,
|
|
#terms-page,
|
|
#privacy-page,
|
|
#imprint-page,
|
|
/* Legal pages container */
|
|
#terms-page,
|
|
#privacy-page,
|
|
#imprint-page {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
width: 100%;
|
|
}
|
|
|
|
/* Article styles */
|
|
article, #account-deletion {
|
|
/* Base article styles - card appearance by default */
|
|
background: var(--surface);
|
|
border-radius: 8px;
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
|
|
padding: 1.6875rem; /* 27px */
|
|
box-sizing: border-box;
|
|
margin: 2rem auto;
|
|
max-width: 600px;
|
|
width: 100%;
|
|
color: var(--text-color);
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
/* Article with top border */
|
|
article.article--bordered {
|
|
border-top: 1px solid var(--border);
|
|
padding: 2rem;
|
|
margin: 2rem auto;
|
|
}
|
|
|
|
/* Ensure account deletion section matches article styling */
|
|
#account-deletion {
|
|
padding: 2rem;
|
|
margin: 2rem auto;
|
|
}
|
|
|
|
article.article--wide {
|
|
/* For wider articles */
|
|
max-width: 800px;
|
|
padding: 2rem;
|
|
}
|
|
|
|
/* Forms */
|
|
form {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1rem;
|
|
width: 100%;
|
|
max-width: 500px;
|
|
margin: 0 auto;
|
|
padding: 1.5rem;
|
|
}
|
|
|
|
/* Form elements */
|
|
input[type="email"],
|
|
input[type="text"],
|
|
input[type="password"],
|
|
textarea {
|
|
width: 100%;
|
|
padding: 0.75rem 1rem;
|
|
margin: 0.25rem 0;
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--border-radius);
|
|
background: var(--background);
|
|
color: var(--text-color);
|
|
font-size: 1rem;
|
|
transition: var(--transition);
|
|
}
|
|
|
|
input[type="email"]:focus,
|
|
input[type="text"]:focus,
|
|
input[type="password"]:focus,
|
|
textarea:focus {
|
|
outline: none;
|
|
border-color: var(--primary-color);
|
|
box-shadow: 0 0 0 2px rgba(74, 111, 165, 0.25);
|
|
}
|
|
|
|
/* Buttons */
|
|
button,
|
|
.button,
|
|
input[type="submit"] {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border: none;
|
|
border-radius: var(--border-radius);
|
|
background: var(--primary-color);
|
|
color: white;
|
|
cursor: pointer;
|
|
transition: var(--transition);
|
|
text-align: center;
|
|
text-decoration: none;
|
|
padding: 0.5em 1em;
|
|
}
|
|
|
|
button:hover:not(#logout-button):not(#delete-account-from-privacy),
|
|
.button:hover:not(#logout-button):not(#delete-account-from-privacy),
|
|
input[type="submit"]:hover:not(#logout-button):not(#delete-account-from-privacy) {
|
|
background: var(--primary-hover);
|
|
}
|
|
|
|
button:active:not(#logout-button):not(#delete-account-from-privacy),
|
|
.button:active:not(#logout-button):not(#delete-account-from-privacy),
|
|
input[type="submit"]:active:not(#logout-button):not(#delete-account-from-privacy) {
|
|
opacity: 0.9;
|
|
}
|
|
|
|
/* Special button styles */
|
|
#logout-button,
|
|
#delete-account-from-privacy,
|
|
.email-section .button {
|
|
background: transparent !important;
|
|
color: var(--warning) !important;
|
|
border: 1px solid var(--warning) !important;
|
|
display: block;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
#logout-button:hover,
|
|
#delete-account-from-privacy:hover,
|
|
.email-section .button:hover {
|
|
background: rgba(255, 102, 0, 0.1) !important;
|
|
}
|
|
|
|
/* Logout Section */
|
|
.logout-section {
|
|
width: 100%;
|
|
max-width: 600px;
|
|
margin: 2rem auto;
|
|
text-align: center;
|
|
padding: 2rem;
|
|
cursor: default;
|
|
}
|
|
|
|
/* Centered Container */
|
|
.centered-container {
|
|
text-align: center;
|
|
margin: 1.5rem 0;
|
|
}
|
|
|
|
/* Email Section */
|
|
.email-section {
|
|
text-align: center;
|
|
margin: 2em 0;
|
|
}
|
|
|
|
.email-section .button {
|
|
display: inline-block;
|
|
}
|
|
|
|
/* Utility Classes */
|
|
.text-center { text-align: center; }
|
|
.text-muted { color: var(--text-muted); }
|
|
.mt-1 { margin-top: 0.5rem; }
|
|
.mb-1 { margin-bottom: 0.5rem; }
|
|
.mt-2 { margin-top: 1rem; }
|
|
.mb-2 { margin-bottom: 1rem; }
|
|
.mt-3 { margin-top: 1.5rem; }
|
|
.mb-3 { margin-bottom: 1.5rem; }
|
|
|
|
/* Audio Player Specific Styles */
|
|
.audio-player {
|
|
width: 100%;
|
|
max-width: 600px;
|
|
margin: 0 auto;
|
|
padding: 1rem;
|
|
background: var(--surface);
|
|
border-radius: var(--border-radius);
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.audio-controls {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 1rem;
|
|
margin-top: 1rem;
|
|
}
|
|
|
|
.audio-progress {
|
|
flex: 1;
|
|
height: 4px;
|
|
background: var(--border);
|
|
border-radius: 2px;
|
|
cursor: pointer;
|
|
position: relative;
|
|
}
|
|
|
|
.audio-progress-filled {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
height: 100%;
|
|
background: var(--primary-color);
|
|
border-radius: 2px;
|
|
transition: width 0.1s linear;
|
|
}
|
|
|
|
.time-display {
|
|
font-size: 0.875rem;
|
|
color: var(--text-muted);
|
|
min-width: 80px;
|
|
text-align: center;
|
|
}
|
|
|
|
/* Form Elements */
|
|
form {
|
|
max-width: 600px;
|
|
margin: 1.5rem auto;
|
|
padding: 0 1rem;
|
|
}
|
|
|
|
label {
|
|
display: block;
|
|
margin-bottom: 0.5rem;
|
|
font-weight: 500;
|
|
color: var(--text-color);
|
|
}
|
|
|
|
input[type="email"],
|
|
input[type="text"],
|
|
input[type="password"] {
|
|
width: 100%;
|
|
padding: 0.75rem;
|
|
margin-bottom: 1rem;
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--border-radius);
|
|
background-color: var(--background);
|
|
color: var(--text-color);
|
|
font-size: 1rem;
|
|
transition: var(--transition);
|
|
max-width: 100%;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
input[type="email"]:focus,
|
|
input[type="text"]:focus,
|
|
input[type="password"]:focus {
|
|
outline: none;
|
|
border-color: var(--primary-color);
|
|
box-shadow: 0 0 0 2px rgba(74, 111, 165, 0.25);
|
|
}
|
|
|
|
button,
|
|
input[type="submit"],
|
|
input[type="button"] {
|
|
background-color: var(--primary-color);
|
|
color: white;
|
|
border: none;
|
|
border-radius: var(--border-radius);
|
|
padding: 0.75rem 1.5rem;
|
|
font-size: 1rem;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
transition: var(--transition);
|
|
margin-top: 1rem;
|
|
width: 100%;
|
|
max-width: 300px;
|
|
display: block;
|
|
}
|
|
|
|
button:hover:not(:disabled):not(#logout-button):not(#delete-account-from-privacy),
|
|
input[type="submit"]:hover:not(:disabled):not(#logout-button):not(#delete-account-from-privacy),
|
|
input[type="button"]:hover:not(:disabled):not(#logout-button):not(#delete-account-from-privacy) {
|
|
background-color: var(--primary-hover);
|
|
}
|
|
|
|
button:disabled,
|
|
input[type="submit"]:disabled,
|
|
input[type="button"]:disabled {
|
|
opacity: 0.6;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
/* Form Notes */
|
|
.form-note {
|
|
display: block;
|
|
font-size: 0.85em;
|
|
color: var(--text-muted);
|
|
margin: 0.5rem 0 1rem;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.session-note {
|
|
opacity: 0.65;
|
|
margin-top: 1rem;
|
|
}
|
|
|
|
/* Bot trap - hide from view but keep accessible to screen readers */
|
|
.bot-trap {
|
|
position: absolute;
|
|
left: -9999px;
|
|
opacity: 0;
|
|
height: 1px;
|
|
width: 1px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* Add subtle dividers between sections */
|
|
section + section {
|
|
border-top: 1px solid var(--border);
|
|
}
|
|
|
|
nav#guest-dashboard.dashboard-nav {
|
|
width: fit-content; /* optional: shrink to fit content */
|
|
margin: 0 auto; /* fallback for block centering */
|
|
}
|
|
|
|
/* Toast notification styles */
|
|
.toast-container {
|
|
position: fixed;
|
|
left: 50%;
|
|
bottom: 40px;
|
|
transform: translateX(-50%);
|
|
z-index: 10000;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
pointer-events: none;
|
|
min-width: 300px;
|
|
max-width: 90%;
|
|
}
|
|
|
|
.toast {
|
|
background: rgba(30, 30, 30, 0.95);
|
|
color: var(--text-light);
|
|
padding: 1.2em 2em;
|
|
border-radius: 8px;
|
|
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
|
|
margin-top: 0.8em;
|
|
opacity: 0;
|
|
animation: fadeInOut 3.5s both;
|
|
font-size: 1.1em;
|
|
pointer-events: auto;
|
|
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
text-align: center;
|
|
line-height: 1.5;
|
|
backdrop-filter: blur(10px);
|
|
-webkit-backdrop-filter: blur(10px);
|
|
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
|
|
transform: translateZ(0);
|
|
will-change: transform, opacity;
|
|
}
|
|
|
|
@keyframes fadeInOut {
|
|
0% { opacity: 0; transform: translateY(40px) scale(0.96); }
|
|
10% { opacity: 1; transform: translateY(0) scale(1); }
|
|
90% { opacity: 1; transform: translateY(0) scale(1); }
|
|
100% { opacity: 0; transform: translateY(40px) scale(0.96); }
|
|
}
|
|
|
|
.spinner {
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
transform: translate(-50%, -50%);
|
|
z-index: 10;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 1.2em;
|
|
pointer-events: none; /* allow clicks through except for children */
|
|
}
|
|
.spinner > * {
|
|
pointer-events: auto;
|
|
}
|
|
|
|
/* Me Page Header */
|
|
#me-page > div {
|
|
position: relative;
|
|
margin: 0 0 1.5rem 0;
|
|
text-align: center;
|
|
}
|
|
|
|
/* Me page h2 uses section-header class */
|
|
|
|
#me-page .header-actions {
|
|
position: absolute;
|
|
right: 0;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
/* Common Button Styles */
|
|
.action-btn {
|
|
font-size: 1rem;
|
|
padding: 0.5em 1em;
|
|
white-space: nowrap;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border: none;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
min-height: 2.5em;
|
|
transition: all 0.2s ease;
|
|
text-align: center;
|
|
line-height: 1.2;
|
|
color: var(--text-light);
|
|
}
|
|
|
|
/* Button specific styles */
|
|
#delete-account-button {
|
|
background-color: var(--error);
|
|
}
|
|
|
|
#delete-account-button:hover {
|
|
background-color: var(--error-hover);
|
|
}
|
|
|
|
#logout-button {
|
|
background: var(--primary-color);
|
|
}
|
|
|
|
#logout-button:hover {
|
|
background: var(--primary-hover);
|
|
}
|
|
|
|
/* Quota meter and uploaded files section */
|
|
#quota-meter {
|
|
background: var(--surface); /* Match article background */
|
|
border: 1px solid var(--border);
|
|
border-radius: 8px;
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
|
|
padding: 1.6875rem;
|
|
box-sizing: border-box;
|
|
margin: 2rem auto;
|
|
max-width: 600px;
|
|
width: 100%;
|
|
color: var(--text-light);
|
|
}
|
|
|
|
#quota-meter {
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
#quota-meter h4 {
|
|
font-weight: 400;
|
|
text-align: center;
|
|
margin: 1.5rem 0 0.75rem;
|
|
color: var(--text);
|
|
}
|
|
|
|
#quota-meter > h4 {
|
|
margin-top: 1.5rem;
|
|
text-align: center;
|
|
font-weight: 400;
|
|
color: var(--text);
|
|
}
|
|
|
|
.file-list {
|
|
list-style: none;
|
|
padding: 0;
|
|
margin: 0.5rem 0 0;
|
|
border: 1px solid var(--border);
|
|
border-radius: 6px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.file-item {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 0.75rem 1rem;
|
|
border-bottom: 1px solid var(--border);
|
|
transition: background-color 0.2s ease;
|
|
}
|
|
|
|
.file-item:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.file-item:hover {
|
|
background-color: var(--surface-hover);
|
|
}
|
|
|
|
.file-name {
|
|
flex: 1;
|
|
min-width: 0;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
padding-right: 1rem;
|
|
}
|
|
|
|
.stored-as {
|
|
font-size: 0.8em;
|
|
color: var(--text-muted);
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
margin-top: 0.25rem;
|
|
}
|
|
|
|
.file-size {
|
|
color: var(--text-muted);
|
|
white-space: nowrap;
|
|
font-size: 0.9em;
|
|
margin-right: 0.5rem;
|
|
}
|
|
|
|
.delete-file {
|
|
background: none;
|
|
border: none;
|
|
color: var(--text-muted);
|
|
cursor: pointer;
|
|
padding: 0.25rem 0.5rem;
|
|
margin-left: 0.5rem;
|
|
border-radius: 4px;
|
|
font-size: 0.9em;
|
|
transition: all 0.2s ease;
|
|
opacity: 0.7;
|
|
}
|
|
|
|
.delete-file:hover {
|
|
color: var(--danger);
|
|
background-color: rgba(255, 99, 71, 0.1);
|
|
opacity: 1;
|
|
}
|
|
|
|
.delete-file:focus {
|
|
outline: none;
|
|
box-shadow: 0 0 0 2px var(--danger);
|
|
}
|
|
|
|
.stored-as .delete-file {
|
|
margin-left: 0.5rem;
|
|
font-size: 0.8em;
|
|
}
|
|
|
|
.loading-message,
|
|
.empty-message {
|
|
padding: 0.75rem 1rem;
|
|
color: var(--text-muted);
|
|
font-style: italic;
|
|
text-align: center;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
|
|
.empty-message {
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
#uploaded-files > div:first-child {
|
|
font-weight: 600;
|
|
margin-bottom: 0.5rem;
|
|
color: var(--text-color);
|
|
}
|
|
|
|
#file-list {
|
|
max-height: 200px;
|
|
overflow-y: auto;
|
|
border: 1px solid var(--border);
|
|
padding: 0.5rem;
|
|
border-radius: 4px;
|
|
background: var(--background);
|
|
margin: 0;
|
|
list-style: none;
|
|
}
|
|
|
|
#file-list > div {
|
|
padding: 0.5rem 0;
|
|
color: var(--text-muted);
|
|
font-style: italic;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
|
|
#file-list > div:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
#quota-meter:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
|
|
}
|
|
|
|
.quota-meter {
|
|
font-size: 0.9em;
|
|
color: var(--text-muted);
|
|
margin: 0 0 1rem 0;
|
|
}
|
|
|
|
#file-list {
|
|
margin: 1rem 0 0 0;
|
|
padding: 0;
|
|
list-style: none;
|
|
}
|
|
|
|
#file-list > div {
|
|
padding: 0.5rem 0;
|
|
border-bottom: 1px solid var(--border-color, #333);
|
|
}
|
|
|
|
#file-list > div:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.footer-hint {
|
|
font-size: 0.9em;
|
|
opacity: 0.7;
|
|
}
|
|
|
|
|
|
|
|
.cancel-upload {
|
|
display: none;
|
|
margin-top: 0.4em;
|
|
font-size: 0.95em;
|
|
background: #b22222;
|
|
color: var(--text-light);
|
|
border: none;
|
|
padding: 0.5em 1.2em;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
box-shadow: 0 2px 6px rgba(0,0,0,.08);
|
|
transition: background 0.2s;
|
|
}
|
|
.cancel-upload:hover {
|
|
background: #e74c3c;
|
|
}
|
|
|
|
.delete-account {
|
|
margin-top: 1em;
|
|
background: #ccc;
|
|
color: var(--text-light);
|
|
padding: 0.4em 1em;
|
|
border-radius: 5px;
|
|
font-size: 0.9em;
|
|
border: none;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.me-url {
|
|
width: 100%;
|
|
font-family: monospace;
|
|
margin: 0.5em 0;
|
|
padding: 0.4em;
|
|
border: 1px solid #ccc;
|
|
border-radius: 4px;
|
|
background: #f9f9f9;
|
|
}
|
|
|
|
button.logout {
|
|
display: block;
|
|
margin: 1em auto;
|
|
padding: 0.4em 1.2em;
|
|
background: #eee;
|
|
border: 1px solid #ccc;
|
|
border-radius: 6px;
|
|
font-size: 0.95em;
|
|
cursor: pointer;
|
|
transition: background 0.2s ease;
|
|
}
|
|
|
|
button.logout:hover {
|
|
background: #ddd;
|
|
}
|
|
|
|
audio {
|
|
display: block;
|
|
margin: 0;
|
|
max-width: 100%;
|
|
outline: none;
|
|
border-radius: 6px;
|
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
|
|
background: #fff;
|
|
}
|
|
|
|
/* Audio controls base styles */
|
|
.audio-controls {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
gap: 1.5rem;
|
|
padding: 0;
|
|
width: 100%;
|
|
}
|
|
|
|
/* Specific styles for play/pause button in me-page */
|
|
#me-page .audio-controls button {
|
|
border: 2px solid #444; /* Default border color */
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
#me-page .audio-controls button:hover {
|
|
background: var(--audio-bg, #222);
|
|
transform: scale(1.05);
|
|
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
|
|
border-color: var(--border-lighter);
|
|
}
|
|
|
|
.audio-controls button {
|
|
background: rgba(26, 26, 26, 0.9);
|
|
border: 2px solid #444;
|
|
border-radius: 12px;
|
|
color: var(--text-light);
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 64px;
|
|
height: 64px;
|
|
padding: 0;
|
|
margin: 0.5rem;
|
|
transition: all 0.2s ease;
|
|
font-size: 1.5rem;
|
|
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
|
|
}
|
|
|
|
/* Play/Pause button specific styles */
|
|
.audio-controls button#play-pause,
|
|
.audio-controls button#play-pause-devuser {
|
|
width: 80px;
|
|
height: 80px;
|
|
font-size: 3rem;
|
|
background: rgba(34, 34, 34, 0.95);
|
|
}
|
|
|
|
/* Hover and active states */
|
|
.audio-controls button:hover {
|
|
background: var(--audio-bg, #222);
|
|
transform: scale(1.05);
|
|
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
|
|
border-color: var(--border-lighter);
|
|
}
|
|
|
|
.audio-controls button:active {
|
|
transform: scale(0.98);
|
|
}
|
|
|
|
/* Ensure touch targets are large enough on mobile */
|
|
@media (max-width: 959px) {
|
|
.audio-controls {
|
|
gap: 1rem;
|
|
}
|
|
|
|
.audio-controls button {
|
|
min-width: 64px;
|
|
min-height: 64px;
|
|
}
|
|
|
|
.audio-controls button#play-pause,
|
|
.audio-controls button#play-pause-devuser {
|
|
min-width: 80px;
|
|
min-height: 80px;
|
|
}
|
|
}
|
|
|
|
.audio-controls button:active {
|
|
transform: scale(0.98);
|
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
|
|
background: var(--background);
|
|
}
|
|
|
|
.audio-controls svg {
|
|
width: 40px;
|
|
height: 40px;
|
|
fill: currentColor;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.audio-controls button#play-pause svg {
|
|
width: 56px;
|
|
height: 56px;
|
|
}
|
|
|
|
/* Hide the native controls */
|
|
audio::-webkit-media-controls-panel {
|
|
display: none !important;
|
|
}
|
|
|
|
audio::-webkit-media-controls-play-button {
|
|
display: none !important;
|
|
}
|
|
|
|
audio::-webkit-media-controls-volume-slider {
|
|
display: none !important;
|
|
}
|
|
|
|
main > section {
|
|
width: 100%;
|
|
max-width: 900px;
|
|
padding: 2em;
|
|
background: var(--background);
|
|
border: 1px solid var(--audio-metal);
|
|
border-radius: 8px;
|
|
margin-bottom: 1.5em;
|
|
color: var(--text-light);
|
|
text-shadow: 0 0 2px rgba(255, 102, 0, 0.2);
|
|
position: relative;
|
|
}
|
|
|
|
main > section article::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: linear-gradient(45deg, rgba(255, 102, 0, 0.03), rgba(255, 102, 0, 0.01));
|
|
pointer-events: none;
|
|
z-index: -1;
|
|
}
|
|
|
|
main > section::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: linear-gradient(45deg, rgba(255, 102, 0, 0.05), rgba(255, 102, 0, 0.02));
|
|
pointer-events: none;
|
|
z-index: -1;
|
|
}
|
|
|
|
/* Audio controls styling */
|
|
button.audio-control {
|
|
background: var(--audio-metal, #333);
|
|
border: 2px solid var(--border-light);
|
|
color: var(--text-light);
|
|
padding: 0.5em 1em;
|
|
border-radius: 6px;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
font-family: 'Roboto', sans-serif;
|
|
font-weight: 500;
|
|
}
|
|
|
|
#register-form {
|
|
max-width: 400px;
|
|
margin: 0 auto;
|
|
text-align: center;
|
|
}
|
|
|
|
#register-form p {
|
|
margin-bottom: 1em;
|
|
text-align: left;
|
|
}
|
|
|
|
#register-form label {
|
|
display: inline;
|
|
margin-right: 10px;
|
|
color: var(--text-color);
|
|
font-family: 'Courier New', monospace;
|
|
}
|
|
|
|
#register-form input[type="text"],
|
|
#register-form input[type="email"],
|
|
#register-form input[type="password"] {
|
|
display: block;
|
|
background-color: rgb(26, 26, 26);
|
|
border: 1px solid #444;
|
|
color: var(--text-light);
|
|
padding: 0.8em;
|
|
border-radius: 4px;
|
|
width: 100%;
|
|
max-width: 100%;
|
|
box-sizing: border-box;
|
|
-moz-box-sizing: border-box;
|
|
-webkit-box-sizing: border-box;
|
|
transition: all 0.2s ease;
|
|
margin: 0.5rem 0;
|
|
}
|
|
|
|
#register-form input[type="text"]:focus,
|
|
#register-form input[type="email"]:focus,
|
|
#register-form input[type="password"]:focus {
|
|
outline: none;
|
|
border-color: var(--warning);
|
|
box-shadow: 0 0 0 2px rgba(255, 102, 0, 0.1);
|
|
}
|
|
|
|
/* Submit button styling */
|
|
#register-form button[type="submit"] {
|
|
display: block;
|
|
width: 100%;
|
|
max-width: 100%;
|
|
padding: 0.8em;
|
|
background: transparent;
|
|
color: var(--text-light);
|
|
border: none;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
font-size: 16px;
|
|
margin: 1.25em 0 0 0;
|
|
transition: all 0.3s ease;
|
|
font-family: 'Courier New', monospace;
|
|
text-align: center;
|
|
border: 1px solid #444;
|
|
background: var(--background);
|
|
box-sizing: border-box;
|
|
-moz-box-sizing: border-box;
|
|
-webkit-box-sizing: border-box;
|
|
}
|
|
|
|
#register-form button[type="submit"]:hover {
|
|
color: var(--warning);
|
|
}
|
|
|
|
#register-form button[type="submit"]:active {
|
|
transform: translateY(-1px);
|
|
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
|
|
transform: translateY(0);
|
|
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
|
|
}
|
|
|
|
button.audio-control:hover {
|
|
background: var(--border);
|
|
border-color: var(--border-lighter);
|
|
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
|
|
}
|
|
|
|
/* Audio meter styling */
|
|
.audio-meter {
|
|
background: var(--audio-metal, #333);
|
|
border: 1px solid var(--border-light);
|
|
height: 10px;
|
|
border-radius: 5px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.audio-meter-fill {
|
|
background: linear-gradient(90deg, #ff6600, #ff8800);
|
|
height: 100%;
|
|
transition: width 0.3s ease-in-out;
|
|
}
|
|
|
|
/* Audio list styling */
|
|
.audio-list {
|
|
list-style: none;
|
|
padding: 0;
|
|
margin: 0;
|
|
background: var(--background);
|
|
border: 1px solid var(--audio-metal);
|
|
border-radius: 8px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* Stream list items - styles moved to .stream-player */
|
|
#stream-list > li {
|
|
background: transparent;
|
|
border: none;
|
|
margin: 0;
|
|
padding: 0;
|
|
list-style: none;
|
|
}
|
|
|
|
/* Stream player styling */
|
|
.stream-player {
|
|
background: transparent;
|
|
border: none;
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.stream-player::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: linear-gradient(45deg, rgba(255, 102, 0, 0.03), rgba(255, 102, 0, 0.01));
|
|
pointer-events: none;
|
|
z-index: -1;
|
|
}
|
|
|
|
.stream-player h3 {
|
|
color: var(--audio-accent);
|
|
margin: 0 0 1em 0;
|
|
font-size: 1.1em;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.stream-player audio {
|
|
width: 100%;
|
|
max-width: 500px;
|
|
margin: 1em 0;
|
|
background: var(--background);
|
|
border: 1px solid #444;
|
|
border-radius: 6px;
|
|
}
|
|
|
|
.stream-player audio {
|
|
-webkit-appearance: none;
|
|
-moz-appearance: none;
|
|
appearance: none;
|
|
background: var(--background);
|
|
border: none;
|
|
border-radius: 6px;
|
|
width: 100%;
|
|
max-width: 500px;
|
|
margin: 1em 0;
|
|
padding: 0.5em;
|
|
}
|
|
|
|
/* Custom play button */
|
|
.stream-player audio::before {
|
|
content: '▶️';
|
|
position: absolute;
|
|
left: 0.5em;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
color: var(--success);
|
|
font-size: 1.5em;
|
|
cursor: pointer;
|
|
z-index: 1;
|
|
}
|
|
|
|
/* Custom progress bar */
|
|
.stream-player audio::-webkit-progress-bar {
|
|
background: var(--border);
|
|
border-radius: 3px;
|
|
}
|
|
|
|
.stream-player audio::-webkit-progress-value {
|
|
background: linear-gradient(90deg, #ff6600, #ff8800);
|
|
border-radius: 3px;
|
|
}
|
|
|
|
/* Custom volume slider */
|
|
.stream-player audio::-webkit-slider-thumb {
|
|
-webkit-appearance: none;
|
|
appearance: none;
|
|
width: 12px;
|
|
height: 12px;
|
|
background: #ff6600;
|
|
border-radius: 50%;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.stream-player audio::-webkit-slider-runnable-track {
|
|
height: 4px;
|
|
background: var(--border);
|
|
border-radius: 2px;
|
|
}
|
|
|
|
/* Guest login h2 uses guest-login class */
|
|
|
|
.audio-list li {
|
|
background: var(--audio-metal, #333);
|
|
border: 1px solid var(--border-light);
|
|
padding: 1em;
|
|
margin-bottom: 0.5em;
|
|
border-radius: 6px;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.audio-list li:hover {
|
|
background: var(--border);
|
|
border-color: var(--border-lighter);
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
#me-wrap {
|
|
background: #fdfdfd;
|
|
padding: 1.5em;
|
|
border: 1px solid #ddd;
|
|
border-radius: 8px;
|
|
margin: 2em auto;
|
|
max-width: 600px;
|
|
width: 100%;
|
|
color: var(--text-light);
|
|
transition: opacity 0.6s ease;
|
|
opacity: 1;
|
|
}
|
|
|
|
.hidden {
|
|
display: none !important;
|
|
}
|
|
|
|
.button:focus {
|
|
outline: 2px solid #00aaff;
|
|
outline-offset: 2px;
|
|
}
|
|
|
|
#quota-bar[value="100"] {
|
|
accent-color: #b22222;
|
|
}
|
|
|
|
#quota-bar[value="100"] + #quota-text::after {
|
|
content: " (Full)";
|
|
color: var(--error);
|
|
font-weight: bold;
|
|
}
|
|
|
|
input[disabled], button[disabled] {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.uploading-toast {
|
|
color: var(--info);
|
|
background: #eaf4ff;
|
|
border: 1px solid #b3daff;
|
|
padding: 0.5em 1em;
|
|
border-radius: 6px;
|
|
font-size: 0.95em;
|
|
animation: fadeIn 0.3s ease;
|
|
display: inline-block;
|
|
}
|
|
|
|
.success-toast {
|
|
color: var(--success);
|
|
background: #e7f6ed;
|
|
border: 1px solid #c2e3d3;
|
|
padding: 0.5em 1em;
|
|
border-radius: 6px;
|
|
font-size: 0.95em;
|
|
animation: fadeIn 0.3s ease;
|
|
display: inline-block;
|
|
}
|
|
|
|
#stream-info, #stream-info * {
|
|
display: initial !important;
|
|
visibility: visible !important;
|
|
color: var(--background) !important;
|
|
background: #fff !important;
|
|
}
|
|
|
|
/* Base document styles */
|
|
html {
|
|
height: 100%;
|
|
min-height: 100%;
|
|
margin: 0;
|
|
padding: 0;
|
|
background-color: var(--background);
|
|
background-image:
|
|
repeating-linear-gradient(
|
|
45deg,
|
|
rgba(188, 183, 107, 0.1) 0, /* Olive color */
|
|
rgba(188, 183, 107, 0.1) 1px,
|
|
transparent 1px,
|
|
transparent 20px
|
|
),
|
|
repeating-linear-gradient(
|
|
-45deg,
|
|
rgba(188, 183, 107, 0.1) 0, /* Olive color */
|
|
rgba(188, 183, 107, 0.1) 1px,
|
|
transparent 1px,
|
|
transparent 20px
|
|
);
|
|
background-size: 40px 40px;
|
|
background-repeat: repeat;
|
|
background-attachment: fixed;
|
|
}
|
|
|
|
body {
|
|
min-height: 100vh;
|
|
margin: 0;
|
|
padding: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
color: var(--text-light);
|
|
font-family: sans-serif;
|
|
line-height: 1.6;
|
|
background: transparent;
|
|
}
|
|
|
|
/* Main content styles are defined once at the top of the file */
|
|
|
|
main > section {
|
|
width: 100%;
|
|
max-width: inherit;
|
|
margin: 0 auto;
|
|
box-sizing: border-box;
|
|
background: var(--crt-screen, #1a1a1a);
|
|
border-radius: 8px;
|
|
padding: 1.5rem;
|
|
margin-bottom: 1.5rem;
|
|
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
/* Section articles use the article--plain class */
|
|
|
|
/* Fallback for browsers that don't support flexbox */
|
|
@supports not (display: flex) {
|
|
html {
|
|
background: #111;
|
|
}
|
|
|
|
body {
|
|
min-height: 100%;
|
|
}
|
|
|
|
main {
|
|
min-height: 100vh;
|
|
}
|
|
}
|
|
|
|
header h1 {
|
|
animation: slideDown 0.6s ease-out;
|
|
margin: 1rem 0; /* Equal top and bottom margins to match other headings */
|
|
}
|
|
|
|
header h1::before {
|
|
content: "🎙️ ";
|
|
animation: pulse 1.2s ease-in-out infinite;
|
|
}
|
|
|
|
header p {
|
|
animation: fadeIn 0.8s ease-out 0.3s both;
|
|
}
|
|
|
|
header, footer {
|
|
text-align: center;
|
|
}
|
|
|
|
footer p {
|
|
margin: 0.4em 0;
|
|
font-size: 0.9em;
|
|
opacity: 0.8;
|
|
}
|
|
|
|
|
|
/* Reusable glowing pulse */
|
|
.pulse-glow {
|
|
animation: pulse 0.4s ease-in-out;
|
|
box-shadow: 0 0 0.6em rgba(0, 170, 255, 0.6);
|
|
}
|
|
|
|
@keyframes fadeIn {
|
|
from { opacity: 0; transform: translateY(-5px); }
|
|
to { opacity: 1; transform: translateY(0); }
|
|
}
|
|
#file-info {
|
|
animation: fadeIn 0.4s ease;
|
|
margin-top: 0.8em;
|
|
font-size: 0.95em;
|
|
text-align: center;
|
|
color: var(--text-light);
|
|
}
|
|
|
|
.emoji-bounce {
|
|
display: inline-block;
|
|
animation: emojiBounce 0.6s ease-out;
|
|
}
|
|
|
|
@keyframes emojiBounce {
|
|
0% { transform: scale(1); }
|
|
30% { transform: scale(1.3); }
|
|
60% { transform: scale(0.95); }
|
|
100% { transform: scale(1); }
|
|
}
|
|
|
|
#spinner {
|
|
border: 3px solid #eee;
|
|
border-top: 3px solid #2e8b57;
|
|
border-radius: 50%;
|
|
width: 24px;
|
|
height: 24px;
|
|
animation: spin 1s linear infinite;
|
|
margin: 0 auto 1em;
|
|
display: none;
|
|
}
|
|
|
|
@keyframes spin {
|
|
0% { transform: rotate(0deg); }
|
|
100% { transform: rotate(360deg); }
|
|
}
|
|
|
|
#status {
|
|
animation: fadeIn 0.4s ease;
|
|
margin: 1em auto;
|
|
font-weight: bold;
|
|
text-align: center;
|
|
}
|
|
|
|
#status:empty {
|
|
display: none;
|
|
}
|
|
|
|
#status.success::before {
|
|
content: "✅ ";
|
|
}
|
|
|
|
.error-toast {
|
|
color: var(--error);
|
|
background: #fcebea;
|
|
border: 1px solid #f5c6cb;
|
|
padding: 0.5em 1em;
|
|
border-radius: 6px;
|
|
font-size: 0.95em;
|
|
animation: fadeIn 0.3s ease;
|
|
display: inline-block;
|
|
}
|
|
|
|
#stream-info.fade-out {
|
|
animation: fadeOut 0.3s ease forwards;
|
|
}
|
|
|
|
#stream-info {
|
|
text-align: center;
|
|
opacity: 0;
|
|
transition: opacity 0.5s ease;
|
|
}
|
|
|
|
#stream-info.visible {
|
|
animation: fadeIn 0.4s ease forwards;
|
|
opacity: 1;
|
|
}
|
|
|
|
a.button.pulse-glow { animation: pulse 0.4s ease-in-out; }
|
|
|
|
a.button::before {
|
|
content: "🔗 ";
|
|
margin-right: 0.3em;
|
|
}
|
|
|
|
a.button[aria-label] {
|
|
position: relative;
|
|
}
|
|
|
|
a.button[aria-label]::after {
|
|
content: attr(aria-label);
|
|
position: absolute;
|
|
left: 50%;
|
|
bottom: 100%;
|
|
transform: translateX(-50%);
|
|
background: var(--audio-metal, #333);
|
|
color: var(--text-light);
|
|
font-size: 0.75em;
|
|
padding: 0.3em 0.6em;
|
|
border-radius: 4px;
|
|
white-space: nowrap;
|
|
opacity: 0;
|
|
pointer-events: none;
|
|
transition: opacity 0.2s ease;
|
|
margin-bottom: 0.4em;
|
|
}
|
|
|
|
a.button[aria-label]:hover::after {
|
|
opacity: 1;
|
|
}
|
|
|
|
a.button {
|
|
display: inline-block;
|
|
background: #2e8b57;
|
|
color: var(--text-light);
|
|
margin-top: 0.5em;
|
|
border-radius: 4px;
|
|
text-decoration: none;
|
|
font-weight: bold;
|
|
transition: background 0.2s ease;
|
|
}
|
|
|
|
a.button:hover {
|
|
animation: pulse 0.4s ease-in-out;
|
|
background: #256b45;
|
|
}
|
|
|
|
/* Stream page specific styles */
|
|
/* Article styles moved to desktop.css */
|
|
|
|
/* Specific styles for stream player */
|
|
section article.stream-page {
|
|
max-width: 800px;
|
|
margin: 0 auto;
|
|
padding: 20px;
|
|
}
|
|
|
|
.stream-player {
|
|
background: var(--background);
|
|
border: 1px solid #444;
|
|
border-radius: 8px;
|
|
position: relative;
|
|
color: var(--text-light);
|
|
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
|
|
}
|
|
|
|
.stream-player h3 {
|
|
margin: 0 0 15px 0;
|
|
color: var(--text-light);
|
|
}
|
|
|
|
.stream-audio {
|
|
width: 100%;
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
/* Stream audio controls (specific to stream items) */
|
|
.stream-audio .audio-controls {
|
|
margin: 0;
|
|
padding: 0;
|
|
gap: 1.5rem;
|
|
}
|
|
|
|
.stream-audio .audio-controls button {
|
|
width: 64px;
|
|
height: 64px;
|
|
padding: 0;
|
|
margin: 0;
|
|
font-size: 3rem;
|
|
background: none;
|
|
border: none;
|
|
box-shadow: none;
|
|
color: var(--text-light);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
min-width: auto;
|
|
min-height: auto;
|
|
}
|
|
|
|
/* Play button styles are now consolidated above */
|
|
|
|
.stream-info {
|
|
margin: 0;
|
|
color: var(--text-muted);
|
|
font-size: 0.9em;
|
|
}
|
|
|
|
/* Stream list styles */
|
|
/* Stream page articles use the article--plain class */
|
|
|
|
/* User upload area styles */
|
|
#user-upload-area {
|
|
width: 100%;
|
|
margin: 1.5rem auto;
|
|
padding: 1.6875rem; /* 27px - matches article padding */
|
|
background: var(--surface);
|
|
border: 1px solid var(--border-color, #2a2a2a);
|
|
border-radius: 8px;
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
|
|
text-align: center;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease; /* Matches article transition timing */
|
|
position: relative;
|
|
color: var(--text-light); /* Match article text color */
|
|
}
|
|
|
|
#user-upload-area::before {
|
|
animation: emojiBounce 0.6s ease-out;
|
|
content: "📤 ";
|
|
font-size: 1.2em;
|
|
display: block;
|
|
margin-bottom: 0.5em;
|
|
}
|
|
|
|
/* Removed duplicate hover effect - now using the shared hover effect below */
|
|
|
|
#user-upload-area.dragover {
|
|
background: #e0f7ff;
|
|
border-color: var(--info);
|
|
box-shadow: 0 0 0.4em rgba(0, 170, 255, 0.4);
|
|
}
|
|
|
|
#user-upload-area.pulse,
|
|
#user-upload-area.pulse::before {
|
|
box-shadow: 0 0 0.6em rgba(0, 170, 255, 0.6);
|
|
animation: pulse 0.6s ease-in-out;
|
|
}
|
|
|
|
#user-upload-area p {
|
|
margin: 0;
|
|
color: #ddd;
|
|
font-size: 1.1rem;
|
|
}
|
|
|
|
#stream-list {
|
|
list-style: none;
|
|
padding: 0;
|
|
margin: 0 0 1.5rem;
|
|
display: grid;
|
|
gap: 1.5rem;
|
|
width: 100%;
|
|
}
|
|
|
|
#stream-list > li {
|
|
background: var(--audio-bg, #222);
|
|
border: 1px solid #444;
|
|
border-radius: 8px;
|
|
overflow: hidden;
|
|
transition: transform 0.2s ease;
|
|
margin: 0;
|
|
width: 100%;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
#stream-list > li:hover {
|
|
transform: translateY(-2px);
|
|
border-color: var(--warning);
|
|
}
|
|
|
|
/* No hover effect for logout button */
|
|
#logout-button,
|
|
#logout-button:hover,
|
|
#logout-button:active {
|
|
cursor: pointer;
|
|
transform: none !important;
|
|
box-shadow: none !important;
|
|
background: transparent !important;
|
|
color: var(--warning) !important;
|
|
border-color: var(--warning) !important;
|
|
}
|
|
|
|
.stream-player {
|
|
width: 100%;
|
|
box-sizing: border-box;
|
|
background: #1e1e1e;
|
|
border: 1px solid #2a2a2a;
|
|
border-radius: 10px;
|
|
transition: all 0.25s ease;
|
|
}
|
|
|
|
/* Consistent hover effects for all interactive elements */
|
|
article:hover,
|
|
.stream-player:hover,
|
|
#user-upload-area:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
|
|
border-color: var(--border-hover, #444);
|
|
background: var(--surface); /* Match the normal state background */
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.stream-player h3 {
|
|
margin: 0 0 1.25rem;
|
|
color: var(--text-light);
|
|
font-size: 1.3rem;
|
|
font-weight: 500;
|
|
text-align: center;
|
|
word-break: break-word;
|
|
letter-spacing: 0.3px;
|
|
text-shadow: 0 1px 2px rgba(0,0,0,0.2);
|
|
}
|
|
|
|
.stream-info {
|
|
margin: 1.25rem 0 0;
|
|
color: var(--text-muted);
|
|
font-size: 0.9rem;
|
|
text-align: center;
|
|
line-height: 1.6;
|
|
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
|
}
|
|
|
|
/* Stream list styles */
|
|
#stream-list {
|
|
list-style: none;
|
|
padding: 0;
|
|
margin: 0;
|
|
display: grid;
|
|
gap: 1.25rem;
|
|
max-width: 800px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
#stream-list li {
|
|
background: transparent;
|
|
margin: 0 0 1rem 0;
|
|
padding: 0;
|
|
transition: transform 0.2s ease;
|
|
}
|
|
|
|
#stream-list li:hover {
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
#stream-list a {
|
|
color: var(--info);
|
|
text-decoration: none;
|
|
font-weight: 500;
|
|
transition: color 0.2s ease;
|
|
}
|
|
|
|
#stream-list a:hover {
|
|
color: var(--link-hover);
|
|
text-decoration: underline;
|
|
}
|
|
|
|
#stream-list .stream-meta {
|
|
display: block;
|
|
color: var(--text-muted);
|
|
font-size: 0.85rem;
|
|
margin-top: 0.5rem;
|
|
}
|
|
|
|
/* User upload area */
|
|
#user-upload-area {
|
|
max-width: 600px;
|
|
width: 100%;
|
|
margin: 0 auto 1.5rem;
|
|
padding: 1.5rem;
|
|
background: var(--crt-screen, #1a1a1a);
|
|
border-radius: 8px;
|
|
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
/* Ensure consistent audio player container */
|
|
.stream-audio {
|
|
width: 100%;
|
|
margin: 1rem 0 0;
|
|
}
|
|
|
|
/* Style for the play button container */
|
|
.audio-controls-container {
|
|
display: flex;
|
|
justify-content: center;
|
|
width: 100%;
|
|
margin-top: 1rem;
|
|
}
|
|
|
|
/* Responsive adjustments */
|
|
@media (max-width: 767px) {
|
|
/* Articles with plain style on mobile */
|
|
.article--plain {
|
|
padding: 1rem;
|
|
}
|
|
|
|
#stream-list {
|
|
gap: 1rem;
|
|
}
|
|
|
|
.stream-player {
|
|
padding: 1rem;
|
|
}
|
|
}
|
|
|
|
/* Section headers use section-header class */
|
|
|
|
/* Stream page articles use article--plain and article--wide classes */
|
|
.article--stream {
|
|
max-width: 1200px; /* Wider for the stream list */
|
|
padding: 2rem 1rem; /* Match padding of other sections */
|
|
}
|
|
|
|
/* Full width articles use the article--wide class */
|
|
.article--wide {
|
|
max-width: 100%;
|
|
}
|
|
|
|
/* Add padding to the bottom of sections that only contain an h2 */
|
|
main > section:has(> h2:only-child) {
|
|
padding-bottom: 1.5rem;
|
|
}
|
|
|
|
/* Space between h2 and logout button is now handled inline */
|
|
|
|
code {
|
|
background: var(--background);
|
|
padding: 0.2em 0.4em;
|
|
border-radius: 4px;
|
|
font-family: 'Courier New', monospace;
|
|
color: var(--text-light);
|
|
text-shadow: 0 0 4px rgba(0, 255, 0, 0.1);
|
|
}
|
|
|
|
:root {
|
|
--audio-bg: #222;
|
|
--audio-metal: #333;
|
|
--audio-text: #fff;
|
|
--audio-accent: #ff6600;
|
|
--audio-shadow: rgba(0, 0, 0, 0.5);
|
|
}
|
|
|
|
body {
|
|
margin: 0;
|
|
font-family: 'Roboto', sans-serif;
|
|
background-color: var(--audio-bg);
|
|
color: var(--audio-text);
|
|
line-height: 1.6;
|
|
}
|
|
|
|
body::before {
|
|
content: '';
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: radial-gradient(circle at center, rgba(255, 102, 0, 0.05) 0%, rgba(255, 102, 0, 0) 20%);
|
|
pointer-events: none;
|
|
z-index: -1;
|
|
}
|
|
|
|
main {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
max-width: 960px;
|
|
width: 95%;
|
|
margin: 0 auto;
|
|
padding: 20px;
|
|
background: var(--audio-bg);
|
|
border: 2px solid var(--audio-metal);
|
|
border-radius: 12px;
|
|
box-shadow: 0 4px 15px var(--audio-shadow);
|
|
}
|
|
|
|
main::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
/* Removed olive gradient overlay */
|
|
display: none;
|
|
}
|
|
|
|
nav#guest-dashboard.dashboard-nav,
|
|
nav#user-dashboard.dashboard-nav {
|
|
width: fit-content;
|
|
padding: 10px;
|
|
background: var(--crt-screen);
|
|
border: 1px solid var(--crt-border);
|
|
border-radius: 5px;
|
|
font-family: 'Courier New', monospace;
|
|
}
|
|
|
|
/* Dashboard nav base styles (moved to desktop.css and mobile.css) */
|
|
nav.dashboard-nav a {
|
|
color: #d3d3d3;
|
|
text-decoration: none;
|
|
font-family: 'Courier New', monospace;
|
|
transition: color 0.2s ease;
|
|
}
|
|
|
|
nav.dashboard-nav a:hover {
|
|
color: var(--warning);
|
|
}
|
|
|
|
/* Toast notification styles */
|
|
|
|
/* Footer links styling */
|
|
.footer-links {
|
|
margin-top: 1em;
|
|
font-size: 0.85em;
|
|
}
|
|
|
|
.footer-links a {
|
|
color: #d3d3d3;
|
|
text-decoration: none;
|
|
font-family: 'Courier New', monospace;
|
|
margin: 0 0.5em;
|
|
}
|
|
|
|
.footer-links a:hover {
|
|
color: var(--warning);
|
|
}
|
|
|
|
|
|
|
|
footer p.footer-hint a {
|
|
color: #d3d3d3;
|
|
text-decoration: none;
|
|
font-family: 'Courier New', monospace;
|
|
margin: 0 0.5em;
|
|
transition: color 0.3s;
|
|
}
|
|
|
|
footer p.footer-hint a:hover {
|
|
color: var(--warning);
|
|
}
|
|
|
|
@media (min-width: 960px) {
|
|
/* Set max-width for content sections */
|
|
/* Wide articles remain full width on mobile */
|
|
.article--wide {
|
|
padding: 1.5rem;
|
|
}
|
|
#register-page > article,
|
|
#me-page > article,
|
|
#user-upload-area {
|
|
max-width: 600px;
|
|
padding: 2rem;
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
}
|
|
|
|
#stream-page > article {
|
|
max-width: 600px;
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
}
|
|
|
|
section#links {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
background: var(--crt-screen);
|
|
padding: 1em;
|
|
margin: 2em auto;
|
|
border-radius: 6px;
|
|
max-width: 600px;
|
|
box-shadow: 0 2px 6px rgba(0, 170, 255, 0.1);
|
|
}
|
|
|
|
section#links p:first-child a,
|
|
section#links p:nth-child(2) a {
|
|
display: inline-block;
|
|
background: #2e8b57;
|
|
color: white;
|
|
font-weight: bold;
|
|
padding: 0.4em 1em;
|
|
border-radius: 5px;
|
|
text-decoration: none;
|
|
transition: background 0.2s ease;
|
|
margin-bottom: 0.8em;
|
|
}
|
|
|
|
section#links p:first-child a:hover,
|
|
section#links p:nth-child(2) a:hover {
|
|
background: #256b45;
|
|
}
|
|
}
|
|
|
|
#burger-toggle {
|
|
display: none;
|
|
}
|
|
|
|
#burger-label {
|
|
display: none;
|
|
position: absolute;
|
|
top: 1em;
|
|
right: 1em;
|
|
cursor: pointer;
|
|
z-index: 20;
|
|
}
|
|
|
|
#burger-label span {
|
|
display: block;
|
|
width: 25px;
|
|
height: 3px;
|
|
margin: 5px;
|
|
background-color: #333;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
|
|
@keyframes slideFadeIn {
|
|
0% {
|
|
opacity: 0;
|
|
transform: translateY(-10px);
|
|
}
|
|
100% {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
@keyframes slideFadeOut {
|
|
0% {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
100% {
|
|
opacity: 0;
|
|
transform: translateY(-10px);
|
|
}
|
|
}
|
|
|
|
/* Logout button styles */
|
|
.logout-btn {
|
|
background: rgba(34, 34, 34, 0.95);
|
|
color: #f0f0f0;
|
|
border: 2px solid #444;
|
|
border-radius: 6px;
|
|
padding: 0.5em 1em;
|
|
cursor: pointer;
|
|
font-family: inherit;
|
|
font-size: 1.2rem;
|
|
transition: all 0.2s ease;
|
|
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 0.5em;
|
|
text-transform: none;
|
|
letter-spacing: normal;
|
|
width: auto;
|
|
height: auto;
|
|
margin: 0;
|
|
}
|
|
|
|
.logout-btn:hover {
|
|
background: var(--audio-bg, #222);
|
|
transform: scale(1.05);
|
|
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
|
|
border-color: var(--border-lighter);
|
|
}
|
|
|
|
.logout-btn:active {
|
|
transform: scale(0.98);
|
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
|
|
}
|