Files

1353 lines
25 KiB
CSS

/* Spectra — A YouTube Suggest Engine Styling */
:root {
--bg-primary: #07090e;
--bg-secondary: #0d121d;
--bg-card: rgba(18, 24, 38, 0.75);
--bg-card-hover: rgba(25, 34, 54, 0.9);
--bg-glass: rgba(15, 21, 35, 0.7);
--border-subtle: rgba(255, 255, 255, 0.08);
--border-glow: rgba(99, 102, 241, 0.35);
--text-primary: #f8fafc;
--text-secondary: #94a3b8;
--text-muted: #64748b;
--accent-indigo: #6366f1;
--accent-cyan: #06b6d4;
--accent-emerald: #10b981;
--accent-amber: #f59e0b;
--accent-rose: #f43f5e;
--accent-violet: #8b5cf6;
--spectra-gradient: linear-gradient(135deg, #6366f1 0%, #06b6d4 50%, #10b981 100%);
--spectra-border: linear-gradient(135deg, rgba(99, 102, 241, 0.6), rgba(6, 182, 212, 0.6), rgba(16, 185, 129, 0.6));
--font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
--font-mono: 'JetBrains Mono', monospace;
--radius-sm: 6px;
--radius-md: 10px;
--radius-lg: 16px;
--radius-xl: 24px;
--radius-full: 9999px;
--shadow-card: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
--shadow-glow: 0 0 25px rgba(99, 102, 241, 0.25);
--transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
--transition-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
background-color: var(--bg-primary);
color: var(--text-primary);
font-family: var(--font-sans);
line-height: 1.5;
min-height: 100vh;
position: relative;
overflow-x: hidden;
-webkit-font-smoothing: antialiased;
}
/* Ambient optical glow */
.ambient-glow {
position: fixed;
pointer-events: none;
border-radius: 50%;
filter: blur(120px);
z-index: 0;
opacity: 0.18;
}
.glow-1 {
width: 550px;
height: 550px;
background: radial-gradient(circle, #6366f1, #06b6d4);
top: -100px;
left: 10%;
}
.glow-2 {
width: 600px;
height: 600px;
background: radial-gradient(circle, #ec4899, #8b5cf6);
bottom: -150px;
right: 5%;
}
/* Header */
.app-header {
position: sticky;
top: 0;
z-index: 50;
display: flex;
align-items: center;
justify-content: space-between;
padding: 12px 28px;
background: var(--bg-glass);
backdrop-filter: blur(16px);
-webkit-backdrop-filter: blur(16px);
border-bottom: 1px solid var(--border-subtle);
gap: 16px;
}
.header-left {
display: flex;
align-items: center;
gap: 20px;
}
.brand {
display: flex;
align-items: center;
gap: 12px;
cursor: pointer;
}
.brand-logo {
width: 38px;
height: 38px;
filter: drop-shadow(0 2px 8px rgba(99, 102, 241, 0.4));
transition: transform var(--transition-smooth);
}
.brand:hover .brand-logo {
transform: rotate(6deg) scale(1.05);
}
.brand-text {
display: flex;
flex-direction: column;
}
.brand-title {
font-size: 1.15rem;
font-weight: 800;
letter-spacing: 0.08em;
background: var(--spectra-gradient);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
.brand-subtitle {
font-size: 0.72rem;
color: var(--text-muted);
font-weight: 500;
letter-spacing: 0.02em;
}
.header-pill-badge {
display: flex;
align-items: center;
gap: 6px;
padding: 4px 10px;
background: rgba(16, 185, 129, 0.1);
border: 1px solid rgba(16, 185, 129, 0.25);
border-radius: var(--radius-full);
font-size: 0.72rem;
font-weight: 600;
color: #34d399;
}
.pulse-dot {
width: 6px;
height: 6px;
border-radius: 50%;
background-color: #10b981;
box-shadow: 0 0 8px #10b981;
animation: pulseGlow 2s infinite;
}
@keyframes pulseGlow {
0% { transform: scale(0.95); opacity: 0.8; }
50% { transform: scale(1.2); opacity: 1; }
100% { transform: scale(0.95); opacity: 0.8; }
}
/* Recency Picker */
.header-center {
display: flex;
align-items: center;
}
.recency-picker {
display: flex;
align-items: center;
background: rgba(0, 0, 0, 0.35);
border: 1px solid var(--border-subtle);
border-radius: var(--radius-full);
padding: 3px 4px;
gap: 2px;
}
.recency-label {
font-size: 0.72rem;
color: var(--text-muted);
padding: 0 8px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.05em;
}
.recency-btn {
background: transparent;
border: none;
color: var(--text-secondary);
font-family: var(--font-sans);
font-size: 0.75rem;
font-weight: 600;
padding: 4px 12px;
border-radius: var(--radius-full);
cursor: pointer;
transition: all var(--transition-fast);
}
.recency-btn:hover {
color: var(--text-primary);
background: rgba(255, 255, 255, 0.05);
}
.recency-btn.active {
background: var(--accent-indigo);
color: #ffffff;
box-shadow: 0 2px 10px rgba(99, 102, 241, 0.3);
}
/* Header Right Buttons */
.header-right {
display: flex;
align-items: center;
gap: 10px;
}
.action-btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 8px;
padding: 8px 16px;
border-radius: var(--radius-md);
font-family: var(--font-sans);
font-size: 0.82rem;
font-weight: 600;
cursor: pointer;
transition: all var(--transition-fast);
border: 1px solid transparent;
}
.btn-primary {
background: var(--spectra-gradient);
color: #ffffff;
box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35);
}
.btn-primary:hover {
filter: brightness(1.1);
transform: translateY(-1px);
box-shadow: 0 6px 20px rgba(99, 102, 241, 0.45);
}
.btn-glass {
background: rgba(255, 255, 255, 0.06);
color: var(--text-primary);
border: 1px solid var(--border-subtle);
backdrop-filter: blur(8px);
}
.btn-glass:hover {
background: rgba(255, 255, 255, 0.12);
border-color: rgba(255, 255, 255, 0.18);
transform: translateY(-1px);
}
.btn-glass.icon-only {
padding: 8px;
}
.btn-danger {
background: rgba(244, 63, 94, 0.15);
color: #fb7185;
border: 1px solid rgba(244, 63, 94, 0.3);
}
.btn-danger:hover {
background: rgba(244, 63, 94, 0.25);
color: #ffffff;
}
.kbd-shortcut {
background: rgba(0, 0, 0, 0.3);
padding: 1px 6px;
border-radius: var(--radius-sm);
font-family: var(--font-mono);
font-size: 0.68rem;
border: 1px solid rgba(255, 255, 255, 0.2);
}
.count-badge {
background: #6366f1;
color: #ffffff;
font-size: 0.7rem;
font-weight: 700;
padding: 2px 7px;
border-radius: var(--radius-full);
}
/* Topics Ribbon */
.topics-ribbon {
display: flex;
align-items: center;
padding: 10px 28px;
background: rgba(11, 15, 25, 0.85);
border-bottom: 1px solid var(--border-subtle);
gap: 12px;
position: relative;
z-index: 40;
}
.ribbon-label {
display: flex;
align-items: center;
gap: 6px;
font-size: 0.75rem;
color: var(--text-muted);
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.05em;
white-space: nowrap;
}
.topics-scroll {
display: flex;
align-items: center;
gap: 8px;
overflow-x: auto;
scrollbar-width: none;
-ms-overflow-style: none;
padding-right: 8px;
}
.topics-scroll::-webkit-scrollbar {
display: none;
}
.topic-chip {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 5px 12px;
border-radius: var(--radius-full);
background: rgba(255, 255, 255, 0.04);
border: 1px solid var(--border-subtle);
color: var(--text-secondary);
font-family: var(--font-sans);
font-size: 0.78rem;
font-weight: 500;
white-space: nowrap;
cursor: pointer;
transition: all var(--transition-fast);
}
.topic-chip:hover {
background: rgba(255, 255, 255, 0.09);
color: var(--text-primary);
border-color: rgba(255, 255, 255, 0.16);
}
.topic-chip.active {
background: rgba(99, 102, 241, 0.18);
border-color: var(--accent-indigo);
color: #c7d2fe;
font-weight: 600;
}
.topic-chip.person-chip.active {
background: rgba(6, 182, 212, 0.18);
border-color: var(--accent-cyan);
color: #a5f3fc;
}
.btn-add-chip {
display: inline-flex;
align-items: center;
gap: 4px;
padding: 5px 12px;
border-radius: var(--radius-full);
background: transparent;
border: 1px dashed rgba(255, 255, 255, 0.18);
color: var(--text-muted);
font-family: var(--font-sans);
font-size: 0.76rem;
font-weight: 500;
white-space: nowrap;
cursor: pointer;
transition: all var(--transition-fast);
}
.btn-add-chip:hover {
border-color: var(--accent-indigo);
color: var(--text-primary);
background: rgba(99, 102, 241, 0.08);
}
/* Main Content */
.main-content {
max-width: 1560px;
margin: 0 auto;
padding: 24px 28px 60px;
position: relative;
z-index: 10;
}
.feed-header {
display: flex;
align-items: flex-end;
justify-content: space-between;
margin-bottom: 22px;
gap: 16px;
}
.feed-title-wrap h2 {
font-size: 1.45rem;
font-weight: 800;
letter-spacing: -0.02em;
}
.feed-subtitle {
font-size: 0.82rem;
color: var(--text-muted);
display: block;
margin-top: 3px;
}
.feed-meta {
display: flex;
align-items: center;
gap: 12px;
}
.meta-pill {
display: inline-flex;
align-items: center;
gap: 5px;
background: rgba(0, 0, 0, 0.35);
border: 1px solid var(--border-subtle);
border-radius: var(--radius-full);
padding: 4px 10px;
font-size: 0.72rem;
font-family: var(--font-mono);
color: var(--text-secondary);
}
.btn-text-action {
background: none;
border: none;
color: var(--accent-cyan);
font-size: 0.78rem;
font-weight: 600;
cursor: pointer;
}
.btn-text-action:hover {
text-decoration: underline;
}
/* Video Grid */
.video-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
gap: 22px;
}
/* Video Card */
.video-card {
background: var(--bg-card);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
border: 1px solid var(--border-subtle);
border-radius: var(--radius-lg);
overflow: hidden;
display: flex;
flex-direction: column;
transition: all var(--transition-smooth);
position: relative;
box-shadow: var(--shadow-card);
}
.video-card:hover {
background: var(--bg-card-hover);
border-color: rgba(99, 102, 241, 0.4);
transform: translateY(-4px);
box-shadow: 0 12px 36px 0 rgba(0, 0, 0, 0.5), var(--shadow-glow);
}
/* Thumbnail Wrap */
.card-thumbnail-wrap {
position: relative;
width: 100%;
aspect-ratio: 16 / 9;
background-color: #0b0f19;
cursor: pointer;
overflow: hidden;
}
.card-thumbnail {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform var(--transition-smooth);
}
.video-card:hover .card-thumbnail {
transform: scale(1.04);
}
.card-play-overlay {
position: absolute;
inset: 0;
display: flex;
align-items: center;
justify-content: center;
background: rgba(0, 0, 0, 0.35);
opacity: 0;
transition: opacity var(--transition-fast);
}
.video-card:hover .card-play-overlay {
opacity: 1;
}
.play-circle {
width: 50px;
height: 50px;
border-radius: 50%;
background: var(--spectra-gradient);
display: flex;
align-items: center;
justify-content: center;
color: #ffffff;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
transform: scale(0.9);
transition: transform var(--transition-fast);
}
.video-card:hover .play-circle {
transform: scale(1);
}
.pill-duration {
position: absolute;
bottom: 8px;
right: 8px;
background: rgba(0, 0, 0, 0.85);
color: #f1f5f9;
font-family: var(--font-mono);
font-size: 0.7rem;
font-weight: 700;
padding: 2px 6px;
border-radius: var(--radius-sm);
border: 1px solid rgba(255, 255, 255, 0.15);
}
.pill-timing {
position: absolute;
top: 8px;
left: 8px;
background: rgba(15, 23, 42, 0.9);
color: #38bdf8;
font-size: 0.68rem;
font-weight: 700;
padding: 3px 8px;
border-radius: var(--radius-sm);
border: 1px solid rgba(56, 189, 248, 0.3);
backdrop-filter: blur(4px);
}
/* Card Body */
.card-body {
padding: 16px;
display: flex;
flex-direction: column;
flex: 1;
gap: 10px;
}
.card-why-badge {
display: inline-flex;
align-items: center;
gap: 5px;
font-size: 0.68rem;
font-weight: 600;
color: #c7d2fe;
background: rgba(99, 102, 241, 0.12);
padding: 3px 8px;
border-radius: var(--radius-sm);
width: fit-content;
max-width: 100%;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.card-title {
font-size: 0.94rem;
font-weight: 700;
line-height: 1.35;
color: var(--text-primary);
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
cursor: pointer;
}
.card-title:hover {
color: #a5b4fc;
}
.card-creator-row {
display: flex;
align-items: center;
justify-content: space-between;
font-size: 0.75rem;
color: var(--text-secondary);
}
.card-creator-name {
font-weight: 600;
color: #e2e8f0;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
max-width: 170px;
}
.card-views {
font-family: var(--font-mono);
font-size: 0.7rem;
color: var(--text-muted);
}
/* Card Toolbar */
.card-toolbar {
margin-top: auto;
padding-top: 12px;
border-top: 1px solid var(--border-subtle);
display: flex;
align-items: center;
justify-content: space-between;
gap: 6px;
}
.toolbar-left {
display: flex;
align-items: center;
gap: 6px;
}
.toolbar-right {
display: flex;
align-items: center;
gap: 4px;
}
.card-btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 4px;
background: rgba(255, 255, 255, 0.05);
border: 1px solid var(--border-subtle);
border-radius: var(--radius-sm);
color: var(--text-secondary);
font-family: var(--font-sans);
font-size: 0.72rem;
font-weight: 600;
padding: 5px 8px;
cursor: pointer;
transition: all var(--transition-fast);
}
.card-btn:hover {
background: rgba(255, 255, 255, 0.12);
color: var(--text-primary);
}
.btn-watchlist.saved {
background: rgba(99, 102, 241, 0.2);
border-color: var(--accent-indigo);
color: #a5b4fc;
}
.btn-thumb-up:hover, .btn-thumb-up.active {
background: rgba(16, 185, 129, 0.2);
border-color: var(--accent-emerald);
color: #34d399;
}
.btn-thumb-down:hover, .btn-thumb-down.active {
background: rgba(245, 158, 11, 0.2);
border-color: var(--accent-amber);
color: #fbbf24;
}
.btn-nope {
color: #f87171;
background: rgba(244, 63, 94, 0.08);
border-color: rgba(244, 63, 94, 0.2);
}
.btn-nope:hover {
background: rgba(244, 63, 94, 0.25);
border-color: var(--accent-rose);
color: #ffffff;
}
/* Empty State */
.empty-state {
text-align: center;
padding: 60px 20px;
background: var(--bg-card);
border-radius: var(--radius-xl);
border: 1px dashed var(--border-subtle);
max-width: 580px;
margin: 40px auto;
}
.empty-icon-wrap {
display: inline-flex;
padding: 16px;
border-radius: 50%;
background: rgba(99, 102, 241, 0.1);
color: var(--accent-indigo);
margin-bottom: 16px;
}
.empty-state h3 {
font-size: 1.25rem;
font-weight: 700;
margin-bottom: 8px;
}
.empty-state p {
font-size: 0.85rem;
color: var(--text-secondary);
line-height: 1.6;
margin-bottom: 24px;
}
.empty-actions {
display: flex;
justify-content: center;
gap: 12px;
}
/* Drawers */
.drawer-overlay {
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.65);
backdrop-filter: blur(6px);
-webkit-backdrop-filter: blur(6px);
z-index: 100;
display: flex;
justify-content: flex-end;
transition: opacity var(--transition-smooth);
}
.drawer-panel {
width: 100%;
max-width: 500px;
height: 100%;
background: var(--bg-secondary);
border-left: 1px solid var(--border-subtle);
display: flex;
flex-direction: column;
box-shadow: -8px 0 32px rgba(0, 0, 0, 0.5);
animation: slideDrawer 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes slideDrawer {
from { transform: translateX(100%); }
to { transform: translateX(0); }
}
.drawer-header {
padding: 20px 24px;
display: flex;
align-items: center;
justify-content: space-between;
border-bottom: 1px solid var(--border-subtle);
}
.drawer-title-wrap {
display: flex;
align-items: center;
gap: 10px;
}
.drawer-title-wrap h3 {
font-size: 1.15rem;
font-weight: 700;
}
.preserved-tag {
font-size: 0.68rem;
background: rgba(99, 102, 241, 0.15);
color: #a5b4fc;
padding: 2px 8px;
border-radius: var(--radius-full);
font-weight: 600;
}
.btn-close-drawer {
background: none;
border: none;
color: var(--text-muted);
cursor: pointer;
padding: 4px;
display: flex;
}
.btn-close-drawer:hover {
color: var(--text-primary);
}
/* Watchlist Tabs & List */
.drawer-tabs {
display: flex;
padding: 10px 24px;
gap: 8px;
border-bottom: 1px solid var(--border-subtle);
}
.drawer-tab {
background: transparent;
border: none;
color: var(--text-secondary);
font-family: var(--font-sans);
font-size: 0.78rem;
font-weight: 600;
padding: 6px 12px;
border-radius: var(--radius-md);
cursor: pointer;
}
.drawer-tab.active {
background: rgba(255, 255, 255, 0.08);
color: var(--text-primary);
}
.watchlist-items-scroll {
flex: 1;
overflow-y: auto;
padding: 16px 24px;
display: flex;
flex-direction: column;
gap: 14px;
}
.wl-item {
display: flex;
gap: 12px;
background: var(--bg-card);
border: 1px solid var(--border-subtle);
border-radius: var(--radius-md);
padding: 10px;
position: relative;
transition: all var(--transition-fast);
}
.wl-item:hover {
border-color: rgba(99, 102, 241, 0.3);
}
.wl-item.watched {
opacity: 0.6;
}
.wl-thumb-wrap {
width: 100px;
aspect-ratio: 16 / 9;
border-radius: var(--radius-sm);
overflow: hidden;
position: relative;
flex-shrink: 0;
cursor: pointer;
}
.wl-thumb {
width: 100%;
height: 100%;
object-fit: cover;
}
.wl-info {
display: flex;
flex-direction: column;
flex: 1;
gap: 4px;
min-width: 0;
}
.wl-title {
font-size: 0.82rem;
font-weight: 600;
line-height: 1.3;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
cursor: pointer;
}
.wl-title:hover {
color: #a5b4fc;
}
.wl-meta {
font-size: 0.7rem;
color: var(--text-muted);
}
.wl-actions {
display: flex;
align-items: center;
gap: 8px;
margin-top: 6px;
}
.btn-toggle-watched {
background: none;
border: 1px solid var(--border-subtle);
border-radius: var(--radius-sm);
color: var(--text-secondary);
font-size: 0.7rem;
padding: 3px 8px;
cursor: pointer;
}
.btn-toggle-watched.watched-true {
background: rgba(16, 185, 129, 0.15);
border-color: var(--accent-emerald);
color: #34d399;
}
.btn-wl-remove {
background: none;
border: none;
color: #f87171;
font-size: 0.7rem;
cursor: pointer;
}
/* Tuning Content */
.tuning-content {
flex: 1;
overflow-y: auto;
padding: 20px 24px;
display: flex;
flex-direction: column;
gap: 24px;
}
.telemetry-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 10px;
}
.telemetry-card {
background: rgba(255, 255, 255, 0.03);
border: 1px solid var(--border-subtle);
border-radius: var(--radius-md);
padding: 12px;
display: flex;
flex-direction: column;
}
.telemetry-val {
font-family: var(--font-mono);
font-size: 1.3rem;
font-weight: 700;
color: #38bdf8;
}
.telemetry-key {
font-size: 0.72rem;
color: var(--text-muted);
margin-top: 2px;
}
.tuning-section h4 {
font-size: 0.92rem;
font-weight: 700;
margin-bottom: 4px;
}
.section-desc {
font-size: 0.75rem;
color: var(--text-muted);
line-height: 1.4;
margin-bottom: 12px;
}
.tuning-topics-list {
display: flex;
flex-direction: column;
gap: 10px;
}
.topic-row {
display: flex;
align-items: center;
justify-content: space-between;
background: rgba(255, 255, 255, 0.02);
border: 1px solid var(--border-subtle);
border-radius: var(--radius-md);
padding: 8px 12px;
gap: 12px;
}
.topic-info-left {
display: flex;
flex-direction: column;
flex: 1;
min-width: 0;
}
.topic-row-title {
font-size: 0.8rem;
font-weight: 600;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.topic-row-weight {
font-family: var(--font-mono);
font-size: 0.7rem;
color: #a5b4fc;
}
.topic-toggle-btn {
background: rgba(16, 185, 129, 0.15);
border: 1px solid rgba(16, 185, 129, 0.3);
color: #34d399;
border-radius: var(--radius-sm);
font-size: 0.7rem;
font-weight: 600;
padding: 4px 10px;
cursor: pointer;
}
.topic-toggle-btn.inactive {
background: rgba(255, 255, 255, 0.05);
border-color: var(--border-subtle);
color: var(--text-muted);
}
.nopes-list {
display: flex;
flex-direction: column;
gap: 8px;
}
.nope-item {
display: flex;
align-items: center;
justify-content: space-between;
background: rgba(244, 63, 94, 0.06);
border: 1px solid rgba(244, 63, 94, 0.18);
border-radius: var(--radius-md);
padding: 8px 12px;
font-size: 0.78rem;
}
.btn-unblock {
background: none;
border: 1px solid rgba(255, 255, 255, 0.15);
color: var(--text-secondary);
font-size: 0.7rem;
border-radius: var(--radius-sm);
padding: 3px 8px;
cursor: pointer;
}
.btn-unblock:hover {
background: rgba(255, 255, 255, 0.1);
color: #ffffff;
}
/* Modal Dialog */
.modal-overlay {
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.75);
backdrop-filter: blur(8px);
-webkit-backdrop-filter: blur(8px);
z-index: 150;
display: flex;
align-items: center;
justify-content: center;
padding: 16px;
}
.modal-dialog {
background: var(--bg-secondary);
border: 1px solid var(--border-subtle);
border-radius: var(--radius-xl);
width: 100%;
max-width: 480px;
box-shadow: 0 16px 48px rgba(0, 0, 0, 0.7);
overflow: hidden;
animation: modalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modalPop {
from { transform: scale(0.95); opacity: 0; }
to { transform: scale(1); opacity: 1; }
}
.modal-header {
padding: 18px 24px;
display: flex;
align-items: center;
justify-content: space-between;
border-bottom: 1px solid var(--border-subtle);
}
.modal-header h3 {
font-size: 1.1rem;
font-weight: 700;
}
.btn-close-modal {
background: none;
border: none;
font-size: 1.4rem;
color: var(--text-muted);
cursor: pointer;
}
.modal-body {
padding: 20px 24px;
display: flex;
flex-direction: column;
gap: 16px;
}
.form-group {
display: flex;
flex-direction: column;
gap: 6px;
}
.form-group label {
font-size: 0.78rem;
font-weight: 600;
color: var(--text-secondary);
}
.form-group input, .form-group select {
background: rgba(0, 0, 0, 0.35);
border: 1px solid var(--border-subtle);
border-radius: var(--radius-md);
padding: 9px 12px;
color: var(--text-primary);
font-family: var(--font-sans);
font-size: 0.85rem;
}
.form-group input:focus, .form-group select:focus {
outline: none;
border-color: var(--accent-indigo);
box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}
.form-group small {
font-size: 0.7rem;
color: var(--text-muted);
}
.modal-actions {
display: flex;
justify-content: flex-end;
gap: 10px;
margin-top: 10px;
}
/* Video Player Modal */
.player-overlay {
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.85);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
z-index: 200;
display: flex;
align-items: center;
justify-content: center;
padding: 24px;
}
.player-container {
background: var(--bg-secondary);
border: 1px solid var(--border-subtle);
border-radius: var(--radius-xl);
width: 100%;
max-width: 960px;
box-shadow: 0 24px 64px rgba(0, 0, 0, 0.8);
overflow: hidden;
display: flex;
flex-direction: column;
}
.player-header {
padding: 16px 20px;
display: flex;
align-items: center;
justify-content: space-between;
border-bottom: 1px solid var(--border-subtle);
}
.player-title-info h4 {
font-size: 0.96rem;
font-weight: 700;
}
.player-title-info span {
font-size: 0.75rem;
color: var(--text-muted);
}
.player-header-actions {
display: flex;
align-items: center;
gap: 12px;
}
.btn-icon-link {
color: var(--text-secondary);
display: flex;
padding: 4px;
}
.btn-icon-link:hover {
color: #38bdf8;
}
.btn-close-player {
background: none;
border: none;
color: var(--text-muted);
cursor: pointer;
display: flex;
padding: 4px;
}
.btn-close-player:hover {
color: var(--text-primary);
}
.player-video-wrap {
width: 100%;
aspect-ratio: 16 / 9;
background: #000000;
}
.player-video-wrap iframe {
width: 100%;
height: 100%;
display: block;
}
.player-footer {
padding: 14px 20px;
display: flex;
align-items: center;
justify-content: space-between;
border-top: 1px solid var(--border-subtle);
}
.player-footer-right {
display: flex;
gap: 8px;
}
/* Toast Notifications */
.toast-container {
position: fixed;
bottom: 24px;
right: 24px;
z-index: 300;
display: flex;
flex-direction: column;
gap: 10px;
pointer-events: none;
}
.toast {
background: var(--bg-card-hover);
border: 1px solid var(--border-subtle);
border-radius: var(--radius-md);
padding: 12px 18px;
display: flex;
align-items: center;
gap: 12px;
font-size: 0.82rem;
color: var(--text-primary);
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
pointer-events: auto;
animation: toastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes toastIn {
from { transform: translateY(20px); opacity: 0; }
to { transform: translateY(0); opacity: 1; }
}
.toast-btn-undo {
background: rgba(255, 255, 255, 0.1);
border: none;
border-radius: var(--radius-sm);
color: #a5b4fc;
font-weight: 700;
font-size: 0.72rem;
padding: 3px 8px;
cursor: pointer;
}
.hidden {
display: none !important;
}
/* Mobile Responsiveness */
@media (max-width: 900px) {
.app-header {
flex-wrap: wrap;
padding: 12px 16px;
}
.header-center {
order: 3;
width: 100%;
justify-content: center;
margin-top: 6px;
}
.topics-ribbon {
padding: 10px 16px;
}
.main-content {
padding: 16px 16px 40px;
}
.video-grid {
grid-template-columns: 1fr;
}
}