Files
ohm_streaming/static/css/style.css
T
root 0179ddbdf4
CI / Test (Python 3.11) (pull_request) Has been cancelled
CI / Test (Python 3.12) (pull_request) Has been cancelled
CI / Lint (pull_request) Has been cancelled
CI / Type Check (pull_request) Has been cancelled
CI / Summary (pull_request) Has been cancelled
feat: flat design avec palette Blazing Flame
2026-04-03 15:35:39 +00:00

1054 lines
19 KiB
CSS

/* Ohm Streaming - Flat Design Theme */
:root {
/* ========== FLAT DESIGN VARIABLES ========== */
--primary: #f15025;
--primary-hover: #d94420;
--bg-dark: #ffffff;
--bg-card: #e6e8e6;
--text-main: #191919;
--text-dim: #ced0ce;
--secondary: #ced0ce;
--accent: #f15025;
--danger: #e63946;
--success: #2d936c;
--warning: #f4a261;
--card-radius: 4px;
--input-radius: 4px;
--transition: all 0.2s ease;
}
/* ========== BASE RESET ========== */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Inter', -apple-system, system-ui, sans-serif;
background-color: var(--bg-dark);
color: var(--text-main);
line-height: 1.6;
overflow-x: hidden;
}
/* ========== CUSTOM SCROLLBAR ========== */
::-webkit-scrollbar {
width: 8px;
height: 8px;
}
::-webkit-scrollbar-track {
background: #e6e8e6;
border-radius: 4px;
}
::-webkit-scrollbar-thumb {
background: var(--text-dim);
border-radius: 4px;
transition: var(--transition);
}
::-webkit-scrollbar-thumb:hover {
background: var(--primary);
}
/* Firefox scrollbar */
* {
scrollbar-width: thin;
scrollbar-color: var(--text-dim) #e6e8e6;
}
/* ========== CONTAINER ========== */
.container {
max-width: 1400px;
margin: 0 auto;
padding: 0 40px;
}
@media (max-width: 768px) {
.container {
padding: 0 20px;
}
}
/* ========== TYPOGRAPHY ========== */
h1 {
font-size: 2.5rem;
font-weight: 800;
letter-spacing: -1px;
margin-bottom: 5px;
color: var(--primary);
}
.subtitle {
color: var(--text-dim);
font-size: 1.1rem;
margin-bottom: 30px;
}
.section-header {
display: flex;
justify-content: space-between;
align-items: center;
margin: 40px 0 20px;
}
.section-header h2 {
font-size: 1.5rem;
font-weight: 700;
border-left: 4px solid var(--primary);
padding-left: 15px;
color: var(--text-main);
}
/* ========== FLAT BUTTONS ========== */
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 8px;
padding: 10px 20px;
border-radius: var(--input-radius);
font-size: 0.9rem;
font-weight: 600;
cursor: pointer;
transition: var(--transition);
border: 1px solid transparent;
text-decoration: none;
color: #fff;
white-space: nowrap;
position: relative;
}
.btn:disabled {
opacity: 0.6;
cursor: not-allowed;
}
/* Primary Button */
.btn-primary {
background: var(--primary);
color: #fff;
}
.btn-primary:hover:not(:disabled) {
background: var(--primary-hover);
}
/* Secondary Button */
.btn-secondary {
background: var(--bg-card);
border-color: var(--text-dim);
color: var(--text-main);
}
.btn-secondary:hover:not(:disabled) {
background: var(--text-dim);
border-color: var(--text-main);
}
/* Accent Button */
.btn-accent {
background: var(--accent);
color: #fff;
}
.btn-accent:hover:not(:disabled) {
background: var(--primary-hover);
}
/* Danger Button */
.btn-danger {
background: transparent;
border-color: var(--danger);
color: var(--danger);
}
.btn-danger:hover:not(:disabled) {
background: var(--danger);
color: #fff;
}
/* Contained Button */
.btn-contained {
background: var(--primary);
color: #fff;
}
.btn-contained:hover:not(:disabled) {
background: var(--primary-hover);
}
/* Outlined Button */
.btn-outlined {
background: transparent;
border: 1px solid var(--text-dim);
color: var(--text-main);
}
.btn-outlined:hover:not(:disabled) {
border-color: var(--primary);
color: var(--primary);
}
/* Text Button */
.btn-text {
background: transparent;
color: var(--primary);
padding: 10px 15px;
}
.btn-text:hover:not(:disabled) {
background: var(--bg-card);
}
/* Button Sizes */
.btn-small, .btn-sm {
padding: 6px 12px;
font-size: 0.8rem;
}
.btn-xs {
padding: 4px 8px;
font-size: 0.75rem;
}
.btn-large {
padding: 14px 28px;
font-size: 1rem;
}
.btn-block {
display: flex;
width: 100%;
}
.btn-circle {
width: 45px;
height: 45px;
border-radius: 50%;
padding: 0;
font-size: 1.2rem;
}
/* Legacy class mapping for compatibility */
.btn-card {
padding: 8px 4px;
font-size: 0.75rem;
font-weight: 700;
text-transform: uppercase;
}
.btn-watch {
background: var(--primary);
color: #fff;
}
.btn-watch:hover:not(:disabled) {
background: var(--primary-hover);
}
.btn-download {
background: var(--bg-card);
border: 1px solid var(--text-dim);
color: var(--text-main);
}
.btn-download:hover:not(:disabled) {
background: var(--text-dim);
}
/* ========== FLAT CARDS ========== */
.card, .hc, .download-item {
background: var(--bg-card);
border-radius: var(--card-radius);
border: 1px solid var(--text-dim);
transition: var(--transition);
}
.card:hover, .hc:hover, .download-item:hover {
border-color: var(--primary);
}
/* ========== HORIZONTAL SCROLL ROW ========== */
.home-row, .streaming-row, .recommendations-carousel, .releases-carousel {
display: flex;
gap: 16px;
overflow-x: auto;
padding: 10px 0 20px;
scroll-behavior: smooth;
-webkit-overflow-scrolling: touch;
}
.home-row::-webkit-scrollbar,
.streaming-row::-webkit-scrollbar,
.recommendations-carousel::-webkit-scrollbar,
.releases-carousel::-webkit-scrollbar {
height: 4px;
}
.home-row::-webkit-scrollbar-thumb,
.streaming-row::-webkit-scrollbar-thumb,
.recommendations-carousel::-webkit-scrollbar-thumb,
.releases-carousel::-webkit-scrollbar-thumb {
background: var(--text-dim);
border-radius: 4px;
}
.home-row::-webkit-scrollbar-thumb:hover,
.streaming-row::-webkit-scrollbar-thumb:hover,
.recommendations-carousel::-webkit-scrollbar-thumb:hover,
.releases-carousel::-webkit-scrollbar-thumb:hover {
background: var(--primary);
}
/* ========== HOME CARD ========== */
.hc {
flex: 0 0 180px;
display: block;
background: var(--bg-card);
border-radius: var(--card-radius);
overflow: hidden;
transition: var(--transition);
border: 1px solid var(--text-dim);
text-decoration: none;
color: inherit;
}
.hc:hover {
border-color: var(--primary);
}
.hc-poster {
position: relative;
padding-top: 150%;
background: #000;
}
.hc-poster img {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover;
}
.hc-rating {
position: absolute;
top: 8px;
right: 8px;
background: rgba(0, 0, 0, 0.75);
color: #ffcc00;
padding: 4px 8px;
border-radius: 4px;
font-size: 0.7rem;
font-weight: 800;
}
.hc-play {
position: absolute;
bottom: 8px;
right: 8px;
width: 36px;
height: 36px;
border-radius: 50%;
background: var(--primary);
color: #fff;
display: flex;
align-items: center;
justify-content: center;
font-size: 0.75rem;
opacity: 0;
transition: var(--transition);
}
.hc:hover .hc-play {
opacity: 1;
}
.hc-info {
padding: 12px;
}
.hc-src {
font-size: 0.65rem;
font-weight: 700;
text-transform: uppercase;
color: var(--primary);
display: block;
margin-bottom: 4px;
}
.hc-title {
font-size: 0.85rem;
font-weight: 600;
display: block;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
color: var(--text-main);
}
/* ========== RESPONSIVE GRID FOR SEARCH ========== */
.anime-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
gap: 20px;
}
/* ========== FLAT TABS ========== */
.tabs {
display: flex;
gap: 20px;
border-bottom: 1px solid var(--text-dim);
margin-bottom: 30px;
overflow-x: auto;
}
.tab {
padding: 12px 24px;
background: none;
border: none;
color: var(--text-dim);
font-weight: 600;
cursor: pointer;
position: relative;
transition: var(--transition);
display: flex;
align-items: center;
gap: 8px;
white-space: nowrap;
}
.tab svg {
width: 18px;
height: 18px;
}
.tab:hover {
color: var(--text-main);
}
.tab.active {
color: var(--primary);
}
.tab.active::after {
content: '';
position: absolute;
bottom: -1px;
left: 0;
width: 100%;
height: 3px;
background: var(--primary);
border-radius: 3px 3px 0 0;
}
/* ========== FLAT INPUTS ========== */
.input-group {
display: flex;
background: var(--bg-card);
border-radius: var(--input-radius);
padding: 6px;
border: 1px solid var(--text-dim);
transition: var(--transition);
}
.input-group:focus-within {
border-color: var(--primary);
}
.input-group input {
background: none;
border: none;
padding: 12px 16px;
color: var(--text-main);
flex-grow: 1;
font-size: 1rem;
}
.input-group input:focus {
outline: none;
}
.input-group input::placeholder {
color: var(--text-dim);
opacity: 0.7;
}
.btn-search {
padding: 0 25px;
border-radius: var(--input-radius);
}
/* Flat Input Style */
.form-group {
margin-bottom: 24px;
position: relative;
}
.form-group label {
display: block;
margin-bottom: 8px;
color: var(--text-dim);
font-size: 0.85rem;
font-weight: 500;
transition: var(--transition);
}
.form-group input {
width: 100%;
padding: 16px 0;
background: transparent;
border: none;
border-bottom: 2px solid var(--text-dim);
color: var(--text-main);
font-size: 1rem;
transition: var(--transition);
}
.form-group input:focus {
outline: none;
border-bottom-color: var(--primary);
}
.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label {
transform: translateY(-24px);
font-size: 0.75rem;
color: var(--primary);
}
.form-group input::placeholder {
color: transparent;
}
/* ========== AUTH SECTION ========== */
.auth-panel {
margin-bottom: 25px;
padding: 16px 20px;
background: var(--bg-card);
border: 1px solid var(--primary);
border-radius: var(--card-radius);
display: flex;
justify-content: space-between;
align-items: center;
}
.auth-container {
max-width: 450px;
margin: 80px auto;
padding: 40px;
background: var(--bg-card);
border-radius: 6px;
border: 1px solid var(--text-dim);
}
.auth-title {
text-align: center;
margin-bottom: 30px;
color: var(--primary);
}
.auth-tabs {
display: flex;
margin-bottom: 30px;
border-bottom: 1px solid var(--text-dim);
}
.auth-tab {
flex: 1;
padding: 16px;
text-align: center;
cursor: pointer;
color: var(--text-dim);
transition: var(--transition);
font-weight: 600;
position: relative;
}
.auth-tab.active {
color: var(--primary);
}
.auth-tab.active::after {
content: '';
position: absolute;
bottom: -1px;
left: 0;
width: 100%;
height: 3px;
background: var(--primary);
}
.auth-form {
display: none;
}
.auth-form.active {
display: block;
}
.auth-error, .auth-success {
padding: 12px 16px;
border-radius: var(--input-radius);
margin-bottom: 20px;
font-size: 0.9rem;
display: none;
}
.auth-error {
background: rgba(230, 57, 70, 0.1);
border: 1px solid var(--danger);
color: var(--danger);
}
.auth-success {
background: rgba(45, 147, 108, 0.1);
border: 1px solid var(--success);
color: var(--success);
}
.show {
display: block !important;
}
/* ========== FLAT PROGRESS BARS ========== */
.progress-container {
height: 6px;
background: var(--text-dim);
border-radius: 3px;
margin: 12px 0;
overflow: hidden;
}
.progress-bar {
height: 100%;
background: var(--primary);
transition: width 0.3s ease;
border-radius: 3px;
}
/* ========== ICON BUTTONS ========== */
.btn-icon {
width: 40px;
height: 40px;
padding: 0;
border-radius: var(--input-radius);
background: var(--bg-card);
border: 1px solid var(--text-dim);
color: var(--text-main);
display: inline-flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: var(--transition);
}
.btn-icon:hover {
background: var(--text-dim);
border-color: var(--text-main);
}
.btn-icon.danger {
color: var(--danger);
}
.btn-icon.danger:hover {
background: var(--danger);
color: #fff;
border-color: var(--danger);
}
.btn-icon.success {
color: var(--success);
}
.btn-icon.success:hover {
background: var(--success);
color: #fff;
border-color: var(--success);
}
/* ========== DOWNLOAD ITEMS ========== */
.downloads-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
gap: 20px;
}
.download-item {
background: var(--bg-card);
border-radius: var(--card-radius);
padding: 20px;
border: 1px solid var(--text-dim);
transition: var(--transition);
border-left: 4px solid var(--text-dim);
margin-bottom: 10px;
}
.download-item:hover {
border-color: var(--primary);
border-left-color: var(--primary);
}
.download-info {
display: flex;
justify-content: space-between;
align-items: flex-start;
gap: 15px;
margin-bottom: 12px;
}
.download-name {
font-weight: 600;
font-size: 0.95rem;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
flex: 1;
}
.download-meta {
display: flex;
justify-content: space-between;
font-size: 0.8rem;
color: var(--text-dim);
}
.download-actions {
display: flex;
gap: 10px;
margin-top: 15px;
justify-content: flex-end;
}
.download-actions .btn-icon.warning {
color: var(--warning);
}
.download-actions .btn-icon.warning:hover {
background: var(--warning);
color: #fff;
border-color: var(--warning);
}
/* Download Status Colors */
.download-item.status-downloading {
border-left-color: var(--primary);
animation: pulse-border 2s ease-in-out infinite;
}
.download-item.status-completed {
border-left-color: var(--success);
}
.download-item.status-failed,
.download-item.status-cancelled {
border-left-color: var(--danger);
}
.download-item.status-paused {
border-left-color: var(--warning);
}
.download-item.status-pending {
border-left-color: var(--text-dim);
}
@keyframes pulse-border {
0%, 100% {
border-left-color: var(--primary);
}
50% {
border-left-color: var(--warning);
}
}
/* Progress bar for downloading */
.download-item.status-downloading .progress-bar {
background: var(--primary);
}
/* ========== BADGE SYSTEM ========== */
.badge-completed {
color: var(--success);
background: rgba(45, 147, 108, 0.1);
padding: 4px 8px;
border-radius: var(--input-radius);
}
.badge-failed {
color: var(--danger);
background: rgba(230, 57, 70, 0.1);
padding: 4px 8px;
border-radius: var(--input-radius);
}
.badge-downloading {
color: var(--primary);
background: rgba(241, 80, 37, 0.1);
padding: 4px 8px;
border-radius: var(--input-radius);
}
.badge-paused {
color: var(--warning);
background: rgba(244, 162, 97, 0.1);
padding: 4px 8px;
border-radius: var(--input-radius);
}
/* ========== LOADING STATES ========== */
.loading-placeholder, .loading-spinner-container {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 60px 20px;
color: var(--text-dim);
gap: 15px;
}
/* Circular Spinner */
.spinner {
width: 40px;
height: 40px;
border: 3px solid var(--text-dim);
border-top-color: var(--primary);
border-radius: 50%;
animation: spin 1s linear infinite;
}
@keyframes spin {
to {
transform: rotate(360deg);
}
}
/* Skeleton Loading */
.skeleton {
background: var(--bg-card);
animation: skeleton-loading 1.5s ease-in-out infinite;
border-radius: var(--input-radius);
}
@keyframes skeleton-loading {
0%, 100% {
opacity: 0.5;
}
50% {
opacity: 1;
}
}
.skeleton-text {
height: 16px;
margin-bottom: 8px;
}
.skeleton-title {
height: 24px;
width: 70%;
margin-bottom: 12px;
}
.skeleton-card {
height: 200px;
border-radius: var(--card-radius);
}
.empty-state, .no-results {
text-align: center;
padding: 80px 20px;
color: var(--text-dim);
}
.empty-state i, .no-results i {
font-size: 3.5rem;
margin-bottom: 20px;
display: block;
opacity: 0.15;
}
.htmx-indicator {
display: none;
}
.htmx-indicator.htmx-request {
display: flex;
align-items: center;
gap: 8px;
}
/* ========== SECTION CONTAINERS ========== */
.section-container {
margin-bottom: 50px;
}
/* ========== FLAT TOAST ========== */
.toast-container {
position: fixed;
bottom: 24px;
left: 50%;
transform: translateX(-50%);
z-index: 9999;
display: flex;
flex-direction: column;
gap: 8px;
align-items: center;
}
.toast {
padding: 16px 24px;
background: var(--bg-card);
border-left: 4px solid var(--primary);
border-radius: var(--card-radius);
border: 1px solid var(--text-dim);
display: flex;
align-items: center;
gap: 12px;
animation: slide-up 0.3s ease-out;
min-width: 300px;
max-width: 500px;
color: var(--text-main);
}
.toast.success {
border-left-color: var(--success);
}
.toast.error {
border-left-color: var(--danger);
}
.toast.warning {
border-left-color: var(--warning);
}
.toast.info {
border-left-color: var(--primary);
}
@keyframes slide-up {
from {
transform: translateY(100px);
opacity: 0;
}
to {
transform: translateY(0);
opacity: 1;
}
}
@keyframes slideIn {
from {
transform: translateX(100%);
opacity: 0;
}
to {
transform: translateX(0);
opacity: 1;
}
}
/* ========== RESPONSIVE BREAKPOINTS ========== */
@media (max-width: 1200px) {
.anime-grid {
grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}
}
@media (max-width: 768px) {
.anime-grid {
grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
gap: 12px;
}
.hc {
flex: 0 0 140px;
}
.tabs {
gap: 10px;
}
.tab {
padding: 10px 16px;
}
.auth-panel {
flex-direction: column;
gap: 15px;
text-align: center;
}
.auth-container {
margin: 40px 20px;
padding: 24px;
}
.downloads-grid {
grid-template-columns: 1fr;
}
.toast-container {
left: 20px;
right: 20px;
transform: none;
}
.toast {
min-width: auto;
width: 100%;
}
}
@media (max-width: 480px) {
.container {
padding: 0 16px;
}
h1 {
font-size: 2rem;
}
.btn {
padding: 8px 16px;
font-size: 0.85rem;
}
.hc {
flex: 0 0 120px;
}
.hc-info {
padding: 8px;
}
.section-header {
flex-direction: column;
align-items: flex-start;
gap: 10px;
}
}
@media (min-width: 1400px) {
.anime-grid {
grid-template-columns: repeat(4, 1fr);
}
.downloads-grid {
grid-template-columns: repeat(2, 1fr);
}
}
/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
.anime-grid {
grid-template-columns: repeat(3, 1fr);
}
}