Files
Trakt-Rater/static/style.css

429 lines
11 KiB
CSS
Raw Normal View History

:root {
--bg: #09090e;
--surface: #101018;
--surface-2: #15151f;
--border: #1d1d2e;
--border-2: #26263a;
--accent: #7c6af7;
--accent-bg: rgba(124,106,247,.12);
--text: #e2e2f0;
--muted: #6a6a8e;
--faint: #32324e;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 14px; }
body {
font-family: 'Inter', -apple-system, sans-serif;
background: var(--bg);
color: var(--text);
min-height: 100vh;
-webkit-font-smoothing: antialiased;
}
.hidden { display: none !important; }
/* ── Login ─────────────────────────────────────────────── */
#login-screen {
display: flex;
align-items: center;
justify-content: center;
min-height: 100vh;
background:
radial-gradient(ellipse 70% 50% at 50% -10%, rgba(124,106,247,.18) 0%, transparent 60%),
var(--bg);
}
.login-card {
background: var(--surface);
border: 1px solid var(--border-2);
border-radius: 18px;
padding: 2.8rem 2.4rem;
width: 100%;
max-width: 360px;
text-align: center;
box-shadow: 0 32px 64px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.03) inset;
}
.login-logo {
display: flex;
align-items: center;
justify-content: center;
gap: .5rem;
margin-bottom: .8rem;
color: var(--accent);
}
.login-logo h1 {
font-size: 1.7rem;
font-weight: 700;
letter-spacing: -.03em;
background: linear-gradient(135deg, #b39dff 0%, #7c6af7 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
.login-card p {
color: var(--muted);
font-size: .88rem;
margin-bottom: 1.8rem;
}
.btn-primary {
display: inline-flex;
align-items: center;
gap: .45rem;
background: var(--accent);
color: #fff;
text-decoration: none;
border-radius: 9px;
padding: .65rem 1.4rem;
font-weight: 600;
font-size: .88rem;
transition: background .2s, transform .15s, box-shadow .2s;
}
.btn-primary:hover {
background: #8e7df8;
transform: translateY(-1px);
box-shadow: 0 6px 24px rgba(124,106,247,.38);
}
/* ── Header ─────────────────────────────────────────────── */
header {
display: flex;
align-items: center;
justify-content: space-between;
padding: .75rem 1.5rem;
background: rgba(16,16,24,.88);
border-bottom: 1px solid var(--border);
position: sticky;
top: 0;
z-index: 50;
backdrop-filter: blur(14px);
-webkit-backdrop-filter: blur(14px);
}
.header-left { display: flex; align-items: center; gap: .55rem; }
.logo-mark { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }
.app-name {
font-weight: 700;
font-size: .9rem;
letter-spacing: -.02em;
background: linear-gradient(135deg, #b39dff, #7c6af7);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
.badge {
background: var(--accent-bg);
color: var(--accent);
border: 1px solid rgba(124,106,247,.22);
border-radius: 20px;
padding: 1px 9px;
font-size: .72rem;
font-weight: 600;
}
.header-right { display: flex; align-items: center; gap: .8rem; }
.ctrl { display: flex; align-items: center; gap: .35rem; }
.ctrl label { color: var(--muted); font-size: .78rem; white-space: nowrap; }
select {
background: var(--surface-2);
color: var(--text);
border: 1px solid var(--border-2);
border-radius: 7px;
padding: .3rem .5rem .3rem .6rem;
font-size: .78rem;
font-family: inherit;
cursor: pointer;
outline: none;
transition: border-color .15s;
appearance: none;
-webkit-appearance: none;
padding-right: 1.4rem;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5'%3E%3Cpath d='M0 0l4 5 4-5z' fill='%236a6a8e'/%3E%3C/svg%3E");
background-repeat: no-repeat;
background-position: right .5rem center;
}
select:hover, select:focus { border-color: var(--accent); }
.btn-ghost {
color: var(--muted);
text-decoration: none;
font-size: .78rem;
padding: .3rem .65rem;
border: 1px solid var(--border-2);
border-radius: 7px;
transition: color .15s, border-color .15s;
}
.btn-ghost:hover { color: #f43f5e; border-color: rgba(244,63,94,.4); }
.btn-danger {
color: #f87191;
font-size: .78rem;
font-family: inherit;
padding: .3rem .65rem;
border: 1px solid rgba(244,63,94,.35);
border-radius: 7px;
background: rgba(244,63,94,.08);
cursor: pointer;
transition: background .15s, border-color .15s;
}
.btn-danger:hover { background: rgba(244,63,94,.15); border-color: rgba(244,63,94,.6); }
.btn-danger:disabled { opacity: .5; cursor: not-allowed; }
/* ── Main ─────────────────────────────────────────────── */
main {
max-width: 1420px;
margin: 0 auto;
padding: 1.2rem 1.5rem 5rem;
}
/* ── States ─────────────────────────────────────────────── */
.state {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: .9rem;
padding: 5rem 2rem;
color: var(--muted);
font-size: .88rem;
}
.spinner {
width: 32px;
height: 32px;
border: 2.5px solid var(--border-2);
border-top-color: var(--accent);
border-radius: 50%;
animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
/* ── Movie list ─────────────────────────────────────────── */
#movie-list { display: flex; flex-direction: column; gap: .45rem; }
/* ── Movie row ─────────────────────────────────────────── */
.movie-row {
display: grid;
grid-template-columns: 110px 220px 1fr 340px;
gap: 1.1rem;
align-items: center;
background: var(--surface);
border: 1px solid var(--border);
border-radius: 10px;
padding: .7rem .9rem;
transition: background .2s, border-color .2s;
}
.movie-row:hover {
background: var(--surface-2);
border-color: var(--border-2);
}
/* ── Poster ─────────────────────────────────────────────── */
.movie-poster {
width: 110px;
height: 165px;
border-radius: 6px;
object-fit: cover;
display: block;
flex-shrink: 0;
background: var(--border);
box-shadow: 0 4px 12px rgba(0,0,0,.4);
}
.poster-ph {
width: 110px;
height: 165px;
border-radius: 6px;
background: var(--surface-2);
border: 1px solid var(--border-2);
display: flex;
align-items: center;
justify-content: center;
color: var(--faint);
font-size: 2rem;
flex-shrink: 0;
}
/* ── Info ─────────────────────────────────────────────── */
.movie-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.movie-title {
font-weight: 600;
font-size: .95rem;
line-height: 1.35;
color: var(--text);
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}
.movie-meta { color: var(--muted); font-size: .75rem; margin-top: 1px; }
.badge-10 {
display: inline-flex;
align-items: center;
gap: 3px;
background: rgba(244,63,94,.1);
color: #f87191;
border: 1px solid rgba(244,63,94,.22);
border-radius: 5px;
padding: 1px 7px;
font-size: .7rem;
font-weight: 600;
width: fit-content;
margin-top: 3px;
}
/* ── Synopsis ─────────────────────────────────────────── */
.movie-synopsis { position: relative; min-width: 0; }
.synopsis-text {
color: var(--muted);
font-size: .78rem;
line-height: 1.6;
max-height: 3.2em;
overflow: hidden;
transition: max-height .32s ease;
mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
-webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
}
.movie-synopsis:hover .synopsis-text {
max-height: 250px;
mask-image: none;
-webkit-mask-image: none;
}
.synopsis-empty {
color: var(--faint);
font-size: .75rem;
font-style: italic;
}
/* ── Rating ─────────────────────────────────────────────── */
.movie-rating {
display: flex;
gap: 3px;
justify-content: flex-end;
align-items: center;
}
.r-btn {
width: 24px;
height: 24px;
border-radius: 5px;
border: 1px solid var(--border-2);
background: transparent;
color: var(--muted);
font-size: .7rem;
font-weight: 600;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: border-color .08s, background .08s, color .08s, transform .1s;
font-family: inherit;
}
.r-btn:active { transform: scale(.92); }
.remove-btn {
margin-left: 6px;
width: 24px;
height: 24px;
border-radius: 5px;
border: 1px solid rgba(244,63,94,.25);
background: transparent;
color: #f87191;
font-size: .75rem;
cursor: pointer;
font-family: inherit;
transition: border-color .15s, background .15s;
}
.remove-btn:hover {
border-color: rgba(244,63,94,.5);
background: rgba(244,63,94,.1);
}
.skip-btn {
margin-left: 6px;
padding: 0 9px;
height: 24px;
border-radius: 5px;
border: 1px solid var(--border-2);
background: transparent;
color: var(--muted);
font-size: .7rem;
font-weight: 500;
cursor: pointer;
font-family: inherit;
transition: border-color .15s, color .15s, background .15s;
white-space: nowrap;
}
.skip-btn:hover {
border-color: rgba(251,146,60,.4);
color: #fb923c;
background: rgba(251,146,60,.07);
}
.is-skipped .skip-btn {
border-color: rgba(124,106,247,.3);
color: var(--accent);
}
.is-skipped .skip-btn:hover {
background: var(--accent-bg);
}
/* ── Pagination ─────────────────────────────────────────── */
#pagination {
display: flex;
align-items: center;
justify-content: center;
gap: .5rem;
padding: 1.8rem 0;
}
.page-btn {
background: var(--surface);
color: var(--text);
border: 1px solid var(--border-2);
border-radius: 7px;
padding: .4rem .85rem;
font-size: .78rem;
font-family: inherit;
cursor: pointer;
transition: border-color .15s, color .15s;
}
.page-btn:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.page-btn:disabled { opacity: .35; cursor: not-allowed; }
.page-info { color: var(--muted); font-size: .78rem; padding: 0 .4rem; }
/* ── Toast ─────────────────────────────────────────────── */
.toast {
position: fixed;
bottom: 1.8rem;
left: 50%;
transform: translateX(-50%) translateY(6px);
background: var(--surface-2);
border: 1px solid var(--border-2);
color: var(--text);
padding: .55rem 1.1rem;
border-radius: 9px;
font-size: .82rem;
font-weight: 500;
box-shadow: 0 12px 40px rgba(0,0,0,.55);
z-index: 1000;
opacity: 0;
transition: opacity .22s, transform .22s;
pointer-events: none;
white-space: nowrap;
}
.toast.show {
opacity: 1;
transform: translateX(-50%) translateY(0);
}