145 lines
12 KiB
CSS
145 lines
12 KiB
CSS
* { box-sizing: border-box; margin: 0; padding: 0; }
|
|
:root {
|
|
--gold: #C9A84C; --gold-light: #E8C97A;
|
|
--dark: #0E0E0E; --surface: #1A1A1A; --surface2: #252525;
|
|
--text: #F0ECE3; --muted: #A8A4A0; --border: rgba(201,168,76,0.2);
|
|
--red: #c0392b;
|
|
}
|
|
body { background: var(--dark); color: var(--text); font-family: 'DM Sans', sans-serif; min-height: 100vh; }
|
|
|
|
/* ── PAGES ── */
|
|
.page { display: none; }
|
|
.page.active { display: block; }
|
|
|
|
/* ── SITE PUBLIC ── */
|
|
.site-wrap { max-width: 920px; margin: 0 auto; padding: 2rem 1.2rem 4rem; }
|
|
header { text-align: center; padding: 3rem 0 2rem; border-bottom: 1px solid var(--border); margin-bottom: 2.5rem; }
|
|
header::before { content: ''; display: block; width: 60px; height: 2px; background: var(--gold); margin: 0 auto 1.5rem; }
|
|
.site-title { font-family: 'Playfair Display', serif; font-size: 2.8rem; letter-spacing: 0.05em; }
|
|
.site-title span { color: var(--gold); font-style: italic; }
|
|
.site-subtitle { font-size: 0.78rem; letter-spacing: 0.25em; color: var(--muted); text-transform: uppercase; margin-top: 0.6rem; }
|
|
.pub-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.8rem; }
|
|
.count { font-size: 0.78rem; letter-spacing: 0.1em; color: #C0BCB8; text-transform: uppercase; }
|
|
|
|
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.5rem; }
|
|
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 4px; overflow: hidden; cursor: pointer; transition: transform 0.2s, border-color 0.2s; }
|
|
.card:hover { transform: translateY(-5px); border-color: var(--gold); }
|
|
.poster-wrap { position: relative; aspect-ratio: 2/3; overflow: hidden; background: var(--surface2); }
|
|
.poster-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
|
|
.poster-ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 0.5rem; color: var(--muted); font-size: 0.75rem; }
|
|
.poster-ph i { font-size: 2.5rem; }
|
|
.rating-badge { position: absolute; top: 8px; right: 8px; background: rgba(14,14,14,0.85); border: 1px solid var(--gold); color: var(--gold); font-family: 'Playfair Display', serif; font-size: 1rem; font-weight: 700; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
|
|
.card-body { padding: 0.9rem 1rem 1rem; }
|
|
.card-title { font-family: 'Playfair Display', serif; font-size: 1rem; line-height: 1.3; margin-bottom: 0.2rem; }
|
|
.card-year { font-size: 0.75rem; color: #B8B4B0; margin-bottom: 0.4rem; }
|
|
.card-stars { color: var(--gold); font-size: 0.8rem; letter-spacing: 0.1em; margin-bottom: 0.4rem; }
|
|
.card-excerpt { font-size: 0.78rem; color: #C0BCB8; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
|
|
|
|
.empty-state { text-align: center; padding: 5rem 1rem; color: #C8C4C0; }
|
|
.empty-state i { font-size: 3.5rem; display: block; margin-bottom: 1rem; opacity: 0.3; }
|
|
.empty-state p { font-size: 0.95rem; line-height: 1.7; }
|
|
|
|
footer { text-align: center; margin-top: 4rem; padding-top: 1.5rem; border-top: 1px solid var(--border); font-size: 0.75rem; color: var(--muted); letter-spacing: 0.1em; }
|
|
|
|
/* ── BACKOFFICE ── */
|
|
.admin-wrap { max-width: 960px; margin: 0 auto; padding: 2rem 1.2rem 4rem; }
|
|
.admin-header { display: flex; align-items: center; justify-content: space-between; padding-bottom: 1.2rem; border-bottom: 1px solid var(--border); margin-bottom: 2rem; flex-wrap: wrap; gap: 1rem; }
|
|
.admin-title { font-family: 'Playfair Display', serif; font-size: 1.6rem; }
|
|
.admin-title span { color: var(--gold); }
|
|
.admin-actions { display: flex; gap: 0.7rem; align-items: center; }
|
|
|
|
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 0.55rem 1.1rem; font-family: 'DM Sans', sans-serif; font-size: 0.82rem; font-weight: 500; cursor: pointer; border-radius: 2px; letter-spacing: 0.04em; transition: background 0.2s, color 0.2s; border: none; }
|
|
.btn-gold { background: var(--gold); color: var(--dark); }
|
|
.btn-gold:hover { background: var(--gold-light); }
|
|
.btn-outline { background: transparent; border: 1px solid rgba(201,168,76,0.35); color: #C8C4BE; }
|
|
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
|
|
.btn-danger { background: transparent; border: 1px solid #555; color: #C0BBBB; }
|
|
.btn-danger:hover { border-color: var(--red); color: var(--red); }
|
|
|
|
/* Admin table */
|
|
.admin-table-wrap { overflow-x: auto; }
|
|
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
|
|
.admin-table th { text-align: left; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: #B8B4B0; padding: 0.6rem 0.8rem; border-bottom: 1px solid var(--border); font-weight: 600; }
|
|
.admin-table td { padding: 0.75rem 0.8rem; border-bottom: 1px solid rgba(255,255,255,0.04); vertical-align: middle; }
|
|
.admin-table tr:hover td { background: var(--surface2); }
|
|
.thumb { width: 36px; height: 54px; object-fit: cover; border-radius: 2px; display: block; background: var(--surface2); }
|
|
.thumb-ph { width: 36px; height: 54px; background: var(--surface2); border-radius: 2px; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 1rem; }
|
|
.tbl-stars { color: var(--gold); font-size: 0.75rem; letter-spacing: 0.05em; }
|
|
.tbl-actions { display: flex; gap: 0.5rem; }
|
|
.tbl-actions button { background: none; border: none; cursor: pointer; color: #B0ACAA; font-size: 1rem; padding: 4px; border-radius: 2px; transition: color 0.15s; }
|
|
.tbl-actions button:hover { color: var(--gold); }
|
|
.tbl-actions button.del:hover { color: var(--red); }
|
|
|
|
/* ── MODAL ── */
|
|
.overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.88); z-index: 200; align-items: center; justify-content: center; padding: 1rem; }
|
|
.overlay.open { display: flex; }
|
|
.modal { background: var(--surface); border: 1px solid var(--border); border-radius: 6px; width: 100%; max-width: 540px; max-height: 92vh; overflow-y: auto; padding: 2rem; position: relative; }
|
|
.modal-close { position: absolute; top: 1rem; right: 1rem; background: none; border: none; color: var(--muted); cursor: pointer; font-size: 1.3rem; line-height: 1; }
|
|
.modal-close:hover { color: var(--text); }
|
|
.modal-h { font-family: 'Playfair Display', serif; font-size: 1.35rem; color: var(--gold); margin-bottom: 1.4rem; }
|
|
|
|
/* Film search */
|
|
.search-row { display: flex; gap: 0.6rem; margin-bottom: 1rem; }
|
|
.search-row input { flex: 1; background: var(--surface2); border: 1px solid rgba(255,255,255,0.1); color: var(--text); font-family: 'DM Sans', sans-serif; font-size: 0.9rem; padding: 0.65rem 0.8rem; border-radius: 3px; outline: none; }
|
|
.search-row input:focus { border-color: var(--gold); }
|
|
.btn-search { background: var(--gold); color: var(--dark); border: none; padding: 0 1rem; border-radius: 3px; cursor: pointer; font-size: 1rem; transition: background 0.2s; }
|
|
.btn-search:hover { background: var(--gold-light); }
|
|
|
|
.search-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 0.7rem; margin-bottom: 1.2rem; max-height: 220px; overflow-y: auto; }
|
|
.sr-item { cursor: pointer; border: 2px solid transparent; border-radius: 3px; overflow: hidden; transition: border-color 0.15s; }
|
|
.sr-item:hover, .sr-item.selected { border-color: var(--gold); }
|
|
.sr-item img { width: 100%; aspect-ratio: 2/3; object-fit: cover; display: block; }
|
|
.sr-item p { font-size: 0.65rem; color: var(--muted); padding: 3px 4px; line-height: 1.3; text-align: center; background: var(--surface2); }
|
|
.search-hint { font-size: 0.78rem; color: #B8B4B0; margin-bottom: 1rem; }
|
|
.searching { font-size: 0.8rem; color: var(--muted); text-align: center; padding: 1rem 0; }
|
|
|
|
.form-group { margin-bottom: 1rem; }
|
|
.form-group label { display: block; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: #C0BCB8; margin-bottom: 0.35rem; }
|
|
.form-group input, .form-group textarea { width: 100%; background: var(--surface2); border: 1px solid rgba(255,255,255,0.1); color: var(--text); font-family: 'DM Sans', sans-serif; font-size: 0.9rem; padding: 0.65rem 0.8rem; border-radius: 3px; outline: none; transition: border-color 0.2s; }
|
|
.form-group input:focus, .form-group textarea:focus { border-color: var(--gold); }
|
|
.form-group textarea { resize: vertical; min-height: 100px; }
|
|
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
|
|
|
|
.star-select { display: flex; gap: 6px; }
|
|
.star-select button { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--muted); transition: color 0.15s, transform 0.1s; padding: 2px; line-height: 1; }
|
|
.star-select button.active { color: var(--gold); }
|
|
.star-select button:hover { transform: scale(1.15); }
|
|
|
|
.poster-preview { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
|
|
.poster-preview img { width: 60px; height: 90px; object-fit: cover; border-radius: 3px; border: 1px solid var(--border); }
|
|
.poster-preview-none { width: 60px; height: 90px; background: var(--surface2); border-radius: 3px; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 1.3rem; }
|
|
.poster-preview-info { font-size: 0.8rem; color: #B8B4B0; line-height: 1.6; }
|
|
.poster-preview-info strong { color: var(--text); font-weight: 500; }
|
|
|
|
.btn-save { width: 100%; background: var(--gold); color: var(--dark); border: none; padding: 0.8rem; font-family: 'DM Sans', sans-serif; font-size: 0.9rem; font-weight: 500; cursor: pointer; border-radius: 3px; margin-top: 0.5rem; transition: background 0.2s; }
|
|
.btn-save:hover { background: var(--gold-light); }
|
|
.divider { border: none; border-top: 1px solid var(--border); margin: 1.2rem 0; }
|
|
|
|
/* Detail overlay */
|
|
.detail-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.92); z-index: 200; align-items: flex-start; justify-content: center; overflow-y: auto; padding: 3rem 1rem; }
|
|
.detail-overlay.open { display: flex; }
|
|
.detail-modal { background: var(--surface); border: 1px solid var(--border); border-radius: 6px; width: 100%; max-width: 680px; padding: 2rem; position: relative; display: grid; grid-template-columns: 160px 1fr; gap: 2rem; align-items: start; }
|
|
@media(max-width:520px){ .detail-modal { grid-template-columns: 1fr; } }
|
|
.detail-poster { aspect-ratio: 2/3; background: var(--surface2); border-radius: 4px; overflow: hidden; }
|
|
.detail-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
|
|
.detail-title { font-family: 'Playfair Display', serif; font-size: 1.7rem; line-height: 1.2; margin-bottom: 0.3rem; }
|
|
.detail-meta { font-size: 0.8rem; color: #C0BCB8; margin-bottom: 0.8rem; }
|
|
.detail-stars { color: var(--gold); font-size: 1.1rem; letter-spacing: 0.15em; margin-bottom: 1.2rem; }
|
|
.detail-review { font-size: 0.95rem; line-height: 1.85; color: #D0CBC1; font-family: 'Playfair Display', serif; font-style: italic; }
|
|
.detail-review::before { content: '\201C'; font-size: 3.5rem; color: var(--gold); line-height: 0; vertical-align: -1rem; margin-right: 0.15rem; opacity: 0.6; }
|
|
|
|
/* Admin login */
|
|
.login-wrap { max-width: 360px; margin: 6rem auto; padding: 1.5rem; }
|
|
.login-wrap h2 { font-family: 'Playfair Display', serif; color: var(--gold); margin-bottom: 1.5rem; font-size: 1.4rem; }
|
|
.login-wrap input { width: 100%; background: var(--surface2); border: 1px solid rgba(255,255,255,0.1); color: var(--text); font-family: 'DM Sans', sans-serif; font-size: 0.9rem; padding: 0.65rem 0.8rem; border-radius: 3px; outline: none; margin-bottom: 1rem; }
|
|
.login-wrap input:focus { border-color: var(--gold); }
|
|
.login-err { color: var(--red); font-size: 0.82rem; margin-bottom: 0.8rem; display: none; }
|
|
|
|
/* TMDB badge */
|
|
.tmdb-note { font-size: 0.72rem; color: var(--muted); margin-top: 0.4rem; }
|
|
.tmdb-note a { color: var(--gold); text-decoration: none; }
|
|
|
|
/* API key notice */
|
|
.api-notice { background: var(--surface2); border: 1px solid var(--border); border-radius: 4px; padding: 1rem 1.2rem; margin-bottom: 1.5rem; font-size: 0.82rem; color: #C0BCB8; line-height: 1.6; }
|
|
.api-notice strong { color: var(--text); }
|
|
.api-notice a { color: var(--gold); } |