744 lines
14 KiB
CSS
744 lines
14 KiB
CSS
:root {
|
|
--bg-base: #09090b;
|
|
--bg-surface: #121215;
|
|
--bg-glass: rgba(18, 18, 21, 0.8);
|
|
--bg-cell: #0c0c0e;
|
|
--accent: #8b5cf6;
|
|
--accent-glow: rgba(139, 92, 246, 0.3);
|
|
--text-primary: #ffffff;
|
|
--text-secondary: #a1a1aa;
|
|
--border: rgba(255, 255, 255, 0.08);
|
|
--radius-md: 12px;
|
|
--radius-lg: 24px;
|
|
--nav-height: 80px;
|
|
--font-main: "Inter", sans-serif;
|
|
--titlebar-height: 40px;
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
outline: none;
|
|
}
|
|
|
|
body {
|
|
margin: 0;
|
|
background-color: var(--bg-base);
|
|
color: var(--text-primary);
|
|
font-family: var(--font-main);
|
|
overflow: hidden;
|
|
height: 100vh;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
html.electron body {
|
|
padding-top: 0;
|
|
}
|
|
|
|
.navbar {
|
|
height: var(--nav-height);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 0 2rem;
|
|
background: var(--bg-glass);
|
|
backdrop-filter: blur(16px);
|
|
border-bottom: 1px solid var(--border);
|
|
z-index: 100;
|
|
flex-shrink: 0;
|
|
position: relative;
|
|
}
|
|
|
|
.nav-brand {
|
|
position: absolute;
|
|
left: 2rem;
|
|
font-weight: 900;
|
|
font-size: 1.4rem;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.8rem;
|
|
color: white;
|
|
text-decoration: none;
|
|
letter-spacing: -0.02em;
|
|
}
|
|
|
|
.brand-icon {
|
|
width: 36px;
|
|
height: 36px;
|
|
background: transparent;
|
|
border-radius: 10px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.brand-icon img {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: contain;
|
|
}
|
|
|
|
.nav-center {
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
background: rgba(255, 255, 255, 0.03);
|
|
padding: 0.3rem;
|
|
border-radius: 999px;
|
|
border: 1px solid var(--border);
|
|
position: absolute;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
}
|
|
|
|
.nav-button {
|
|
background: transparent;
|
|
border: none;
|
|
color: var(--text-secondary);
|
|
padding: 0.5rem 1.2rem;
|
|
border-radius: 999px;
|
|
cursor: pointer;
|
|
font-weight: 600;
|
|
font-size: 0.9rem;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.nav-button:hover {
|
|
color: white;
|
|
background: rgba(255, 255, 255, 0.05);
|
|
}
|
|
|
|
.nav-button.active {
|
|
background: rgba(255, 255, 255, 0.1);
|
|
color: white;
|
|
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
|
|
border: 1px solid rgba(255, 255, 255, 0.05);
|
|
}
|
|
|
|
.nav-right {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 1.5rem;
|
|
margin-left: auto;
|
|
}
|
|
|
|
.search-wrapper {
|
|
position: relative;
|
|
width: 250px;
|
|
}
|
|
|
|
.search-input {
|
|
width: 100%;
|
|
background: rgba(255, 255, 255, 0.05);
|
|
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
padding: 0.7rem 1rem 0.7rem 2.5rem;
|
|
border-radius: 99px;
|
|
color: white;
|
|
font-family: inherit;
|
|
transition: 0.2s;
|
|
}
|
|
|
|
.search-input:focus {
|
|
background: rgba(255, 255, 255, 0.1);
|
|
border-color: var(--accent);
|
|
box-shadow: 0 0 15px var(--accent-glow);
|
|
}
|
|
|
|
.search-icon {
|
|
position: absolute;
|
|
left: 12px;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
pointer-events: none;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.search-results {
|
|
position: absolute;
|
|
top: 100%;
|
|
left: 0;
|
|
right: 0;
|
|
background: rgba(15, 15, 18, 0.95);
|
|
backdrop-filter: blur(12px);
|
|
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
border-top: none;
|
|
border-radius: 0 0 12px 12px;
|
|
padding: 0.5rem;
|
|
display: none;
|
|
flex-direction: column;
|
|
gap: 0.25rem;
|
|
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
|
|
max-height: 400px;
|
|
overflow-y: auto;
|
|
z-index: 2000;
|
|
}
|
|
|
|
.search-results.active {
|
|
display: flex;
|
|
}
|
|
|
|
.search-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 1rem;
|
|
padding: 0.5rem;
|
|
border-radius: 8px;
|
|
cursor: pointer;
|
|
transition: background 0.2s;
|
|
text-decoration: none;
|
|
color: inherit;
|
|
}
|
|
|
|
.search-item:hover {
|
|
background: rgba(255, 255, 255, 0.1);
|
|
}
|
|
|
|
.search-poster {
|
|
width: 40px;
|
|
height: 56px;
|
|
border-radius: 4px;
|
|
object-fit: cover;
|
|
background: #222;
|
|
}
|
|
|
|
.search-info {
|
|
flex: 1;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.search-title {
|
|
font-size: 0.9rem;
|
|
font-weight: 600;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.search-meta {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
font-size: 0.75rem;
|
|
color: var(--text-secondary);
|
|
margin-top: 2px;
|
|
}
|
|
|
|
.rating-pill {
|
|
color: #4ade80;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.nav-user {
|
|
position: relative;
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.user-avatar-btn {
|
|
position: relative;
|
|
cursor: pointer;
|
|
transition: transform 0.2s ease;
|
|
}
|
|
|
|
.user-avatar-btn:hover {
|
|
transform: scale(1.05);
|
|
}
|
|
|
|
#nav-avatar {
|
|
width: 44px;
|
|
height: 44px;
|
|
object-fit: cover;
|
|
border-radius: 50%;
|
|
border: 2px solid var(--accent);
|
|
background: var(--bg-surface);
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
box-shadow: 0 0 0 0 var(--accent-glow);
|
|
}
|
|
|
|
.user-avatar-btn:hover #nav-avatar {
|
|
box-shadow: 0 0 0 4px var(--accent-glow);
|
|
border-color: #a78bfa;
|
|
}
|
|
|
|
.online-indicator {
|
|
position: absolute;
|
|
bottom: 2px;
|
|
right: 2px;
|
|
width: 12px;
|
|
height: 12px;
|
|
background: #22c55e;
|
|
border: 2px solid var(--bg-base);
|
|
border-radius: 50%;
|
|
animation: pulse 2s infinite;
|
|
}
|
|
|
|
@keyframes pulse {
|
|
0%,
|
|
100% {
|
|
opacity: 1;
|
|
}
|
|
50% {
|
|
opacity: 0.6;
|
|
}
|
|
}
|
|
|
|
.nav-dropdown {
|
|
position: absolute;
|
|
top: calc(100% + 12px);
|
|
right: 0;
|
|
background: rgba(18, 18, 21, 0.98);
|
|
backdrop-filter: blur(20px);
|
|
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
border-radius: 16px;
|
|
padding: 0;
|
|
min-width: 260px;
|
|
display: none;
|
|
flex-direction: column;
|
|
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(139, 92, 246, 0.1);
|
|
z-index: 9999;
|
|
overflow: hidden;
|
|
animation: dropdownSlide 0.2s ease-out;
|
|
}
|
|
|
|
@keyframes dropdownSlide {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(-10px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
.nav-dropdown.active {
|
|
display: flex;
|
|
}
|
|
|
|
.dropdown-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
padding: 16px;
|
|
background: rgba(139, 92, 246, 0.08);
|
|
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
|
|
}
|
|
|
|
.dropdown-avatar {
|
|
width: 48px;
|
|
height: 48px;
|
|
border-radius: 12px;
|
|
object-fit: cover;
|
|
border: 2px solid var(--accent);
|
|
background: var(--bg-surface);
|
|
}
|
|
|
|
.dropdown-user-info {
|
|
flex: 1;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.dropdown-username {
|
|
font-weight: 700;
|
|
font-size: 1rem;
|
|
color: var(--text-primary);
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
margin-bottom: 2px;
|
|
}
|
|
|
|
.dropdown-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
padding: 12px 16px;
|
|
color: var(--text-primary);
|
|
text-decoration: none;
|
|
font-size: 0.9rem;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
border: none;
|
|
background: transparent;
|
|
width: 100%;
|
|
text-align: left;
|
|
font-family: inherit;
|
|
}
|
|
|
|
.dropdown-item svg {
|
|
flex-shrink: 0;
|
|
color: var(--text-secondary);
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.dropdown-item:hover {
|
|
background: rgba(255, 255, 255, 0.08);
|
|
color: white;
|
|
padding-left: 20px;
|
|
}
|
|
|
|
.dropdown-item:hover svg {
|
|
color: var(--accent);
|
|
transform: translateX(2px);
|
|
}
|
|
|
|
.logout-item {
|
|
color: #ef4444;
|
|
margin-top: 4px;
|
|
}
|
|
|
|
.logout-item svg {
|
|
color: #ef4444;
|
|
}
|
|
|
|
.logout-item:hover {
|
|
background: rgba(239, 68, 68, 0.15);
|
|
color: #f87171;
|
|
}
|
|
|
|
.ambient-bg {
|
|
position: absolute;
|
|
inset: 0;
|
|
z-index: -1;
|
|
background-size: cover;
|
|
background-position: center;
|
|
opacity: 0.06;
|
|
filter: blur(120px) saturate(1.2);
|
|
transition: background-image 1s ease-in-out;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.calendar-wrapper {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow: hidden;
|
|
padding: 3rem;
|
|
max-width: 1920px;
|
|
width: 100%;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.calendar-controls {
|
|
padding: 1.5rem 0;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.month-selector {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 1.5rem;
|
|
}
|
|
|
|
.month-title {
|
|
font-size: 2.2rem;
|
|
font-weight: 800;
|
|
letter-spacing: -0.03em;
|
|
background: linear-gradient(to right, #fff, #a1a1aa);
|
|
-webkit-background-clip: text;
|
|
-webkit-text-fill-color: transparent;
|
|
min-width: 350px;
|
|
}
|
|
|
|
.icon-btn {
|
|
background: rgba(255, 255, 255, 0.03);
|
|
border: 1px solid var(--border);
|
|
width: 44px;
|
|
height: 44px;
|
|
border-radius: 12px;
|
|
color: white;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
transition: 0.2s;
|
|
}
|
|
|
|
.icon-btn:hover {
|
|
background: var(--accent);
|
|
border-color: var(--accent);
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
.controls-right {
|
|
display: flex;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.view-toggles {
|
|
display: flex;
|
|
background: #0f0f12;
|
|
padding: 4px;
|
|
border-radius: 99px;
|
|
border: 1px solid var(--border);
|
|
box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
|
|
}
|
|
|
|
.toggle-item {
|
|
padding: 10px 24px;
|
|
border-radius: 99px;
|
|
border: none;
|
|
background: transparent;
|
|
color: var(--text-secondary);
|
|
font-weight: 600;
|
|
font-size: 0.9rem;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.toggle-item.active {
|
|
background: var(--accent);
|
|
color: white;
|
|
box-shadow: 0 2px 10px var(--accent-glow);
|
|
}
|
|
|
|
.calendar-board {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow: hidden;
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-lg);
|
|
background: var(--bg-surface);
|
|
box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
|
|
}
|
|
|
|
.weekdays-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(7, 1fr);
|
|
border-bottom: 1px solid var(--border);
|
|
background: rgba(255, 255, 255, 0.02);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.weekday-header {
|
|
padding: 16px;
|
|
text-align: center;
|
|
text-transform: uppercase;
|
|
font-size: 0.75rem;
|
|
font-weight: 800;
|
|
color: var(--text-secondary);
|
|
letter-spacing: 0.1em;
|
|
border-right: 1px solid var(--border);
|
|
}
|
|
|
|
.weekday-header:last-child {
|
|
border-right: none;
|
|
}
|
|
|
|
.days-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(7, 1fr);
|
|
width: 100%;
|
|
overflow-y: auto;
|
|
flex: 1;
|
|
|
|
grid-auto-rows: minmax(180px, 1fr);
|
|
background: var(--bg-base);
|
|
}
|
|
|
|
.day-cell {
|
|
position: relative;
|
|
background: var(--bg-cell);
|
|
border-right: 1px solid var(--border);
|
|
border-bottom: 1px solid var(--border);
|
|
display: flex;
|
|
flex-direction: column;
|
|
padding: 12px;
|
|
transition: background 0.2s;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.day-cell:nth-child(7n) {
|
|
border-right: none;
|
|
}
|
|
|
|
.day-cell.empty {
|
|
background: rgba(0, 0, 0, 0.2);
|
|
pointer-events: none;
|
|
}
|
|
|
|
.day-cell:hover {
|
|
background: #16161a;
|
|
}
|
|
|
|
.day-cell.today {
|
|
background: rgba(139, 92, 246, 0.03);
|
|
box-shadow: inset 0 0 0 1px var(--accent);
|
|
}
|
|
|
|
.day-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 12px;
|
|
z-index: 2;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.day-number {
|
|
font-size: 1.1rem;
|
|
font-weight: 700;
|
|
color: var(--text-secondary);
|
|
width: 32px;
|
|
height: 32px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border-radius: 50%;
|
|
}
|
|
|
|
.day-cell.today .day-number {
|
|
background: var(--accent);
|
|
color: white;
|
|
box-shadow: 0 0 15px var(--accent-glow);
|
|
}
|
|
|
|
.today-label {
|
|
font-size: 0.65rem;
|
|
font-weight: 800;
|
|
color: var(--accent);
|
|
letter-spacing: 0.05em;
|
|
text-transform: uppercase;
|
|
display: none;
|
|
}
|
|
|
|
.day-cell.today .today-label {
|
|
display: block;
|
|
}
|
|
|
|
.events-list {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
overflow-y: auto;
|
|
z-index: 2;
|
|
padding-right: 4px;
|
|
}
|
|
|
|
.events-list::-webkit-scrollbar {
|
|
width: 4px;
|
|
}
|
|
|
|
.events-list::-webkit-scrollbar-thumb {
|
|
background: rgba(255, 255, 255, 0.1);
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.anime-chip {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
background: rgba(255, 255, 255, 0.03);
|
|
border: 1px solid rgba(255, 255, 255, 0.05);
|
|
padding: 8px 10px;
|
|
border-radius: 8px;
|
|
font-size: 0.8rem;
|
|
color: #d4d4d8;
|
|
text-decoration: none;
|
|
transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
|
|
cursor: pointer;
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.anime-chip::before {
|
|
content: "";
|
|
position: absolute;
|
|
left: 0;
|
|
top: 0;
|
|
bottom: 0;
|
|
width: 3px;
|
|
background: var(--accent);
|
|
opacity: 0;
|
|
transition: opacity 0.2s;
|
|
}
|
|
|
|
.anime-chip:hover {
|
|
background: rgba(255, 255, 255, 0.1);
|
|
color: white;
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
|
|
padding-left: 14px;
|
|
}
|
|
|
|
.anime-chip:hover::before {
|
|
opacity: 1;
|
|
}
|
|
|
|
.chip-title {
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
font-weight: 500;
|
|
margin-right: 8px;
|
|
}
|
|
|
|
.chip-ep {
|
|
font-size: 0.7rem;
|
|
font-weight: 700;
|
|
color: var(--text-secondary);
|
|
background: rgba(0, 0, 0, 0.4);
|
|
padding: 2px 6px;
|
|
border-radius: 4px;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.cell-backdrop {
|
|
position: absolute;
|
|
inset: 0;
|
|
background-size: cover;
|
|
background-position: center;
|
|
opacity: 0;
|
|
transition: opacity 0.4s ease;
|
|
filter: grayscale(100%) brightness(0.25);
|
|
z-index: 1;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.day-cell:hover .cell-backdrop {
|
|
opacity: 1;
|
|
}
|
|
|
|
.loader {
|
|
position: fixed;
|
|
bottom: 30px;
|
|
right: 30px;
|
|
background: #18181b;
|
|
border: 1px solid var(--border);
|
|
padding: 12px 24px;
|
|
border-radius: 99px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
|
|
transform: translateY(100px);
|
|
transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
|
|
z-index: 1000;
|
|
}
|
|
|
|
.loader.active {
|
|
transform: translateY(0);
|
|
}
|
|
|
|
.spinner {
|
|
width: 18px;
|
|
height: 18px;
|
|
border: 2px solid rgba(255, 255, 255, 0.1);
|
|
border-top-color: var(--accent);
|
|
border-radius: 50%;
|
|
animation: spin 0.8s infinite linear;
|
|
}
|
|
|
|
@keyframes spin {
|
|
to {
|
|
transform: rotate(360deg);
|
|
}
|
|
}
|