.close-btn{position:absolute;top:12px;right:12px;background:#222;border:1px solid #333;border-radius:8px;padding:6px;color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all .2s ease;z-index:10}.close-btn:hover{background:#333;border-color:#555}.close-btn svg{width:16px;height:16px;stroke:currentColor}:root{--primary-color: #00ccff;--primary-light: #33d6ff;--secondary-color: #0f1622;--accent-color: #ff3c78;--text-color: #e6f2ff;--text-muted: #8599b2;--border-color: rgba(0, 204, 255, .15);--page-gradient-start: #0f1622;--page-gradient-end: #192231;--card-gradient-start: #121b29;--card-gradient-end: #1c2939;--card-accent: rgba(0, 204, 255, .12);--card-hover-border: rgba(0, 204, 255, .5)}.page-bg{background:linear-gradient(180deg,var(--page-gradient-start),var(--page-gradient-end));min-height:100vh;min-height:100dvh;background-image:linear-gradient(180deg,var(--page-gradient-start),var(--page-gradient-end)),radial-gradient(circle at 25px 25px,rgba(0,204,255,.04) 2px,transparent 3px),radial-gradient(circle at 75px 75px,rgba(255,60,120,.02) 1px,transparent 2px),radial-gradient(circle at 50px 50px,rgba(150,255,250,.015) 1px,transparent 2px);background-blend-mode:normal;background-size:cover,100px 100px,50px 50px,75px 75px}button,.card-hover{transition:all .3s ease}.card-hover{border:1px solid var(--border-color);background:linear-gradient(135deg,var(--card-gradient-start),var(--card-gradient-end));box-shadow:0 4px 12px #00000080;position:relative;overflow:hidden;border-radius:6px;display:flex;flex-direction:column;height:100%}.card-hover .flex-grow{min-height:unset;display:flex;flex-direction:column}.card-hover h3{min-height:unset;max-height:unset;display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;-webkit-line-clamp:2;line-height:1.2rem;word-break:break-word;hyphens:auto}.card-hover:before{content:"";position:absolute;top:0;left:-100%;width:100%;height:100%;background:linear-gradient(90deg,transparent,var(--card-accent),transparent);transition:left .6s ease}.card-hover:hover{border-color:var(--card-hover-border);transform:translateY(-3px);box-shadow:0 6px 12px #00000080}.card-hover:hover:before{left:100%}.gradient-text{background:linear-gradient(to right,var(--primary-color),var(--accent-color));-webkit-background-clip:text;-webkit-text-fill-color:transparent}.settings-panel{scrollbar-width:thin;scrollbar-color:#444 #222;transform:translate(100%);transition:transform .3s ease;background:linear-gradient(135deg,var(--page-gradient-end),var(--page-gradient-start));border-left:1px solid var(--primary-color)}.settings-panel.show{transform:translate(0)}.search-button{background:var(--primary-color);color:var(--text-color)}.search-button:hover{background:var(--primary-light)}::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-track{background:#111;border-radius:4px}::-webkit-scrollbar-thumb{background:#333;border-radius:4px;transition:all .3s ease}::-webkit-scrollbar-thumb:hover{background:#444}*{scrollbar-width:thin;scrollbar-color:#333 #111}.search-tag{background:linear-gradient(135deg,var(--card-gradient-start),var(--card-gradient-end));color:var(--text-color);padding:.5rem 1rem;border-radius:.5rem;font-size:.875rem;border:1px solid var(--border-color);box-shadow:0 2px 4px #0003}.search-tag:hover{background:linear-gradient(135deg,var(--card-gradient-end),var(--card-gradient-start));border-color:var(--primary-color)}.footer{width:100%;transition:all .3s ease;margin-top:auto;background:linear-gradient(to bottom,transparent,var(--page-gradient-start));border-top:1px solid var(--border-color)}.footer a:hover{text-decoration:underline}body{display:flex;flex-direction:column;min-height:100vh;min-height:100dvh}.container{flex:1}@media screen and (min-height:800px){body{display:flex;flex-direction:column;min-height:100vh;min-height:100dvh}.container{flex:1}.footer{margin-top:auto}}@media screen and (max-width:640px){.footer{padding-bottom:2rem}}@media screen and (max-width:768px){.card-hover h3{min-height:2.5rem}.card-hover .flex-grow{min-height:80px}}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes fadeOut{0%{opacity:1}to{opacity:0}}#modal.show{animation:fadeIn .3s forwards}#modal.hide{animation:fadeOut .3s forwards}#modal>div{background:linear-gradient(135deg,var(--card-gradient-start),var(--card-gradient-end));border:1px solid var(--primary-color);box-shadow:0 10px 30px #000000b3,0 0 15px #00ccff1a;border-radius:8px}#episodesGrid button{background:#00ccff14;border:1px solid rgba(0,204,255,.2);transition:all .2s ease}#episodesGrid button:hover{background:#00ccff26;border-color:var(--primary-color);box-shadow:0 0 8px #00ccff4d}#yellowFilterToggle:checked+.toggle-bg{background-color:var(--primary-color)}#yellowFilterToggle:checked~.toggle-dot{transform:translate(1.5rem)}#yellowFilterToggle:focus+.toggle-bg,#yellowFilterToggle:hover+.toggle-bg{box-shadow:0 0 0 2px #00ccff4d}#adFilterToggle:checked+.toggle-bg{background-color:var(--primary-color)}#adFilterToggle:checked~.toggle-dot{transform:translate(1.5rem)}#adFilterToggle:focus+.toggle-bg,#adFilterToggle:hover+.toggle-bg{box-shadow:0 0 0 2px #00ccff4d}.toggle-dot{transition:transform .3s ease-in-out;box-shadow:0 2px 4px #0003}.toggle-bg{transition:background-color .3s ease-in-out}#yellowFilterToggle:checked~.toggle-dot{box-shadow:0 2px 4px #00ccff4d}#adFilterToggle:checked~.toggle-dot{box-shadow:0 2px 4px #00ccff4d}.form-checkbox{appearance:none;-webkit-appearance:none;-moz-appearance:none;height:14px;width:14px;background-color:#222;border:1px solid #333;border-radius:3px;cursor:pointer;position:relative;outline:none}.form-checkbox:checked{background-color:var(--primary-color);border-color:var(--primary-color)}.form-checkbox:checked:after{content:"";position:absolute;left:4px;top:1px;width:4px;height:8px;border:solid white;border-width:0 2px 2px 0;transform:rotate(45deg)}#apiCheckboxes{scrollbar-width:thin;scrollbar-color:#444 #222}#apiCheckboxes::-webkit-scrollbar{width:6px}#apiCheckboxes::-webkit-scrollbar-track{background:#222;border-radius:4px}#apiCheckboxes::-webkit-scrollbar-thumb{background-color:#444;border-radius:4px}#customApisList{scrollbar-width:thin;scrollbar-color:#444 #222}#customApisList::-webkit-scrollbar{width:6px}#customApisList::-webkit-scrollbar-track{background:transparent}#customApisList::-webkit-scrollbar-thumb{background-color:#444;border-radius:4px}.settings-panel{scrollbar-width:thin;scrollbar-color:#444 #222}.settings-panel::-webkit-scrollbar{width:6px}.settings-panel::-webkit-scrollbar-track{background:transparent}.settings-panel::-webkit-scrollbar-thumb{background-color:#444;border-radius:4px}#addCustomApiForm{transition:all .3s ease;max-height:0;opacity:0;overflow:hidden}#addCustomApiForm.hidden{max-height:0;padding:0;opacity:0}#addCustomApiForm:not(.hidden){max-height:230px;opacity:1}.api-adult+label{color:#ff6b8b!important}.adult-warning{display:inline-flex;align-items:center;margin-left:.25rem;color:#ff6b8b}.adult-warning svg{width:12px;height:12px;margin-right:4px}.filter-disabled{opacity:.5;pointer-events:none;cursor:not-allowed}.api-group-title{grid-column:span 2;padding:.25rem 0;margin-top:.5rem;border-top:1px solid #333;color:#8599b2;font-size:.75rem;text-transform:uppercase;letter-spacing:.05em}.api-group-title.adult{color:#ff6b8b}.filter-disabled:after{content:"";position:absolute;top:0;left:0;width:100%;height:100%;background-color:#0006;border-radius:.5rem;z-index:5}.filter-disabled>*{opacity:.7}.filter-disabled .toggle-bg{background-color:#333!important}.filter-disabled .toggle-dot{transform:translate(0)!important;background-color:#666!important}.filter-disabled .filter-description{color:#ff6b8b!important;font-style:italic;font-weight:500}.filter-disabled{position:relative}.filter-disabled:after{content:"";position:absolute;top:0;left:0;width:100%;height:100%;background-color:#0000004d;border-radius:.5rem;z-index:5}.filter-disabled>*{opacity:1;z-index:6}.filter-disabled .filter-description{color:#ff7b9d!important;font-style:italic;font-weight:500;text-shadow:0 0 2px rgba(0,0,0,.8)}.filter-disabled .toggle-bg{background-color:#444!important;opacity:.8}.filter-disabled .toggle-dot{transform:translate(0);background-color:#777;opacity:.9}.filter-tooltip{background-color:#ff3d571a;border:1px solid rgba(255,61,87,.2);border-radius:.25rem;padding:.5rem;margin-top:.5rem;display:flex;align-items:center;font-size:.75rem;line-height:1.25;position:relative;z-index:10}.filter-tooltip svg{flex-shrink:0;width:14px;height:14px;margin-right:.35rem}.custom-api-edit{color:#3b82f6;transition:color .2s ease}.custom-api-edit:hover{color:#2563eb}#customApisList .api-item{display:flex;align-items:center;justify-content:space-between;padding:.25rem .5rem;margin-bottom:.25rem;background-color:#222;border-radius:.25rem;transition:background-color .2s ease}#customApisList .api-item:hover{background-color:#2a2a2a}.adult-tag{display:inline-flex;align-items:center;color:#ff6b8b;font-size:.7rem;font-weight:500;margin-right:.35rem}.history-panel{box-shadow:2px 0 10px #00000080;transition:transform .3s ease-in-out;overflow-y:scroll;overflow-x:hidden;width:320px;box-sizing:border-box;scrollbar-gutter:stable}.history-panel.show{transform:translate(0)}#historyList{padding-right:6px}.history-item{background:#1a1a1a;border-radius:6px;border:1px solid #333;overflow:hidden;transition:all .2s ease;padding:10px 14px;position:relative;margin-bottom:8px;width:100%}.history-item:hover{transform:translateY(-2px);border-color:#444;box-shadow:0 4px 8px #0003}.history-item .delete-btn{opacity:0;transition:opacity .2s ease}.history-item:hover .delete-btn{opacity:1}.history-info{padding:0;min-height:70px}.history-title{font-weight:500;font-size:.95rem;margin-bottom:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.history-meta{color:#bbb;font-size:.75rem;display:flex;flex-wrap:wrap;margin-bottom:1px}.history-episode{color:#3b82f6}.history-source{color:#10b981}.history-time{color:#888;font-size:.7rem;margin-top:1px}.history-separator{color:#666}.history-thumbnail{width:100%;height:90px;background-color:#222;overflow:hidden}.history-thumbnail img{width:100%;height:100%;object-fit:cover}.history-info{padding:10px}.history-time{color:#888;font-size:.8rem;margin-top:4px}.history-title{font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.history-progress{margin:5px 0}.progress-bar{height:3px;background-color:#ffffff1a;border-radius:2px;overflow:hidden;margin-bottom:2px}.progress-filled{height:100%;background:linear-gradient(to right,#0cf,#3b82f6);border-radius:2px}.progress-text{font-size:10px;color:#888;text-align:right}.position-restore-hint{position:absolute;bottom:60px;left:50%;transform:translate(-50%) translateY(20px);background-color:#000000b3;color:#fff;padding:8px 16px;border-radius:4px;font-size:14px;z-index:100;opacity:0;transition:all .3s ease}.position-restore-hint.show{opacity:1;transform:translate(-50%) translateY(0)}.player-container.controls-locked .art-controls,.player-container.controls-locked .art-mask,.player-container.controls-locked .art-bottom,.player-container.controls-locked .art-progress,.player-container.controls-locked .shortcut-hint{opacity:0!important;pointer-events:none!important}.player-container.controls-locked #lockToggle{opacity:1!important;pointer-events:auto!important}.player-header{gap:.5rem}.custom-title-scroll{overflow-x:auto;white-space:nowrap;text-overflow:ellipsis;-webkit-overflow-scrolling:touch;scrollbar-width:none}.custom-title-scroll::-webkit-scrollbar{display:none}.logo-text,.home-btn-text{display:inline}@media(max-width:640px){.logo-text,.home-btn-text{display:none}.logo-icon{margin-right:0}.home-btn svg{margin-right:0}.player-header{padding-left:2px!important;padding-right:2px!important}.custom-title-scroll{font-size:1rem}}.search-card-img-container{width:100px;height:150px;overflow:hidden;background-color:#191919}.search-card-img-container img{width:100%;height:100%;object-fit:cover}@media(max-width:640px){#results{grid-template-columns:repeat(1,minmax(0,1fr))!important}}@media(min-width:641px)and (max-width:768px){#results{grid-template-columns:repeat(2,minmax(0,1fr))!important}}@media(min-width:769px)and (max-width:1024px){#results{grid-template-columns:repeat(2,minmax(0,1fr))!important}}@media(min-width:1025px)and (max-width:1440px){#results{grid-template-columns:repeat(3,minmax(0,1fr))!important}}@media(min-width:1441px){#results{grid-template-columns:repeat(4,minmax(0,1fr))!important}}.card-hover .p-2{padding:.75rem}.card-hover h3{font-size:.95rem;line-height:1.3rem;margin-bottom:.5rem}.card-hover p{font-size:.8rem}.card-hover .p-2{padding:.5rem}#toast{z-index:9999;box-shadow:0 4px 12px #0000004d;min-width:200px;text-align:center;pointer-events:none;transform:translate(-50%) translateY(0);transition:opacity .3s ease,transform .3s ease}#toast.hidden{opacity:0;transform:translate(-50%) translateY(-100%)}#modal .modal-detail-info{background:linear-gradient(135deg,#0a0a0a,#111);border:1px solid #222;border-radius:8px;padding:1rem;margin-bottom:1.5rem}#modal .detail-grid{display:grid;grid-template-columns:1fr;gap:.75rem;font-size:.875rem}@media(min-width:768px){#modal .detail-grid{grid-template-columns:1fr 1fr}}#modal .detail-item{display:flex;flex-wrap:wrap;gap:.5rem}#modal .detail-label{color:#9ca3af;font-weight:500;min-width:3rem;flex-shrink:0}#modal .detail-value{color:#fff;flex:1;word-break:break-word}#modal .detail-desc{margin-top:1rem;padding-top:1rem;border-top:1px solid #333}#modal .detail-desc-content{color:#d1d5db;font-size:.875rem;line-height:1.6;max-height:8rem;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#444 #222}#modal .detail-desc-content::-webkit-scrollbar{width:6px}#modal .detail-desc-content::-webkit-scrollbar-track{background:#222;border-radius:4px}#modal .detail-desc-content::-webkit-scrollbar-thumb{background-color:#444;border-radius:4px}#modal .episode-stats{color:#9ca3af;font-size:.875rem;display:flex;align-items:center;gap:.5rem}@media(max-width:640px){#modal .detail-grid{gap:.5rem;font-size:.8rem}#modal .detail-label{min-width:2.5rem}#modal .detail-desc-content{max-height:6rem;font-size:.8rem}}.source-health-panel{border-top:1px solid #242424;padding-top:.75rem}.source-health-list{display:grid;gap:.5rem}.source-health-item{border:1px solid #2a2a2a;border-left-width:3px;border-radius:6px;background:#171717;padding:.5rem}.source-health-row{display:flex;justify-content:space-between;gap:.5rem;font-size:.75rem;color:#e5e7eb}.source-health-message{margin-top:.25rem;color:#9ca3af;font-size:.75rem;line-height:1.35}.source-health-ok{border-left-color:#22c55e}.source-health-degraded{border-left-color:#eab308}.source-health-failed{border-left-color:#ef4444}.first-run-guide{z-index:70}.first-run-guide-content{max-width:34rem}.first-run-guide-body{display:grid;gap:.75rem}.first-run-step{display:grid;grid-template-columns:6rem 1fr;gap:.75rem;align-items:start;border:1px solid #2a2a2a;border-radius:6px;padding:.75rem;background:#171717}.first-run-step strong{color:#67e8f9;font-size:.875rem}.first-run-step span{color:#d1d5db;font-size:.875rem;line-height:1.5}.first-run-actions{display:flex;justify-content:flex-end;gap:.75rem;margin-top:1rem}.first-run-actions button,.diagnostics-source button,.diagnostics-back{border:1px solid #334155;border-radius:6px;background:#1f2937;color:#f8fafc;padding:.5rem .8rem;font-size:.875rem;transition:background .2s ease,border-color .2s ease}.first-run-actions button:hover,.diagnostics-source button:hover,.diagnostics-back:hover{background:#263244;border-color:#64748b}.diagnostics-page{width:min(1100px,calc(100% - 2rem));margin:0 auto;padding:2rem 0 3rem}.diagnostics-header{display:grid;gap:.5rem;margin-bottom:1.5rem}.diagnostics-header h1{font-size:1.875rem;font-weight:700}.diagnostics-header p,.diagnostics-source p{color:#94a3b8;font-size:.875rem}.diagnostics-back{justify-self:start;text-decoration:none}.diagnostics-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.75rem}.diagnostic-item,.diagnostics-source{border:1px solid #253044;border-radius:8px;background:#111827;padding:1rem}.diagnostic-item{border-left-width:4px}.diagnostic-ok{border-left-color:#22c55e}.diagnostic-warn{border-left-color:#eab308}.diagnostic-fail{border-left-color:#ef4444}.diagnostic-title{color:#f8fafc;font-weight:600;margin-bottom:.5rem}.diagnostic-detail{color:#cbd5e1;font-size:.875rem;line-height:1.5}.diagnostics-source{margin-top:1rem}.diagnostics-source-header{display:flex;justify-content:space-between;align-items:start;gap:1rem;margin-bottom:1rem}.diagnostics-source h2{font-size:1.125rem;font-weight:700;margin-bottom:.25rem}@media(max-width:900px){.diagnostics-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:640px){.first-run-step,.diagnostics-grid{grid-template-columns:1fr}.diagnostics-source-header{flex-direction:column}}
