:root{font-family:Inter,Pretendard,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#f8fafc;background:#090d16;font-synthesis:none;text-rendering:optimizeLegibility}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh;background:radial-gradient(circle at top right,rgba(37,99,235,.18),transparent 35rem),#090d16}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.48}.app-shell{width:min(1120px,100%);min-width:0;max-width:100%;margin:0 auto;padding:22px 18px calc(210px + env(safe-area-inset-bottom))}.topbar,.section-heading,.library-toolbar,.movie-title-row,.remote-status{display:flex;align-items:center;justify-content:space-between;gap:16px}.topbar{margin-bottom:22px}h1,h2,h3,p{margin:0}h1{font-size:clamp(2rem,8vw,3.25rem);letter-spacing:-.06em}h2{font-size:clamp(1.15rem,4vw,1.5rem);letter-spacing:-.03em}h3{overflow-wrap:anywhere;font-size:1.06rem}.eyebrow{margin-bottom:5px;color:#93a4bc;font-size:.75rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase}.badge,.playing-dot,.now-label{display:inline-flex;min-height:30px;align-items:center;border-radius:999px;padding:5px 10px;white-space:nowrap;font-size:.78rem;font-weight:800}.badge-ok,.playing-dot,.now-label{border:1px solid rgba(52,211,153,.35);color:#6ee7b7;background:#10b9811f}.badge-error{border:1px solid rgba(248,113,113,.4);color:#fca5a5;background:#ef44441f}.badge-loading{border:1px solid #334155;color:#cbd5e1;background:#172033}.system-message,.player-card,.movie-card,.empty-state,.download-add-card,.download-card,.confirm-modal{border:1px solid #253047;border-radius:18px;background:#111827e6;box-shadow:0 18px 50px #0000002e}.system-message{display:flex;min-height:52px;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px;padding:12px 14px}.system-message>span,.system-message>strong{display:block}.system-message button{min-width:48px;min-height:44px;border:0;color:inherit;background:transparent}.error-message{border-color:#f8717173;color:#fecaca}.success-message{border-color:#34d39961;color:#a7f3d0}.info-message{border-color:#60a5fa61;color:#bfdbfe}.player-card{margin-bottom:26px;padding:18px}.player-meta{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.player-meta span{border-radius:8px;padding:7px 9px;color:#cbd5e1;background:#172033;font-size:.84rem}.subtitle-now{margin-top:12px;color:#a5b4fc;font-size:.88rem}.library-toolbar{margin-bottom:14px}.secondary-button,.play-button,.remote-grid button{min-height:48px;border-radius:12px;font-weight:800}.secondary-button{border:1px solid #3c4a65;padding:0 16px;color:#e2e8f0;background:#172033}.search-field,.subtitle-select{display:grid;gap:7px;color:#aebbd0;font-size:.8rem;font-weight:700}.search-field{margin-bottom:16px}.search-field input,.subtitle-select select{width:100%;min-height:48px;border:1px solid #34415a;border-radius:12px;outline:none;color:#f8fafc;background:#101827}.search-field input{padding:0 14px}.subtitle-select select{padding:0 12px}.search-field input:focus,.subtitle-select select:focus{border-color:#60a5fa;box-shadow:0 0 0 3px #3b82f62e}.empty-state{display:grid;min-height:140px;place-content:center;gap:6px;padding:24px;color:#94a3b8;text-align:center}.empty-state strong{color:#e2e8f0}.warning-state{border-color:#fbbf2466}.error-state{border-color:#f8717166}.movie-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,310px),1fr));gap:14px}.movie-card{display:grid;gap:15px;padding:16px}.movie-card.is-playing{border-color:#34d399;box-shadow:0 0 0 1px #34d39933}.movie-title-row p{margin-top:5px;color:#8fa0b8;font-size:.82rem}.movie-details{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0}.movie-details div{min-width:0;border-radius:10px;padding:9px;background:#0e1625}.movie-details dt{color:#7f8da5;font-size:.72rem}.movie-details dd{overflow:hidden;margin:4px 0 0;color:#dbe5f4;font-size:.78rem;text-overflow:ellipsis;white-space:nowrap}.play-button{border:0;padding:0 14px;color:#fff;background:linear-gradient(135deg,#2563eb,#4f46e5)}.remote-panel{position:fixed;width:auto;min-width:0;max-width:calc(100% - 28px);z-index:10;right:max(14px,calc((100vw - 1120px)/2));bottom:max(12px,env(safe-area-inset-bottom));left:max(14px,calc((100vw - 1120px)/2));border:1px solid #34415a;border-radius:18px;padding:12px;background:#090d16f0;box-shadow:0 18px 70px #0000007a;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px)}.remote-status{min-width:0;max-width:100%;overflow:hidden;margin-bottom:10px;color:#cbd5e1;font-size:.8rem}.remote-status span{display:block;flex:1 1 auto;min-width:0;max-width:100%;overflow:hidden;color:#8fa0b8;text-overflow:ellipsis;white-space:nowrap}.remote-grid{display:grid;width:100%;min-width:0;max-width:100%;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px}.remote-grid button{min-width:0;border:1px solid #34415a;padding:5px;color:#e8eef8;background:#172033;font-size:clamp(.67rem,2.7vw,.82rem)}.remote-grid .danger-control{border-color:#f8717173;color:#fecaca;background:#7f1d1d80}@media(min-width:720px){.app-shell{padding-top:34px;padding-bottom:160px}.remote-panel{padding:14px}.remote-grid{grid-template-columns:repeat(10,minmax(0,1fr))}}main,.topbar>div,.section-heading>div,.library-toolbar>div,.movie-title-row>div,.download-panel,.download-heading-copy,.download-card,.download-card-header{min-width:0;max-width:100%}.main-view-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:18px;border:1px solid #253047;border-radius:14px;padding:5px;background:#0f172ad1}.main-view-tabs button,.download-mode-tabs button{min-width:0;min-height:44px;border:0;border-radius:10px;color:#94a3b8;background:transparent;font-weight:800}.main-view-tabs button.is-active,.download-mode-tabs button.is-active{color:#f8fafc;background:#263552;box-shadow:0 6px 18px #00000038}.download-panel{display:grid;gap:14px}.download-heading-row{display:flex;min-width:0;max-width:100%;align-items:center;justify-content:space-between;gap:12px}.download-heading-row .secondary-button{flex:0 0 auto}.legal-download-notice{border:1px solid rgba(251,191,36,.32);border-radius:12px;padding:11px 13px;color:#fde68a;background:#78350f2e;font-size:.82rem;line-height:1.5}.download-disabled-state{min-height:180px}.download-add-card{display:grid;min-width:0;gap:14px;padding:15px}.download-mode-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;border-radius:12px;padding:4px;background:#0e1625}.download-input-field{display:grid;min-width:0;gap:8px;color:#aebbd0;font-size:.8rem;font-weight:700}.download-input-field textarea,.download-input-field input[type=file]{display:block;width:100%;min-width:0;max-width:100%;border:1px solid #34415a;border-radius:12px;outline:none;color:#f8fafc;background:#101827}.download-input-field textarea{min-height:92px;resize:vertical;padding:12px 13px;line-height:1.45;overflow-wrap:anywhere}.download-input-field input[type=file]{padding:9px;color:#cbd5e1}.download-input-field input[type=file]::file-selector-button{min-height:36px;margin-right:10px;border:0;border-radius:8px;padding:0 12px;color:#f8fafc;background:#263552;font-weight:800}.download-input-field textarea:focus,.download-input-field input[type=file]:focus-visible{border-color:#60a5fa;box-shadow:0 0 0 3px #3b82f62e}.selected-file-name{display:block;min-width:0;max-width:100%;overflow:hidden;color:#8fa0b8;text-overflow:ellipsis;white-space:nowrap}.start-paused-option{display:flex;width:fit-content;max-width:100%;align-items:center;gap:9px;color:#cbd5e1;font-size:.85rem}.start-paused-option input{width:20px;height:20px;margin:0;accent-color:#4f46e5}.download-form-error{color:#fca5a5;font-size:.84rem}.download-submit-button{width:100%}.download-error{margin-bottom:0}.download-list{display:grid;min-width:0;grid-template-columns:repeat(auto-fill,minmax(min(100%,340px),1fr));gap:12px}.download-card{display:grid;min-width:0;gap:14px;padding:15px}.download-card-header{display:grid;min-width:0;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:10px}.download-card-title{display:-webkit-box;min-width:0;max-width:100%;overflow:hidden;overflow-wrap:anywhere;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;line-height:1.35}.download-state{display:inline-flex;min-height:28px;align-items:center;border:1px solid #3c4a65;border-radius:999px;padding:4px 9px;white-space:nowrap;color:#cbd5e1;background:#172033;font-size:.72rem;font-weight:800}.download-state-downloading,.download-state-metadata{border-color:#60a5fa66;color:#bfdbfe;background:#2563eb29}.download-state-completed{border-color:#34d39966;color:#a7f3d0;background:#10b98124}.download-state-paused,.download-state-queued{border-color:#fbbf2461;color:#fde68a;background:#92400e2e}.download-state-error{border-color:#f871716b;color:#fecaca;background:#7f1d1d47}.download-progress-row{display:grid;min-width:0;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px}.download-progress-row progress{width:100%;min-width:0;height:12px;overflow:hidden;border:0;border-radius:999px;background:#0e1625;accent-color:#4f46e5}.download-progress-row progress::-webkit-progress-bar{border-radius:999px;background:#0e1625}.download-progress-row progress::-webkit-progress-value{border-radius:999px;background:linear-gradient(90deg,#2563eb,#4f46e5)}.download-progress-row strong{min-width:42px;color:#dbeafe;text-align:right;font-size:.86rem}.download-stats{display:grid;min-width:0;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:0}.download-stats div{min-width:0;border-radius:10px;padding:9px;background:#0e1625}.download-stats dt{color:#7f8da5;font-size:.7rem}.download-stats dd{min-width:0;overflow:hidden;margin:4px 0 0;color:#dbe5f4;text-overflow:ellipsis;white-space:nowrap;font-size:.75rem}.download-actions{display:grid;min-width:0;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.download-actions button,.confirm-modal-actions button,.remove-download-button{min-width:0;min-height:44px;border-radius:11px;font-weight:800}.download-actions .secondary-button{width:100%;padding:0 10px}.remove-download-button{border:1px solid rgba(248,113,113,.45);padding:0 12px;color:#fecaca;background:#7f1d1d80}.download-actions .remove-download-button:only-child{grid-column:1 / -1}.modal-backdrop{position:fixed;z-index:50;inset:0;display:grid;place-items:center;padding:18px;background:#020617c7;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}.confirm-modal{display:grid;width:min(420px,100%);min-width:0;max-width:100%;gap:13px;padding:18px}.confirm-modal p{color:#aebbd0;line-height:1.5}.confirm-download-name{display:-webkit-box;min-width:0;max-width:100%;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;color:#f8fafc!important;font-weight:800}.confirm-modal-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}@media(max-width:390px){.app-shell{padding-right:14px;padding-left:14px}.download-heading-row{align-items:flex-end}.download-heading-row .secondary-button{min-height:44px;padding:0 12px}.download-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.download-stats div:first-child{grid-column:1 / -1}}.subtitle-card-actions{display:grid;min-width:0;max-width:100%;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.subtitle-card-actions:has(.subtitle-action-button:only-child){grid-template-columns:minmax(0,1fr)}.subtitle-action-button{width:100%;min-width:0;padding:0 10px}.subtitle-modal-backdrop,.subtitle-confirm-backdrop{position:fixed;z-index:40;inset:0;display:flex;min-width:0;max-width:100%;align-items:flex-end;justify-content:center;padding:12px 10px max(12px,env(safe-area-inset-bottom));background:#020617c7;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.subtitle-confirm-backdrop{z-index:50;align-items:center}.subtitle-sheet,.subtitle-delete-confirm{width:min(100%,640px);min-width:0;max-width:100%;max-height:min(88dvh,820px);overflow-x:hidden;overflow-y:auto;border:1px solid #3c4a65;border-radius:20px;padding:16px;background:#0b1220;box-shadow:0 24px 90px #0000009e;overscroll-behavior:contain}.subtitle-sheet-header{display:flex;min-width:0;max-width:100%;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:14px}.subtitle-sheet-header>div{min-width:0;max-width:100%}.subtitle-sheet-header h2,.subtitle-sheet-header .eyebrow{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.subtitle-close-button{flex:0 0 auto;min-width:52px;min-height:42px;border:1px solid #34415a;border-radius:10px;color:#dbe5f4;background:#172033;font-weight:800}.subtitle-modal-error{margin-bottom:12px;border:1px solid rgba(248,113,113,.4);border-radius:10px;padding:10px 12px;color:#fecaca;background:#7f1d1d38;font-size:.84rem;line-height:1.45}.subtitle-upload-body,.subtitle-manage-body{display:grid;min-width:0;max-width:100%;gap:14px}.subtitle-file-field,.subtitle-naming-options label{display:grid;min-width:0;max-width:100%;gap:7px;color:#aebbd0;font-size:.8rem;font-weight:700}.subtitle-file-field input[type=file],.subtitle-naming-options input,.subtitle-naming-options select{display:block;width:100%;min-width:0;max-width:100%;min-height:46px;border:1px solid #34415a;border-radius:11px;outline:none;color:#f8fafc;background:#101827}.subtitle-file-field input[type=file]{padding:8px}.subtitle-file-field input[type=file]::file-selector-button{min-height:36px;margin-right:9px;border:0;border-radius:8px;padding:0 11px;color:#f8fafc;background:#263552;font-weight:800}.subtitle-naming-options input,.subtitle-naming-options select{padding:0 12px}.subtitle-selected-file{display:block;min-width:0;max-width:100%;overflow:hidden;color:#8fa0b8;text-overflow:ellipsis;white-space:nowrap;font-weight:500}.subtitle-primary-button{width:100%}.subtitle-entry-fieldset{min-width:0;max-width:100%;margin:0;border:1px solid #2f3c55;border-radius:13px;padding:10px}.subtitle-entry-fieldset legend{padding:0 5px;color:#cbd5e1;font-size:.82rem;font-weight:800}.subtitle-entry-list,.subtitle-manage-list{display:grid;min-width:0;max-width:100%;gap:8px}.subtitle-entry-list{max-height:260px;overflow-x:hidden;overflow-y:auto}.subtitle-entry-row{display:grid;min-width:0;max-width:100%;grid-template-columns:auto minmax(0,1fr);align-items:start;gap:10px;border-radius:10px;padding:10px;background:#101827}.subtitle-entry-row input{width:20px;height:20px;margin:1px 0 0;accent-color:#4f46e5}.subtitle-entry-copy,.subtitle-manage-copy{display:grid;min-width:0;max-width:100%;gap:4px}.subtitle-entry-copy strong,.subtitle-manage-copy strong,.subtitle-confirm-name{display:-webkit-box;min-width:0;max-width:100%;overflow:hidden;overflow-wrap:anywhere;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;line-height:1.35}.subtitle-entry-copy small,.subtitle-manage-copy span{min-width:0;max-width:100%;overflow:hidden;color:#8fa0b8;text-overflow:ellipsis;white-space:nowrap;font-size:.73rem}.subtitle-naming-options{display:grid;min-width:0;max-width:100%;grid-template-columns:minmax(0,1fr);gap:10px}.subtitle-check-option{display:flex;width:fit-content;min-width:0;max-width:100%;align-items:center;gap:9px;color:#cbd5e1;font-size:.84rem}.subtitle-check-option input{flex:0 0 auto;width:20px;height:20px;margin:0;accent-color:#4f46e5}.subtitle-upload-actions,.subtitle-confirm-actions{display:grid;min-width:0;max-width:100%;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.subtitle-upload-actions button,.subtitle-confirm-actions button{min-width:0;min-height:46px;padding:0 9px}.subtitle-empty-state{border:1px dashed #34415a;border-radius:12px;padding:28px 14px;color:#94a3b8;text-align:center}.subtitle-manage-row{display:grid;min-width:0;max-width:100%;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;border:1px solid #2a3750;border-radius:12px;padding:11px;background:#101827}.subtitle-selected-badge{width:fit-content;border:1px solid rgba(52,211,153,.34);border-radius:999px;padding:3px 7px;color:#6ee7b7;background:#10b9811f;font-size:.68rem;font-weight:800}.subtitle-delete-button,.subtitle-delete-confirm-button{min-width:58px;min-height:42px;border:1px solid rgba(248,113,113,.5);border-radius:10px;padding:0 9px;color:#fecaca;background:#7f1d1d7a;font-weight:800}.subtitle-delete-confirm{display:grid;gap:13px;width:min(100%,440px);max-height:80dvh}.subtitle-delete-confirm p:not(.eyebrow){color:#aebbd0;font-size:.84rem;line-height:1.5}.subtitle-confirm-name{border-radius:10px;padding:10px 11px;color:#f8fafc;background:#101827}@media(min-width:560px){.subtitle-naming-options{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(min-width:720px){.subtitle-modal-backdrop{align-items:center}}
