.login-page{min-height:100vh;display:flex;align-items:center;justify-content:center;background:#fafaf9}.login-card{width:100%;max-width:380px;background:#fff;border:1px solid #e7e5e4;border-radius:12px;padding:2rem;box-shadow:0 4px 16px #0000000f}.login-title{font-size:1.5rem;font-weight:700;color:#1c1917;margin:0 0 .25rem;letter-spacing:-.01em}.login-subtitle{font-size:.9375rem;font-weight:400;color:#78716c;margin:0 0 1.75rem}.login-form{display:flex;flex-direction:column;gap:1rem}.login-field{display:flex;flex-direction:column;gap:.375rem}.login-field label{font-size:.8125rem;font-weight:500;color:#57534e}.login-field input{padding:.5625rem .75rem;border:1px solid #d6d3d1;border-radius:6px;font-size:.9375rem;color:#1c1917;background:#fafaf9;outline:none;transition:border-color .15s,box-shadow .15s;font-family:inherit}.login-field input:focus{border-color:#6366f1;background:#fff;box-shadow:0 0 0 3px #6366f114}.login-error{font-size:.875rem;color:#dc2626;background:#fef2f2;border:1px solid #fecaca;border-radius:6px;padding:.5rem .75rem}.login-btn{padding:.625rem 1rem;background:#6366f1;color:#fff;border:none;border-radius:6px;font-size:.9375rem;font-weight:500;cursor:pointer;transition:background .15s;font-family:inherit;margin-top:.25rem}.login-btn:hover:not(:disabled){background:#4f46e5}.login-btn:disabled{opacity:.6;cursor:not-allowed}.modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background-color:#00000080;display:flex;align-items:center;justify-content:center;z-index:1000;padding:1rem}.modal-content{background:#fff;border-radius:8px;width:100%;max-width:600px;max-height:90vh;display:flex;flex-direction:column;box-shadow:0 4px 6px #0000001a}.scraping-result-modal{max-width:700px}.modal-header{display:flex;justify-content:space-between;align-items:center;padding:1.5rem;border-bottom:1px solid #e5e7eb}.modal-header h2{margin:0;font-size:1.5rem;font-weight:600}.modal-close{background:none;border:none;font-size:2rem;line-height:1;cursor:pointer;color:#6b7280;padding:0;width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:4px;transition:background-color .2s}.modal-close:hover{background-color:#f3f4f6;color:#111827}.modal-body{padding:1.5rem;overflow-y:auto;flex:1}.modal-footer{padding:1rem 1.5rem;border-top:1px solid #e5e7eb;display:flex;justify-content:flex-end;gap:.5rem}.result-error{background-color:#fee2e2;color:#991b1b;padding:1rem;border-radius:4px;margin-bottom:1rem}.result-section{margin-bottom:2rem}.result-section:last-child{margin-bottom:0}.result-section h3{font-size:.875rem;font-weight:600;text-transform:uppercase;letter-spacing:.05em;color:#6b7280;margin:0 0 1rem}.result-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:.75rem}.stat-item{display:flex;justify-content:space-between;align-items:center;padding:.75rem;background-color:#f9fafb;border-radius:4px}.stat-item.highlight{background-color:#eef2ff;border:1px solid #c7d2fe}.stat-label{font-size:.875rem;color:#6b7280}.stat-value{font-size:1.125rem;font-weight:600;color:#111827}.stat-item.highlight .stat-value{color:#4f46e5}.history-list{display:flex;flex-direction:column;gap:.5rem}.history-item{padding:.75rem;border-radius:4px;border:1px solid #e5e7eb}.history-item.success{background-color:#f0fdf4;border-color:#bbf7d0}.history-item.error{background-color:#fef2f2;border-color:#fecaca}.history-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:.25rem}.history-status{font-size:1rem;font-weight:600}.history-item.success .history-status{color:#16a34a}.history-item.error .history-status{color:#dc2626}.history-date{font-size:.75rem;color:#6b7280}.history-stats{display:flex;gap:1rem;font-size:.875rem;color:#374151}.history-cost{color:#4f46e5;font-weight:500}.history-error{color:#dc2626}@media (max-width: 640px){.result-stats{grid-template-columns:1fr}.modal-header h2{font-size:1.25rem}}.source-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(350px,1fr));gap:1.5rem}.source-card{background-color:#fff;border:1px solid #e7e5e4;border-radius:12px;padding:1.25rem;transition:all .2s ease;box-shadow:0 1px 2px #0000000a}.source-card:hover{border-color:#d6d3d1;box-shadow:0 2px 8px #00000014;transform:translateY(-1px)}.source-card.inactive{opacity:.6}.source-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:1rem;gap:1rem}.source-header h3{margin:0;font-size:1.25rem;flex:1}.source-badge{padding:.25rem .75rem;border-radius:12px;font-size:.75rem;font-weight:600;text-transform:uppercase;white-space:nowrap}.source-badge.reddit{background-color:#ff4500;color:#fff}.source-badge.blog{background-color:#28a745;color:#fff}.source-badge.file_repository{background-color:#ffc107;color:#000}.source-badge.store{background-color:#17a2b8;color:#fff}.source-badge.other{background-color:#6c757d;color:#fff}.source-url{margin-bottom:1rem;font-size:.9rem}.source-url a{color:#4f46e5;text-decoration:none;word-break:break-all}.source-url a:hover{text-decoration:underline;color:#4338ca}.source-meta{display:flex;flex-direction:column;gap:.5rem;margin-bottom:1rem;font-size:.85rem;color:#6b7280}.source-badges{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem}.source-info{font-size:.8125rem;color:#78716c}.recurring-badge{padding:.25rem .5rem;border-radius:4px;font-size:.75rem;font-weight:600}.recurring-badge.recurring{background-color:#eef2ff;color:#4f46e5;border:1px solid #c7d2fe}.recurring-badge.one-off{background-color:#f3f4f6;color:#6b7280;border:1px solid #e5e7eb}.frequency-badge{padding:.25rem .5rem;border-radius:4px;font-size:.75rem;background-color:#d1fae5;color:#065f46;border:1px solid #a7f3d0;text-transform:capitalize}.source-meta .status{padding:.25rem .5rem;border-radius:4px;font-weight:600}.source-meta .status.active{background-color:#d1fae5;color:#065f46;border:1px solid #a7f3d0}.source-meta .status.inactive{background-color:#f3f4f6;color:#6b7280;border:1px solid #e5e7eb}.scrape-status{padding:.75rem;border-radius:4px;margin-bottom:1rem;display:flex;align-items:center;gap:.5rem;font-size:.875rem}.scrape-status.success{background-color:#d1fae5;color:#065f46;border:1px solid #a7f3d0}.scrape-status.error{background-color:#fee2e2;color:#991b1b;border:1px solid #fecaca}.scrape-status .status-icon{font-weight:700;font-size:1rem}.scraped-title-suggestion{background-color:#eef2ff;border:1px solid #c7d2fe;border-radius:4px;padding:1rem;margin-bottom:1rem}.suggestion-header{display:flex;align-items:center;gap:.5rem;margin-bottom:.5rem;font-size:.875rem;color:#6b7280}.suggestion-icon{font-size:1rem}.suggestion-title{color:#1a1a1a;font-weight:500;margin-bottom:.75rem;padding:.5rem;background-color:#f9fafb;border:1px solid #e5e7eb;border-radius:4px;font-style:italic}.suggestion-actions{display:flex;gap:.5rem}.scrape-error{background-color:#fee2e2;color:#991b1b;border:1px solid #fecaca;border-radius:4px;padding:.75rem;margin-bottom:1rem;display:flex;align-items:center;gap:.5rem;font-size:.875rem}.source-actions{display:flex;gap:.5rem;flex-wrap:wrap}.btn-sm{padding:.5rem 1rem;font-size:.875rem}.empty-state{text-align:center;padding:3rem;color:#6b7280;background-color:#fff;border:2px dashed #d1d5db;border-radius:8px}.empty-state p{margin:0;font-size:1.1rem}@media (max-width: 768px){.source-list{grid-template-columns:1fr}}.source-form{width:100%}.source-form h3{margin:0 0 1.5rem;font-size:1.5rem}.form-error{background-color:#fee2e2;color:#991b1b;padding:.75rem;border-radius:4px;margin-bottom:1rem;font-size:.9rem;border:1px solid #fecaca}.form-group{margin-bottom:1.25rem}.form-group label{display:block;margin-bottom:.5rem;font-weight:500;color:#374151}.form-group input[type=text],.form-group input[type=url],.form-group select{width:100%;padding:.75rem;background-color:#fff;border:1px solid #d1d5db;border-radius:4px;color:#1a1a1a;font-size:1rem;transition:border-color .2s}.form-group input:focus,.form-group select:focus{outline:none;border-color:#4f46e5;box-shadow:0 0 0 3px #4f46e51a}.form-group input::placeholder{color:#9ca3af}.form-group-checkbox{margin-bottom:1.5rem}.form-group-checkbox label{display:flex;align-items:center;cursor:pointer;-webkit-user-select:none;user-select:none}.form-group-checkbox input[type=checkbox]{width:auto;margin-right:.5rem;cursor:pointer}.form-group-checkbox span{font-weight:500}.form-actions{display:flex;gap:1rem;justify-content:flex-end;margin-top:1.5rem}@media (max-width: 768px){.form-actions{flex-direction:column-reverse}.form-actions button{width:100%}}.sources-page{width:100%}.sources-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:2rem}.sources-header h2{margin:0;font-size:2rem}.btn{padding:.5rem 1rem;border:1px solid transparent;border-radius:6px;font-size:.875rem;cursor:pointer;transition:all .15s ease;font-weight:500;white-space:nowrap;display:inline-flex;align-items:center;gap:.375rem}.btn:disabled{opacity:.5;cursor:not-allowed}.btn-primary{background-color:#6366f1;color:#fff;border-color:#6366f1;box-shadow:0 1px 2px #6366f11a}.btn-primary:hover:not(:disabled){background-color:#4f46e5;border-color:#4f46e5;box-shadow:0 1px 3px #6366f133}.btn-secondary{background-color:#fff;color:#57534e;border-color:#e7e5e4;box-shadow:0 1px 2px #0000000a}.btn-secondary:hover:not(:disabled){background-color:#fafaf9;border-color:#d6d3d1;box-shadow:0 1px 3px #00000014}.btn-danger{background-color:#fff;color:#dc2626;border-color:#fecaca;box-shadow:0 1px 2px #dc26260d}.btn-danger:hover:not(:disabled){background-color:#fef2f2;border-color:#fca5a5;color:#b91c1c;box-shadow:0 1px 3px #dc26261f}.btn-sm{padding:.375rem .75rem;font-size:.8125rem}.btn-link{background:none;border:none;color:#6366f1;padding:0;cursor:pointer;font-size:inherit;font-weight:500;transition:color .15s ease}.btn-link:hover:not(:disabled){color:#4f46e5;text-decoration:underline}.error-message{background-color:#fee2e2;color:#991b1b;padding:1rem;border-radius:4px;margin-bottom:1rem;border:1px solid #fecaca}.loading{text-align:center;padding:2rem;color:#6b7280;font-size:1.1rem}.form-container{background-color:#fff;border:1px solid #e5e7eb;border-radius:8px;padding:1.5rem;margin-bottom:2rem;box-shadow:0 1px 3px #0000000d}@media (max-width: 768px){.sources-header{flex-direction:column;align-items:flex-start;gap:1rem}.sources-header h2{font-size:1.5rem}}.dropdown-menu-container{position:relative;display:inline-block}.dropdown-trigger{min-width:2rem;padding:.375rem .5rem;display:flex;align-items:center;justify-content:center}.dropdown-icon{font-size:1.125rem;line-height:1;font-weight:700;color:#57534e}.dropdown-menu{position:absolute;top:calc(100% + .25rem);background-color:#fff;border:1px solid #e7e5e4;border-radius:6px;box-shadow:0 4px 12px #0000001a;min-width:160px;z-index:1000;padding:.25rem 0;animation:dropdown-fade-in .15s ease}.dropdown-menu-right{right:0}.dropdown-menu-left{left:0}@keyframes dropdown-fade-in{0%{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}.dropdown-item{width:100%;padding:.5rem .875rem;border:none;background:none;text-align:left;cursor:pointer;font-size:.875rem;font-weight:500;color:#1c1917;transition:background-color .15s ease;display:flex;align-items:center;gap:.5rem;white-space:nowrap}.dropdown-item:hover{background-color:#fafaf9}.dropdown-item-danger{color:#dc2626}.dropdown-item-danger:hover{background-color:#fef2f2}.dropdown-item-icon{font-size:1rem;width:1.25rem;text-align:center}.dropdown-item-label{flex:1}@media (max-width: 768px){.dropdown-menu{min-width:140px}.dropdown-item{padding:.625rem .875rem;font-size:.9375rem}}.preview-player{background:#fafaf9;border:1px solid #e7e5e4;border-radius:6px;padding:.75rem;margin-top:.75rem}.preview-player-controls{display:flex;align-items:center;gap:.75rem}.preview-play-button{width:36px;height:36px;border-radius:50%;border:none;background:#6366f1;color:#fff;font-size:1rem;cursor:pointer;display:flex;align-items:center;justify-content:center;flex-shrink:0;transition:background .15s ease}.preview-play-button:hover{background:#4f46e5}.preview-play-button:active{transform:scale(.95)}.preview-progress{flex:1;display:flex;flex-direction:column;gap:.25rem}.preview-slider{width:100%;height:4px;border-radius:2px;background:#e7e5e4;outline:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.preview-slider::-webkit-slider-thumb{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:12px;height:12px;border-radius:50%;background:#6366f1;cursor:pointer}.preview-slider::-moz-range-thumb{width:12px;height:12px;border-radius:50%;background:#6366f1;cursor:pointer;border:none}.preview-time{display:flex;justify-content:space-between;font-size:.75rem;color:#78716c;font-variant-numeric:tabular-nums}.preview-duration{color:#a8a29e}.preview-info{margin-top:.5rem;padding-top:.5rem;border-top:1px solid #e7e5e4}.preview-label{font-size:.75rem;color:#78716c;font-weight:500}@media (max-width: 640px){.preview-player{padding:.625rem}.preview-play-button{width:32px;height:32px;font-size:.875rem}}.album-card{background-color:#fff;border:1px solid #e7e5e4;border-radius:12px;padding:1.25rem;transition:all .2s ease;display:flex;flex-direction:column;gap:1rem;box-shadow:0 1px 2px #0000000a}.album-card:hover{border-color:#d6d3d1;box-shadow:0 2px 8px #00000014;transform:translateY(-1px)}.album-artwork{width:100%;aspect-ratio:1;overflow:hidden;border-radius:8px;background-color:#f5f5f4;box-shadow:0 1px 3px #0000001a}.album-artwork img{width:100%;height:100%;object-fit:cover}.album-artwork-placeholder{width:100%;aspect-ratio:1;border-radius:8px;background-color:#fafaf9;border:1px dashed #d6d3d1;display:flex;align-items:center;justify-content:center;padding:1rem}.album-artwork-placeholder.enriching{background:linear-gradient(135deg,#f9fafb,#f3f4f6);border:1px solid #e5e7eb;animation:pulse 2s ease-in-out infinite}@keyframes pulse{0%,to{opacity:1}50%{opacity:.7}}.artwork-status{display:flex;flex-direction:column;align-items:center;gap:.5rem;text-align:center}.status-icon{font-size:2rem}.status-text{font-size:.8125rem;color:#78716c;font-weight:500}.status-error{font-size:.6875rem;color:#dc2626;margin-top:.25rem}.album-header{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem}.album-info{flex:1}.album-title{margin:0 0 .375rem;font-size:1.125rem;font-weight:600;color:#1c1917;line-height:1.4;letter-spacing:-.01em}.album-artist{margin:0 0 .5rem;color:#57534e;font-size:.9375rem;font-weight:500}.album-details{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:.5rem}.album-year,.album-label,.album-subgenre{padding:.25rem .625rem;border-radius:6px;font-size:.6875rem;font-weight:500;letter-spacing:.01em;background-color:#f5f5f4;color:#78716c;border:none}.album-year{background-color:#dbeafe;color:#1e40af}.album-label{background-color:#fef3c7;color:#92400e}.album-subgenre{background-color:#d1fae5;color:#065f46}.album-badges{display:flex;flex-direction:column;align-items:flex-end;gap:.375rem;flex-shrink:0}.badge-new{padding:.25rem .625rem;border-radius:6px;font-size:.6875rem;font-weight:600;background-color:#ecfdf5;color:#065f46;letter-spacing:.03em;text-transform:uppercase}.confidence-badge{padding:.25rem .625rem;border-radius:6px;font-size:.6875rem;font-weight:500;text-transform:capitalize;white-space:nowrap;letter-spacing:.01em}.confidence-high{background-color:#d1fae5;color:#065f46}.confidence-medium{background-color:#fef3c7;color:#92400e}.confidence-low{background-color:#f5f5f4;color:#78716c}.album-meta{display:flex;flex-direction:column;gap:.375rem;font-size:.8125rem}.meta-item{display:flex;gap:.5rem}.meta-label{color:#a8a29e;font-weight:500;min-width:85px;font-size:.8125rem}.meta-value{color:#57534e;font-size:.8125rem}.meta-link{color:#4f46e5;text-decoration:none;font-size:.8125rem;transition:color .2s}.meta-link:hover{color:#4338ca;text-decoration:underline}.apple-music-link{font-weight:500;color:#6366f1}.apple-music-link:hover{color:#4f46e5}.album-status{padding-top:.75rem;border-top:1px solid #f5f5f4}.status-badge{display:inline-block;padding:.375rem .75rem;border-radius:6px;font-size:.8125rem;font-weight:500;text-transform:capitalize}.status-badge.want_to_listen{background-color:#dbeafe;color:#1e40af}.status-badge.acquired{background-color:#fef3c7;color:#92400e}.status-badge.listened{background-color:#d1fae5;color:#065f46}.status-badge.not_interested{background-color:#f5f5f4;color:#78716c}.album-download-sources{padding-top:.75rem;border-top:1px solid #f5f5f4}.download-sources-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:.5rem}.download-sources-list{list-style:none;padding:0;margin:.5rem 0 0;display:flex;flex-direction:column;gap:.375rem}.download-source-item{display:flex;justify-content:space-between;align-items:center;padding:.375rem .5rem;background-color:#fafaf9;border:1px solid #e7e5e4;border-radius:6px;font-size:.8125rem}.download-source-info{display:flex;align-items:center;gap:.5rem}.download-source-name{color:#57534e;font-weight:500}.download-source-url{text-decoration:none;font-size:.875rem;opacity:.7;transition:opacity .2s}.download-source-url:hover{opacity:1}.download-source-item .btn-link{padding:0;font-size:1.25rem;line-height:1;color:#a8a29e}.download-source-item .btn-link:hover{color:#dc2626}.add-download-source-form{margin-top:.75rem;display:flex;flex-direction:column;gap:.5rem}.download-source-select,.download-source-url-input{width:100%;padding:.5rem;border:1px solid #e7e5e4;border-radius:6px;font-size:.875rem;background-color:#fff;color:#1c1917;transition:border-color .2s}.download-source-select:focus,.download-source-url-input:focus{outline:none;border-color:#4f46e5}.download-source-actions{display:flex;gap:.5rem}.artwork-url-form{display:flex;flex-direction:column;gap:.5rem;margin-top:.75rem;width:100%}.artwork-url-form input[type=url]{width:100%;padding:.5rem;border:1px solid #e7e5e4;border-radius:6px;font-size:.875rem;background-color:#fff;color:#1c1917;transition:border-color .2s}.artwork-url-form input[type=url]:focus{outline:none;border-color:#4f46e5}.artwork-url-form input[type=url]:disabled{background-color:#f5f5f4;cursor:not-allowed}.artwork-url-actions{display:flex;gap:.5rem}.album-actions{margin-top:auto;display:flex;gap:.5rem;flex-wrap:nowrap;padding-top:.5rem;align-items:center}.album-actions .btn:not(.dropdown-trigger){flex:0 1 auto}.album-actions .dropdown-menu-container{margin-left:auto}.album-actions a.btn{text-decoration:none;text-align:center;display:inline-flex;align-items:center;justify-content:center}.album-preview-section{padding-top:.75rem;border-top:1px solid #f5f5f4;display:flex;flex-direction:column}@media (max-width: 768px){.album-card{padding:1rem}.album-title{font-size:1.1rem}}.modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background-color:#00000080;display:flex;align-items:center;justify-content:center;z-index:1000}.modal-content{background-color:#fff;border-radius:12px;padding:2rem;max-width:500px;width:90%;max-height:90vh;overflow-y:auto;box-shadow:0 10px 40px #0003}.modal-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1.5rem}.modal-header h2{margin:0;font-size:1.5rem;color:#1c1917}.modal-close{background:none;border:none;font-size:2rem;color:#a8a29e;cursor:pointer;padding:0;width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:6px;transition:background-color .2s,color .2s}.modal-close:hover{background-color:#f5f5f4;color:#57534e}.add-album-form{display:flex;flex-direction:column;gap:1.25rem}.form-group{display:flex;flex-direction:column;gap:.5rem}.form-group label{font-size:.875rem;font-weight:500;color:#57534e}.form-group input{padding:.75rem;border:1px solid #e7e5e4;border-radius:6px;font-size:.9375rem;color:#1c1917;background-color:#fff;transition:border-color .2s,box-shadow .2s}.form-group input:focus{outline:none;border-color:#6366f1;box-shadow:0 0 0 3px #6366f11a}.form-group input:disabled{background-color:#fafaf9;cursor:not-allowed}.form-group input::placeholder{color:#a8a29e}.modal-actions{display:flex;gap:.75rem;justify-content:flex-end;margin-top:.5rem}@media (max-width: 768px){.modal-content{padding:1.5rem}.modal-header h2{font-size:1.25rem}.modal-actions{flex-direction:column-reverse}.modal-actions button{width:100%}}.discovery-page{width:100%}.discovery-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:2rem;flex-wrap:wrap;gap:1rem}.discovery-title-section{display:flex;align-items:center;gap:1rem;flex-wrap:wrap}.discovery-header h2{margin:0;font-size:2rem}.source-filter-badge{display:flex;align-items:center;gap:.5rem;padding:.375rem .75rem;background:#f3f4f6;border:1px solid #e5e7eb;border-radius:6px;font-size:.875rem;color:#57534e}.source-filter-badge button{padding:0;margin-left:.25rem;font-size:1.25rem;line-height:1;color:#78716c}.source-filter-badge button:hover{color:#1c1917}.discovery-controls{display:flex;gap:.5rem;align-items:center;flex-wrap:wrap}.search-input{padding:.5rem .875rem;background-color:#fff;border:1px solid #e7e5e4;border-radius:6px;color:#1c1917;font-size:.875rem;min-width:250px;transition:all .15s ease;box-shadow:0 1px 2px #0000000a}.search-input:focus{outline:none;border-color:#a8a29e;box-shadow:0 0 0 3px #a8a29e1a}.search-input::placeholder{color:#a8a29e}.sort-select{padding:.5rem .875rem;background-color:#fff;border:1px solid #e7e5e4;border-radius:6px;color:#1c1917;font-size:.875rem;cursor:pointer;transition:all .15s ease;box-shadow:0 1px 2px #0000000a}.sort-select:focus{outline:none;border-color:#a8a29e;box-shadow:0 0 0 3px #a8a29e1a}.pagination{display:flex;justify-content:center;align-items:center;gap:1rem;margin-top:2rem}.page-info{color:#78716c;font-size:.875rem;font-weight:500}@media (max-width: 768px){.discovery-header{flex-direction:column;align-items:flex-start}.discovery-header h2{font-size:1.5rem}.discovery-controls{width:100%}.search-input{width:100%;min-width:unset}.album-grid{grid-template-columns:1fr}.pagination{flex-direction:column}}.library-page{width:100%}.library-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1.5rem;flex-wrap:wrap;gap:1rem}.library-header h2{margin:0;font-size:2rem}.library-header-actions{display:flex;gap:.75rem}.library-controls-row{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem}.library-controls{display:flex;gap:.5rem;align-items:center;flex-wrap:wrap}.sort-select{padding:.5rem .75rem;border:1px solid #e7e5e4;border-radius:6px;font-size:.875rem;background-color:#fff;color:#57534e;cursor:pointer;transition:border-color .2s}.sort-select:focus{outline:none;border-color:#6366f1}.status-filters{display:flex;gap:.5rem;margin-bottom:2rem;flex-wrap:wrap;padding:.5rem;background-color:#fff;border-radius:8px;border:1px solid #e7e5e4}.filter-btn{padding:.5rem 1rem;border:1px solid #e7e5e4;border-radius:6px;background-color:#fff;color:#57534e;font-size:.875rem;font-weight:500;cursor:pointer;transition:all .15s ease;white-space:nowrap}.filter-btn:hover{background-color:#fafaf9;border-color:#d6d3d1}.filter-btn.active{background-color:#6366f1;color:#fff;border-color:#6366f1}.album-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:1.5rem;margin-bottom:2rem}.empty-state{text-align:center;padding:3rem;color:#78716c;background-color:#fff;border:2px dashed #d6d3d1;border-radius:12px}.empty-state p{margin:.5rem 0;font-size:1rem}.empty-state p:first-child{font-size:1.125rem;font-weight:500;color:#57534e}.loading{text-align:center;padding:2rem;color:#78716c;font-size:1rem}.error-message{background-color:#fee2e2;color:#991b1b;padding:1rem;border-radius:6px;margin-bottom:1rem;border:1px solid #fecaca}@media (max-width: 768px){.library-header{flex-direction:column;align-items:flex-start}.library-header h2{font-size:1.5rem}.library-controls{width:100%}.status-filters{flex-direction:column}.filter-btn{width:100%}.album-grid{grid-template-columns:1fr}}.admin-page{max-width:1200px;margin:0 auto;padding:2rem}.admin-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:2rem}.admin-header h2{margin:0}.section-title{font-size:1rem;font-weight:600;color:#57534e;text-transform:uppercase;letter-spacing:.05em;margin:2rem 0 1rem}.stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1rem;margin-bottom:2rem}.stat-card{background:#fff;border:1px solid #e7e5e4;border-radius:8px;padding:1.25rem;box-shadow:0 1px 2px #00000008}.stat-card-primary{background:linear-gradient(135deg,#6366f1,#4f46e5);color:#fff;border:none}.stat-card-primary .stat-label{color:#ffffffe6}.stat-label{font-size:.8125rem;font-weight:500;color:#78716c;text-transform:capitalize;margin-bottom:.5rem}.stat-value{font-size:1.75rem;font-weight:600;color:#1c1917;line-height:1.2}.stat-card-primary .stat-value{color:#fff}.stat-detail{font-size:.8125rem;color:#a8a29e;margin-top:.375rem}.stat-card-primary .stat-detail{color:#fffc}.operations-table{background:#fff;border:1px solid #e7e5e4;border-radius:8px;overflow:hidden;box-shadow:0 1px 2px #00000008}.operations-table table{width:100%;border-collapse:collapse}.operations-table thead{background:#fafaf9;border-bottom:1px solid #e7e5e4}.operations-table th{text-align:left;padding:.875rem 1rem;font-size:.8125rem;font-weight:600;color:#57534e;text-transform:capitalize}.operations-table td{padding:.875rem 1rem;font-size:.875rem;color:#1c1917;border-top:1px solid #f5f5f4}.operations-table tbody tr:hover{background:#fafaf9}.status-badge{display:inline-block;padding:.25rem .625rem;border-radius:4px;font-size:.75rem;font-weight:500;text-transform:capitalize}.status-success{background:#d1fae5;color:#065f46}.status-failed{background:#fee2e2;color:#991b1b}.status-neutral{background:#f5f5f4;color:#57534e}.qs-state-active{background:#d1fae5;color:#065f46}.qs-state-queued{background:#dbeafe;color:#1e40af}.qs-state-overdue{background:#fee2e2;color:#991b1b}.qs-state-pending{background:#f5f5f4;color:#57534e}.section-error{font-size:.875rem;color:#991b1b;background:#fef2f2;border:1px solid #fecaca;border-radius:6px;padding:.625rem .875rem;margin-bottom:.75rem}.queue-health{display:flex;gap:.5rem;flex-wrap:wrap;margin-bottom:1rem}.queue-chip{display:inline-flex;align-items:center;gap:.3rem;padding:.3rem .75rem;border-radius:20px;font-size:.8125rem}.queue-chip-active{background:#d1fae5;color:#065f46}.queue-chip-waiting{background:#dbeafe;color:#1e40af}.queue-chip-done{background:#f5f5f4;color:#57534e}.queue-chip-failed{background:#fee2e2;color:#991b1b}.section-subtitle{font-size:.75rem;font-weight:400;color:#a8a29e;text-transform:none;letter-spacing:0;margin-left:.75rem}.freq-badge{display:inline-block;padding:.15rem .5rem;border-radius:4px;font-size:.75rem;font-weight:500;background:#f0f9ff;color:#0369a1}.row-inactive{opacity:.55}.inactive-tag{font-size:.75rem;color:#a8a29e}.subsection-title{font-size:.875rem;font-weight:600;color:#78716c;margin:1.5rem 0 .75rem}.section-description{font-size:.875rem;color:#78716c;margin:-.5rem 0 1rem;line-height:1.5}.audit-list{display:flex;flex-direction:column;gap:.5rem;margin-bottom:2rem}.audit-item{background:#fff;border:1px solid #e7e5e4;border-radius:8px;overflow:hidden;box-shadow:0 1px 2px #00000008}.audit-item--expanded{border-color:#c7d2fe}.audit-item-header{width:100%;display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.875rem 1rem;background:none;border:none;cursor:pointer;text-align:left;transition:background .1s}.audit-item-header:hover{background:#fafaf9}.audit-item--expanded .audit-item-header{background:#eef2ff;border-bottom:1px solid #c7d2fe}.audit-item-meta{display:flex;align-items:center;gap:.625rem;flex:1;min-width:0}.audit-source-badge{flex-shrink:0;font-size:.75rem;font-weight:600;color:#6366f1;background:#eef2ff;padding:.1875rem .5rem;border-radius:4px}.audit-title{font-size:.875rem;color:#1c1917;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.audit-item-stats{display:flex;align-items:center;gap:.875rem;flex-shrink:0}.audit-stat{font-size:.8125rem;color:#78716c;white-space:nowrap}.audit-stat-created{color:#059669;font-weight:500}.audit-date{font-size:.8125rem;color:#a8a29e;white-space:nowrap}.audit-chevron{font-size:.625rem;color:#a8a29e}.audit-item-body{padding:1rem 1.25rem 1.25rem;border-top:1px solid #e7e5e4}.audit-source-link{display:inline-block;font-size:.8125rem;color:#6366f1;text-decoration:none;margin-bottom:1rem}.audit-source-link:hover{text-decoration:underline}.audit-empty{font-size:.875rem;color:#a8a29e;margin:0}.audit-discoveries{display:flex;flex-direction:column;gap:.875rem}.audit-discovery{padding:.875rem;background:#fafaf9;border:1px solid #f5f5f4;border-radius:6px}.audit-discovery-header{display:flex;align-items:center;justify-content:space-between;gap:.75rem;margin-bottom:.5rem}.audit-discovery-title{font-size:.9375rem;font-weight:600;color:#1c1917}.audit-confidence{flex-shrink:0;font-size:.75rem;font-weight:600;padding:.1875rem .5rem;border-radius:4px}.confidence-high{background:#d1fae5;color:#065f46}.confidence-medium{background:#fef9c3;color:#854d0e}.confidence-low{background:#fee2e2;color:#991b1b}.audit-context{font-size:.875rem;color:#44403c;line-height:1.55;margin:0 0 .5rem}.audit-evidence{display:flex;flex-wrap:wrap;gap:.75rem}.audit-evidence-item{font-size:.8125rem;color:#78716c}.loading,.empty-state{text-align:center;padding:3rem;color:#78716c}.error-message{background:#fee2e2;color:#991b1b;padding:1rem;border-radius:6px;border:1px solid #fecaca}@media (max-width: 768px){.admin-page{padding:1rem}.stats-grid{grid-template-columns:1fr}.operations-table{overflow-x:auto}.operations-table table{min-width:600px}}.download-sources-page{max-width:900px;margin:0 auto;padding:2rem}.ds-header{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem;margin-bottom:2rem}.ds-header h2{margin:0 0 .25rem}.ds-subtitle{font-size:.875rem;color:#78716c;margin:0;line-height:1.5}.ds-form{background:#fff;border:1px solid #c7d2fe;border-radius:10px;padding:1.25rem 1.5rem;margin-bottom:1.5rem;box-shadow:0 1px 3px #0000000a}.ds-form-title{font-size:.9375rem;font-weight:600;color:#1c1917;margin:0 0 1rem}.ds-form-row{display:grid;grid-template-columns:1fr auto;gap:1rem;align-items:end}.ds-field{display:flex;flex-direction:column;gap:.375rem;margin-bottom:.875rem}.ds-field--type{min-width:140px}.ds-field label{font-size:.8125rem;font-weight:500;color:#57534e}.ds-optional{font-weight:400;color:#a8a29e}.ds-field input,.ds-field select,.ds-field textarea{padding:.5rem .75rem;border:1px solid #d6d3d1;border-radius:6px;font-size:.875rem;color:#1c1917;background:#fafaf9;outline:none;transition:border-color .15s;font-family:inherit}.ds-field input:focus,.ds-field select:focus,.ds-field textarea:focus{border-color:#6366f1;background:#fff;box-shadow:0 0 0 3px #6366f114}.ds-field textarea{resize:vertical;min-height:3rem}.ds-form-error{font-size:.875rem;color:#dc2626;margin-bottom:.75rem}.ds-form-actions{display:flex;gap:.5rem}.ds-list{display:flex;flex-direction:column;gap:.5rem}.ds-item{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.875rem 1rem;background:#fff;border:1px solid #e7e5e4;border-radius:8px;box-shadow:0 1px 2px #00000008;transition:box-shadow .15s}.ds-item:hover{box-shadow:0 2px 6px #0000000f}.ds-item--editing{border-color:#c7d2fe;background:#eef2ff}.ds-item-main{flex:1;min-width:0}.ds-item-name{display:flex;align-items:center;gap:.5rem;font-size:.9375rem;font-weight:500;color:#1c1917}.ds-item-name a{color:#1c1917;text-decoration:none}.ds-item-name a:hover{color:#6366f1;text-decoration:underline}.ds-item-notes{font-size:.8125rem;color:#78716c;margin-top:.25rem}.ds-item-actions{display:flex;gap:.5rem;flex-shrink:0}.ds-type-badge{font-size:.75rem;font-weight:500;padding:.125rem .5rem;border-radius:4px}.ds-type-torrent{background:#fef9c3;color:#854d0e}.ds-type-direct{background:#d1fae5;color:#065f46}.ds-type-store{background:#dbeafe;color:#1e40af}.ds-type-forum{background:#f3e8ff;color:#6b21a8}.ds-type-other{background:#f5f5f4;color:#57534e}@media (max-width: 640px){.download-sources-page{padding:1rem}.ds-header{flex-direction:column}.ds-form-row{grid-template-columns:1fr}.ds-item{flex-direction:column;align-items:flex-start}.ds-item-actions{width:100%;justify-content:flex-end}}.app{min-height:100vh;display:flex;flex-direction:column;background-color:#fafaf9}.app-header{background-color:#fff;padding:1rem 2rem;border-bottom:1px solid #e7e5e4;display:flex;justify-content:space-between;align-items:center;box-shadow:0 1px 2px #00000008}.app-header h1{font-size:1.5rem;margin:0;color:#1a1a1a}.app-header nav{display:flex;gap:1.5rem}.app-header nav a{color:#666;text-decoration:none;padding:.5rem 1rem;border-radius:4px;transition:all .2s}.app-header nav a:hover{background-color:#f5f5f5;color:#1a1a1a}.app-header-user{display:flex;align-items:center;gap:.75rem}.app-username{font-size:.875rem;color:#78716c}.app-logout-btn{background:none;border:1px solid #e7e5e4;border-radius:6px;padding:.375rem .75rem;font-size:.8125rem;color:#57534e;cursor:pointer;transition:all .15s;font-family:inherit}.app-logout-btn:hover{background:#fafaf9;border-color:#d6d3d1;color:#1c1917}.app-main{flex:1;padding:2rem;max-width:1200px;width:100%;margin:0 auto}@media (max-width: 768px){.app-header{flex-direction:column;gap:1rem;align-items:flex-start}.app-main{padding:1rem}}:root{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;line-height:1.5;font-weight:400;color-scheme:light;color:#1a1a1a;background-color:#fff;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}*{box-sizing:border-box;margin:0;padding:0}body{margin:0;min-height:100vh;background-color:#fafaf9}#root{min-height:100vh;background-color:#fafaf9}
