body{margin:0;background:var(--color-bg);color:#ecf4fa;font:15px system-ui}main{max-width:1200px;margin:30px auto;padding:20px}a{color:var(--color-primary)}header{display:flex;gap:var(--space-5);align-items:center;margin-bottom:28px}.grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.card{background:white;color:var(--color-text);padding:22px;border-radius:14px;margin-bottom:20px}label{display:block;margin:12px 0}input,select,textarea,button{font:inherit;padding:9px;border:1px solid #bccbd5;border-radius:var(--radius-sm);box-sizing:border-box}input:not([type=checkbox]),select,textarea{display:block;width:100%;margin-top:5px}textarea{min-height:75px}button{cursor:pointer;background:#e8f7fa;color:#174355}button.primary{background:var(--color-primary)}table{width:100%;border-collapse:collapse}th,td{text-align:left;padding:10px;border-bottom:1px solid var(--color-border)}small{color:var(--color-text-muted)}#status{padding:10px;color:#ffba67}#choices{max-height:240px;overflow:auto}.scroll{overflow:auto}.row{display:flex;gap:10px;align-items:center}.row label{flex:1}.muted{color:var(--color-text-muted)}@media(max-width:700px){.grid{grid-template-columns:1fr}main{padding:var(--space-3);margin:0}header{flex-wrap:wrap}th,td{padding:7px}}

.activity-notice{font-size:12px;color:#9fb4c8;text-align:center;padding:12px 20px;margin:0;}
.opponent-directions[hidden]{display:none}.opponent-directions{scroll-margin-top:var(--space-4)}.opponent-directions h2{margin-top:0}.opponent-direction-stats{display:flex;flex-wrap:wrap;gap:var(--space-2);margin:15px 0}.opponent-direction-stats span{padding:9px 12px;border:1px solid var(--color-border);border-radius:var(--radius-md);background:#f4fafb;font-weight:600}.opponent-directions .direction-code-gallery{grid-template-columns:repeat(auto-fill,minmax(190px,1fr));margin-bottom:18px}.opponent-directions .direction-code-card>header{margin:0 0 8px}.opponent-directions .opponent-direction-table tr.active{background:#eaf7f7}.opponent-directions .opponent-direction-table button{border:0;background:transparent;color:#087f9a;font-weight:700;padding:3px}.opponent-directions>small{display:block;margin-top:var(--space-3)}
.match-visibility-section{margin-top:18px;padding-top:14px;border-top:1px solid #dce6eb}.visibility-match{display:flex;align-items:center;gap:10px;padding:9px;border-bottom:1px solid #edf1f3}.visibility-match span{display:grid;gap:3px}.visibility-match small{color:#778992;font-size:11px}
.match-visibility-section{margin-top:18px;padding-top:14px;border-top:1px solid #dce6eb}.match-visibility-section summary{cursor:pointer;font-weight:700;color:#264b5d;margin-bottom:12px}.match-visibility-section[open] summary{margin-bottom:12px}.visibility-match{display:flex;align-items:center;gap:10px;padding:9px;border-bottom:1px solid #edf1f3}.visibility-match span{display:grid;gap:3px}.visibility-match small{color:#778992;font-size:11px}.match-visibility-section #visibilityStatus{font-size:12px;color:#55717d}.match-visibility-section #visibilityStatus:empty{display:none}

/* Management pages redesign: roster + activity, scoped to main.mgmt. */
.mgmt{max-width:1240px;margin:26px auto;padding:0 20px 40px}
.mgmt .mgmt-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:16px;padding-bottom:14px;border-bottom:1px solid #22324a}
.mgmt .mgmt-back{display:inline-block;margin-bottom:8px;font-size:11px;font-weight:650;letter-spacing:.04em;text-transform:uppercase;color:#8fa6c3;text-decoration:none}
.mgmt .mgmt-back:hover{color:var(--color-primary)}
.mgmt h1{margin:0;font-size:26px;line-height:1.2;letter-spacing:-.015em;color:#f4f9fc}
.mgmt .mgmt-head p{margin:4px 0 0;font-size:12px;color:#8fa6c3}
.mgmt .head-tools{display:flex;align-items:center;gap:12px;padding-bottom:2px}
.mgmt .head-tools .updated{margin:0;font-size:11px;color:#8fa6c3}
.mgmt .card{padding:18px 20px;border:1px solid #dde7ec;border-radius:14px;background:#fff;box-shadow:0 8px 24px #0b152214}
.mgmt .card-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 12px;padding-bottom:10px;border-bottom:1px solid #eef3f6}
.mgmt .card-head h2{margin:0;font-size:15px;letter-spacing:-.005em;color:#16242d}
.mgmt .count{padding:2px 9px;border-radius:999px;background:#eef5f8;color:#4a6575;font-size:11px;font-weight:650}
.mgmt .count:empty{display:none}
.mgmt-split{display:grid;grid-template-columns:360px minmax(0,1fr);gap:18px;margin-bottom:18px}
.mgmt .form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 14px}
.mgmt .span2{grid-column:1/-1}
.mgmt label{display:block;margin:12px 0;font-size:12px;font-weight:600;color:#546c7c}
.mgmt input,.mgmt select,.mgmt textarea{display:block;width:100%;height:36px;margin-top:5px;padding:0 10px;border:1px solid #ccdae2;border-radius:8px;background:#fbfdfe;font-size:13px;color:#1d2f3a}
.mgmt textarea{height:auto;min-height:78px;padding:8px 10px;line-height:1.5;resize:vertical}
.mgmt input:focus,.mgmt select:focus,.mgmt textarea:focus{border-color:var(--color-primary);background:#fff;outline:2px solid #bdeef7;outline-offset:0}
.mgmt small{display:block;margin-top:4px;font-size:11px;line-height:1.45;color:#7b909d}
.mgmt .note{margin:12px 0 0;font-size:11px;line-height:1.5;color:#7b909d}
.mgmt .actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.mgmt button{display:inline-flex;align-items:center;justify-content:center;height:34px;padding:0 13px;border:1px solid #cddbe3;border-radius:8px;background:#f2f7fa;color:#274653;font-size:12px;font-weight:650;white-space:nowrap}
.mgmt button:hover{background:#e8f2f6;border-color:#b6cbd7}
.mgmt button.primary{border-color:transparent;background:var(--color-primary);color:#062c39}
.mgmt button.primary:hover{background:#7fe3f2}
.mgmt button.danger{border-color:#e8cdc6;background:#fdf4f2;color:#a33b24}
.mgmt button.danger:hover{background:#fbeae6}
.mgmt button:disabled{opacity:.5;cursor:not-allowed}
.mgmt .table-tools{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-end;margin-bottom:12px}
.mgmt .search{margin:0;flex:1 1 260px;max-width:340px}
.mgmt .table-tools .search{flex:0 1 320px}
.mgmt-table{width:100%;border-collapse:separate;border-spacing:0;font-size:13px}
.mgmt-table th{padding:8px 10px;border-bottom:1px solid #e3ebf0;background:#f4f8fa;color:#71889a;font-size:9.5px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;white-space:nowrap}
.mgmt-table td{padding:9px 10px;border-bottom:1px solid #eef3f6;vertical-align:middle;color:#2b3f4b}
.mgmt-table tbody tr:hover{background:#f7fbfc}
.mgmt-table tbody tr.is-selected{background:#eaf8fb;box-shadow:inset 3px 0 var(--color-primary)}
.mgmt-table tbody tr.is-selected:hover{background:#e3f5fa}
.mgmt-table .right{text-align:right}
.mgmt-table .num{width:44px}
.mgmt-table .name{font-weight:650;color:#16242d}
.mgmt-table .key{font-family:Consolas,monospace;font-size:11.5px;color:#6b8494}
.mgmt-table code{padding:1px 6px;border-radius:5px;background:#eef3f6;font-size:11.5px;color:#2b6f82}
.mgmt-table .jersey{display:inline-flex;align-items:center;justify-content:center;min-width:26px;height:24px;padding:0 6px;border:1px solid #dbe6ec;border-radius:999px;background:#f4f8fa;color:#3f5a6a;font-size:11.5px;font-weight:700;font-variant-numeric:tabular-nums}
.mgmt-table .dur{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums;font-weight:600}
.mgmt-table .time{white-space:nowrap;font-variant-numeric:tabular-nums;font-weight:600;color:#22323d}
.mgmt-table .time small{display:block;margin:1px 0 0;font-size:10px;font-weight:400;color:#8aa0ad}
.mgmt .empty td{padding:22px 12px;text-align:center;color:#7b909d}
.mgmt .link{height:auto;padding:2px 6px;border:0;background:none;color:#2b6f82;font-size:12px;font-weight:650}
.mgmt .link:hover{background:#e9f4f8;border:0;color:#124655}
.mgmt .link.danger{color:#a34a34}
.mgmt .link.danger:hover{background:#fbeae6;color:#7f2c19}
.mgmt .toolbar{display:flex;flex-wrap:wrap;align-items:flex-end;gap:8px 18px;margin-bottom:18px}
.mgmt .filters{display:grid;grid-template-columns:repeat(3,minmax(160px,1fr));gap:0 14px;flex:1 1 520px}
.mgmt .filters label{margin:0}
.mgmt .toolbar>.help{flex-basis:100%;margin:4px 0 0;font-size:11px;color:#7b909d}
.mgmt details.help summary{cursor:pointer;font-weight:650;color:#4f6a7a}
.mgmt details.help p{margin:8px 0 0;font-size:11px;line-height:1.6;color:#6f8593;max-width:900px}
.mgmt .kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:18px}
.mgmt .kpi{padding:12px 14px;border:1px solid #dde7ec;border-radius:12px;background:#fff}
.mgmt .kpi span{display:block;font-size:9.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#7b95a5}
.mgmt .kpi b{display:block;margin-top:4px;font-size:20px;line-height:1.15;letter-spacing:-.01em;color:#16242d;font-variant-numeric:tabular-nums}
.mgmt .live{display:grid;gap:8px}
.mgmt .live-user{display:flex;align-items:center;gap:10px;min-width:0;padding:9px 10px;border:1px solid #edf3f6;border-radius:10px}
.mgmt .avatar{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#e6f5f9;color:#1f6274;font-size:11px;font-weight:700}
.mgmt .live-user b{display:block;font-size:12.5px;color:#22323d}
.mgmt .live-user small{display:block;margin:1px 0 0;font-size:11px;color:#7b909d}
.mgmt .tag{margin-left:auto;padding:2px 8px;border-radius:999px;background:#eef3f6;color:#5b7383;font-size:10px;font-weight:700;white-space:nowrap}
.mgmt .tag.watching{background:#e3f7fb;color:#12606f}
.mgmt .live .empty{margin:2px 0;padding:14px 2px;font-size:12px;color:#7b909d}
.mgmt .role{padding:2px 8px;border-radius:999px;background:#eef3f6;color:#4f6a7a;font-size:10.5px;font-weight:650}
.mgmt .ev{padding:2px 8px;border-radius:999px;background:#eef3f6;color:#3f5a6a;font-size:11px;font-weight:650;white-space:nowrap}
.mgmt .ev-video_play,.mgmt .ev-video_pause,.mgmt .ev-video_seek{background:#e3f7fb;color:#12606f}
.mgmt .ev-login,.mgmt .ev-logout{background:#eceef8;color:#4a5b86}
.mgmt #status{margin:0 0 12px;padding:0;font-size:12px}
.mgmt #status:empty{display:none}
.mgmt #status:not(:empty){padding:9px 12px;border:1px solid #6d4b1e;border-radius:8px;background:#2a2113;color:#ffcf8a}
.mgmt #updated{font-size:11px;color:#8fa6c3}
.mgmt #more{margin-top:12px}
.mgmt .scroll{overflow-x:auto}
@media(max-width:960px){.mgmt-split{grid-template-columns:minmax(0,1fr)}.mgmt .kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Admin pages: cloud, users and DRM share the compact management shell. */
.admin-page{max-width:1240px;margin:26px auto;padding:0 20px 40px}
.admin-page .admin-nav{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.admin-page [hidden]{display:none!important}
.admin-page .admin-nav a{display:inline-flex;align-items:center;height:32px;padding:0 10px;border:1px solid #2d4054;border-radius:8px;background:#111c2e;color:#a9c1d3;font-size:11px;font-weight:650;text-decoration:none;white-space:nowrap}
.admin-page .admin-nav a:hover{background:#17263d;border-color:#3d5874;color:#dff7fb}
.admin-page .admin-nav a[aria-current=page]{background:var(--color-primary-soft);border-color:var(--color-primary);color:var(--color-primary-ink)}
.admin-page .card-head p,.admin-page .section-head p{margin:3px 0 0;font-size:11px;line-height:1.45;color:#7b909d}
.admin-page .admin-toolbar{display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px}
.admin-page .admin-search{flex:1 1 280px;max-width:430px;margin:0}
.admin-page .admin-search input{margin-top:5px}
.admin-page .admin-meta{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 14px}
.admin-page .admin-empty{padding:24px 12px;text-align:center;color:#7b909d}
.admin-page .link{height:auto;padding:2px 6px;border:0;background:none;color:#2b6f82;font-size:12px;font-weight:650;text-decoration:none}
.admin-page .link:hover{background:#e9f4f8;border:0;color:#124655}
.admin-page .link.danger{color:#a34a34}
.admin-page .link.danger:hover{background:#fbeae6;color:#7f2c19}
.admin-page .chip{display:inline-flex;align-items:center;padding:3px 8px;border-radius:999px;background:#eef5f8;color:#356273;font-size:11px;font-weight:650;text-decoration:none}
.admin-page .chip:hover{background:#e0f2f7;color:#124655}
main.admin-page>#status,main.admin-page>#notice{margin:0 0 14px;padding:0;font-size:12px;font-weight:600;color:#8be0bf;background:transparent;border:0}
main.admin-page>#status:not(:empty),main.admin-page>#notice:not(:empty){padding:0;border:0;background:transparent;color:#a9dce6}
main.admin-page>#status:empty,main.admin-page>#notice:empty{display:none}
main.admin-page>#status.error,main.admin-page>#notice.error{padding:9px 12px;border:1px solid #6d2b30;border-radius:8px;background:#2a1315;color:#ffb4bf}
main.admin-page>#status.error:not(:empty),main.admin-page>#notice.error:not(:empty){padding:9px 12px;border:1px solid #6d2b30;border-radius:8px;background:#2a1315;color:#ffb4bf}
.cloud-page .cloud-library{padding:0;overflow:hidden}
.cloud-page .cloud-library .card-head{padding:16px 20px 10px;margin:0}
.cloud-page .cloud-library .admin-toolbar{padding:0 20px 14px;border-bottom:1px solid #eef3f6}
.cloud-page .cloud-table td:first-child{min-width:230px}
.cloud-page .video-name{font-size:13px;color:#16242d}
.cloud-page .row-note{margin:3px 0 0;font-size:11.5px;line-height:1.45;color:#7b909d}
.cloud-page .row-actions{display:flex;flex-wrap:wrap;gap:4px;justify-content:flex-end}
.cloud-page .cell-body{min-width:0}
.cloud-page .cloud-more{padding:12px 20px 16px}
.cloud-page .admin-panel-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.cloud-page .admin-panel-grid .card{margin:0;padding:20px}
.cloud-page .admin-panel-grid h2{margin:0 0 12px;font-size:16px}
.cloud-page .form-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.cloud-page .form-note{margin:12px 0 0;padding:10px 12px;border-radius:8px;background:#f4f8fa;color:#607886;font-size:11.5px;line-height:1.55}
@media(max-width:860px){.cloud-page .admin-panel-grid{grid-template-columns:1fr}}
@media(max-width:700px){
 .cloud-page .cloud-table thead{display:none}
 .cloud-page .cloud-table,.cloud-page .cloud-table tbody{display:block}
 .cloud-page .cloud-table tr{display:block;padding:12px 16px;border-top:1px solid #eef3f6}
 .cloud-page .cloud-table td{display:grid;grid-template-columns:96px minmax(0,1fr);gap:10px;max-width:none;padding:5px 0;border:0;vertical-align:top}
 .cloud-page .cloud-table td::before{content:attr(data-label);font-size:9.5px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:#7b95a5}
 .cloud-page .cloud-table td:first-child{min-width:0}
 .cloud-page .cloud-table .empty-row td{display:block}
 .cloud-page .row-actions{justify-content:flex-start}
}
@media(max-width:760px){
 .mgmt{margin:16px auto;padding:0 12px 32px}
 .mgmt .mgmt-head{flex-direction:column;align-items:flex-start;gap:10px}
 .mgmt h1{font-size:22px}
 .mgmt .head-tools{width:100%;justify-content:space-between}
 .mgmt .card{padding:14px;border-radius:12px}
 .mgmt .form-grid{grid-template-columns:minmax(0,1fr)}
 .mgmt .filters{grid-template-columns:minmax(0,1fr);flex-basis:100%}
 .mgmt .actions button{flex:1 1 45%}
 .mgmt-table{font-size:12px;min-width:600px}
 .mgmt-table th,.mgmt-table td{padding:8px}
 .mgmt .table-tools .search{flex:1 1 100%;max-width:none}
}

.mgmt-split{align-items:start}
.mgmt-table th.right{text-align:right}
.mgmt-table td.right{white-space:nowrap}
.mgmt-table td.right .link+ .link{margin-left:4px}
.mgmt .live-user>div{min-width:0}
.mgmt .live-user small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(max-width:760px){
 .mgmt-table{min-width:0}
 .roster-table thead,.totals-table thead,.watches-table thead,.events-table thead{display:none}
 .roster-table,.roster-table tbody,.totals-table,.totals-table tbody,.watches-table,.watches-table tbody,.events-table,.events-table tbody{display:block}
 .roster-table tr{display:grid;grid-template-columns:32px minmax(0,1fr) auto auto;grid-template-areas:"num name name actions" "num code pos actions";align-items:center;gap:2px 10px;padding:10px 2px;border-bottom:1px solid #eef3f6}
 .roster-table td{border:0;padding:0}
 .roster-table td.num{grid-area:num}
 .roster-table td.name{grid-area:name}
 .roster-table td:nth-child(3){grid-area:code}
 .roster-table td:nth-child(4){grid-area:pos;justify-self:end;font-size:11px;color:#6b8494}
 .roster-table td.key{display:none}
 .roster-table td.right{grid-area:actions}
 .totals-table tr,.watches-table tr,.events-table tr{padding:10px 2px;border-bottom:1px solid #eef3f6}
 .totals-table tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 10px}
 .totals-table td,.watches-table td,.events-table td{border:0;padding:0;text-align:left}
 .totals-table td:nth-child(1){font-weight:650;color:#16242d}
 .totals-table td:nth-child(2){justify-self:end}
 .totals-table td:nth-child(3){font-size:11.5px;color:#3f5a6a;font-weight:600;text-align:left}
 .totals-table td:nth-child(4){justify-self:end;font-size:11.5px;color:#3f5a6a;font-weight:600}
 .totals-table td:nth-child(3)::before{content:"Aktif ";color:#8aa0ad;font-weight:400}
 .totals-table td:nth-child(4)::before{content:"İzleme ";color:#8aa0ad;font-weight:400}
 .watches-table tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 10px}
 .watches-table td:nth-child(1){font-weight:650;color:#16242d}
 .watches-table td:nth-child(2){grid-column:1/-1;font-size:11px;color:#7b909d}
 .watches-table td:nth-child(3){grid-row:1;grid-column:2;justify-self:end;text-align:right;font-weight:600;color:#3f5a6a}
 .events-table tr{display:grid;grid-template-columns:auto minmax(0,1fr);gap:3px 8px}
 .events-table td:nth-child(1){grid-column:1;grid-row:1;font-size:11px}
 .events-table td:nth-child(1) small{display:none}
 .events-table td:nth-child(2){grid-column:2;grid-row:1;font-weight:600;color:#16242d;text-align:right}
 .events-table td:nth-child(3){grid-column:1;grid-row:2;justify-self:start}
 .events-table td:nth-child(4){grid-column:2;grid-row:2;font-size:11px;color:#7b909d}
}
