better ui for web player

This commit is contained in:
2026-01-03 12:13:20 +01:00
parent 40197b6476
commit 8d4d099c6a
4 changed files with 942 additions and 408 deletions

View File

@@ -1,14 +1,15 @@
:root {
--brand-color: #8b5cf6;
--brand-color-light: #a78bfa;
--op-color: #fbbf24;
--ed-color: #38bdf8;
--brand-gradient: linear-gradient(90deg, #7c3aed 0%, #a78bfa 100%);
--op-color: rgba(251, 191, 36, 0.3); /* Ámbar sutil */
--ed-color: rgba(56, 189, 248, 0.3); /* Azul cielo sutil */
--glass-bg: rgba(10, 10, 10, 0.65);
--glass-border: rgba(255, 255, 255, 0.08);
--glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
--glass-blur: blur(20px);
--player-bg: #000;
--control-bg: rgba(0, 0, 0, 0.8);
--control-hover: rgba(255, 255, 255, 0.1);
--slider-bg: rgba(255, 255, 255, 0.3);
--slider-buffer: rgba(255, 255, 255, 0.5);
--slider-played: var(--brand-color);
}
body.stop-scrolling {
@@ -278,6 +279,14 @@ body.stop-scrolling {
pointer-events: none;
}
.glass-panel {
background: rgba(20, 20, 20, 0.75);
backdrop-filter: blur(16px);
-webkit-backdrop-filter: blur(16px);
border: 1px solid rgba(255, 255, 255, 0.1);
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}
/* Skip Overlay Button */
#skip-overlay-btn {
position: absolute;
@@ -328,11 +337,15 @@ body.stop-scrolling {
bottom: 0;
left: 0;
width: 100%;
padding: 0 20px 20px;
padding: 0;
z-index: 60;
opacity: 0;
transition: opacity 0.3s ease;
pointer-events: none;
background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.5) 60%, transparent 100%);
display: flex;
flex-direction: column;
justify-content: flex-end;
}
.player-container.show-cursor .custom-controls {
@@ -341,88 +354,102 @@ body.stop-scrolling {
}
.controls-gradient {
position: absolute;
bottom: 0;
left: 0;
width: 100%;
height: 150px;
background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
z-index: -1;
display: none;
}
/* Progress Bar */
.progress-container {
width: 100%;
height: 6px;
background: var(--slider-bg);
border-radius: 3px;
width: calc(100% - 48px);
height: 4px;
background: rgba(255, 255, 255, 0.2);
border-radius: 2px;
cursor: pointer;
margin-bottom: 12px;
margin: 0 auto 10px auto;
position: relative;
transition: height 0.2s;
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
z-index: 70;
}
.progress-container:hover {
height: 8px;
height: 6px;
transform: scaleY(1);
}
.progress-buffer {
position: absolute;
height: 100%;
background: var(--slider-buffer);
border-radius: 3px;
background: rgba(255, 255, 255, 0.25);
border-radius: 10px;
pointer-events: none;
transition: width 0.2s linear;
}
.progress-played {
background: var(--brand-color);
box-shadow: 0 0 20px rgba(139, 92, 246, 0.6);
position: absolute;
height: 100%;
background: var(--slider-played);
border-radius: 3px;
pointer-events: none;
border-radius: 2px;
}
.progress-handle {
width: 14px;
height: 14px;
background: #fff;
border-radius: 50%;
position: absolute;
top: 50%;
transform: translate(-50%, -50%) scale(0);
width: 16px;
height: 16px;
background: white;
border-radius: 50%;
pointer-events: none;
transition: transform 0.2s;
box-shadow: 0 2px 8px rgba(0,0,0,0.3);
transition: transform 0.15s ease;
box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.2);
z-index: 71;
}
.progress-container:hover .progress-handle {
transform: translate(-50%, -50%) scale(1);
box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2);
}
/* Skip Markers on Progress */
.skip-marker {
.skip-range {
position: absolute;
top: 0;
height: 100%;
background: rgba(255, 255, 255, 0.3);
border-left: 2px solid rgba(0,0,0,0.3);
border-right: 2px solid rgba(0,0,0,0.3);
z-index: 1;
pointer-events: none;
}
.skip-marker.op {
background: var(--op-color);
}
.skip-range.op { background: var(--op-color); }
.skip-range.ed { background: var(--ed-color); }
.skip-marker.ed {
background: var(--ed-color);
.skip-cut {
position: absolute;
top: -4px;
bottom: -4px;
width: 3px;
background-color: #000;
z-index: 5;
pointer-events: none;
border-radius: 2px;
box-shadow: 0 0 2px rgba(0,0,0,1);
}
/* Controls Row */
.controls-row {
background: transparent;
border: none;
box-shadow: none;
backdrop-filter: none;
-webkit-backdrop-filter: none;
width: 100%;
padding: 5px 24px 20px 24px;
margin: 0;
border-radius: 0;
display: flex;
align-items: center;
gap: 12px;
justify-content: space-between;
}
.controls-left,
@@ -441,25 +468,30 @@ body.stop-scrolling {
.control-btn {
background: transparent;
border: none;
color: white;
cursor: pointer;
padding: 8px;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.2s;
border-radius: 6px;
color: rgba(255, 255, 255, 0.85);
padding: 10px;
margin: 0 2px;
border-radius: 50%;
transition: all 0.2s ease;
}
.control-btn:hover {
background: var(--control-hover);
transform: scale(1.1);
background: rgba(255, 255, 255, 0.1);
color: #fff;
transform: none;
box-shadow: none;
}
.control-btn svg {
width: 24px;
height: 24px;
width: 26px;
height: 26px;
fill: currentColor;
filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
stroke: none;
}
.control-btn:active {
transform: translateY(0);
}
.control-btn.play-pause svg {
@@ -467,14 +499,13 @@ body.stop-scrolling {
height: 32px;
}
/* Time Display */
.time-display {
font-family: 'Inter', monospace;
font-variant-numeric: tabular-nums; /* Evita que los números "bailen" */
font-size: 0.9rem;
font-weight: 500;
color: white;
font-variant-numeric: tabular-nums;
min-width: 100px;
text-align: center;
opacity: 0.9;
margin-left: 16px;
}
/* Volume Control */
@@ -487,30 +518,37 @@ body.stop-scrolling {
.volume-slider-container {
width: 0;
overflow: hidden;
transition: width 0.3s ease;
transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
margin-left: 5px;
}
.volume-control:hover .volume-slider-container {
width: 80px;
width: 100px;
margin-left: 10px;
}
.volume-slider {
width: 100%;
height: 4px;
-webkit-appearance: none;
background: var(--slider-bg);
border-radius: 2px;
background: rgba(255,255,255,0.2);
border-radius: 4px;
outline: none;
cursor: pointer;
}
.volume-slider::-webkit-slider-thumb {
-webkit-appearance: none;
width: 12px;
height: 12px;
background: white;
background: #fff;
border-radius: 50%;
cursor: pointer;
box-shadow: 0 0 10px rgba(255,255,255,0.5);
transition: transform 0.1s;
}
.volume-slider::-webkit-slider-thumb:hover {
transform: scale(1.2);
}
.volume-slider::-moz-range-thumb {
@@ -522,29 +560,145 @@ body.stop-scrolling {
border: none;
}
/* Settings Panel */
.settings-panel {
position: absolute;
bottom: 60px;
bottom: 80px;
right: 20px;
background: rgba(20, 20, 20, 0.98);
border: 1px solid rgba(255,255,255,0.1);
border-radius: 12px;
padding: 12px;
min-width: 240px;
backdrop-filter: blur(20px);
width: 300px;
max-height: 400px;
border-radius: 16px;
padding: 0;
overflow: hidden;
opacity: 0;
transform: translateY(10px);
transform: translateY(20px) scale(0.95);
pointer-events: none;
transition: opacity 0.2s, transform 0.2s;
transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
z-index: 100;
background: rgba(15, 15, 15, 0.85);
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
border: 1px solid rgba(255, 255, 255, 0.08);
}
.settings-panel.active {
opacity: 1;
transform: translateY(0);
transform: translateY(0) scale(1);
pointer-events: auto;
}
.settings-back-btn {
background: transparent;
border: none;
color: white;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
padding: 4px;
border-radius: 50%;
transition: background 0.2s;
}
.settings-back-btn:hover {
background: rgba(255, 255, 255, 0.1);
}
.settings-header {
display: flex;
align-items: center;
gap: 10px;
padding: 12px 16px;
border-bottom: 1px solid rgba(255, 255, 255, 0.08);
margin-bottom: 4px;
}
.settings-title {
font-size: 0.95rem;
font-weight: 600;
color: #fff;
}
/* Lista de opciones */
.settings-content {
padding: 4px;
display: flex;
flex-direction: column;
gap: 2px;
}
/* Item del menú */
.settings-item {
display: flex;
align-items: center;
justify-content: space-between;
padding: 12px 16px;
cursor: pointer;
border-radius: 8px;
transition: background 0.2s;
color: #eee;
font-size: 0.9rem;
margin: 0 4px;
}
.settings-item:hover {
background: rgba(255, 255, 255, 0.1);
}
/* Estilos específicos para la vista principal */
.settings-item-main {
justify-content: space-between;
}
.settings-label-left {
display: flex;
align-items: center;
gap: 10px;
font-weight: 500;
}
.settings-label-icon {
opacity: 0.7;
}
.settings-value-right {
display: flex;
align-items: center;
gap: 6px;
color: rgba(255, 255, 255, 0.6);
font-size: 0.85rem;
}
/* Item activo (seleccionado en submenú) */
.settings-item.selected {
color: var(--brand-color-light);
}
.settings-item .check-icon {
width: 16px;
height: 16px;
opacity: 0;
margin-left: 10px;
}
.settings-item.selected .check-icon {
opacity: 1;
}
/* Scrollbar bonito para listas largas */
.settings-content {
max-height: 300px;
overflow-y: auto;
}
.settings-content::-webkit-scrollbar {
width: 4px;
}
.settings-content::-webkit-scrollbar-thumb {
background: rgba(255, 255, 255, 0.2);
border-radius: 4px;
}
.settings-section {
margin-bottom: 16px;
}