:root{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Arial,sans-serif;font-size:13px;color:#172033;background:#f6f8fb;font-synthesis:none;text-rendering:optimizeLegibility;color-scheme:light}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,.button{height:30px;display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:0 10px;border:1px solid #d5dde8;border-radius:4px;background:#fff;color:#26374f;text-decoration:none;cursor:pointer;white-space:nowrap}button:disabled{opacity:.45;cursor:default}button:not(:disabled):hover,.button:hover{border-color:#9aaecb;background:#f7f9fc}button.primary,.button.primary{color:#fff;background:#2563eb;border-color:#2563eb}button.primary:not(:disabled):hover{background:#1d4ed8;border-color:#1d4ed8}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible,tr:focus-visible{outline:2px solid #2563eb;outline-offset:2px}input,select{height:30px;min-width:0;border:1px solid #cfd9e6;border-radius:4px;background:#fff;color:#24334d;padding:0 9px}select{cursor:pointer;padding-right:24px}a{color:#2563eb;text-decoration:none}a:hover{text-decoration:underline}svg{flex-shrink:0}h1,h2,p{margin:0}h1{font-size:17px;font-weight:600}h2{font-size:14px;font-weight:600}.muted{color:#64748b}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.icon-button{width:30px;min-width:30px;padding:0}.app-shell{max-width:1800px;min-height:100vh;margin:auto;background:#fff}.app-header{height:57px;padding:0 16px;display:flex;align-items:center;gap:14px;border-bottom:1px solid #dfe6ef}.brand{font-size:22px;font-weight:700;letter-spacing:-.7px;color:#111b34}.brand:hover{text-decoration:none}.section-name{font-size:13px;color:#425575}.header-actions{display:flex;gap:8px;margin-left:auto}.refresh-button{color:#2563eb;border-color:#acc3f9}.catalog-toolbar{padding:12px 16px;display:flex;gap:10px;align-items:center;border-bottom:1px solid #e3e9f1}.search-field{display:flex;align-items:center;gap:7px;border:1px solid #cfd9e6;border-radius:4px;height:30px;padding-left:9px;flex:0 1 260px;color:#5c6f8c}.search-field input{border:0;outline:0;width:100%;padding-left:0;background:transparent}.search-field:focus-within{outline:2px solid #2563eb;outline-offset:1px}.filter-controls{display:flex;gap:8px;min-width:0}.filter-controls select{max-width:170px;min-width:95px}.filter-controls select:last-child{min-width:145px}.view-switch{display:flex;gap:6px;margin-left:auto}.filter-toggle{display:none}.results-bar{height:45px;display:flex;align-items:center;justify-content:space-between;padding:0 16px;border-bottom:1px solid #e1e7f0}.results-bar strong{font-weight:600}.pager{display:flex;gap:4px;align-items:center}.pager>span{min-width:78px;text-align:center;font-variant-numeric:tabular-nums}.catalog-content{display:flex;align-items:stretch;min-height:calc(100vh - 160px)}.records-area{flex:1;min-width:0;padding:16px}.record-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:18px 12px}.record-card{border:0;padding:0;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;height:auto;min-width:0;white-space:normal;text-align:left;border-radius:4px;background:transparent;color:inherit}.record-card:not(:disabled):hover{border:0;background:transparent}.record-card:hover .card-title{color:#2563eb}.record-card.selected .card-poster{outline:2px solid #2563eb;outline-offset:2px}.card-poster{position:relative;aspect-ratio:16/10;border-radius:4px;overflow:hidden;background:#e2e7ef}.safe-image{position:relative;width:100%;height:100%;background:#e2e7ef;overflow:hidden}.safe-image img{width:100%;height:100%;object-fit:cover;display:block;opacity:0}.safe-image.loaded img{opacity:1}.image-placeholder{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:#9aabc0;background:#e2e7ef}.media-badge{position:absolute;bottom:6px;font-size:11px;font-weight:500;line-height:17px;padding:0 4px;border-radius:3px;background:#43536be8;color:#fff;font-variant-numeric:tabular-nums}.media-badge.quality{left:6px}.media-badge.duration{right:6px}.card-title{font-size:13px;font-weight:600;line-height:18px;margin-top:7px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}.card-creator{font-size:12px;line-height:18px;color:#526786;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.drawer-open .record-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.record-drawer{width:400px;flex:0 0 400px;min-width:0;border-left:1px solid #dce4ee;position:sticky;top:0;align-self:flex-start;max-height:100vh;overflow:auto;background:#fff}.drawer-header{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding:12px 12px 8px}.drawer-header h2{line-height:20px;padding-top:4px;overflow-wrap:anywhere}.drawer-header .icon-button{border:0}.drawer-body{padding:0 12px 16px}.preview-frame{position:relative;aspect-ratio:16/10;background:#e2e7ef;overflow:hidden;border-radius:4px}.preview-frame video{width:100%;height:100%;display:block;background:#152036}.play-button{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:48px;height:48px;border-radius:50%;border:0;background:#43536bd9;color:#fff;padding-left:13px}.play-button:not(:disabled):hover{background:#2563eb;border:0}.video-error{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:10px;padding:20px;background:#182236;color:#fff;text-align:center}.video-error>svg{color:#ff7474}.video-error button{height:28px;background:transparent;color:#fff;border-color:#65748c}.preview-select{display:flex;align-items:center;gap:8px;margin-top:8px;color:#64748b}.preview-select select{flex:1}.record-summary{font-size:12px;color:#526786;margin:8px 0}.source-button{width:100%;color:#2563eb;border-color:#b5c9f6;margin-top:8px}.description{font-size:12px;line-height:1.6;margin-top:14px;white-space:pre-line;overflow-wrap:anywhere}.detail-links{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 7px;font-size:12px;margin-top:12px;line-height:1.5}.detail-links>span:first-child{font-weight:600}.text-button{border:0;border-radius:0;padding:0;height:auto;color:#2563eb;background:transparent;white-space:normal;text-align:left}.text-button:not(:disabled):hover{border:0;background:transparent;text-decoration:underline}.metadata{border-top:1px solid #e2e8f0;margin-top:14px;font-size:12px}.metadata summary{padding:10px 0;font-weight:600;cursor:pointer}.metadata dl{display:grid;grid-template-columns:105px 1fr;gap:7px;margin:0}.metadata dt{color:#64748b}.metadata dd{margin:0;min-width:0;overflow-wrap:anywhere}.record-table-wrap{overflow-x:auto}.record-table{border-collapse:collapse;table-layout:fixed;width:100%;text-align:left;font-size:12px}.record-table th{color:#64748b;font-weight:500;white-space:nowrap}.record-table td,.record-table th{height:40px;border-bottom:1px solid #e4eaf2;padding:6px 8px;overflow:hidden;text-overflow:ellipsis}.record-table th:first-child{width:32%}.record-table th:nth-child(3){width:19%}.record-table th:last-child{width:34px}.record-table tbody tr{cursor:pointer}.record-table tbody tr:hover,.record-table tbody tr.selected{background:#f2f6ff}.record-table .table-title{font-weight:500;overflow-wrap:anywhere}.record-table .icon-button{border:0}.state-message{min-height:300px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px;text-align:center;padding:35px 20px}.state-message>svg{color:#91a3bc}.state-message h1{font-size:17px}.state-message p{line-height:1.6;max-width:360px}.state-message.auth-state{min-height:calc(100vh - 90px)}.error-text{color:#ba3545;font-size:12px;line-height:1.5}.loading-dot{width:20px;height:20px;border:2px solid #dce5f3;border-top-color:#2563eb;border-radius:50%;animation:spin 1s linear infinite}.skeleton{background:#e2e8f1;border-radius:3px}.poster-skeleton{aspect-ratio:16/10}.line-skeleton{height:12px;margin-top:10px;width:85%}.short-line{height:10px;margin-top:8px;width:55%}.skeleton-detail .line-skeleton{margin-top:14px}.bottom-pager{display:flex;justify-content:center;align-items:center;gap:16px;padding:16px;border-top:1px solid #e6ebf2}.login-layout{min-height:calc(100vh - 57px);display:flex;align-items:flex-start;justify-content:center;padding:clamp(80px,14vh,170px) 20px 40px}.login-form{width:320px;display:flex;flex-direction:column;gap:16px}.login-form h1{font-size:20px;letter-spacing:-.3px}.login-form>.muted{margin-top:-7px;font-size:13px}.password-field{display:flex;align-items:center;height:34px;gap:8px;padding-left:10px;border:1px solid #cfd9e6;border-radius:4px;color:#5c6f8c}.password-field:focus-within{outline:2px solid #2563eb;outline-offset:1px}.password-field input{width:100%;border:0;outline:0;padding:0;height:32px}.password-field .icon-button{border:0;height:32px}.login-submit{width:100%;height:32px}.spinning{animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}@media(min-width:1800px){.app-shell{border-left:1px solid #e1e7f0;border-right:1px solid #e1e7f0}}@media(max-width:1319px){.record-grid{grid-template-columns:repeat(5,minmax(0,1fr))}.drawer-open .record-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.catalog-toolbar{flex-wrap:wrap}.search-field{flex-basis:240px}.filter-controls{flex:1}.filter-controls select{flex:1;min-width:80px;max-width:155px}.view-switch{margin-left:auto}}@media(max-width:1099px){.record-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.drawer-open .record-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.search-field{flex-basis:220px}.filter-controls{order:3;flex-basis:100%}.filter-controls select{max-width:none}.record-table{min-width:650px}}@media(max-width:899px){.record-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.record-drawer{position:fixed;inset:0;width:100%;max-height:100dvh;z-index:20;border:0;overflow-y:auto}.drawer-header{position:sticky;top:0;z-index:2;background:#fff;border-bottom:1px solid #e1e7f0;padding:12px 16px}.drawer-body{max-width:700px;margin:auto;padding:12px 16px 24px}.drawer-body.state-message{max-width:none}.hidden-for-drawer,.drawer-open .bottom-pager{display:none}.drawer-open .record-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.metadata dl{grid-template-columns:110px 1fr}}@media(max-width:619px){.app-header{height:54px;gap:10px}.brand{font-size:21px}.section-name{font-size:12px}.header-actions{gap:5px}.header-actions button{width:30px;padding:0}.header-actions button span{display:none}.catalog-toolbar{padding:12px 16px;gap:8px}.search-field{order:0;flex-basis:100%}.filter-toggle{display:flex;order:1;flex:1;justify-content:flex-start;background:#f7f9fc}.view-switch{order:2}.filter-controls{display:none;order:3;flex-wrap:wrap;gap:8px}.filter-controls.expanded{display:flex}.filter-controls select{width:calc(50% - 4px);flex:auto;min-width:0;max-width:none}.filter-controls select:last-child{width:100%;flex-basis:100%}.record-grid,.drawer-open .record-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 12px}.records-area{padding:16px}.results-bar{height:44px;font-size:12px}.pager>span{min-width:58px}.card-title{font-size:12px;line-height:17px}.card-creator{font-size:12px}.media-badge{font-size:10px;bottom:5px}.media-badge.quality{left:5px}.media-badge.duration{right:5px}.login-layout{padding-top:90px}.record-summary,.description,.detail-links,.metadata{font-size:13px}.bottom-pager{gap:12px}}@media(prefers-reduced-motion:reduce){.spinning,.loading-dot{animation:none}*{scroll-behavior:auto!important}}
