code organisation & refactor
This commit is contained in:
413
views/css/anime/watch.css
Normal file
413
views/css/anime/watch.css
Normal file
@@ -0,0 +1,413 @@
|
||||
:root {
|
||||
--bg-base: #000000;
|
||||
--bg-overlay: #101012;
|
||||
--accent: #8b5cf6;
|
||||
--accent-dark: #7c3aed;
|
||||
--text-primary: #ffffff;
|
||||
--text-secondary: #a1a1aa;
|
||||
--radius-full: 9999px;
|
||||
--radius-md: 16px;
|
||||
--glass-border: 1px solid rgba(255, 255, 255, 0.1);
|
||||
--glass-bg: rgba(20, 20, 23, 0.7);
|
||||
|
||||
|
||||
--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;
|
||||
|
||||
|
||||
--plyr-control-icon-size: 18px;
|
||||
--plyr-control-spacing: 10px;
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
background-color: var(--bg-base);
|
||||
color: var(--text-primary);
|
||||
font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
||||
height: 100vh;
|
||||
overflow: hidden;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.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%);
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.back-btn {
|
||||
pointer-events: auto;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.6rem;
|
||||
padding: 0.8rem 1.8rem;
|
||||
background: var(--glass-bg);
|
||||
backdrop-filter: blur(12px);
|
||||
border: var(--glass-border);
|
||||
border-radius: var(--radius-full);
|
||||
color: white;
|
||||
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);
|
||||
}
|
||||
|
||||
.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);
|
||||
}
|
||||
|
||||
.theater-container {
|
||||
flex: 1;
|
||||
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;
|
||||
}
|
||||
|
||||
.player-toolbar {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
align-items: center;
|
||||
gap: 1rem;
|
||||
margin-bottom: 1rem;
|
||||
position: relative;
|
||||
z-index: 50;
|
||||
}
|
||||
|
||||
.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);
|
||||
}
|
||||
|
||||
.sd-toggle {
|
||||
display: flex;
|
||||
background: var(--glass-bg);
|
||||
border: var(--glass-border);
|
||||
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;
|
||||
font-weight: 700;
|
||||
color: var(--text-secondary);
|
||||
z-index: 2;
|
||||
transition: color 0.3s;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.5px;
|
||||
}
|
||||
|
||||
.sd-option.active {
|
||||
color: white;
|
||||
}
|
||||
|
||||
.sd-bg {
|
||||
position: absolute;
|
||||
top: 4px;
|
||||
left: 4px;
|
||||
bottom: 4px;
|
||||
width: calc(50% - 4px);
|
||||
background: var(--accent);
|
||||
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);
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.sd-toggle[data-state="dub"] .sd-bg {
|
||||
transform: translateX(100%);
|
||||
}
|
||||
|
||||
.video-wrapper {
|
||||
width: 100%;
|
||||
aspect-ratio: 16/9;
|
||||
background: #000;
|
||||
border-radius: 20px;
|
||||
overflow: hidden;
|
||||
box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.08);
|
||||
position: relative;
|
||||
transition: box-shadow 0.3s ease;
|
||||
}
|
||||
|
||||
.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 {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: contain;
|
||||
}
|
||||
|
||||
.loading-overlay {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
background: #000;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
z-index: 20;
|
||||
color: var(--text-secondary);
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.spinner {
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
border: 3px solid rgba(255,255,255,0.1);
|
||||
border-radius: 50%;
|
||||
border-top-color: var(--accent);
|
||||
animation: spin 1s linear infinite;
|
||||
}
|
||||
|
||||
@keyframes spin { 100% { transform: rotate(360deg); } }
|
||||
|
||||
.controls-area {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin-top: 1.5rem;
|
||||
padding: 0 0.5rem;
|
||||
}
|
||||
|
||||
.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 span {
|
||||
color: var(--accent);
|
||||
font-size: 0.95rem;
|
||||
font-weight: 600;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 1px;
|
||||
margin-top: 4px;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.nav-controls {
|
||||
display: flex;
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.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);
|
||||
}
|
||||
|
||||
.nav-btn:hover:not(:disabled) {
|
||||
background: var(--accent);
|
||||
border-color: var(--accent);
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 5px 15px rgba(139, 92, 246, 0.3);
|
||||
}
|
||||
|
||||
.nav-btn:disabled {
|
||||
opacity: 0.3;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
.plyr--video {
|
||||
border-radius: 20px;
|
||||
font-family: 'Inter', sans-serif;
|
||||
}
|
||||
|
||||
.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;
|
||||
}
|
||||
|
||||
.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;
|
||||
}
|
||||
|
||||
.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);
|
||||
}
|
||||
|
||||
.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;
|
||||
}
|
||||
|
||||
.plyr__menu__container .plyr__control {
|
||||
font-size: 13px;
|
||||
font-weight: 500;
|
||||
padding: 8px 12px !important;
|
||||
border-radius: 6px;
|
||||
justify-content: flex-start;
|
||||
}
|
||||
|
||||
.plyr__menu__container .plyr__control:hover {
|
||||
background: rgba(255,255,255,0.1) !important;
|
||||
}
|
||||
|
||||
.plyr__menu__container .plyr__control[aria-checked="true"] {
|
||||
color: var(--accent);
|
||||
}
|
||||
.plyr__menu__container .plyr__control[aria-checked="true"]::after {
|
||||
background: var(--accent);
|
||||
}
|
||||
|
||||
.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);
|
||||
}
|
||||
|
||||
.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;
|
||||
}
|
||||
Reference in New Issue
Block a user