fixes for extension sources & tweaks
This commit is contained in:
@@ -1,152 +1,175 @@
|
||||
:root {
|
||||
--bg-base: #000000;
|
||||
--bg-overlay: #101012;
|
||||
--accent: #8b5cf6;
|
||||
--accent-dark: #7c3aed;
|
||||
--text-primary: #ffffff;
|
||||
--text-secondary: #a1a1aa;
|
||||
|
||||
--color-bg-base: #000000;
|
||||
--color-bg-elevated: #0a0a0b;
|
||||
--color-bg-card: #121214;
|
||||
--color-primary: #8b5cf6;
|
||||
--color-primary-hover: #7c3aed;
|
||||
--color-primary-glow: rgba(139, 92, 246, 0.4);
|
||||
--color-text-primary: #ffffff;
|
||||
--color-text-secondary: #a1a1aa;
|
||||
--color-text-muted: #71717a;
|
||||
|
||||
--border-subtle: 1px solid rgba(255, 255, 255, 0.08);
|
||||
--border-medium: 1px solid rgba(255, 255, 255, 0.12);
|
||||
--glass-bg: rgba(18, 18, 20, 0.8);
|
||||
--glass-border: rgba(255, 255, 255, 0.1);
|
||||
|
||||
--spacing-xs: 0.5rem;
|
||||
--spacing-sm: 0.75rem;
|
||||
--spacing-md: 1rem;
|
||||
--spacing-lg: 1.5rem;
|
||||
--spacing-xl: 2rem;
|
||||
--spacing-2xl: 3rem;
|
||||
|
||||
--radius-sm: 0.5rem;
|
||||
--radius-md: 1rem;
|
||||
--radius-lg: 1.25rem;
|
||||
--radius-xl: 1.5rem;
|
||||
--radius-full: 9999px;
|
||||
--radius-md: 16px;
|
||||
--glass-border: 1px solid rgba(255, 255, 255, 0.1);
|
||||
--glass-bg: rgba(20, 20, 23, 0.7);
|
||||
|
||||
--shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
|
||||
--shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
|
||||
--shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
|
||||
--shadow-glow: 0 8px 32px var(--color-primary-glow);
|
||||
|
||||
--plyr-color-main: #8b5cf6;
|
||||
--plyr-video-control-color: #ffffff;
|
||||
--plyr-video-control-background-hover: rgba(255, 255, 255, 0.1);
|
||||
--plyr-menu-background: rgba(28, 28, 30, 0.95);
|
||||
--plyr-menu-color: #ffffff;
|
||||
--plyr-menu-border-color: rgba(255, 255, 255, 0.1);
|
||||
--plyr-font-family: 'Inter', sans-serif;
|
||||
--transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
|
||||
--transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
|
||||
--transition-smooth: 350ms cubic-bezier(0.4, 0, 0.2, 1);
|
||||
|
||||
--plyr-color-main: var(--color-primary);
|
||||
--plyr-video-control-color: var(--color-text-primary);
|
||||
--plyr-video-control-background-hover: rgba(255, 255, 255, 0.12);
|
||||
--plyr-menu-background: rgba(18, 18, 20, 0.95);
|
||||
--plyr-menu-color: var(--color-text-primary);
|
||||
--plyr-menu-border-color: var(--glass-border);
|
||||
}
|
||||
|
||||
--plyr-control-icon-size: 18px;
|
||||
--plyr-control-spacing: 10px;
|
||||
*,
|
||||
*::before,
|
||||
*::after {
|
||||
box-sizing: border-box;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
background-color: var(--bg-base);
|
||||
color: var(--text-primary);
|
||||
background-color: var(--color-bg-base);
|
||||
color: var(--color-text-primary);
|
||||
font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
||||
height: 100vh;
|
||||
overflow: hidden;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
line-height: 1.6;
|
||||
overflow-x: hidden;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
|
||||
.ui-scale {
|
||||
transform: scale(0.90);
|
||||
transform-origin: top center;
|
||||
}
|
||||
|
||||
.top-bar {
|
||||
padding: 1.5rem 2rem;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
position: fixed;
|
||||
top: 0; left: 0; right: 0;
|
||||
z-index: 100;
|
||||
background: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, transparent 100%);
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
padding: var(--spacing-lg) var(--spacing-xl);
|
||||
background: linear-gradient(180deg, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
|
||||
z-index: 1000;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.back-btn {
|
||||
pointer-events: auto;
|
||||
display: flex;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 0.6rem;
|
||||
padding: 0.8rem 1.8rem;
|
||||
gap: var(--spacing-sm);
|
||||
padding: 0.7rem 1.5rem;
|
||||
background: var(--glass-bg);
|
||||
backdrop-filter: blur(12px);
|
||||
border: var(--glass-border);
|
||||
backdrop-filter: blur(16px);
|
||||
-webkit-backdrop-filter: blur(16px);
|
||||
border: 1px solid var(--glass-border);
|
||||
border-radius: var(--radius-full);
|
||||
color: white;
|
||||
color: var(--color-text-primary);
|
||||
text-decoration: none;
|
||||
font-weight: 600;
|
||||
font-size: 0.95rem;
|
||||
transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
|
||||
box-shadow: 0 4px 20px rgba(0,0,0,0.2);
|
||||
font-size: 0.9rem;
|
||||
transition: all var(--transition-smooth);
|
||||
box-shadow: var(--shadow-sm);
|
||||
}
|
||||
|
||||
.back-btn:hover {
|
||||
background: rgba(255, 255, 255, 0.15);
|
||||
transform: scale(1.02);
|
||||
box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
|
||||
border-color: rgba(139, 92, 246, 0.3);
|
||||
background: rgba(255, 255, 255, 0.12);
|
||||
border-color: var(--color-primary);
|
||||
transform: translateY(-2px);
|
||||
box-shadow: var(--shadow-glow);
|
||||
}
|
||||
|
||||
.theater-container {
|
||||
flex: 1;
|
||||
.watch-container {
|
||||
max-width: 1800px;
|
||||
margin: 0 auto;
|
||||
padding: 1rem var(--spacing-xl) var(--spacing-xl);
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 420px;
|
||||
gap: var(--spacing-xl);
|
||||
align-items: start;
|
||||
}
|
||||
|
||||
.watch-container.sidebar-hidden {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.player-section {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
width: 100%;
|
||||
max-width: 1300px;
|
||||
margin: 0 auto;
|
||||
padding: 0 2rem;
|
||||
position: relative;
|
||||
z-index: 10;
|
||||
gap: var(--spacing-lg);
|
||||
}
|
||||
|
||||
.player-toolbar {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
align-items: center;
|
||||
gap: 1rem;
|
||||
margin-bottom: 1rem;
|
||||
position: relative;
|
||||
z-index: 50;
|
||||
gap: var(--spacing-md);
|
||||
flex-wrap: wrap;
|
||||
background: var(--glass-bg);
|
||||
backdrop-filter: blur(16px);
|
||||
-webkit-backdrop-filter: blur(16px);
|
||||
border: 1px solid var(--glass-border);
|
||||
border-radius: var(--radius-lg);
|
||||
padding: var(--spacing-md);
|
||||
box-shadow: var(--shadow-sm);
|
||||
}
|
||||
|
||||
.extension-select {
|
||||
appearance: none;
|
||||
-webkit-appearance: none;
|
||||
background-color: var(--glass-bg);
|
||||
backdrop-filter: blur(12px);
|
||||
border: var(--glass-border);
|
||||
color: var(--text-primary);
|
||||
padding: 0.7rem 2.5rem 0.7rem 1.5rem;
|
||||
border-radius: var(--radius-full);
|
||||
font-size: 0.9rem;
|
||||
font-weight: 500;
|
||||
cursor: pointer;
|
||||
outline: none;
|
||||
min-width: 180px;
|
||||
transition: all 0.2s ease;
|
||||
background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
|
||||
background-repeat: no-repeat;
|
||||
background-position: right 1rem center;
|
||||
box-shadow: 0 4px 10px rgba(0,0,0,0.3);
|
||||
}
|
||||
|
||||
.extension-select:hover {
|
||||
background-color: rgba(255,255,255,0.1);
|
||||
border-color: var(--accent);
|
||||
.control-group {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--spacing-md);
|
||||
}
|
||||
|
||||
.sd-toggle {
|
||||
display: flex;
|
||||
background: var(--glass-bg);
|
||||
border: var(--glass-border);
|
||||
background: var(--color-bg-elevated);
|
||||
border: var(--border-subtle);
|
||||
border-radius: var(--radius-full);
|
||||
padding: 4px;
|
||||
position: relative;
|
||||
cursor: pointer;
|
||||
backdrop-filter: blur(12px);
|
||||
}
|
||||
|
||||
.sd-option {
|
||||
padding: 0.5rem 1.2rem;
|
||||
font-size: 0.85rem;
|
||||
padding: 0.6rem 1.5rem;
|
||||
font-size: 0.875rem;
|
||||
font-weight: 700;
|
||||
color: var(--text-secondary);
|
||||
color: var(--color-text-muted);
|
||||
z-index: 2;
|
||||
transition: color 0.3s;
|
||||
transition: color var(--transition-base);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.5px;
|
||||
letter-spacing: 0.05em;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.sd-option.active {
|
||||
color: white;
|
||||
color: var(--color-text-primary);
|
||||
}
|
||||
|
||||
.sd-bg {
|
||||
@@ -155,10 +178,10 @@ body {
|
||||
left: 4px;
|
||||
bottom: 4px;
|
||||
width: calc(50% - 4px);
|
||||
background: var(--accent);
|
||||
background: var(--color-primary);
|
||||
border-radius: var(--radius-full);
|
||||
transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
|
||||
box-shadow: 0 2px 10px rgba(139, 92, 246, 0.4);
|
||||
transition: transform var(--transition-smooth);
|
||||
box-shadow: 0 4px 12px var(--color-primary-glow);
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
@@ -166,22 +189,74 @@ body {
|
||||
transform: translateX(100%);
|
||||
}
|
||||
|
||||
.video-wrapper {
|
||||
width: 100%;
|
||||
.source-select {
|
||||
appearance: none;
|
||||
background-color: var(--color-bg-elevated);
|
||||
background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
|
||||
background-repeat: no-repeat;
|
||||
background-position: right 1.2rem center;
|
||||
border: var(--border-subtle);
|
||||
color: var(--color-text-primary);
|
||||
padding: 0.7rem 2.8rem 0.7rem 1.2rem;
|
||||
border-radius: var(--radius-full);
|
||||
font-size: 0.9rem;
|
||||
font-weight: 500;
|
||||
cursor: pointer;
|
||||
min-width: 160px;
|
||||
transition: all var(--transition-base);
|
||||
}
|
||||
|
||||
.source-select:hover {
|
||||
border-color: var(--color-primary);
|
||||
background-color: var(--color-bg-card);
|
||||
}
|
||||
|
||||
.source-select:focus {
|
||||
outline: none;
|
||||
border-color: var(--color-primary);
|
||||
box-shadow: 0 0 0 3px var(--color-primary-glow);
|
||||
}
|
||||
|
||||
.toggle-episodes-btn {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--spacing-sm);
|
||||
background: var(--color-bg-elevated);
|
||||
border: var(--border-subtle);
|
||||
color: var(--color-text-primary);
|
||||
padding: 0.7rem 1.2rem;
|
||||
border-radius: var(--radius-full);
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
transition: all var(--transition-base);
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
.toggle-episodes-btn:hover {
|
||||
background: var(--color-primary);
|
||||
border-color: var(--color-primary);
|
||||
}
|
||||
|
||||
.toggle-episodes-btn.active {
|
||||
background: var(--color-primary);
|
||||
border-color: var(--color-primary);
|
||||
}
|
||||
|
||||
.video-container {
|
||||
aspect-ratio: 16/9;
|
||||
background: #000;
|
||||
border-radius: 20px;
|
||||
background: var(--color-bg-base);
|
||||
border-radius: var(--radius-xl);
|
||||
overflow: hidden;
|
||||
box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.08);
|
||||
box-shadow: var(--shadow-lg), 0 0 0 1px var(--glass-border);
|
||||
position: relative;
|
||||
transition: box-shadow 0.3s ease;
|
||||
transition: box-shadow var(--transition-smooth);
|
||||
}
|
||||
|
||||
.video-wrapper:hover {
|
||||
box-shadow: 0 25px 70px rgba(139, 92, 246, 0.15), 0 0 0 1px rgba(139, 92, 246, 0.3);
|
||||
.video-container:hover {
|
||||
box-shadow: var(--shadow-lg), 0 0 0 1px var(--color-primary), var(--shadow-glow);
|
||||
}
|
||||
|
||||
video {
|
||||
#player {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: contain;
|
||||
@@ -190,79 +265,91 @@ video {
|
||||
.loading-overlay {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
background: #000;
|
||||
background: var(--color-bg-base);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
z-index: 20;
|
||||
color: var(--text-secondary);
|
||||
gap: 1rem;
|
||||
gap: var(--spacing-lg);
|
||||
}
|
||||
|
||||
.spinner {
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
border: 3px solid rgba(255,255,255,0.1);
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
border: 3px solid rgba(255, 255, 255, 0.1);
|
||||
border-top-color: var(--color-primary);
|
||||
border-radius: 50%;
|
||||
border-top-color: var(--accent);
|
||||
animation: spin 1s linear infinite;
|
||||
animation: spin 0.8s linear infinite;
|
||||
}
|
||||
|
||||
@keyframes spin { 100% { transform: rotate(360deg); } }
|
||||
@keyframes spin {
|
||||
to { transform: rotate(360deg); }
|
||||
}
|
||||
|
||||
.controls-area {
|
||||
width: 100%;
|
||||
.loading-overlay p {
|
||||
color: var(--color-text-secondary);
|
||||
font-size: 0.95rem;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.episode-controls {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin-top: 1.5rem;
|
||||
padding: 0 0.5rem;
|
||||
align-items: flex-start;
|
||||
gap: var(--spacing-lg);
|
||||
background: var(--glass-bg);
|
||||
backdrop-filter: blur(16px);
|
||||
-webkit-backdrop-filter: blur(16px);
|
||||
border: 1px solid var(--glass-border);
|
||||
border-radius: var(--radius-lg);
|
||||
padding: var(--spacing-lg);
|
||||
box-shadow: var(--shadow-sm);
|
||||
}
|
||||
|
||||
.episode-info h2 {
|
||||
margin: 0;
|
||||
font-size: 1.4rem;
|
||||
font-weight: 700;
|
||||
letter-spacing: -0.5px;
|
||||
text-shadow: 0 2px 10px rgba(0,0,0,0.5);
|
||||
.episode-info h1 {
|
||||
font-size: 1.75rem;
|
||||
font-weight: 800;
|
||||
line-height: 1.2;
|
||||
margin: 0 0 var(--spacing-xs);
|
||||
color: var(--color-text-primary);
|
||||
}
|
||||
|
||||
.episode-info span {
|
||||
color: var(--accent);
|
||||
font-size: 0.95rem;
|
||||
.episode-info p {
|
||||
color: var(--color-primary);
|
||||
font-weight: 600;
|
||||
font-size: 1rem;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 1px;
|
||||
margin-top: 4px;
|
||||
display: block;
|
||||
letter-spacing: 0.05em;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.nav-controls {
|
||||
.navigation-buttons {
|
||||
display: flex;
|
||||
gap: 1rem;
|
||||
gap: var(--spacing-md);
|
||||
}
|
||||
|
||||
.nav-btn {
|
||||
background: rgba(255,255,255,0.05);
|
||||
border: 1px solid rgba(255,255,255,0.1);
|
||||
color: white;
|
||||
padding: 0.8rem 1.6rem;
|
||||
border-radius: var(--radius-full);
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.6rem;
|
||||
transition: all 0.2s ease;
|
||||
backdrop-filter: blur(10px);
|
||||
gap: var(--spacing-sm);
|
||||
background: var(--color-bg-elevated);
|
||||
border: var(--border-subtle);
|
||||
color: var(--color-text-primary);
|
||||
padding: 0.75rem 1.5rem;
|
||||
border-radius: var(--radius-full);
|
||||
font-weight: 600;
|
||||
font-size: 0.9rem;
|
||||
cursor: pointer;
|
||||
transition: all var(--transition-base);
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.nav-btn:hover:not(:disabled) {
|
||||
background: var(--accent);
|
||||
border-color: var(--accent);
|
||||
background: var(--color-primary);
|
||||
border-color: var(--color-primary);
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 5px 15px rgba(139, 92, 246, 0.3);
|
||||
box-shadow: var(--shadow-glow);
|
||||
}
|
||||
|
||||
.nav-btn:disabled {
|
||||
@@ -270,144 +357,335 @@ video {
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
.episodes-sidebar {
|
||||
position: sticky;
|
||||
top: 6rem;
|
||||
height: calc(100vh - 7rem);
|
||||
background: var(--glass-bg);
|
||||
backdrop-filter: blur(16px);
|
||||
-webkit-backdrop-filter: blur(16px);
|
||||
border: 1px solid var(--glass-border);
|
||||
border-radius: var(--radius-lg);
|
||||
padding: var(--spacing-lg);
|
||||
box-shadow: var(--shadow-md);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.watch-container.sidebar-hidden > .episodes-sidebar {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.sidebar-header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin-bottom: var(--spacing-lg);
|
||||
padding-bottom: var(--spacing-md);
|
||||
border-bottom: 1px solid var(--glass-border);
|
||||
}
|
||||
|
||||
.sidebar-header h3 {
|
||||
font-size: 1.5rem;
|
||||
font-weight: 700;
|
||||
color: var(--color-primary);
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.close-sidebar-btn {
|
||||
display: none;
|
||||
background: transparent;
|
||||
border: none;
|
||||
color: var(--color-text-secondary);
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
border-radius: 50%;
|
||||
cursor: pointer;
|
||||
transition: all var(--transition-base);
|
||||
padding: 0;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.close-sidebar-btn:hover {
|
||||
background: rgba(255, 255, 255, 0.08);
|
||||
color: var(--color-text-primary);
|
||||
}
|
||||
|
||||
.sidebar-search {
|
||||
margin-bottom: var(--spacing-md);
|
||||
}
|
||||
|
||||
.episode-search-input {
|
||||
width: 100%;
|
||||
appearance: none;
|
||||
background-color: var(--color-bg-elevated);
|
||||
border: var(--border-subtle);
|
||||
color: var(--color-text-primary);
|
||||
padding: 0.75rem 1.2rem;
|
||||
border-radius: var(--radius-full);
|
||||
font-size: 0.9rem;
|
||||
font-weight: 500;
|
||||
transition: all var(--transition-base);
|
||||
}
|
||||
|
||||
.episode-search-input:focus {
|
||||
outline: none;
|
||||
border-color: var(--color-primary);
|
||||
box-shadow: 0 0 0 3px var(--color-primary-glow);
|
||||
}
|
||||
|
||||
.episode-search-input::placeholder {
|
||||
color: var(--color-text-muted);
|
||||
}
|
||||
|
||||
.episode-list {
|
||||
flex: 1;
|
||||
overflow-y: auto;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
|
||||
gap: var(--spacing-sm);
|
||||
padding: var(--spacing-xs);
|
||||
align-content: start;
|
||||
}
|
||||
|
||||
.episode-list::-webkit-scrollbar {
|
||||
width: 6px;
|
||||
}
|
||||
|
||||
.episode-list::-webkit-scrollbar-track {
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
.episode-list::-webkit-scrollbar-thumb {
|
||||
background: rgba(255, 255, 255, 0.1);
|
||||
border-radius: var(--radius-full);
|
||||
}
|
||||
|
||||
.episode-list::-webkit-scrollbar-thumb:hover {
|
||||
background: rgba(255, 255, 255, 0.2);
|
||||
}
|
||||
|
||||
.episode-btn {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background: var(--color-bg-elevated);
|
||||
border: var(--border-subtle);
|
||||
border-radius: var(--radius-md);
|
||||
padding: 0.85rem;
|
||||
color: var(--color-text-primary);
|
||||
font-weight: 700;
|
||||
font-size: 1rem;
|
||||
text-decoration: none;
|
||||
transition: all var(--transition-base);
|
||||
box-shadow: var(--shadow-sm);
|
||||
aspect-ratio: 1;
|
||||
min-height: 52px;
|
||||
}
|
||||
|
||||
.episode-btn:hover {
|
||||
background: rgba(255, 255, 255, 0.1);
|
||||
border-color: var(--color-primary);
|
||||
transform: scale(1.05);
|
||||
}
|
||||
|
||||
.episode-btn.active-ep {
|
||||
background: var(--color-primary);
|
||||
color: var(--color-text-primary);
|
||||
border-color: var(--color-primary);
|
||||
box-shadow: var(--shadow-glow);
|
||||
font-weight: 800;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.episode-btn.active-ep::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
inset: -2px;
|
||||
border: 2px solid var(--color-primary);
|
||||
border-radius: var(--radius-md);
|
||||
opacity: 0.5;
|
||||
}
|
||||
|
||||
.anime-details {
|
||||
max-width: 1800px;
|
||||
margin: var(--spacing-2xl) auto;
|
||||
padding: 0 var(--spacing-xl) 1rem;
|
||||
}
|
||||
|
||||
.details-container {
|
||||
display: flex;
|
||||
gap: var(--spacing-xl);
|
||||
background: var(--glass-bg);
|
||||
backdrop-filter: blur(16px);
|
||||
-webkit-backdrop-filter: blur(16px);
|
||||
border: 1px solid var(--glass-border);
|
||||
border-radius: var(--radius-lg);
|
||||
padding: var(--spacing-xl);
|
||||
box-shadow: var(--shadow-md);
|
||||
}
|
||||
|
||||
.details-cover {
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.cover-image {
|
||||
width: 220px;
|
||||
height: auto;
|
||||
border-radius: var(--radius-md);
|
||||
box-shadow: var(--shadow-lg);
|
||||
}
|
||||
|
||||
.details-content h2 {
|
||||
font-size: 2rem;
|
||||
font-weight: 800;
|
||||
margin: 0 0 var(--spacing-md);
|
||||
color: var(--color-text-primary);
|
||||
}
|
||||
|
||||
.details-meta {
|
||||
display: flex;
|
||||
gap: var(--spacing-md);
|
||||
flex-wrap: wrap;
|
||||
margin-bottom: var(--spacing-lg);
|
||||
}
|
||||
|
||||
.meta-badge {
|
||||
background: rgba(139, 92, 246, 0.12);
|
||||
color: var(--color-primary);
|
||||
padding: 0.5rem 1rem;
|
||||
border-radius: var(--radius-sm);
|
||||
font-size: 0.875rem;
|
||||
font-weight: 600;
|
||||
border: 1px solid rgba(139, 92, 246, 0.2);
|
||||
}
|
||||
|
||||
.meta-badge.meta-score {
|
||||
background: var(--color-primary);
|
||||
color: var(--color-text-primary);
|
||||
border-color: var(--color-primary);
|
||||
}
|
||||
|
||||
.details-description {
|
||||
font-size: 1rem;
|
||||
line-height: 1.7;
|
||||
color: var(--color-text-secondary);
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.plyr--video {
|
||||
border-radius: 20px;
|
||||
font-family: 'Inter', sans-serif;
|
||||
border-radius: var(--radius-xl);
|
||||
}
|
||||
|
||||
.plyr__controls {
|
||||
background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 50%, transparent 100%) !important;
|
||||
padding: 10px 20px 20px 20px !important;
|
||||
margin: 0 !important;
|
||||
border-radius: 0 0 20px 20px !important;
|
||||
}
|
||||
|
||||
.plyr__progress input[type=range] {
|
||||
cursor: pointer;
|
||||
background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.5) 50%, transparent 100%) !important;
|
||||
padding: 1rem 1.5rem 1.5rem !important;
|
||||
border-radius: 0 0 var(--radius-xl) var(--radius-xl) !important;
|
||||
}
|
||||
|
||||
.plyr--full-ui input[type=range] {
|
||||
color: var(--accent);
|
||||
height: 4px;
|
||||
transition: height 0.1s ease;
|
||||
}
|
||||
|
||||
.plyr__progress__container:hover input[type=range] {
|
||||
height: 6px;
|
||||
}
|
||||
|
||||
.plyr__control {
|
||||
background: transparent !important;
|
||||
border-radius: 4px;
|
||||
transition: transform 0.1s, opacity 0.2s;
|
||||
padding: 7px !important;
|
||||
color: var(--color-primary);
|
||||
}
|
||||
|
||||
.plyr__control:hover {
|
||||
background: rgba(255,255,255,0.1) !important;
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.plyr__control svg {
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
filter: drop-shadow(0 1px 2px rgba(0,0,0,0.5));
|
||||
}
|
||||
|
||||
.plyr__control--overlaid {
|
||||
background: rgba(0, 0, 0, 0.6) !important;
|
||||
border: 2px solid white;
|
||||
border-radius: 50%;
|
||||
padding: 1.5rem !important;
|
||||
opacity: 0.9;
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
.plyr__control--overlaid svg {
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
}
|
||||
|
||||
.plyr__control--overlaid:hover {
|
||||
background: var(--accent) !important;
|
||||
border-color: var(--accent);
|
||||
transform: scale(1.1);
|
||||
}
|
||||
|
||||
.plyr__time {
|
||||
font-size: 13px;
|
||||
font-weight: 500;
|
||||
text-shadow: 0 1px 2px rgba(0,0,0,0.8);
|
||||
background: rgba(255, 255, 255, 0.12) !important;
|
||||
}
|
||||
|
||||
.plyr__menu__container {
|
||||
background: rgba(28, 28, 30, 0.95) !important;
|
||||
backdrop-filter: blur(12px);
|
||||
border: 1px solid rgba(255,255,255,0.1);
|
||||
border-radius: 12px !important;
|
||||
padding: 8px;
|
||||
box-shadow: 0 10px 40px rgba(0,0,0,0.5) !important;
|
||||
bottom: 60px !important;
|
||||
background: var(--glass-bg) !important;
|
||||
backdrop-filter: blur(16px);
|
||||
border: 1px solid var(--glass-border);
|
||||
border-radius: var(--radius-md) !important;
|
||||
box-shadow: var(--shadow-lg) !important;
|
||||
}
|
||||
|
||||
.plyr__menu__container .plyr__control {
|
||||
font-size: 13px;
|
||||
font-weight: 500;
|
||||
padding: 8px 12px !important;
|
||||
border-radius: 6px;
|
||||
justify-content: flex-start;
|
||||
@media (max-width: 1100px) {
|
||||
.watch-container {
|
||||
grid-template-columns: 1fr;
|
||||
padding-top: 5rem;
|
||||
}
|
||||
|
||||
.episodes-sidebar {
|
||||
position: fixed;
|
||||
top: 5rem;
|
||||
right: 0;
|
||||
left: 0;
|
||||
width: auto;
|
||||
height: auto;
|
||||
max-height: 80vh;
|
||||
margin: 0 1rem;
|
||||
z-index: 999;
|
||||
display: none;
|
||||
}
|
||||
|
||||
.episodes-sidebar.sidebar-open {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.close-sidebar-btn {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.episode-list {
|
||||
grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
|
||||
}
|
||||
}
|
||||
|
||||
.plyr__menu__container .plyr__control:hover {
|
||||
background: rgba(255,255,255,0.1) !important;
|
||||
@media (max-width: 768px) {
|
||||
.watch-container {
|
||||
padding: 4.5rem 1rem 1rem;
|
||||
}
|
||||
|
||||
.anime-details {
|
||||
padding: 0 1rem var(--spacing-xl);
|
||||
}
|
||||
|
||||
.details-container {
|
||||
flex-direction: column;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.cover-image {
|
||||
width: 180px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.player-toolbar {
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.episode-controls {
|
||||
flex-direction: column;
|
||||
gap: var(--spacing-md);
|
||||
}
|
||||
|
||||
.navigation-buttons {
|
||||
width: 100%;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.nav-btn {
|
||||
flex: 1;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.episodes-sidebar {
|
||||
margin: 0 0.5rem;
|
||||
padding: var(--spacing-md);
|
||||
}
|
||||
}
|
||||
|
||||
.plyr__menu__container .plyr__control[aria-checked="true"] {
|
||||
color: var(--accent);
|
||||
}
|
||||
.plyr__menu__container .plyr__control[aria-checked="true"]::after {
|
||||
background: var(--accent);
|
||||
}
|
||||
@media (max-width: 480px) {
|
||||
.episode-info h1 {
|
||||
font-size: 1.25rem;
|
||||
}
|
||||
|
||||
.plyr__tooltip {
|
||||
background: rgba(28, 28, 30, 0.9);
|
||||
border: 1px solid rgba(255,255,255,0.1);
|
||||
border-radius: 4px;
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
padding: 4px 8px;
|
||||
box-shadow: 0 2px 10px rgba(0,0,0,0.5);
|
||||
}
|
||||
.details-content h2 {
|
||||
font-size: 1.5rem;
|
||||
}
|
||||
|
||||
.plyr__cues {
|
||||
margin-bottom: 50px !important;
|
||||
}
|
||||
|
||||
.plyr__cues span {
|
||||
background-color: rgba(0, 0, 0, 0.75) !important;
|
||||
font-family: 'Inter', sans-serif;
|
||||
font-weight: 600;
|
||||
font-size: 18px;
|
||||
padding: 4px 12px;
|
||||
border-radius: 4px;
|
||||
text-shadow: 0 2px 4px rgba(0,0,0,0.8);
|
||||
}
|
||||
|
||||
.extension-select option {
|
||||
background: var(--bg-overlay);
|
||||
color: var(--text-primary);
|
||||
padding: 0.8rem 1rem;
|
||||
font-size: 0.9rem;
|
||||
font-weight: 500;
|
||||
border: none;
|
||||
}
|
||||
|
||||
.extension-select option:hover {
|
||||
background: rgba(139, 92, 246, 0.2);
|
||||
color: white;
|
||||
}
|
||||
|
||||
.extension-select option:checked {
|
||||
background: var(--accent);
|
||||
color: white;
|
||||
.nav-btn span {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
191
views/watch.html
191
views/watch.html
@@ -6,69 +6,176 @@
|
||||
<base href="/">
|
||||
<title>WaifuBoard Watch</title>
|
||||
<link rel="stylesheet" href="/views/css/anime/watch.css">
|
||||
|
||||
<script src="https://cdn.jsdelivr.net/npm/hls.js@latest"></script>
|
||||
<link rel="stylesheet" href="https://cdn.plyr.io/3.7.8/plyr.css" />
|
||||
<script src="https://cdn.plyr.io/3.7.8/plyr.js"></script>
|
||||
<link rel="icon" href="/public/assets/waifuboards.ico" type="image/x-icon">
|
||||
<link rel="icon" href="/public/assets/waifuboards.ico">
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap" rel="stylesheet">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div class="top-bar">
|
||||
<header class="top-bar">
|
||||
<a href="#" id="back-link" class="back-btn">
|
||||
<svg width="20" height="20" fill="none" stroke="currentColor" stroke-width="2.5" viewBox="0 0 24 24"><path d="M15 19l-7-7 7-7"/></svg>
|
||||
Back to Series
|
||||
<svg width="18" height="18" fill="none" stroke="currentColor" stroke-width="2.5" viewBox="0 0 24 24">
|
||||
<path d="M15 19l-7-7 7-7"/>
|
||||
</svg>
|
||||
<span>Back to Series</span>
|
||||
</a>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<div class="theater-container">
|
||||
<div class="ui-scale">
|
||||
|
||||
|
||||
<div class="player-toolbar">
|
||||
<div class="sd-toggle" id="sd-toggle" data-state="sub" style="display: none;" onclick="toggleAudioMode()">
|
||||
<div class="sd-bg"></div>
|
||||
<div class="sd-option active" id="opt-sub">Sub</div>
|
||||
<div class="sd-option" id="opt-dub">Dub</div>
|
||||
<section class="anime-details">
|
||||
<div class="details-container">
|
||||
<div class="details-cover">
|
||||
<img id="detail-cover-image" src="" alt="Anime Cover" class="cover-image">
|
||||
</div>
|
||||
<div class="details-content">
|
||||
<h1 id="detail-anime-title"></h1>
|
||||
<div class="details-meta">
|
||||
<span id="detail-format" class="meta-badge">--</span>
|
||||
<span id="detail-season" class="meta-badge">--</span>
|
||||
<span id="detail-score" class="meta-badge meta-score">--</span>
|
||||
</div>
|
||||
<p id="detail-description" class="details-description">Loading description...</p>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<main class="watch-container">
|
||||
|
||||
<select id="server-select" class="extension-select" style="display:none;" onchange="loadStream()">
|
||||
<section class="player-section">
|
||||
|
||||
</select>
|
||||
<div class="player-toolbar">
|
||||
|
||||
<select id="extension-select" class="extension-select" onchange="onExtensionChange()">
|
||||
<option value="" disabled selected>Source...</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<div class="sd-toggle" id="sd-toggle" data-state="sub" onclick="toggleAudioMode()">
|
||||
<div class="sd-bg"></div>
|
||||
<div class="sd-option active" id="opt-sub">Sub</div>
|
||||
<div class="sd-option" id="opt-dub">Dub</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<select id="server-select" class="source-select" onchange="loadStream()" style="display:none;">
|
||||
<option value="">Server...</option>
|
||||
</select>
|
||||
<select id="extension-select" class="source-select" onchange="onExtensionChange()">
|
||||
<option value="" disabled selected>Source...</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="video-wrapper">
|
||||
<video id="player" controls crossorigin playsinline poster=""></video>
|
||||
<div id="loading-overlay" class="loading-overlay">
|
||||
<div class="spinner"></div>
|
||||
<span id="loading-text">Select a source...</span>
|
||||
</div>
|
||||
</div>
|
||||
<button id="toggle-episodes" class="toggle-episodes-btn">
|
||||
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
||||
<rect x="3" y="4" width="18" height="3" rx="1"/>
|
||||
<rect x="3" y="10.5" width="18" height="3" rx="1"/>
|
||||
<rect x="3" y="17" width="18" height="3" rx="1"/>
|
||||
</svg>
|
||||
<span>Episodes</span>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<div class="video-container">
|
||||
<video id="player" controls crossorigin playsinline></video>
|
||||
<div id="loading-overlay" class="loading-overlay">
|
||||
<div class="spinner"></div>
|
||||
<p id="loading-text">Select a source...</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="controls-area">
|
||||
<div class="episode-info">
|
||||
<h2 id="anime-title">Loading...</h2>
|
||||
<span id="episode-label">Episode --</span>
|
||||
</div>
|
||||
<div class="episode-controls">
|
||||
<div class="episode-info">
|
||||
<h1 id="anime-title">Loading...</h1>
|
||||
<p id="episode-label">Episode --</p>
|
||||
</div>
|
||||
<div class="navigation-buttons">
|
||||
<button class="nav-btn prev-btn" id="prev-btn">
|
||||
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
||||
<path d="M15 19l-7-7 7-7"/>
|
||||
</svg>
|
||||
<span>Previous</span>
|
||||
</button>
|
||||
<button class="nav-btn next-btn" id="next-btn">
|
||||
<span>Next</span>
|
||||
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
||||
<path d="M9 5l7 7-7 7"/>
|
||||
</svg>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<aside id="episodes-sidebar" class="episodes-sidebar">
|
||||
<div class="sidebar-header">
|
||||
<h3>Episodes</h3>
|
||||
<button id="close-sidebar" class="close-sidebar-btn" aria-label="Close episodes">
|
||||
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
||||
<path d="M18 6L6 18M6 6l12 12"/>
|
||||
</svg>
|
||||
</button>
|
||||
</div>
|
||||
<div class="sidebar-search">
|
||||
<input type="text" id="episode-search" class="episode-search-input" placeholder="Search episode..." oninput="filterEpisodes()">
|
||||
</div>
|
||||
<div id="episode-list" class="episode-list"></div>
|
||||
</aside>
|
||||
</main>
|
||||
|
||||
<div class="nav-controls">
|
||||
<button class="nav-btn" id="prev-btn">
|
||||
<svg width="18" height="18" fill="none" stroke="currentColor" stroke-width="2" viewBox="0 0 24 24"><path d="M15 19l-7-7 7-7"/></svg>
|
||||
Prev
|
||||
</button>
|
||||
<button class="nav-btn" id="next-btn">
|
||||
Next
|
||||
<svg width="18" height="18" fill="none" stroke="currentColor" stroke-width="2" viewBox="0 0 24 24"><path d="M9 5l7 7-7 7"/></svg>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script src="../src/scripts/anime/player.js"></script>
|
||||
<script>
|
||||
const watchContainer = document.querySelector('.watch-container');
|
||||
const sidebar = document.getElementById('episodes-sidebar');
|
||||
const toggleBtn = document.getElementById('toggle-episodes');
|
||||
const closeBtn = document.getElementById('close-sidebar');
|
||||
const DESKTOP_BREAKPOINT = 1100;
|
||||
|
||||
function isDesktop() {
|
||||
return window.innerWidth > DESKTOP_BREAKPOINT;
|
||||
}
|
||||
|
||||
const toggleSidebar = () => {
|
||||
const isOpen = sidebar.classList.contains('sidebar-open') ||
|
||||
!watchContainer.classList.contains('sidebar-hidden');
|
||||
|
||||
if (isDesktop()) {
|
||||
watchContainer.classList.toggle('sidebar-hidden');
|
||||
toggleBtn.classList.toggle('active', !watchContainer.classList.contains('sidebar-hidden'));
|
||||
} else {
|
||||
sidebar.classList.toggle('sidebar-open');
|
||||
toggleBtn.classList.toggle('active', sidebar.classList.contains('sidebar-open'));
|
||||
}
|
||||
};
|
||||
|
||||
toggleBtn.addEventListener('click', toggleSidebar);
|
||||
|
||||
closeBtn.addEventListener('click', () => {
|
||||
if (isDesktop()) {
|
||||
watchContainer.classList.add('sidebar-hidden');
|
||||
toggleBtn.classList.remove('active');
|
||||
} else {
|
||||
sidebar.classList.remove('sidebar-open');
|
||||
toggleBtn.classList.remove('active');
|
||||
}
|
||||
});
|
||||
|
||||
function handleResize() {
|
||||
if (isDesktop()) {
|
||||
sidebar.classList.remove('sidebar-open');
|
||||
if (!watchContainer.classList.contains('sidebar-hidden')) {
|
||||
toggleBtn.classList.add('active');
|
||||
}
|
||||
} else {
|
||||
watchContainer.classList.remove('sidebar-hidden');
|
||||
sidebar.classList.remove('sidebar-open');
|
||||
toggleBtn.classList.remove('active');
|
||||
}
|
||||
}
|
||||
|
||||
window.addEventListener('resize', handleResize);
|
||||
handleResize();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user