Files
ohm_streaming/static/css/style.css
T
root 9f85908ff3
CI / Test (Python 3.11) (push) Has been cancelled
CI / Test (Python 3.12) (push) Has been cancelled
CI / Lint (push) Has been cancelled
CI / Type Check (push) Has been cancelled
CI / Summary (push) Has been cancelled
Phase 3: HTMX & Alpine.js integration, router refactoring, and UI modernization
- Modernized the frontend with HTMX for server-driven UI and Alpine.js for client state.
- Refactored anime, player, and recommendation logic into modular routers.
- Updated README.md to reflect the latest project state and technologies (v2.4).
- Added Plyr.io for an improved streaming experience.
- Improved project structure with componentized templates.
- Added Playwright and Vitest configuration for frontend testing.
2026-03-26 10:34:26 +00:00

330 lines
6.7 KiB
CSS

/* Ohm Streaming - Premium Dark Theme */
:root {
--bg-dark: #0b0b14;
--bg-card: #161625;
--primary: #00d9ff;
--primary-glow: rgba(0, 217, 255, 0.3);
--secondary: #ff6b6b;
--text-main: #ffffff;
--text-dim: #a0a0b0;
--accent: #00ff88;
--card-radius: 12px;
--transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
* {
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;
}
.container {
max-width: 1400px;
margin: 0 auto;
padding: 0 40px;
}
@media (max-width: 768px) {
.container { padding: 0 20px; }
}
/* Header & Typography */
h1 {
font-size: 2.5rem;
font-weight: 800;
letter-spacing: -1px;
margin-bottom: 5px;
background: linear-gradient(90deg, var(--primary), var(--accent));
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
.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;
}
/* Horizontal Rows (Netflix Style) */
.streaming-row {
display: flex;
gap: 20px;
overflow-x: auto;
padding: 20px 5px;
scroll-behavior: smooth;
-webkit-overflow-scrolling: touch;
}
.streaming-row::-webkit-scrollbar {
height: 6px;
}
.streaming-row::-webkit-scrollbar-thumb {
background: rgba(255, 255, 255, 0.1);
border-radius: 10px;
}
.streaming-row::-webkit-scrollbar-thumb:hover {
background: var(--primary);
}
/* Modern Card Design */
.anime-card {
flex: 0 0 220px;
background: var(--bg-card);
border-radius: var(--card-radius);
overflow: hidden;
transition: var(--transition);
position: relative;
border: 1px solid rgba(255, 255, 255, 0.05);
display: flex;
flex-direction: column;
}
.anime-card:hover {
transform: scale(1.05);
z-index: 10;
border-color: var(--primary);
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}
.anime-poster {
position: relative;
padding-top: 150%; /* standard anime poster ratio */
background: #000;
}
.anime-poster img {
position: absolute;
top: 0; left: 0; width: 100%; height: 100%;
object-fit: cover;
transition: var(--transition);
}
.anime-rating-badge {
position: absolute;
top: 10px; right: 10px;
background: rgba(0, 0, 0, 0.8);
color: #ffcc00;
padding: 4px 8px;
border-radius: 6px;
font-size: 0.75rem;
font-weight: 800;
backdrop-filter: blur(5px);
border: 1px solid rgba(255, 204, 0, 0.2);
}
.anime-overlay {
position: absolute;
top: 0; left: 0; width: 100%; height: 100%;
background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0) 100%);
display: flex;
flex-direction: column;
justify-content: flex-end;
padding: 15px;
opacity: 0;
transition: var(--transition);
}
.anime-card:hover .anime-overlay { opacity: 1; }
.overlay-buttons {
display: flex;
gap: 10px;
justify-content: center;
}
.btn-circle {
width: 45px;
height: 45px;
border-radius: 50%;
background: var(--primary);
color: #000;
border: none;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
font-size: 1.2rem;
box-shadow: 0 4px 15px var(--primary-glow);
}
/* Info Area */
.anime-info {
padding: 12px;
flex-grow: 1;
display: flex;
flex-direction: column;
}
.anime-title {
font-size: 0.95rem;
font-weight: 600;
margin-bottom: 8px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.anime-meta-tags {
display: flex;
gap: 5px;
margin-bottom: 12px;
}
.badge {
font-size: 0.65rem;
font-weight: 700;
text-transform: uppercase;
padding: 2px 6px;
border-radius: 4px;
background: rgba(255, 255, 255, 0.1);
color: var(--text-dim);
}
/* Action Buttons (The fix for text overflow) */
.anime-card-buttons {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 8px;
margin-bottom: 10px;
}
.btn-card {
padding: 8px 4px;
border-radius: 6px;
font-size: 0.7rem;
font-weight: 700;
text-transform: uppercase;
border: none;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
gap: 4px;
transition: var(--transition);
white-space: nowrap;
overflow: hidden;
}
.btn-card i { font-size: 0.8rem; }
.btn-watch { background: var(--primary); color: #000; }
.btn-download { background: #2a2a3a; color: #fff; border: 1px solid #444; }
.btn-watch:hover { background: #fff; }
.btn-download:hover { border-color: #fff; }
.btn-add-watchlist {
width: 100%;
padding: 8px;
background: rgba(255, 255, 255, 0.05);
border: 1px solid rgba(255, 255, 255, 0.1);
color: var(--text-dim);
font-size: 0.75rem;
font-weight: 600;
border-radius: 6px;
cursor: pointer;
}
.btn-add-watchlist:hover {
background: rgba(255, 255, 255, 0.1);
color: #fff;
}
.btn-add-watchlist.followed {
border-color: var(--accent);
color: var(--accent);
background: rgba(0, 255, 136, 0.1);
}
/* Tabs & UI */
.tabs {
display: flex;
gap: 30px;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
margin-bottom: 30px;
}
.tab {
padding: 15px 0;
background: none;
border: none;
color: var(--text-dim);
font-weight: 600;
cursor: pointer;
position: relative;
transition: var(--transition);
}
.tab.active {
color: var(--primary);
}
.tab.active::after {
content: '';
position: absolute;
bottom: -1px;
left: 0; width: 100%;
height: 3px;
background: var(--primary);
box-shadow: 0 0 10px var(--primary-glow);
}
/* Forms */
.input-group {
display: flex;
background: rgba(0, 0, 0, 0.4);
border-radius: 12px;
padding: 5px;
border: 1px solid rgba(255, 255, 255, 0.1);
}
.input-group input {
background: none;
border: none;
padding: 12px 20px;
color: #fff;
flex-grow: 1;
}
.input-group input:focus { outline: none; }
.btn-search {
background: var(--primary);
color: #000;
border-radius: 8px;
padding: 0 25px;
font-weight: 700;
}
/* Responsive Grid for Search */
.anime-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
gap: 30px;
}
@media (max-width: 768px) {
.anime-card { flex: 0 0 160px; }
.anime-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 15px; }
.btn-card span { display: none; } /* Hide text on very small screens, keep icons */
.btn-card { padding: 10px; }
}