821 lines
12 KiB
CSS
821 lines
12 KiB
CSS
:root {
|
|
--bg: #1a1a1a;
|
|
--surface: #262626;
|
|
--surface-hover: #303030;
|
|
--border: #404040;
|
|
--text: #e8e8e8;
|
|
--text-muted: #999999;
|
|
--link: #4a9eff;
|
|
--link-hover: #6bb3ff;
|
|
--link-active: #9966ff;
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
background-color: var(--bg);
|
|
color: var(--text);
|
|
font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
|
|
font-size: 14px;
|
|
line-height: 1.5;
|
|
margin: 0;
|
|
padding: 0;
|
|
min-height: 100vh;
|
|
}
|
|
|
|
/* Header */
|
|
header {
|
|
padding: 8px 16px;
|
|
background: var(--surface);
|
|
border-bottom: 1px solid var(--border);
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 100;
|
|
}
|
|
|
|
.header-top {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 24px;
|
|
max-width: 1400px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.header-left {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 24px;
|
|
}
|
|
|
|
.logo {
|
|
font-size: 14px;
|
|
font-weight: 700;
|
|
color: var(--text);
|
|
}
|
|
|
|
.logo:hover {
|
|
color: var(--text);
|
|
}
|
|
|
|
.nav {
|
|
display: flex;
|
|
gap: 16px;
|
|
border-left: 1px solid var(--border);
|
|
padding-left: 16px;
|
|
}
|
|
|
|
.nav a {
|
|
font-size: 13px;
|
|
color: var(--link);
|
|
text-decoration: none;
|
|
}
|
|
|
|
.nav a:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.header-search {
|
|
margin-left: auto;
|
|
}
|
|
|
|
.search-input {
|
|
background: var(--surface);
|
|
border: 1px solid var(--border);
|
|
color: var(--text);
|
|
padding: 6px 8px;
|
|
font-size: 13px;
|
|
width: 200px;
|
|
font-family: inherit;
|
|
}
|
|
|
|
.search-input:focus {
|
|
outline: none;
|
|
border-color: var(--link);
|
|
}
|
|
|
|
.search-input::placeholder {
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
/* Main */
|
|
main {
|
|
padding: 16px;
|
|
max-width: 1400px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
a {
|
|
color: var(--link);
|
|
text-decoration: none;
|
|
}
|
|
|
|
a:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
a:visited {
|
|
color: var(--link-active);
|
|
}
|
|
|
|
/* Grid */
|
|
.catalog-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
|
|
gap: 12px;
|
|
}
|
|
|
|
.catalog-item {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
}
|
|
|
|
.catalog-thumb {
|
|
width: 100%;
|
|
aspect-ratio: 2/3;
|
|
object-fit: cover;
|
|
background: var(--surface);
|
|
border: 1px solid var(--border);
|
|
}
|
|
|
|
.catalog-thumb:hover {
|
|
border-color: var(--link);
|
|
}
|
|
|
|
.no-image {
|
|
width: 100%;
|
|
aspect-ratio: 2/3;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: var(--text-muted);
|
|
font-size: 12px;
|
|
background: var(--surface);
|
|
border: 1px solid var(--border);
|
|
}
|
|
|
|
.catalog-title {
|
|
font-size: 12px;
|
|
color: var(--text);
|
|
display: -webkit-box;
|
|
-webkit-line-clamp: 2;
|
|
-webkit-box-orient: vertical;
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* Loading */
|
|
.loading-indicator {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
color: var(--text-muted);
|
|
font-size: 13px;
|
|
}
|
|
|
|
.loading-dot {
|
|
width: 3px;
|
|
height: 3px;
|
|
background: var(--text-muted);
|
|
animation: pulse 1.5s ease-in-out infinite;
|
|
}
|
|
|
|
.loading-dot:nth-child(2) { animation-delay: 0.2s; }
|
|
.loading-dot:nth-child(3) { animation-delay: 0.4s; }
|
|
|
|
@keyframes pulse {
|
|
0%, 100% { opacity: 0.3; }
|
|
50% { opacity: 1; }
|
|
}
|
|
|
|
.htmx-indicator { display: none; }
|
|
.htmx-request .htmx-indicator { display: flex; }
|
|
|
|
/* Empty State */
|
|
.empty-state {
|
|
text-align: center;
|
|
padding: 48px 16px;
|
|
}
|
|
|
|
.empty-state-title {
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
color: var(--text);
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.empty-state-text {
|
|
font-size: 14px;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.empty-state a {
|
|
color: var(--link);
|
|
}
|
|
|
|
.empty-state a:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
/* Login */
|
|
.login-container {
|
|
max-width: 280px;
|
|
margin: 60px auto;
|
|
border: 1px solid var(--border);
|
|
padding: 16px;
|
|
background: var(--surface);
|
|
}
|
|
|
|
.login-container h2 {
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
margin: 0 0 4px 0;
|
|
}
|
|
|
|
.login-subtitle {
|
|
color: var(--text-muted);
|
|
font-size: 12px;
|
|
margin: 0 0 16px 0;
|
|
}
|
|
|
|
.login-form {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
}
|
|
|
|
.form-group {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
}
|
|
|
|
.form-group label {
|
|
font-size: 12px;
|
|
color: var(--text);
|
|
font-weight: 500;
|
|
}
|
|
|
|
.form-group input {
|
|
padding: 6px 8px;
|
|
background: var(--surface);
|
|
border: 1px solid var(--border);
|
|
color: var(--text);
|
|
font-size: 13px;
|
|
font-family: inherit;
|
|
}
|
|
|
|
.form-group input:focus {
|
|
outline: none;
|
|
border-color: var(--link);
|
|
}
|
|
|
|
.login-button {
|
|
padding: 6px;
|
|
background: var(--surface);
|
|
color: var(--text);
|
|
border: 1px solid var(--border);
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
margin-top: 4px;
|
|
font-family: inherit;
|
|
}
|
|
|
|
.login-button:hover {
|
|
background: var(--surface-hover);
|
|
border-color: var(--link);
|
|
}
|
|
|
|
/* Watchlist */
|
|
.watchlist-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.watchlist-header h2 {
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
margin: 0;
|
|
}
|
|
|
|
.watchlist-controls {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 16px;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.text-link {
|
|
font-size: 13px;
|
|
font-family: inherit;
|
|
background: none;
|
|
border: none;
|
|
color: var(--link);
|
|
cursor: pointer;
|
|
text-decoration: none;
|
|
padding: 0;
|
|
}
|
|
|
|
.text-link:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.view-toggle {
|
|
display: flex;
|
|
border: 1px solid var(--border);
|
|
}
|
|
|
|
.view-toggle a {
|
|
padding: 4px 8px;
|
|
font-size: 12px;
|
|
color: var(--link);
|
|
border-right: 1px solid var(--border);
|
|
text-decoration: none;
|
|
}
|
|
|
|
.view-toggle a:last-child {
|
|
border-right: none;
|
|
}
|
|
|
|
.view-toggle a:hover {
|
|
background: var(--surface-hover);
|
|
}
|
|
|
|
.view-toggle a.active {
|
|
background: var(--link);
|
|
color: white;
|
|
}
|
|
|
|
.status-tabs {
|
|
display: flex;
|
|
gap: 0;
|
|
margin-bottom: 16px;
|
|
border-bottom: 1px solid var(--border);
|
|
overflow-x: auto;
|
|
}
|
|
|
|
.status-tabs a {
|
|
padding: 8px 12px;
|
|
font-size: 12px;
|
|
color: var(--link);
|
|
white-space: nowrap;
|
|
border-bottom: 2px solid transparent;
|
|
margin-bottom: -1px;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.status-tabs a:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.status-tabs a.active {
|
|
border-bottom-color: var(--link);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.watchlist-item {
|
|
position: relative;
|
|
}
|
|
|
|
.watchlist-item .remove-btn {
|
|
position: absolute;
|
|
top: 4px;
|
|
right: 4px;
|
|
width: 20px;
|
|
height: 20px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background: var(--surface);
|
|
border: 1px solid var(--border);
|
|
color: var(--text-muted);
|
|
cursor: pointer;
|
|
font-size: 12px;
|
|
opacity: 0;
|
|
transition: opacity 0.15s;
|
|
}
|
|
|
|
.watchlist-item:hover .remove-btn {
|
|
opacity: 1;
|
|
}
|
|
|
|
.watchlist-item .remove-btn:hover {
|
|
color: #cc0000;
|
|
border-color: #cc0000;
|
|
}
|
|
|
|
.watchlist-status {
|
|
font-size: 11px;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.watchlist-table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
border: 1px solid var(--border);
|
|
}
|
|
|
|
.watchlist-table th {
|
|
text-align: left;
|
|
padding: 8px 12px;
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
color: var(--text);
|
|
border-bottom: 1px solid var(--border);
|
|
background: var(--surface-hover);
|
|
}
|
|
|
|
.watchlist-table td {
|
|
padding: 8px 12px;
|
|
border-bottom: 1px solid var(--border);
|
|
vertical-align: middle;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.watchlist-table tr:hover {
|
|
background: var(--surface-hover);
|
|
}
|
|
|
|
.watchlist-table .thumb {
|
|
width: 32px;
|
|
height: 48px;
|
|
object-fit: cover;
|
|
border: 1px solid var(--border);
|
|
}
|
|
|
|
.watchlist-table .title-cell {
|
|
font-weight: 500;
|
|
}
|
|
|
|
.watchlist-table .status-cell {
|
|
color: var(--text-muted);
|
|
font-size: 12px;
|
|
}
|
|
|
|
.watchlist-table .remove-link {
|
|
color: var(--link);
|
|
font-size: 12px;
|
|
background: none;
|
|
border: none;
|
|
cursor: pointer;
|
|
font-family: inherit;
|
|
padding: 0;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.watchlist-table .remove-link:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
/* Anime Page */
|
|
.anime-page {
|
|
display: flex;
|
|
gap: 24px;
|
|
max-width: 1200px;
|
|
}
|
|
|
|
.anime-main {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.anime-hero {
|
|
display: flex;
|
|
gap: 16px;
|
|
margin-bottom: 24px;
|
|
}
|
|
|
|
.anime-poster {
|
|
flex-shrink: 0;
|
|
width: 140px;
|
|
}
|
|
|
|
.anime-poster img {
|
|
width: 100%;
|
|
border: 1px solid var(--border);
|
|
}
|
|
|
|
.anime-info {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.anime-info h1 {
|
|
font-size: 20px;
|
|
font-weight: 600;
|
|
margin: 0 0 4px 0;
|
|
}
|
|
|
|
.anime-alt-title {
|
|
font-size: 12px;
|
|
color: var(--text-muted);
|
|
margin: 0 0 12px 0;
|
|
}
|
|
|
|
.anime-quick-info {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 8px;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.info-tag {
|
|
padding: 2px 6px;
|
|
background: var(--surface-hover);
|
|
border: 1px solid var(--border);
|
|
font-size: 11px;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.anime-actions {
|
|
margin-top: 12px;
|
|
}
|
|
|
|
.anime-synopsis {
|
|
margin-bottom: 24px;
|
|
}
|
|
|
|
.anime-synopsis h3,
|
|
.anime-relations h3 {
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
color: var(--text);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.05em;
|
|
margin: 0 0 12px 0;
|
|
}
|
|
|
|
.anime-synopsis p {
|
|
font-size: 13px;
|
|
line-height: 1.6;
|
|
color: var(--text);
|
|
margin: 0;
|
|
}
|
|
|
|
.anime-synopsis .no-synopsis {
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
/* Relations Grid */
|
|
.relations-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(6, 1fr);
|
|
gap: 12px;
|
|
}
|
|
|
|
.relation-card {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
}
|
|
|
|
.relation-card.current {
|
|
position: relative;
|
|
}
|
|
|
|
.relation-card.current::before {
|
|
content: '';
|
|
position: absolute;
|
|
inset: -2px;
|
|
border: 2px solid var(--link);
|
|
pointer-events: none;
|
|
}
|
|
|
|
.relation-thumb {
|
|
width: 100%;
|
|
aspect-ratio: 2/3;
|
|
object-fit: cover;
|
|
border: 1px solid var(--border);
|
|
}
|
|
|
|
.relation-card:hover .relation-thumb {
|
|
border-color: var(--link);
|
|
}
|
|
|
|
.relation-title {
|
|
font-size: 11px;
|
|
color: var(--text);
|
|
display: -webkit-box;
|
|
-webkit-line-clamp: 2;
|
|
-webkit-box-orient: vertical;
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* Anime Sidebar */
|
|
.anime-sidebar {
|
|
flex-shrink: 0;
|
|
width: 240px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
padding: 12px;
|
|
background: var(--surface);
|
|
border: 1px solid var(--border);
|
|
height: fit-content;
|
|
}
|
|
|
|
.sidebar-row {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
}
|
|
|
|
.sidebar-label {
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
color: var(--text);
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.sidebar-value {
|
|
font-size: 12px;
|
|
color: var(--text-muted);
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.sidebar-row-wrap {
|
|
gap: 8px;
|
|
}
|
|
|
|
.sidebar-tags {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 4px;
|
|
}
|
|
|
|
.sidebar-tag {
|
|
padding: 2px 6px;
|
|
background: var(--surface-hover);
|
|
border: 1px solid var(--border);
|
|
font-size: 11px;
|
|
color: var(--text);
|
|
}
|
|
|
|
/* Dropdown */
|
|
.dropdown {
|
|
position: relative;
|
|
display: inline-block;
|
|
}
|
|
|
|
.dropdown-trigger {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 6px 12px;
|
|
background: var(--surface);
|
|
border: 1px solid var(--border);
|
|
color: var(--text);
|
|
font-size: 13px;
|
|
font-family: inherit;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.dropdown-trigger:hover {
|
|
background: var(--surface-hover);
|
|
border-color: var(--link);
|
|
}
|
|
|
|
.dropdown-arrow {
|
|
font-size: 10px;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.dropdown-menu {
|
|
position: absolute;
|
|
top: 100%;
|
|
left: 0;
|
|
right: 0;
|
|
min-width: 160px;
|
|
background: var(--surface);
|
|
border: 1px solid var(--border);
|
|
display: none;
|
|
z-index: 50;
|
|
margin-top: -1px;
|
|
}
|
|
|
|
.dropdown.open .dropdown-menu {
|
|
display: block;
|
|
}
|
|
|
|
.dropdown-item {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
width: 100%;
|
|
padding: 8px 12px;
|
|
background: none;
|
|
border: none;
|
|
color: var(--text);
|
|
font-size: 13px;
|
|
font-family: inherit;
|
|
cursor: pointer;
|
|
text-align: left;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
|
|
.dropdown-item:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.dropdown-item:hover {
|
|
background: var(--surface-hover);
|
|
}
|
|
|
|
.dropdown-item.active {
|
|
background: var(--surface-hover);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.dropdown-item .check {
|
|
color: var(--link);
|
|
font-size: 12px;
|
|
}
|
|
|
|
.dropdown-item.remove {
|
|
color: #cc0000;
|
|
}
|
|
|
|
.dropdown-divider {
|
|
height: 1px;
|
|
background: var(--border);
|
|
margin: 0;
|
|
}
|
|
|
|
/* Responsive */
|
|
@media (max-width: 900px) {
|
|
.anime-page {
|
|
flex-direction: column;
|
|
}
|
|
|
|
.anime-sidebar {
|
|
width: 100%;
|
|
order: 2;
|
|
}
|
|
|
|
.relations-grid {
|
|
grid-template-columns: repeat(4, 1fr);
|
|
}
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
header {
|
|
padding: 8px 12px;
|
|
}
|
|
|
|
.header-top {
|
|
flex-wrap: wrap;
|
|
gap: 12px;
|
|
}
|
|
|
|
.header-left {
|
|
gap: 12px;
|
|
}
|
|
|
|
.nav {
|
|
border-left: none;
|
|
padding-left: 0;
|
|
flex: 1;
|
|
order: 3;
|
|
}
|
|
|
|
.header-search {
|
|
width: 100%;
|
|
order: 4;
|
|
}
|
|
|
|
.search-input {
|
|
width: 100%;
|
|
}
|
|
|
|
main {
|
|
padding: 12px;
|
|
}
|
|
|
|
.catalog-grid {
|
|
grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
|
|
gap: 8px;
|
|
}
|
|
|
|
.anime-hero {
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
}
|
|
|
|
.anime-poster {
|
|
width: 100px;
|
|
}
|
|
|
|
.anime-info h1 {
|
|
font-size: 16px;
|
|
}
|
|
|
|
.relations-grid {
|
|
grid-template-columns: repeat(3, 1fr);
|
|
gap: 8px;
|
|
}
|
|
}
|