Files
anime_downloader/static/css/ohli24.css

564 lines
15 KiB
CSS

/* Ohli24 Theme Variables & Overrides */
:root {
--slate-950: #0f172a;
--slate-900: #0f172a;
--slate-800: #1e293b;
--slate-700: #334155;
--blue-500: #3b82f6;
--blue-600: #2563eb;
--amber-400: #facc15;
/* Shared Notify Variables */
--notify-bg: rgba(15, 23, 42, 0.95);
--notify-border: rgba(59, 130, 246, 0.3);
--notify-success-bg: rgba(6, 78, 59, 0.95);
--notify-warning-bg: rgba(120, 53, 15, 0.95);
--notify-danger-bg: rgba(127, 29, 29, 0.95);
}
body {
background-color: var(--slate-950) !important;
color: #f1f5f9;
background-image: linear-gradient(135deg, #1f2937, #111827, #0f172a) !important;
background-attachment: fixed !important;
font-family: 'NamumSquareNeo', system-ui, -apple-system, Segoe UI, Roboto, Helvetica Neue, Noto Sans, Liberation Sans, Arial, sans-serif;
}
/* Glass Card Container */
.glass-card {
background: rgba(30, 41, 59, 0.7) !important;
backdrop-filter: blur(12px) !important;
border: 1px solid rgba(255, 255, 255, 0.08) !important;
border-radius: 16px !important;
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}
.glass-card:hover {
border-color: rgba(96, 165, 250, 0.5) !important;
}
/* General Layout Fixes */
.container-fluid {
padding-left: 8px !important;
padding-right: 8px !important;
max-width: 100%;
}
.ohli24-common-wrapper {
max-width: 1400px;
margin: 0 auto;
width: 100%;
transition: opacity 0.5s ease-out;
}
.ohli24-common-wrapper.content-cloak {
opacity: 0;
}
.ohli24-common-wrapper.visible {
opacity: 1;
}
/* Common Header Styles */
.ohli24-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 1.5rem;
flex-wrap: wrap;
gap: 1rem;
}
.ohli24-header-left {
display: flex;
align-items: center;
}
.ohli24-icon-box {
width: 48px;
height: 48px;
background: rgba(59, 130, 246, 0.1);
border-radius: 14px;
display: flex;
align-items: center;
justify-content: center;
border: 1px solid rgba(59, 130, 246, 0.2);
margin-right: 1rem;
}
.ohli24-header-title {
margin-bottom: 0;
color: white;
font-weight: 700;
}
.ohli24-header-subtitle {
font-size: 0.875rem;
color: #94a3b8;
}
/* Nav Pills Customization (Shared styling, overrides in mobile_custom.css) */
ul.nav.nav-pills.bg-light {
background-color: rgba(30, 41, 59, 0.6) !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: 2px; /* Pull secondary pills or content closer */
}
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;
}
/* Responsive Input Group for Search */
.input-group-responsive {
height: 50px;
}
.input-group-responsive .form-control {
height: 100% !important;
font-size: 1.1rem;
}
.input-group-responsive .btn {
height: 100% !important;
}
@media (max-width: 768px) {
.input-group-responsive {
height: 42px;
}
.input-group-responsive .form-control {
font-size: 0.95rem;
}
}
.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; }
/* Date Info Styling */
.date-info {
display: flex;
flex-direction: column;
gap: 4px;
margin-bottom: 12px;
}
.date-tag {
display: inline-flex;
align-items: center;
gap: 6px;
font-size: 11px;
padding: 3px 10px;
border-radius: 6px;
white-space: nowrap;
width: fit-content;
}
.date-tag i { font-size: 12px; }
.date-tag span { font-weight: 500; }
.date-tag-req {
background: rgba(148, 163, 184, 0.1);
color: #94a3b8;
border: 1px solid rgba(148, 163, 184, 0.2);
}
.date-tag-done {
background: rgba(52, 211, 153, 0.1);
color: #34d399;
border: 1px solid rgba(52, 211, 153, 0.2);
}
/* Episode Badge Overlay on Thumbnail */
.ohli24-list-page .episode-badge {
position: absolute;
top: 4px;
left: 4px;
z-index: 10;
background: rgba(15, 23, 42, 0.75);
backdrop-filter: blur(4px);
-webkit-backdrop-filter: blur(4px);
color: #fbbf24 !important; /* High-visibility Amber */
font-size: 10px;
font-weight: 800;
padding: 2px 6px;
border-radius: 4px;
border: 1px solid rgba(251, 191, 36, 0.4);
box-shadow: 0 2px 4px rgba(0,0,0,0.5);
pointer-events: none;
line-height: 1;
}
/* Persistent Mobile Colors for action buttons */
@media (max-width: 768px) {
.ohli24-list-page .btn-watch-primary {
background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
border: none !important;
color: white !important;
box-shadow: 0 4px 10px rgba(37, 99, 235, 0.4) !important;
font-weight: 700 !important;
}
.ohli24-list-page .btn-remove-alt {
background: rgba(220, 38, 38, 0.15) !important;
border: 1px solid rgba(220, 38, 38, 0.4) !important;
color: #f87171 !important;
font-weight: 600 !important;
}
.ohli24-list-page .btn-request {
background: rgba(59, 130, 246, 0.1) !important;
border: 1px solid rgba(59, 130, 246, 0.3) !important;
color: #93c5fd !important;
}
}
/* 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 {
flex: 1; /* Allow to take available space */
margin-top: 0;
padding-top: 0;
border-top: none;
padding-left: 20px;
display: flex;
align-items: center;
justify-content: space-between; /* Push dates left, buttons right */
min-width: 450px; /* Increase min-width for better spacing */
}
.ohli24-list-page .episode-actions {
display: flex;
flex-wrap: wrap;
gap: 8px;
}
.ohli24-list-page .btn-minimal {
background: rgba(255, 255, 255, 0.05);
border: 1px solid rgba(255, 255, 255, 0.1);
color: #cbd5e1 !important;
font-size: 11px !important;
padding: 5px 12px !important;
border-radius: 8px !important;
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
display: flex;
align-items: center;
gap: 6px;
font-weight: 500 !important;
white-space: nowrap;
}
.ohli24-list-page .btn-minimal i { font-size: 12px; opacity: 0.8; }
.ohli24-list-page .btn-minimal:hover {
background: rgba(255, 255, 255, 0.12);
border-color: rgba(255, 255, 255, 0.2);
transform: translateY(-1px);
color: #fff !important;
}
/* Primary Watch Button */
.ohli24-list-page .btn-watch-primary {
background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
border: none !important;
color: white !important;
box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}
.ohli24-list-page .btn-watch-primary:hover {
background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%) !important;
box-shadow: 0 6px 15px rgba(37, 99, 235, 0.4);
transform: translateY(-2px);
}
/* Danger Hover for Remove */
.ohli24-list-page .btn-remove-alt:hover {
background: rgba(239, 68, 68, 0.15) !important;
border-color: rgba(239, 68, 68, 0.3) !important;
color: #f87171 !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: 36px;
background: rgba(0, 0, 0, 0.3);
border-radius: 18px;
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 { background: linear-gradient(90deg, #22c55e, #4ade80); }
.ohli24-queue-page .status-failed { background: linear-gradient(90deg, #dc2626, #ef4444); }
/* Progress Label - Text ON TOP of progress bar */
.ohli24-queue-page .progress-label {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
font-size: 12px;
font-weight: 700;
color: #fff;
text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
white-space: nowrap;
z-index: 10;
pointer-events: none;
}
/* 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%;
height: 40px; /* Even taller on mobile for better visibility */
border-radius: 20px;
}
.ohli24-queue-page .progress-label {
font-size: 13px;
font-weight: 800;
}
.ohli24-queue-page .queue-item { flex-direction: column; align-items: stretch; }
.ohli24-queue-page ul.nav.nav-pills.bg-light { margin-top: 4px !important; }
/* Search Container Mobile Refinements */
.ohli24-list-page .search-container {
padding: 8px;
gap: 6px;
}
.ohli24-list-page .search-group-left {
display: flex;
gap: 4px;
flex: 1;
}
.ohli24-list-page .search-group-right {
display: flex;
gap: 4px;
width: 100%;
}
.ohli24-list-page .custom-select {
height: 32px !important;
font-size: 12px !important;
padding: 0 4px !important;
flex: 1;
}
.ohli24-list-page .custom-input {
height: 32px !important;
font-size: 13px !important;
flex: 1;
}
.ohli24-list-page .custom-btn {
height: 32px !important;
padding: 0 10px !important;
font-size: 13px !important;
}
/* Persistent Mobile Colors for specific buttons */
.ohli24-list-page .btn-watch-primary {
background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
border: none !important;
color: white !important;
opacity: 1 !important;
}
.ohli24-list-page .btn-remove-alt {
background: rgba(239, 68, 68, 0.1) !important;
border-color: rgba(239, 68, 68, 0.3) !important;
color: #f87171 !important;
}
}