:root{font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color-scheme:light dark;color:#ffffffde;background-color:#242424;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}a{font-weight:500;color:#646cff;text-decoration:inherit}a:hover{color:#535bf2}body{margin:0;display:flex;min-width:auto;min-height:100vh;width:100%;overflow-x:hidden;justify-content:center}#root{flex:1;display:flex;flex-direction:column;width:100%}h1{font-size:2.5em;line-height:1.1}@media (max-width: 768px){body{padding:0}h1{font-size:1.8em}}button{border-radius:8px;border:1px solid transparent;padding:.6em 1.2em;font-size:1em;font-weight:500;font-family:inherit;background-color:#1a1a1a;cursor:pointer;transition:border-color .25s}button:hover{border-color:#646cff}button:focus,button:focus-visible{outline:4px auto -webkit-focus-ring-color}@media (prefers-color-scheme: light){:root{color:#213547;background-color:#fff}a:hover{color:#747bff}button{background-color:#f9f9f9}}#root{max-width:1280px;margin:0 auto;padding:0;text-align:center;overflow-x:hidden;width:100%;box-sizing:border-box;flex:1;display:flex;flex-direction:column}.container{width:100%;min-width:auto;display:flex;flex-direction:column;align-items:center;gap:1rem;padding:.5rem;background:#f5f5f5;border-radius:8px;box-shadow:0 2px 4px #0000001a;box-sizing:border-box;flex:1}.container:empty{justify-content:flex-start}h1{color:#333;margin-bottom:1rem;margin-top:33vh;transition:margin-top .3s ease}.container:has(.results:not(:empty)) h1{margin-top:3vh}.search-box{display:flex;gap:.5rem;width:100%;max-width:600px;flex-direction:row}input{flex:1;padding:.8rem;font-size:1rem;border:1px solid #ddd;border-radius:4px;outline:none}input:focus{border-color:#646cff}button{padding:.8rem 1.5rem;font-size:1rem;color:#fff;background-color:#646cff;border:none;border-radius:4px;cursor:pointer;transition:background-color .2s;width:150px}button:hover{background-color:#535bf2}button:disabled{background-color:#ccc;cursor:not-allowed}.button-group{display:flex;gap:10px}.button-group button{flex:1}.lucky-button{background-color:#ff4081}.lucky-button:hover{background-color:#f50057}.error{color:#f44;margin-top:1rem}.results{display:flex;flex-direction:column;gap:20px;margin-top:20px;width:100%;box-sizing:border-box}.result-group{background:#fff;border-radius:8px;padding:12px;box-shadow:0 2px 4px #0000001a;width:100%;box-sizing:border-box}.group-header{border-bottom:1px solid #eee;margin-bottom:15px;padding-bottom:10px}.group-header h2{margin:0;color:#333;font-size:1.5em}.group-items{display:flex;flex-direction:column;gap:10px;width:100%}.torrent-item{display:flex;flex-direction:column;padding:10px;border-radius:4px;background:#f8f9fa;transition:background-color .2s;width:100%;box-sizing:border-box;margin:0;gap:10px}.item-row{display:flex;justify-content:space-between;align-items:center;width:100%}.torrent-item:hover{background:#f1f3f5}.item-details{flex:1;margin-right:20px}.torrent-name{margin:0 0 5px;color:#444;font-size:1em;text-align:left}.item-stats{display:flex;gap:15px;color:#666;font-size:.9em}.size,.seeders{color:#666}.good-seeders{color:#4caf50;font-weight:700}.free-tag{color:#fff;background-color:#4caf50;padding:2px 6px;border-radius:4px;font-size:.85em;font-weight:700}.fee-tag{color:#fff;background-color:#4caf50;padding:2px 6px;border-radius:4px;font-size:.85em;font-weight:700;white-space:nowrap}.discount-tag{color:#fff;background-color:#f44336;padding:2px 6px;border-radius:4px;font-size:.85em;font-weight:700}.tag{padding:1px 6px;border-radius:3px;white-space:nowrap;color:#fff}.tag.中字{background-color:#00f}.tag.国语{color:#2196f3;background:#2196f31a}.tag.粤语{color:#4caf50;background:#4caf501a}.tag.diy{background-color:#0080ff}.tag.外语{background-color:#004040}.tag.原盘{background-color:#ff9800}.tag.热门{background-color:#e91e63}.tag.官方{background-color:#9c27b0}.tag.禁转{background-color:#f44336}.torrent-item button{width:100px;height:32px;padding:0;font-size:.9em;flex-shrink:0}.modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background-color:#00000080;display:flex;justify-content:center;align-items:center;z-index:1000}.modal{background-color:#fff;padding:2rem;border-radius:8px;width:90%;max-width:500px;max-height:80vh;overflow-y:auto}.modal h3{margin-top:0;margin-bottom:1rem;text-align:center}.category-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:1rem;margin-bottom:1.5rem}.category-button{padding:.75rem 1rem;border:1px solid #1a73e8;border-radius:4px;background-color:#fff;color:#1a73e8;cursor:pointer;transition:all .2s ease;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:14px;font-weight:500}.category-button:hover{background-color:#1a73e8;color:#fff;border-color:#1a73e8}.category-button:active{background-color:#155ab9;border-color:#155ab9;color:#fff}.close-button{width:100%;padding:.75rem;background-color:#f44336;color:#fff;border:none;border-radius:4px;cursor:pointer;transition:background-color .2s ease}.close-button:hover{background-color:#d32f2f}.loading-container{position:fixed;top:0;left:0;right:0;bottom:0;display:flex;justify-content:center;align-items:center;background:#fffc;z-index:1000}.loading-spinner{width:50px;height:50px;border:4px solid #f3f3f3;border-top:4px solid #646cff;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@media (max-width: 768px){#root{padding:.25rem;width:100%}.container{padding:.5rem;gap:.75rem;border-radius:0;width:100%;margin:0}h1{font-size:1.5rem;margin-bottom:.5rem}.search-box{flex-direction:column;gap:.75rem}button{width:100%;min-height:44px;padding:.8rem 1rem;font-size:16px}.button-group{width:100%}.item-row{flex-direction:column;gap:12px;align-items:stretch}.item-details{margin-right:0}.item-stats{flex-wrap:wrap;gap:8px;padding:4px 0}.torrent-item button{width:100%;min-height:44px}.modal{width:95%;padding:1rem;margin:1rem;max-height:90vh}.category-list{grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:.75rem}.category-button{min-height:44px;padding:.8rem;font-size:15px}.tag{padding:4px 8px;font-size:.9em}.result-group{padding:0;margin:0;width:100%}.result-group{padding:8px;margin:0;width:100%;border-radius:4px}.torrent-item{padding:8px;margin:0;width:100%}}.progress-bar{width:100%;height:32px;min-height:44px;border:2px solid rgba(196,183,183,.8);border-radius:4px;overflow:hidden;position:relative}.progress-bar-fill{height:100%;background-color:#4caf50;transition:width .3s ease}.progress-bar-label{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;color:#374151;font-size:.9em;pointer-events:none}.progress-bar-label-filled{color:#fff;transition:clip-path .3s ease}.local-progress-status{color:#374151}
