/* Base Styles */ :root { --primary: #1DB954; --primary-dark: #1aa34a; --background: #121212; --surface: #181818; --surface-hover: #282828; --text-primary: #ffffff; --text-secondary: #b3b3b3; --error: #e74c3c; --success: #2ecc71; --warning: #f39c12; --border-radius: 8px; --spacing: 16px; } * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; background-color: var(--background); color: var(--text-primary); line-height: 1.6; } /* Layout */ .app-container { display: flex; flex-direction: column; min-height: 100vh; } /* Header */ .app-header { background-color: rgba(18, 18, 18, 0.8); backdrop-filter: blur(10px); padding: var(--spacing); position: sticky; top: 0; z-index: 100; border-bottom: 1px solid rgba(255, 255, 255, 0.1); } /* Search */ .search-container { display: flex; gap: 8px; max-width: 800px; margin: 0 auto; width: 100%; } #search-input { flex: 1; padding: 12px 16px; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: var(--border-radius); background: rgba(255, 255, 255, 0.1); color: var(--text-primary); font-size: 16px; } #search-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 2px rgba(29, 185, 84, 0.3); } #search-button { padding: 0 20px; background: var(--primary); color: white; border: none; border-radius: var(--border-radius); cursor: pointer; transition: background 0.2s; } #search-button:hover { background: var(--primary-dark); } /* Results */ .results-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--spacing); padding: var(--spacing); } .result-item { background: var(--surface); border-radius: var(--border-radius); overflow: hidden; transition: transform 0.2s; cursor: pointer; } .result-item:hover { transform: translateY(-4px); background: var(--surface-hover); } .result-image { width: 100%; padding-bottom: 100%; position: relative; background: #282828; } .result-image img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; } .result-info { padding: 12px; } .result-title { font-weight: 600; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .result-subtitle { font-size: 14px; color: var(--text-secondary); margin-bottom: 8px; } /* Downloads */ .downloads-list { padding: var(--spacing); } .download-item { background: var(--surface); border-radius: var(--border-radius); padding: var(--spacing); margin-bottom: 8px; display: flex; align-items: center; gap: 12px; } .download-icon { width: 40px; height: 40px; background: rgba(255, 255, 255, 0.1); border-radius: 4px; display: flex; align-items: center; justify-content: center; color: var(--primary); } .download-details { flex: 1; min-width: 0; } .download-name { font-weight: 500; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .progress-container { margin-top: 8px; height: 4px; background: rgba(255, 255, 255, 0.1); border-radius: 2px; overflow: hidden; } .progress-bar { height: 100%; background: var(--primary); width: 0%; transition: width 0.3s; } .progress-text { font-size: 12px; color: var(--text-secondary); margin-top: 4px; } /* Buttons */ .btn { padding: 8px 16px; border: none; border-radius: 4px; cursor: pointer; font-weight: 500; transition: all 0.2s; } .btn-primary { background: var(--primary); color: white; } .btn-danger { background: var(--error); color: white; } /* Toast */ .toast { position: fixed; bottom: 20px; right: 20px; background: var(--surface); color: white; padding: 12px 24px; border-radius: 4px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); transform: translateY(100px); opacity: 0; transition: all 0.3s ease; z-index: 1000; } .toast.show { transform: translateY(0); opacity: 1; } /* Connection Status */ .connection-status { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-secondary); } .status-dot { width: 10px; height: 10px; border-radius: 50%; background: #666; } .status-dot.connected { background: var(--success); box-shadow: 0 0 10px var(--success); } /* Loading */ .loading-indicator { display: flex; justify-content: center; align-items: center; padding: 40px; color: var(--text-secondary); } .spinner { width: 24px; height: 24px; border: 3px solid rgba(255, 255, 255, 0.1); border-radius: 50%; border-top-color: var(--primary); animation: spin 1s ease-in-out infinite; margin-right: 12px; } @keyframes spin { to { transform: rotate(360deg); } } /* Responsive */ @media (max-width: 768px) { .results-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); } .search-container { flex-direction: column; } #search-button { width: 100%; padding: 12px; } }