v0.4.13: Fix Ohli24 CSS side effects and improve metadata sync

This commit is contained in:
2026-01-02 21:40:22 +09:00
parent 15a81cc344
commit 44f8ee54d0
12 changed files with 406 additions and 1019 deletions

View File

@@ -1,7 +1,7 @@
/* Ohli24 Theme Variables & Overrides */
:root {
--slate-950: #0f172a;
--slate-900: #0f172a; /* Same as 950 for deep background */
--slate-900: #0f172a;
--slate-800: #1e293b;
--slate-700: #334155;
--blue-500: #3b82f6;
@@ -23,17 +23,253 @@ body {
background-attachment: fixed !important;
}
/* Ohli24 Specific Nav-Pills Overrides */
/* General Layout Fixes */
.container-fluid {
padding-left: 8px !important;
padding-right: 8px !important;
max-width: 100%;
}
/* Nav Pills Customization */
ul.nav.nav-pills.bg-light {
background-color: rgba(30, 41, 59, 0.6) !important;
border: 1px solid rgba(255, 255, 255, 0.08) !important;
backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.08);
border-radius: 50rem !important;
padding: 6px !important;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2) !important;
display: inline-flex !important;
flex-wrap: wrap;
justify-content: center;
width: auto !important;
margin-bottom: 20px;
}
ul.nav.nav-pills .nav-link {
color: #94a3b8 !important;
border-radius: 50rem !important;
padding: 8px 20px !important;
}
ul.nav.nav-pills .nav-link.active {
background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
color: #fff !important;
box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4) !important;
}
/* Search Bar Styling */
.search-container {
background: rgba(30, 41, 59, 0.7);
backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.08);
border-radius: 12px;
padding: 12px;
margin-bottom: 20px;
display: flex;
flex-wrap: wrap;
gap: 10px;
align-items: center;
}
.custom-select, .custom-input {
background-color: rgba(15, 23, 42, 0.6) !important;
border: 1px solid rgba(148, 163, 184, 0.2) !important;
color: #e2e8f0 !important;
border-radius: 8px !important;
height: 38px !important;
}
.custom-btn {
border-radius: 8px !important;
padding: 0 16px !important;
height: 38px !important;
font-weight: 600 !important;
border: none !important;
}
.btn-search { background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%); color: white !important; }
.btn-reset { background: rgba(148, 163, 184, 0.1); color: #94a3b8 !important; }
/* Episode Card (Mobile-First) - Scoped to List Page */
.ohli24-list-page .episode-card {
display: flex;
flex-direction: column;
background: linear-gradient(135deg, rgba(30, 41, 59, 0.85) 0%, rgba(15, 23, 42, 0.85) 100%);
border-radius: 12px;
border: 1px solid rgba(148, 163, 184, 0.12);
margin-bottom: 12px;
transition: all 0.2s ease;
overflow: hidden;
}
.ohli24-list-page .episode-card-body {
display: flex;
flex-wrap: wrap; /* Key for mobile stacking */
padding: 12px;
width: 100%;
gap: 12px;
}
.ohli24-list-page .episode-thumb {
width: 60px;
height: 80px;
flex: 0 0 60px;
border-radius: 8px;
overflow: hidden;
background-color: #1e293b;
position: relative;
box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.ohli24-list-page .episode-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ohli24-list-page .episode-main-info {
flex: 1;
min-width: calc(100% - 84px); /* Force wrapping if needed, but allow sitting next to thumb */
display: flex;
flex-direction: column;
justify-content: center;
}
.ohli24-list-page .episode-title {
color: #f1f5f9;
font-weight: 700;
font-size: 15px;
margin-bottom: 2px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.ohli24-list-page .episode-subtitle {
font-size: 11px;
color: #94a3b8;
margin-bottom: 6px;
display: block;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.ohli24-list-page .episode-meta {
display: flex;
flex-wrap: wrap;
gap: 6px;
align-items: center;
margin-bottom: 6px;
}
/* Episode Right Column / Actions - Wraps to 100% on mobile */
.ohli24-list-page .episode-right-col {
flex: 0 0 100%; /* Full width on mobile */
margin-top: 4px;
padding-top: 12px;
border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.ohli24-list-page .episode-actions {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 6px;
}
.ohli24-list-page .episode-actions .btn {
font-size: 12px !important;
padding: 8px 6px !important;
text-align: center;
border-radius: 6px !important;
white-space: nowrap;
}
/* Status Badges */
.status-badge { font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 4px; display: inline-block; }
.status-completed { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.status-wait { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }
/* Desktop Adaptations - Scoped to List Page */
@media (min-width: 768px) {
.ohli24-list-page .episode-card { margin-bottom: 10px; }
.ohli24-list-page .episode-card-body {
flex-direction: row;
align-items: center;
padding: 10px 20px;
gap: 20px;
}
.ohli24-list-page .episode-top-info {
flex: 1;
align-items: center;
min-width: 0;
}
.ohli24-list-page .episode-thumb { width: 60px; height: 80px; }
.ohli24-list-page .episode-main-info { justify-content: center; }
.ohli24-list-page .episode-title { font-size: 16px; margin-bottom: 2px; }
.ohli24-list-page .file-path { margin-top: 2px; padding: 4px 8px; display: inline-block; max-width: 100%; }
.ohli24-list-page .episode-right-col {
width: auto;
margin-top: 0;
padding-top: 0;
border-top: none;
padding-left: 20px;
display: flex;
align-items: center;
min-width: 320px;
}
.ohli24-list-page .episode-actions { display: flex; flex-wrap: nowrap; gap: 6px; }
.ohli24-list-page .episode-actions .btn { flex: none; width: auto; min-width: 80px; font-size: 11px !important; }
}
/* Queue Specific Styles - Scoped to Queue Page */
.ohli24-queue-page .queue-header {
background: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%);
border-radius: 12px;
padding: 15px 20px;
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 20px;
}
.ohli24-queue-page .queue-item {
background: linear-gradient(135deg, rgba(30, 41, 59, 0.85) 0%, rgba(15, 23, 42, 0.85) 100%);
border-radius: 10px;
border: 1px solid rgba(148, 163, 184, 0.12);
padding: 15px;
display: flex;
align-items: center;
gap: 15px;
}
.ohli24-queue-page .progress-wrapper {
position: relative;
height: 32px;
background: rgba(0, 0, 0, 0.3);
border-radius: 16px;
overflow: hidden;
width: 300px;
}
.ohli24-queue-page .progress-bar { height: 100%; transition: width 0.3s ease; }
.ohli24-queue-page .status-waiting { background: linear-gradient(90deg, #94a3b8, #64748b); }
.ohli24-queue-page .status-downloading { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.ohli24-queue-page .status-completed-bar { background: linear-gradient(90deg, #22c55e, #4ade80); }
/* Common Modal Fixes */
.modal-content {
background: rgba(15, 23, 42, 0.95) !important;
border: 1px solid rgba(148, 163, 184, 0.2) !important;
border-radius: 12px !important;
}
@media (max-width: 768px) {
.ohli24-queue-page .progress-wrapper { width: 100%; }
.ohli24-queue-page .queue-item { flex-direction: column; align-items: stretch; }
.ohli24-queue-page ul.nav.nav-pills.bg-light { margin-top: 40px !important; }
}