appVideoDemos / style.css
0001AMA's picture
Upload style.css with huggingface_hub
53f5704 verified
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
/* spad_for_vision webapp theme (mvplus/spad_for_vision) */
:root {
--bg-primary: #0a0a0a;
--bg-secondary: #1a1a1a;
--bg-tertiary: #0d1b1b;
--bg-dark: #0a0a0a;
--bg-card: #1a1a1a;
--bg-hover: #2a2a2a;
--text-primary: #ffffff;
--text-secondary: #cccccc;
--accent: #B91D30;
--accent-hover: #d9243a;
--accent-link: #00CED1;
--accent-text: #ffffff;
--success: #22c55e;
--border: #333333;
--gradient-bg: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0d1b1b 100%);
}
body {
font-family: 'Times New Roman', Georgia, serif;
background: var(--gradient-bg);
background-color: var(--bg-primary);
color: var(--text-primary);
min-height: 100vh;
line-height: 1.6;
}
.container {
max-width: 1400px;
margin: 0 auto;
padding: 20px;
min-height: 100vh;
display: flex;
flex-direction: column;
}
header {
text-align: center;
padding: 20px 0;
border-bottom: 1px solid var(--border);
margin-bottom: 30px;
}
header h1 {
font-size: 2rem;
font-weight: 600;
color: var(--accent);
}
main {
display: grid;
grid-template-columns: 1fr 320px;
gap: 30px;
flex: 1;
}
@media (max-width: 900px) {
main {
grid-template-columns: 1fr;
}
}
.player-section {
display: flex;
flex-direction: column;
gap: 15px;
}
.video-container {
position: relative;
background: #000;
border-radius: 12px;
overflow: hidden;
aspect-ratio: 16 / 9;
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}
#videoPlayer {
width: 100%;
height: 100%;
display: block;
}
.video-overlay {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.7);
display: flex;
align-items: center;
justify-content: center;
color: var(--text-secondary);
font-size: 1.2rem;
pointer-events: none;
transition: opacity 0.3s ease;
}
.video-overlay.hidden {
opacity: 0;
}
.controls-bar {
background: var(--bg-card);
border-radius: 12px;
padding: 15px 20px;
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
gap: 15px;
}
.now-playing {
display: flex;
align-items: center;
gap: 10px;
}
.now-playing .label {
color: var(--text-secondary);
font-size: 0.9rem;
}
.now-playing .title {
font-weight: 600;
color: var(--accent);
}
.playback-controls {
display: flex;
align-items: center;
gap: 10px;
}
.playback-controls button {
width: 40px;
height: 40px;
border: none;
border-radius: 8px;
background: var(--bg-hover);
color: var(--text-primary);
cursor: pointer;
font-size: 1.1rem;
transition: all 0.2s ease;
display: flex;
align-items: center;
justify-content: center;
}
.playback-controls button:hover {
background: var(--accent);
color: var(--text-primary);
transform: scale(1.05);
}
.playback-controls button:active {
transform: scale(0.95);
}
#volumeSlider {
width: 80px;
height: 6px;
-webkit-appearance: none;
appearance: none;
background: var(--bg-hover);
border-radius: 3px;
cursor: pointer;
}
#volumeSlider::-webkit-slider-thumb {
-webkit-appearance: none;
width: 14px;
height: 14px;
background: var(--accent);
border-radius: 50%;
cursor: pointer;
}
#volumeSlider::-moz-range-thumb {
width: 14px;
height: 14px;
background: var(--accent);
border-radius: 50%;
cursor: pointer;
border: none;
}
.playlist-section {
background: var(--bg-card);
border-radius: 12px;
padding: 20px;
display: flex;
flex-direction: column;
max-height: calc(100vh - 180px);
}
.playlist-section h2 {
font-size: 1.2rem;
font-weight: 600;
margin-bottom: 15px;
padding-bottom: 10px;
border-bottom: 1px solid var(--border);
color: var(--accent);
}
a {
color: var(--accent-link);
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
.playlist {
flex: 1;
overflow-y: auto;
display: flex;
flex-direction: column;
gap: 8px;
}
.playlist::-webkit-scrollbar {
width: 6px;
}
.playlist::-webkit-scrollbar-track {
background: var(--bg-dark);
border-radius: 3px;
}
.playlist::-webkit-scrollbar-thumb {
background: var(--border);
border-radius: 3px;
}
.playlist::-webkit-scrollbar-thumb:hover {
background: var(--text-secondary);
}
.playlist-item {
display: flex;
align-items: center;
gap: 12px;
padding: 12px;
background: var(--bg-dark);
border-radius: 8px;
cursor: pointer;
transition: all 0.2s ease;
border: 2px solid transparent;
}
.playlist-item:hover {
background: var(--bg-hover);
border-color: var(--border);
}
.playlist-item.active {
background: var(--accent);
border-color: var(--accent-hover);
color: var(--text-primary);
}
.playlist-item.active .item-title {
color: var(--text-primary);
}
.playlist-item.active .item-size {
color: rgba(255, 255, 255, 0.75);
}
.item-icon {
font-size: 1.5rem;
flex-shrink: 0;
}
.item-info {
flex: 1;
min-width: 0;
}
.item-title {
font-weight: 500;
font-size: 0.95rem;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.item-size {
font-size: 0.8rem;
color: var(--text-secondary);
margin-top: 2px;
}
.loading {
text-align: center;
color: var(--text-secondary);
padding: 20px;
}
.empty-playlist {
text-align: center;
color: var(--text-secondary);
padding: 40px 20px;
}
.empty-playlist span {
font-size: 3rem;
display: block;
margin-bottom: 10px;
}
footer {
text-align: center;
padding: 20px 0;
margin-top: 30px;
border-top: 1px solid var(--border);
color: var(--text-secondary);
font-size: 0.9rem;
}
@keyframes pulse {
0%, 100% { opacity: 1; }
50% { opacity: 0.5; }
}
.loading {
animation: pulse 1.5s ease-in-out infinite;
}