Files
ohm_streaming/app/static/css/style.css
T
Roman 41566ab5fb v0.1.0 — Réécriture complète de OhmStreaming
Nouvelle version réécrite de zéro : recherche multi-sources (Vostfree,
French-Manga), extraction 2 niveaux, proxy vidéo intégré, streaming/téléchargement
HLS, métadonnées Kitsu, bibliothèque locale, comptes JWT + administration,
découverte fusionnée, indexeur Torznab (Sonarr/Prowlarr).
2026-09-22 10:05:47 +00:00

655 lines
19 KiB
CSS

/* ============================================================
Ohm Stream — Design system « plateforme streaming »
Sombre immersif, accent rouge, typographie Outfit
============================================================ */
:root {
--bg: #0a0a0c;
--surface: #141416;
--surface-2: #1c1c20;
--border: #26262b;
--text: #f5f5f7;
--text-dim: #8e8e96;
--accent: #e50914;
--accent-2: #f5c518;
--success: #46d369;
--warning: #f5c518;
--danger: #ff5c5c;
--radius: 10px;
--radius-lg: 16px;
--shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
--font: "Outfit", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
background: var(--bg);
color: var(--text);
font-family: var(--font);
min-height: 100vh;
line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; }
/* ------------------------------------------------------------ topbar */
.topbar {
position: sticky;
top: 0;
z-index: 50;
display: flex;
align-items: center;
gap: 1.8rem;
padding: 0.85rem 2.2rem;
background: linear-gradient(180deg, rgba(10, 10, 12, 0.96), rgba(10, 10, 12, 0.8));
backdrop-filter: blur(12px);
border-bottom: 1px solid var(--border);
}
.logo {
font-weight: 800;
font-size: 1.25rem;
letter-spacing: 0.04em;
color: var(--accent);
white-space: nowrap;
}
.logo span { color: var(--text); font-weight: 400; }
.topnav { display: flex; gap: 0.25rem; }
.topnav a {
color: var(--text-dim);
font-size: 0.88rem;
font-weight: 500;
padding: 0.45rem 0.85rem;
border-radius: 99px;
transition: color 0.15s, background 0.15s;
}
.topnav a:hover { color: var(--text); }
.topnav a.active { color: var(--text); background: var(--surface-2); }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 0.8rem; }
.avatar {
width: 34px; height: 34px;
border-radius: 50%;
background: linear-gradient(135deg, var(--accent), var(--accent-2));
display: flex; align-items: center; justify-content: center;
font-weight: 700; font-size: 0.85rem; color: #fff;
text-transform: uppercase;
}
.icon-btn {
background: none; border: none; color: var(--text-dim);
font-size: 1.05rem; cursor: pointer; padding: 0.4rem;
border-radius: 8px; transition: color 0.15s, background 0.15s;
}
.icon-btn:hover { color: var(--text); background: var(--surface-2); }
/* ------------------------------------------------------------ layout */
.main { padding: 2rem clamp(1rem, 3.5vw, 4rem) 4rem; }
.page-title { font-size: 1.6rem; font-weight: 800; margin-bottom: 0.3rem; letter-spacing: -0.01em; }
.page-sub { color: var(--text-dim); font-size: 0.92rem; margin-bottom: 1.6rem; }
/* ------------------------------------------------------------ recherche */
.search-bar { display: flex; gap: 0.7rem; margin-bottom: 1.8rem; max-width: 720px; }
.input, .search-bar input {
flex: 1;
background: var(--surface);
border: 1px solid var(--border);
color: var(--text);
padding: 0.85rem 1.3rem;
border-radius: 99px;
font-size: 1rem;
font-family: inherit;
outline: none;
transition: border 0.15s, box-shadow 0.15s;
}
.input:focus, .search-bar input:focus {
border-color: var(--accent);
box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.15);
}
.btn {
display: inline-flex;
align-items: center;
gap: 0.5rem;
background: var(--accent);
color: #fff;
border: none;
padding: 0.8rem 1.5rem;
border-radius: 99px;
font-size: 0.95rem;
font-weight: 700;
cursor: pointer;
transition: filter 0.15s, transform 0.1s;
white-space: nowrap;
}
.btn:hover { filter: brightness(1.15); }
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-ghost {
background: rgba(255, 255, 255, 0.1);
border: 1px solid var(--border);
color: var(--text);
backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.16); filter: none; }
.btn-sm { padding: 0.4rem 0.85rem; font-size: 0.82rem; }
.btn-danger { background: #3d1114; color: var(--danger); border: 1px solid #5c1a1e; }
.btn-danger:hover { background: #4d1518; filter: none; }
/* ------------------------------------------------------------ grille de posters */
.grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(clamp(135px, 12vw, 190px), 1fr));
gap: 1.1rem;
}
.card {
position: relative;
border-radius: var(--radius);
overflow: hidden;
background: var(--surface);
transition: transform 0.25s cubic-bezier(0.22, 0.68, 0.35, 1), box-shadow 0.25s;
cursor: pointer;
}
.card:hover { transform: scale(1.04); box-shadow: var(--shadow); z-index: 2; }
.card-poster {
aspect-ratio: 2 / 3;
width: 100%;
object-fit: cover;
background: var(--surface-2);
transition: transform 0.4s ease;
}
.card:hover .card-poster { transform: scale(1.07); }
.card-overlay {
position: absolute;
inset: auto 0 0;
padding: 2rem 0.75rem 0.65rem;
background: linear-gradient(0deg, rgba(0, 0, 0, 0.92), transparent);
}
.card-title {
font-size: 0.84rem;
font-weight: 600;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}
.card-meta {
display: flex;
justify-content: space-between;
align-items: center;
margin-top: 0.35rem;
}
.card-chip {
position: absolute;
top: 0.5rem; left: 0.5rem;
background: rgba(0, 0, 0, 0.72);
backdrop-filter: blur(4px);
font-size: 0.62rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.05em;
padding: 0.18rem 0.5rem;
border-radius: 5px;
color: var(--accent-2);
}
.badge {
display: inline-block;
padding: 0.15rem 0.55rem;
border-radius: 5px;
font-size: 0.66rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.05em;
}
.badge-source { background: rgba(229, 9, 20, 0.18); color: #ff6b73; }
.badge-type { background: rgba(245, 197, 24, 0.14); color: var(--accent-2); }
/* ------------------------------------------------------------ fiche titre */
.title-hero {
position: relative;
border-radius: var(--radius-lg);
overflow: hidden;
margin-bottom: 2rem;
background: var(--surface);
min-height: 380px;
display: flex;
align-items: flex-end;
}
.title-banner {
position: absolute; inset: 0;
background-size: cover; background-position: center 25%;
}
.title-banner::after {
content: "";
position: absolute; inset: 0;
background:
linear-gradient(90deg, rgba(10, 10, 12, 0.94) 15%, rgba(10, 10, 12, 0.4) 60%, transparent),
linear-gradient(0deg, var(--bg) 0%, transparent 45%);
}
.title-hero-inner {
position: relative;
z-index: 1;
display: flex;
gap: 2rem;
padding: 2.2rem;
width: 100%;
align-items: flex-end;
}
.title-poster {
width: 180px;
border-radius: var(--radius);
box-shadow: var(--shadow);
flex-shrink: 0;
}
.title-info h1 { font-size: 2.4rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 0.5rem; }
.title-tags { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0.7rem 0; }
.title-synopsis {
color: #cfcfd6;
font-size: 0.95rem;
max-width: 640px;
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
overflow: hidden;
}
.title-stats { display: flex; gap: 1.3rem; margin-top: 0.8rem; font-size: 0.88rem; color: var(--text-dim); }
.title-stats strong { color: var(--text); }
.title-actions { display: flex; gap: 0.7rem; margin-top: 1.2rem; flex-wrap: wrap; }
.rating-star { color: var(--accent-2); }
/* ------------------------------------------------------------ épisodes */
.section-title { font-size: 1.15rem; font-weight: 700; margin: 2rem 0 1rem; }
.episode-list { display: flex; flex-direction: column; gap: 0.55rem; }
.episode-row {
display: flex;
align-items: center;
gap: 1rem;
background: var(--surface);
border: 1px solid transparent;
border-radius: var(--radius);
padding: 0.65rem 1rem;
transition: background 0.15s, border 0.15s;
}
.episode-row:hover { background: var(--surface-2); border-color: var(--border); }
.episode-num {
min-width: 3rem;
font-weight: 800;
color: var(--accent-2);
font-variant-numeric: tabular-nums;
font-size: 0.95rem;
}
.episode-name { flex: 1; font-size: 0.92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #d6d6dc; }
/* ------------------------------------------------------------ téléchargements */
.progress {
height: 6px;
background: var(--surface-2);
border-radius: 99px;
overflow: hidden;
flex: 1;
}
.progress-fill {
height: 100%;
background: var(--accent);
border-radius: 99px;
transition: width 0.5s ease;
}
.progress-fill.done { background: var(--success); }
.progress-fill.failed, .progress-fill.cancelled { background: var(--danger); }
.progress-fill.paused, .progress-fill.pending { background: var(--warning); }
.dl-row {
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 1rem 1.2rem;
display: flex;
flex-direction: column;
gap: 0.6rem;
}
.dl-head { display: flex; align-items: center; gap: 0.9rem; }
.dl-title { flex: 1; font-weight: 600; font-size: 0.95rem; }
.dl-stats { display: flex; gap: 1.2rem; font-size: 0.8rem; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.dl-actions { display: flex; gap: 0.45rem; }
.status-pill { font-size: 0.7rem; font-weight: 700; padding: 0.2rem 0.65rem; border-radius: 99px; text-transform: uppercase; letter-spacing: 0.03em; }
.status-pending, .status-paused { background: rgba(245, 197, 24, 0.14); color: var(--warning); }
.status-downloading { background: rgba(229, 9, 20, 0.16); color: #ff6b73; }
.status-done { background: rgba(70, 211, 105, 0.14); color: var(--success); }
.status-failed, .status-cancelled { background: rgba(255, 92, 92, 0.14); color: var(--danger); }
/* ------------------------------------------------------------ lecteur */
.player-wrap {
background: #000;
border-radius: var(--radius-lg);
overflow: hidden;
box-shadow: var(--shadow);
margin-bottom: 1.2rem;
}
.player-wrap video { width: 100%; max-height: 74vh; }
/* ------------------------------------------------------------ admin / tables */
.table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.table th, .table td { padding: 0.7rem 0.9rem; text-align: left; border-bottom: 1px solid var(--border); }
.table th { color: var(--text-dim); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.06em; }
.table tr:last-child td { border-bottom: none; }
.panel {
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius-lg);
padding: 1.4rem 1.5rem;
margin-bottom: 1.5rem;
}
.panel h2 { font-size: 1.05rem; font-weight: 700; margin-bottom: 1.1rem; }
.toggle {
position: relative;
width: 44px; height: 24px;
background: var(--surface-2);
border: 1px solid var(--border);
border-radius: 99px;
cursor: pointer;
transition: background 0.2s;
flex-shrink: 0;
}
.toggle::after {
content: "";
position: absolute;
top: 2px; left: 2px;
width: 18px; height: 18px;
border-radius: 50%;
background: var(--text-dim);
transition: transform 0.2s, background 0.2s;
}
.toggle.on { background: var(--accent); border-color: var(--accent); }
.toggle.on::after { transform: translateX(20px); background: #fff; }
/* ------------------------------------------------------------ divers */
.spinner {
width: 36px; height: 36px;
border: 3px solid var(--surface-2);
border-top-color: var(--accent);
border-radius: 50%;
animation: spin 0.8s linear infinite;
margin: 3rem auto;
}
@keyframes spin { to { transform: rotate(360deg); } }
.empty-state { text-align: center; color: var(--text-dim); padding: 4rem 1rem; font-size: 0.95rem; }
.empty-state .big { font-size: 2.6rem; margin-bottom: 0.7rem; }
.htmx-indicator { display: none; }
.htmx-request .htmx-indicator, .htmx-request.htmx-indicator { display: block; }
.toast {
position: fixed;
bottom: 1.5rem; right: 1.5rem;
background: var(--surface-2);
border: 1px solid var(--border);
border-left: 3px solid var(--accent);
color: var(--text);
padding: 0.8rem 1.2rem;
border-radius: var(--radius);
box-shadow: var(--shadow);
font-size: 0.88rem;
z-index: 100;
animation: toast-in 0.25s ease;
}
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }
/* ------------------------------------------------------------ login */
.login-page {
display: flex;
align-items: center;
justify-content: center;
min-height: 100vh;
background:
radial-gradient(ellipse 55% 45% at 50% 0%, rgba(229, 9, 20, 0.13), transparent),
var(--bg);
}
.login-card {
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius-lg);
padding: 2.5rem;
width: 400px;
box-shadow: var(--shadow);
}
.login-card .logo { display: block; text-align: center; font-size: 1.5rem; margin-bottom: 0.3rem; }
.login-sub { text-align: center; color: var(--text-dim); font-size: 0.88rem; margin-bottom: 1.8rem; }
.login-card form { display: flex; flex-direction: column; gap: 0.85rem; }
.login-card .input { border-radius: var(--radius); }
.login-card .btn { border-radius: var(--radius); justify-content: center; }
.login-tabs { display: flex; gap: 0.5rem; margin-bottom: 1.5rem; background: var(--surface-2); padding: 0.3rem; border-radius: 99px; }
.login-tab {
flex: 1;
text-align: center;
padding: 0.5rem;
border-radius: 99px;
cursor: pointer;
color: var(--text-dim);
font-size: 0.88rem;
font-weight: 600;
transition: all 0.15s;
}
.login-tab.active { background: var(--accent); color: #fff; }
.login-error {
border: 1px solid rgba(255, 92, 92, 0.4);
color: var(--danger);
border-radius: var(--radius);
padding: 0.6rem 0.9rem;
font-size: 0.85rem;
}
.card-year {
position: absolute;
top: 0.5rem;
right: 0.5rem;
background: rgba(0, 0, 0, 0.72);
backdrop-filter: blur(4px);
font-size: 0.68rem;
font-weight: 700;
padding: 0.18rem 0.45rem;
border-radius: 5px;
color: var(--text-dim);
}
.card-airing {
position: absolute;
bottom: 3.4rem;
left: 0.5rem;
background: rgba(46, 160, 67, 0.85);
color: #fff;
font-size: 0.58rem;
font-weight: 800;
letter-spacing: 0.06em;
padding: 0.16rem 0.45rem;
border-radius: 5px;
}
[x-cloak] { display: none !important; }
/* ---------------------------------------------------------- découverte (rails) */
.rail-section { margin-bottom: 2.4rem; animation: rise 0.5s ease backwards; }
.rail-title {
font-size: 1.15rem;
font-weight: 700;
margin: 0 0 0.8rem;
display: flex;
align-items: baseline;
gap: 0.6rem;
flex-wrap: wrap;
}
.rail-source {
font-size: 0.8rem;
font-weight: 500;
color: var(--text-dim);
}
.rail-wrap { position: relative; }
.rail {
--visible: 2.4;
--rail-gap: 1.1rem;
display: flex;
gap: var(--rail-gap);
overflow-x: auto;
padding: 0.3rem 0.2rem 0.8rem;
scroll-snap-type: x proximity;
scroll-behavior: smooth;
}
.rail::-webkit-scrollbar { height: 8px; }
.rail::-webkit-scrollbar-thumb { background: var(--surface-2); border-radius: 4px; }
.rail-card {
flex: 1 0 calc((100% - (var(--visible) - 1) * var(--rail-gap)) / var(--visible));
max-width: 300px;
scroll-snap-align: start;
animation: card-in 0.55s cubic-bezier(0.22, 0.68, 0.35, 1) backwards;
animation-delay: calc(var(--i, 0) * 45ms);
}
.rail-nav {
position: absolute;
top: 50%;
transform: translateY(-50%);
z-index: 3;
width: 42px;
height: 42px;
border-radius: 50%;
border: 1px solid var(--border);
background: rgba(20, 20, 22, 0.85);
backdrop-filter: blur(6px);
color: var(--text);
font-size: 1.5rem;
line-height: 1;
cursor: pointer;
opacity: 0;
transition: opacity 0.2s, background 0.2s, transform 0.2s;
display: flex;
align-items: center;
justify-content: center;
}
.rail-prev { left: -10px; }
.rail-next { right: -10px; }
.rail-wrap:hover .rail-nav { opacity: 1; }
.rail-nav:hover { background: var(--accent); transform: translateY(-50%) scale(1.1); }
@media (hover: none) { .rail-nav { display: none; } }
/* ------------------------------------------------------------ skeletons */
.skel {
background: linear-gradient(100deg, var(--surface) 40%, var(--surface-2) 50%, var(--surface) 60%);
background-size: 200% 100%;
animation: shimmer 1.4s linear infinite;
}
.skel-title { height: 1.2rem; width: 220px; border-radius: 6px; margin-bottom: 0.8rem; }
.skel-card { aspect-ratio: 2 / 3; border-radius: var(--radius); }
.rail-skel { overflow: hidden; }
/* ------------------------------------------------------------ animations */
@keyframes card-in { from { opacity: 0; transform: translateY(16px) scale(0.96); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes shimmer { to { background-position: -200% 0; } }
.page-title { animation: rise 0.4s ease backwards; }
.page-sub { animation: rise 0.4s 0.08s ease backwards; }
.grid .card {
animation: card-in 0.5s cubic-bezier(0.22, 0.68, 0.35, 1) backwards;
animation-delay: calc(var(--i, 0) * 40ms);
}
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after {
animation-duration: 0.01ms !important;
animation-delay: 0ms !important;
transition-duration: 0.01ms !important;
scroll-behavior: auto !important;
}
}
/* ------------------------------------------------------------ responsive */
@media (min-width: 720px) { .rail { --visible: 3.4; } }
@media (min-width: 1000px) { .rail { --visible: 4; } }
@media (min-width: 1200px) { .rail { --visible: 5; } }
@media (min-width: 1450px) { .rail { --visible: 6; } }
@media (min-width: 1700px) { .rail { --visible: 7; } }
@media (min-width: 1920px) { .rail { --visible: 8; } }
@media (min-width: 2150px) { .rail { --visible: 9; } }
@media (min-width: 2400px) { .rail { --visible: 10; } }
@media (min-width: 2650px) { .rail { --visible: 12; } }
@media (min-width: 3000px) { .rail { --visible: 13; } }
@media (min-width: 3400px) { .rail { --visible: 14; } }
@media (min-width: 3800px) { .rail { --visible: 15; } }
@media (min-width: 1800px) {
.page-title { font-size: 1.8rem; }
.rail-title { font-size: 1.3rem; }
}
@media (max-width: 860px) {
.topbar { padding: 0.6rem 1rem 0; gap: 0.8rem; flex-wrap: wrap; }
.topbar-right { margin-left: auto; }
.topnav {
order: 3;
width: 100%;
overflow-x: auto;
scrollbar-width: none;
padding-bottom: 0.5rem;
}
.topnav::-webkit-scrollbar { display: none; }
.topnav a { padding: 0.4rem 0.7rem; font-size: 0.82rem; white-space: nowrap; }
.main { padding: 1.2rem 1rem 3rem; }
.title-hero { min-height: 0; }
.title-hero-inner { flex-direction: column; align-items: flex-start; padding: 1.4rem; }
.title-info h1 { font-size: 1.8rem; }
.title-poster { width: 130px; }
}
@media (max-width: 640px) {
.main { padding: 1rem 0.9rem 3rem; }
.page-title { font-size: 1.35rem; }
.page-sub { font-size: 0.86rem; margin-bottom: 1.2rem; }
.grid { grid-template-columns: repeat(auto-fill, minmax(105px, 1fr)); gap: 0.7rem; }
.rail { --rail-gap: 0.7rem; }
.rail-section { margin-bottom: 1.8rem; }
.search-bar { flex-direction: column; }
.search-bar .btn { justify-content: center; }
}