*{box-sizing:border-box}body{margin:0;font-family:Inter,system-ui,Arial;background:#f4f7fb;color:#172234}.client-shell{min-height:100vh;display:grid;grid-template-columns:240px 1fr}.client-shell aside{background:#071a31;color:#fff;padding:24px 16px}.brand{display:flex;gap:12px;align-items:center;color:#fff;text-decoration:none;font-weight:800;margin-bottom:26px}.brand img{width:64px;height:64px;object-fit:contain;border-radius:12px;background:#fff}.client-shell nav{display:grid;gap:8px}.client-shell nav a{color:#d9e7f8;text-decoration:none;padding:11px 12px;border-radius:9px}.client-shell nav a:hover{background:#143052}.client-shell main{padding:24px}.client-shell header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.client-shell h1{margin:0}.panel{background:#fff;border:1px solid #dce5ef;border-radius:14px;padding:20px;margin-bottom:18px;box-shadow:0 5px 18px rgba(20,40,70,.05)}.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:18px}.cards>div{background:#fff;border:1px solid #dce5ef;border-radius:14px;padding:18px}.cards strong{display:block;font-size:28px}.cards span,small,.muted{color:#64748b}.channel-row{display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:14px;padding:12px 0;border-bottom:1px solid #edf2f7}.channel-row small,td small{display:block}.badge{display:inline-block;padding:5px 9px;border-radius:999px;background:#e8eef5}.badge.green{background:#daf8e7;color:#166534}.badge.red{background:#fee2e2;color:#991b1b}.badge.yellow{background:#fef3c7;color:#92400e}.btn,button{display:inline-block;border:0;background:#0b69d1;color:#fff;padding:10px 14px;border-radius:9px;text-decoration:none;cursor:pointer}.btn.ghost{background:#edf3f9;color:#17324d}label{display:grid;gap:6px;margin:12px 0;font-weight:600}input,textarea,select{width:100%;padding:10px;border:1px solid #cbd5e1;border-radius:8px;font:inherit}textarea{min-height:110px}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:16px}.check{display:flex;align-items:center;gap:8px}.check input{width:auto}.streambox{border:1px solid #dce5ef;border-radius:10px;padding:14px;margin-bottom:12px}.streambox code{display:block;word-break:break-all;background:#071a31;color:#dff3ff;padding:9px;border-radius:7px}table{width:100%;border-collapse:collapse}th,td{text-align:left;padding:10px;border-bottom:1px solid #edf2f7}.notice{padding:12px 14px;border-radius:10px;background:#e7f5ff;margin-bottom:16px}.notice.error{background:#fee2e2}.notice.warning{background:#fff3cd}.impersonation{position:sticky;top:0;z-index:10;background:#7c2d12;color:#fff;padding:10px 16px;text-align:center}.impersonation a{color:#fff;font-weight:800;margin-left:12px}.login-body{min-height:100vh;display:grid;place-items:center;background:#071a31}.login-card{width:min(430px,92vw);background:#fff;padding:28px;border-radius:16px;display:grid;gap:6px}.login-card img{width:120px;margin:auto}.login-card h1{text-align:center}.login-card>a{text-align:center;margin-top:8px}@media(max-width:800px){.client-shell{grid-template-columns:1fr}.client-shell aside{padding:12px}.client-shell nav{grid-template-columns:repeat(2,1fr)}.client-shell main{padding:14px}.cards,.grid2{grid-template-columns:1fr}.channel-row{grid-template-columns:1fr}.table-wrap{overflow:auto}}.channel-tools{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:18px}.channel-tools>div:first-child{display:flex;align-items:center;gap:10px}.channel-type{font-size:11px;font-weight:900;letter-spacing:.08em;background:#dbeafe;color:#1d4ed8;padding:6px 8px;border-radius:999px}.channel-actions{display:flex;gap:8px;flex-wrap:wrap}.channel-admin-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(360px,.8fr);gap:18px}.branding-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.brand-preview{display:block;width:100%;background:#eef3f8;border:1px solid #dce5ef;border-radius:10px;object-fit:cover;margin:5px 0 8px}.logo-preview{width:110px;height:110px}.banner-preview{width:min(100%,620px);height:auto;max-height:170px;object-fit:contain}.client-player-preview{aspect-ratio:16/9;background:#07111f;border-radius:12px;overflow:hidden}.client-player-preview iframe{width:100%;height:100%;border:0}.panel-title-row{display:flex;align-items:center;justify-content:space-between;gap:12px}.client-video-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.client-video-grid article{border:1px solid #dce5ef;border-radius:12px;overflow:hidden;padding-bottom:12px}.client-video-grid article>b,.client-video-grid article>small,.client-video-grid article>a{display:block;margin:8px 10px 0}.client-video-grid article>a{color:#0b69d1;text-decoration:none}.client-video-thumb{aspect-ratio:16/9;background:#17375e;color:#fff;display:grid;place-items:center;font-size:30px;overflow:hidden}.client-video-thumb img{width:100%;height:100%;object-fit:cover}#embedCode{min-height:112px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:12px}@media(max-width:980px){.channel-admin-grid{grid-template-columns:1fr}.client-video-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:640px){.channel-tools{align-items:flex-start;flex-direction:column}.branding-grid,.client-video-grid{grid-template-columns:1fr}.channel-actions{width:100%}.channel-actions .btn{flex:1;text-align:center}}
