* { box-sizing: border-box; } body { margin: 0; padding: 0; font-family: "Segoe UI", Tahoma, sans-serif; background: #f2f4f8; color: #1a1f2b; height: 100vh; overflow: hidden; display: flex; flex-direction: column; } .topbar { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: #0f172a; color: #e2e8f0; } .topbar h1 { margin: 0; font-size: 20px; } #sessionMeta { font-size: 12px; } .grid { display: grid; grid-template-columns: repeat(4, minmax(280px, 1fr)); gap: 12px; padding: 12px; align-items: start; flex: 1; min-height: 0; overflow: hidden; } .panel { background: #ffffff; border: 1px solid #d7dee9; border-radius: 8px; padding: 10px; min-height: 420px; display: flex; flex-direction: column; } #panelSearch, #panelEpisodes, #panelSelectedEpisodes, #panelSelectedFiles { height: 100%; min-height: 0; max-height: 100%; align-self: stretch; overflow: hidden; } #panelSearch .panel-body { flex: 1; min-height: 0; } .panel h2 { margin: 0 0 10px; font-size: 16px; } .panel-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; min-height: 38px; } .panel-head h2 { margin: 0; } .panel-head-actions { display: flex; align-items: center; gap: 8px; } .panel-head-actions-empty { min-width: 172px; } .panel h3 { margin: 10px 0 6px; font-size: 14px; } .row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; } .search-combobox-row input[type="text"] { flex: 1; min-width: 0; } #searchDropdownBtn { min-width: 34px; padding-left: 8px; padding-right: 8px; } .stack { display: flex; flex-direction: column; } .panel-body { display: flex; flex-direction: column; flex: 1; min-height: 0; } input[type="text"], select { border: 1px solid #c3cedf; border-radius: 6px; padding: 6px 8px; min-width: 160px; } button { border: 1px solid #0f172a; background: #0f172a; color: #ffffff; border-radius: 6px; padding: 6px 10px; cursor: pointer; } button.secondary { background: #e2e8f0; color: #1a1f2b; border-color: #c3cedf; } .list { list-style: none; margin: 0; padding: 0; max-height: 260px; overflow: auto; border: 1px solid #e4eaf2; border-radius: 6px; } .linked-list-wrap { flex: 1; min-height: 0; overflow: hidden; } .linked-list { flex: 1; height: 100%; max-height: none; overflow-y: auto; } #panelEpisodes .panel-body, #panelSelectedEpisodes .panel-body, #panelSelectedFiles .panel-body { flex: 1; min-height: 0; overflow: hidden; } #panelEpisodes .linked-list-wrap, #panelSelectedEpisodes .linked-list-wrap, #panelSelectedFiles .linked-list-wrap { flex: 1; min-height: 0; } #panelEpisodes .linked-list-wrap .list, #panelSelectedEpisodes .linked-list-wrap .list, #panelSelectedFiles .linked-list-wrap .list { max-height: none; height: 100%; } .badge { display: inline-block; font-size: 11px; font-weight: 700; color: #0f172a; background: #dbeafe; border: 1px solid #bfdbfe; border-radius: 999px; padding: 1px 6px; margin-right: 6px; } .list li.selected { background: #e0f2fe; } .list li.season-header { background: #eef2ff; border-bottom: 1px solid #dbe4fb; color: #1e293b; font-weight: 700; justify-content: flex-start; padding: 8px; } .panel-footer { position: sticky; bottom: 0; background: #ffffff; border-top: 1px solid #e4eaf2; padding-top: 8px; margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; justify-content: flex-end; min-height: 40px; } .panel-search-footer { justify-content: flex-end; } .mismatch { color: #b91c1c; font-weight: 700; } .modal { position: fixed; inset: 0; background: rgba(2, 6, 23, 0.55); display: flex; align-items: center; justify-content: center; z-index: 1000; } .modal.hidden { display: none; } .modal-card { width: min(1400px, 90vw); height: 80vh; background: #ffffff; border: 1px solid #d7dee9; border-radius: 10px; padding: 12px; display: flex; flex-direction: column; min-height: 0; } .modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; } .modal-root-row { margin-bottom: 8px; } .modal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 4px; flex: 1; min-height: 0; } .modal-pane { display: flex; flex-direction: column; min-height: 0; } .modal-pane .list { flex: 1; min-height: 0; max-height: none; } #modalFoldersList li, #modalFilesList li { cursor: pointer; } .modal-files-tools { margin-bottom: 8px; } .modal-files-tools input[type="text"] { flex: 1; min-width: 180px; } .modal-actions { margin-top: 10px; margin-bottom: 0; justify-content: flex-end; border-top: 1px solid #e4eaf2; padding-top: 10px; } .settings-card { width: min(520px, 94vw); } .settings-section h4 { margin: 0 0 8px; font-size: 14px; color: #1e293b; } .settings-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 4px; } .settings-field label { font-size: 12px; color: #64748b; } .settings-field select { min-width: 0; width: 100%; } .settings-field input[type="number"] { min-width: 0; width: 100%; } .settings-danger-row { margin-top: 6px; } .settings-check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #334155; } .settings-actions { justify-content: flex-end; margin-top: 12px; } #panelSelectedEpisodes .panel-footer button:first-child, #panelSelectedEpisodes .panel-footer button:last-child, #panelSelectedFiles .panel-footer button:first-child, #panelSelectedFiles .panel-footer button:last-child { border-color: #0b3a6e; background: #0b3a6e; color: #ffffff; } .list li { display: flex; justify-content: space-between; gap: 8px; border-bottom: 1px solid #edf1f7; padding: 6px 8px; font-size: 13px; } .list li:last-child { border-bottom: none; } #selectedEpisodesList li, #selectedFilesList li { height: 38px; min-height: 38px; align-items: center; } #selectedEpisodesList li > span, #selectedFilesList li > span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } #selectedEpisodesList li > div, #selectedFilesList li > div { flex-shrink: 0; } .muted { color: #475569; font-size: 12px; margin-bottom: 8px; } .hidden { display: none !important; } #panelSearch #searchResults { margin-bottom: 10px; height: 220px; max-height: 220px; overflow-y: auto; } #panelSearch #searchResults li { min-height: 38px; height: 38px; align-items: center; } #panelSearch #searchResults li > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .series-details { border-top: 1px solid #e4eaf2; padding-top: 10px; } .series-media { margin-bottom: 8px; width: 100%; padding: 0 4px; } .series-media img { width: 100%; max-width: none; height: 92px; object-fit: contain; object-position: center center; display: block; margin: 0; border-radius: 6px; border: 1px solid #d7dee9; background: #f8fafc; } .series-meta { font-size: 12px; color: #334155; display: grid; gap: 4px; margin-bottom: 8px; } .series-meta span:first-child { color: #64748b; } .series-overview { margin: 0 0 8px; font-size: 12px; line-height: 1.35; color: #1e293b; } .series-link { font-size: 12px; color: #64748b; text-decoration: none; } .series-link:hover { text-decoration: underline; } #outputBox { margin: 0; background: #0b1220; color: #dbeafe; border-radius: 6px; padding: 10px; max-height: 320px; overflow: auto; font-size: 12px; } .debug-page { margin: 12px; } @media (max-width: 1600px) { .grid { grid-template-columns: repeat(2, minmax(280px, 1fr)); } } @media (max-width: 900px) { .grid { grid-template-columns: 1fr; } #panelEpisodes, #panelSelectedEpisodes, #panelSelectedFiles { min-height: 420px; } .modal-grid { grid-template-columns: 1fr; } }