Files
mal/static/css/style.css

781 lines
12 KiB
CSS

:root {
--bg: #0a0a0a;
--surface: #141414;
--surface-hover: #1f1f1f;
--border: #262626;
--text: #f0f0f0;
--text-muted: #737373;
--link: #a3a3a3;
--link-hover: #ffffff;
}
* {
box-sizing: border-box;
}
body {
background-color: var(--bg);
color: var(--text);
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
font-size: 14px;
line-height: 1.5;
margin: 0;
padding: 0;
min-height: 100vh;
-webkit-font-smoothing: antialiased;
}
/* Header */
header {
padding: 0 32px;
height: 56px;
border-bottom: 1px solid var(--border);
background: var(--bg);
position: sticky;
top: 0;
z-index: 100;
}
.header-top {
display: flex;
align-items: center;
height: 100%;
gap: 32px;
}
.header-left {
display: flex;
align-items: center;
gap: 32px;
}
.logo {
font-size: 16px;
font-weight: 600;
color: var(--text);
letter-spacing: -0.02em;
}
.logo:hover {
color: var(--text);
}
.nav {
display: flex;
gap: 24px;
}
.nav a {
font-size: 13px;
font-weight: 500;
color: var(--text-muted);
}
.nav a:hover {
color: var(--text);
}
.header-search {
margin-left: auto;
}
.search-input {
background: var(--surface);
border: 1px solid var(--border);
color: var(--text);
padding: 8px 12px;
font-size: 13px;
width: 240px;
font-family: inherit;
}
.search-input:focus {
outline: none;
border-color: var(--text-muted);
}
.search-input::placeholder {
color: var(--text-muted);
}
/* Main */
main {
padding: 32px;
max-width: 1200px;
margin: 0 auto;
}
a {
color: var(--link);
text-decoration: none;
}
a:hover {
color: var(--link-hover);
}
/* Grid */
.catalog-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
gap: 24px;
}
.catalog-item {
display: flex;
flex-direction: column;
gap: 8px;
}
.catalog-thumb {
width: 100%;
aspect-ratio: 2/3;
object-fit: cover;
background: var(--surface);
border: 1px solid var(--border);
}
.catalog-thumb:hover {
opacity: 0.8;
}
.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: 13px;
font-weight: 500;
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: 4px;
height: 4px;
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: 64px 32px;
}
.empty-state-title {
font-size: 16px;
font-weight: 500;
color: var(--text);
margin-bottom: 8px;
}
.empty-state-text {
font-size: 14px;
color: var(--text-muted);
}
.empty-state a {
color: var(--text);
text-decoration: underline;
}
/* Login */
.login-container {
max-width: 320px;
margin: 80px auto;
}
.login-container h2 {
font-size: 20px;
font-weight: 600;
margin: 0 0 8px 0;
}
.login-subtitle {
color: var(--text-muted);
font-size: 14px;
margin: 0 0 32px 0;
}
.login-form {
display: flex;
flex-direction: column;
gap: 16px;
}
.form-group {
display: flex;
flex-direction: column;
gap: 6px;
}
.form-group label {
font-size: 13px;
color: var(--text-muted);
}
.form-group input {
padding: 10px 12px;
background: var(--surface);
border: 1px solid var(--border);
color: var(--text);
font-size: 14px;
font-family: inherit;
}
.form-group input:focus {
outline: none;
border-color: var(--text-muted);
}
.login-button {
padding: 10px;
background: var(--text);
color: var(--bg);
border: none;
font-size: 14px;
font-weight: 500;
cursor: pointer;
margin-top: 8px;
font-family: inherit;
}
.login-button:hover {
background: var(--link-hover);
}
/* Watchlist */
.watchlist-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 24px;
}
.watchlist-header h2 {
font-size: 20px;
font-weight: 600;
margin: 0;
}
.watchlist-controls {
display: flex;
align-items: center;
gap: 16px;
}
.text-link {
font-size: 13px;
font-family: inherit;
background: none;
border: none;
color: var(--text-muted);
cursor: pointer;
text-decoration: none;
padding: 0;
}
.text-link:hover {
color: var(--text);
}
.view-toggle {
display: flex;
border: 1px solid var(--border);
}
.view-toggle a {
padding: 6px 12px;
font-size: 13px;
color: var(--text-muted);
}
.view-toggle a:hover {
color: var(--text);
background: var(--surface);
}
.view-toggle a.active {
color: var(--bg);
background: var(--text);
}
.status-tabs {
display: flex;
gap: 0;
margin-bottom: 24px;
border-bottom: 1px solid var(--border);
overflow-x: auto;
}
.status-tabs a {
padding: 12px 16px;
font-size: 13px;
color: var(--text-muted);
white-space: nowrap;
border-bottom: 2px solid transparent;
margin-bottom: -1px;
}
.status-tabs a:hover {
color: var(--text);
}
.status-tabs a.active {
color: var(--text);
border-bottom-color: var(--text);
}
.watchlist-item {
position: relative;
}
.watchlist-item .remove-btn {
position: absolute;
top: 8px;
right: 8px;
width: 24px;
height: 24px;
display: flex;
align-items: center;
justify-content: center;
background: rgba(0, 0, 0, 0.8);
border: 1px solid var(--border);
color: var(--text-muted);
cursor: pointer;
font-size: 14px;
opacity: 0;
transition: opacity 0.15s;
}
.watchlist-item:hover .remove-btn {
opacity: 1;
}
.watchlist-item .remove-btn:hover {
color: #ef4444;
border-color: #ef4444;
}
.watchlist-status {
font-size: 12px;
color: var(--text-muted);
}
.watchlist-table {
width: 100%;
border-collapse: collapse;
}
.watchlist-table th {
text-align: left;
padding: 12px 16px;
font-size: 12px;
font-weight: 500;
color: var(--text-muted);
border-bottom: 1px solid var(--border);
}
.watchlist-table td {
padding: 12px 16px;
border-bottom: 1px solid var(--border);
vertical-align: middle;
}
.watchlist-table tr:hover {
background: var(--surface);
}
.watchlist-table .thumb {
width: 40px;
height: 60px;
object-fit: cover;
border: 1px solid var(--border);
}
.watchlist-table .title-cell {
font-weight: 500;
}
.watchlist-table .status-cell {
color: var(--text-muted);
}
.watchlist-table .remove-link {
color: var(--text-muted);
font-size: 13px;
background: none;
border: none;
cursor: pointer;
font-family: inherit;
}
.watchlist-table .remove-link:hover {
color: #ef4444;
}
/* Anime Page */
.anime-page {
display: flex;
gap: 40px;
max-width: 1100px;
}
.anime-main {
flex: 1;
min-width: 0;
}
.anime-hero {
display: flex;
gap: 24px;
margin-bottom: 32px;
}
.anime-poster {
flex-shrink: 0;
width: 180px;
}
.anime-poster img {
width: 100%;
border: 1px solid var(--border);
}
.anime-info {
flex: 1;
min-width: 0;
}
.anime-info h1 {
font-size: 24px;
font-weight: 600;
margin: 0 0 4px 0;
letter-spacing: -0.02em;
}
.anime-alt-title {
font-size: 14px;
color: var(--text-muted);
margin: 0 0 16px 0;
}
.anime-quick-info {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin-bottom: 16px;
}
.info-tag {
padding: 4px 10px;
background: var(--surface);
border: 1px solid var(--border);
font-size: 12px;
font-weight: 500;
color: var(--text-muted);
}
.anime-actions {
margin-top: 16px;
}
.anime-synopsis {
margin-bottom: 32px;
}
.anime-synopsis h3,
.anime-relations h3 {
font-size: 12px;
font-weight: 600;
color: var(--text-muted);
text-transform: uppercase;
letter-spacing: 0.05em;
margin: 0 0 12px 0;
}
.anime-synopsis p {
font-size: 14px;
line-height: 1.7;
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: 16px;
}
.relation-card {
display: flex;
flex-direction: column;
gap: 8px;
}
.relation-card.current {
position: relative;
}
.relation-card.current::before {
content: '';
position: absolute;
inset: -4px;
border: 2px solid var(--text);
pointer-events: none;
}
.relation-thumb {
width: 100%;
aspect-ratio: 2/3;
object-fit: cover;
border: 1px solid var(--border);
}
.relation-card:hover .relation-thumb {
opacity: 0.8;
}
.relation-title {
font-size: 12px;
font-weight: 500;
color: var(--text);
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}
/* Anime Sidebar */
.anime-sidebar {
flex-shrink: 0;
width: 280px;
display: flex;
flex-direction: column;
gap: 12px;
padding: 20px;
background: var(--surface);
border: 1px solid var(--border);
height: fit-content;
}
.sidebar-row {
display: flex;
flex-direction: column;
gap: 4px;
}
.sidebar-label {
font-size: 13px;
font-weight: 600;
color: var(--text);
}
.sidebar-value {
font-size: 13px;
color: var(--text-muted);
line-height: 1.4;
}
.sidebar-row-wrap {
gap: 8px;
}
.sidebar-tags {
display: flex;
flex-wrap: wrap;
gap: 6px;
}
.sidebar-tag {
padding: 4px 10px;
background: var(--surface-hover);
border: 1px solid var(--border);
font-size: 12px;
color: var(--text);
}
/* Dropdown */
.dropdown {
position: relative;
display: inline-block;
}
.dropdown-trigger {
display: flex;
align-items: center;
gap: 8px;
padding: 10px 16px;
background: var(--surface);
border: 1px solid var(--border);
color: var(--text);
font-size: 14px;
font-family: inherit;
cursor: pointer;
}
.dropdown-trigger:hover {
border-color: var(--text-muted);
}
.dropdown-arrow {
font-size: 10px;
color: var(--text-muted);
}
.dropdown-menu {
position: absolute;
top: 100%;
left: 0;
right: 0;
min-width: 180px;
background: var(--surface);
border: 1px solid var(--border);
display: none;
z-index: 50;
}
.dropdown.open .dropdown-menu {
display: block;
}
.dropdown-item {
display: flex;
align-items: center;
justify-content: space-between;
width: 100%;
padding: 10px 16px;
background: none;
border: none;
color: var(--text);
font-size: 14px;
font-family: inherit;
cursor: pointer;
text-align: left;
}
.dropdown-item:hover {
background: var(--surface-hover);
}
.dropdown-item.active {
color: var(--text);
}
.dropdown-item .check {
color: var(--text-muted);
font-size: 12px;
}
.dropdown-item.remove {
color: #ef4444;
}
.dropdown-divider {
height: 1px;
background: var(--border);
margin: 4px 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: 0 16px;
}
.header-top {
flex-wrap: wrap;
height: auto;
padding: 16px 0;
gap: 16px;
}
.header-search {
width: 100%;
margin-left: 0;
}
.search-input {
width: 100%;
}
main {
padding: 16px;
}
.catalog-grid {
grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
gap: 16px;
}
.anime-hero {
flex-direction: column;
gap: 16px;
}
.anime-poster {
width: 140px;
}
.anime-info h1 {
font-size: 20px;
}
.relations-grid {
grid-template-columns: repeat(3, 1fr);
gap: 12px;
}
}