/* An optional tournament-only production panel in Live Control. */
.tg-panel{margin:18px 0 22px;border:1px solid rgba(199,255,61,.27);border-radius:16px;overflow:hidden;background:linear-gradient(150deg,#0f2819,#09170f);box-shadow:0 10px 36px #020c0733}
.tg-top{padding:20px 21px;display:flex;justify-content:space-between;gap:18px;align-items:center;border-bottom:1px solid #36533955}
.tg-top h2{font-size:clamp(22px,2.5vw,28px);margin:3px 0 5px;color:#f3f9ef;font-weight:950}
.tg-top p:not(.eyebrow){font-size:12px;line-height:1.5;color:#a6bfa7;margin:0}
.tg-enable{display:flex;align-items:center;gap:10px;padding:12px 14px;cursor:pointer;white-space:nowrap;background:#152f1d;border-radius:12px;border:1px solid #456b39;font-weight:950!important;font-size:13px!important;color:#e5f5d7!important}
.tg-enable input{appearance:auto;width:19px;height:19px;min-height:0;margin:0;accent-color:#c7ff3d}
.tg-control-body{padding:17px 21px 21px}
.tg-match-picker{display:block;max-width:760px;font-size:12px}
.tg-match-picker select{min-height:46px}
.tg-modes{display:flex;gap:9px;flex-wrap:wrap;margin-top:17px}
.tg-modes button{flex:1 1 125px;min-height:45px;padding:9px 12px;font-size:11px;font-weight:950;letter-spacing:.02em;border:1px solid #314d37;background:#13271a;color:#d9ebd4;border-radius:10px}
.tg-modes button:first-child{color:#ffb5a7;border-color:#905045}
.tg-modes button.tg-selected{background:#c7ff3d;color:#07120a;border-color:#c7ff3d}
.tg-modes button:first-child.tg-selected{background:#ffb5a7;color:#22100f;border-color:#ffb5a7}
.tg-current{margin:11px 0 15px;color:#92a999;font-size:12px}.tg-current strong{color:#c7ff3d}
.tg-details{border:1px solid #344d37;border-radius:12px;background:#091910;margin-top:12px;overflow:hidden}
.tg-details summary{padding:13px 15px;color:#e9f6e6;cursor:pointer;font-size:13px;font-weight:900}
.tg-details>p{font-size:11px;line-height:1.5;padding:0 15px;margin:0 0 11px;color:#99b6a0}
.tg-persons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:0 13px 13px}
.tg-person{border:1px solid #27412c;background:#0b2115;padding:12px;border-radius:10px}
.tg-person>strong{display:block;font-size:12px;color:#c7ff3d;margin:0 0 9px}
.tg-person-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.tg-person-grid label{font-size:10px;color:#aac0ae;letter-spacing:0}
.tg-person-grid input{min-height:34px;padding:6px 8px;font-size:12px;margin-top:4px}
.tg-details>button{margin:0 13px 13px}
.tg-footer{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin:15px 0 10px}
.tg-footer a,.tg-footer button{min-height:38px;font-size:11px}
.tg-feedback{font-size:11px;color:#c7ff3d}
.tg-help{font-size:11px;line-height:1.65;color:#809986;margin:10px 0 0}
@media(max-width:700px){.tg-top{align-items:stretch;flex-direction:column}.tg-persons{grid-template-columns:1fr}.tg-control-body{padding:14px}.tg-top{padding:16px}}

/* Same-origin, read-only TV preview. Displaying it does not start OBS output. */
.tg-preview-details{margin:19px 0 11px;border:1px solid rgba(199,255,61,.36);border-radius:12px;background:#0c2013;overflow:hidden}
.tg-preview-details>summary{padding:14px 16px;cursor:pointer;color:#c7ff3d;font-weight:950;font-size:13px;letter-spacing:.045em}
.tg-preview-details>summary span{display:block;margin-top:4px;font-size:10px;font-weight:700;letter-spacing:normal;color:#a4baa5}
.tg-preview-container{padding:10px 12px 13px;border-top:1px solid rgba(199,255,61,.17)}
.tg-preview-stage{width:100%;aspect-ratio:16/9;overflow:hidden;border:1px solid rgba(199,255,61,.27);background:#06110a;border-radius:9px;position:relative}
.tg-preview-stage iframe{display:block;border:0;width:100%;height:100%;background:#06110a}
.tg-preview-info{display:flex;flex-wrap:wrap;gap:9px;justify-content:space-between;font-size:11px;color:#bdd0b6;margin:12px 4px 1px;line-height:1.5}
.tg-preview-info span:first-child{color:#c7ff3d;font-weight:850}


.tg-draw-picker{display:block;margin:13px 0 3px;padding:12px 14px;border:1px solid rgba(199,255,61,.3);border-radius:11px;background:#0d2415;font-size:12px;color:#d7eed0;font-weight:900}
.tg-draw-picker select{font-size:13px;min-height:45px;margin-top:8px;color:#c7ff3d}
.tg-draw-note{margin:0 0 13px;font-size:11px;line-height:1.5;color:#a7bda7}


/* Live Control — programme scoped to one streaming court, not every court. */
.tg-schedule-court{padding:14px 16px;margin:14px 0 15px;background:linear-gradient(125deg,#112d19,#092011);border:1px solid rgba(199,255,61,.4);border-radius:12px}
.tg-schedule-court>label{display:block;font-weight:950;font-size:12px;color:#c7ff3d;letter-spacing:.03em}
.tg-schedule-court select{margin-top:9px;min-height:46px;width:100%;color:#e8f5dd;font-size:13px}
.tg-schedule-court>p{font-size:11px;color:#a9c4a8;line-height:1.55;margin:9px 0 0}
.tg-copy-court{border-color:#b4ec43!important;color:#c7ff3d!important}


/* Independent, movable OBS sources: one fixed URL for every graphic and court */
.tg-overlay-links{margin:18px 0 12px;background:#081a10;border:1px solid rgba(199,255,61,.35);border-radius:13px;overflow:hidden}
.tg-overlay-links>summary{padding:16px 18px;cursor:pointer;color:#c7ff3d;font-size:13px;font-weight:950;letter-spacing:.045em}
.tg-overlay-links>summary span{display:block;font-size:11px;letter-spacing:normal;color:#9db69f;margin-top:5px;font-weight:650}
.tg-overlay-links-body{padding:15px 16px;border-top:1px solid rgba(199,255,61,.18)}
.tg-overlay-links-body>p{font-size:11px;line-height:1.55;color:#abc0a9;margin:0 0 13px}
.tg-overlay-items{display:grid;gap:8px}
.tg-overlay-item{display:flex;align-items:center;justify-content:space-between;gap:16px;border:1px solid rgba(199,255,61,.17);border-radius:10px;padding:13px 14px;background:#0d2416}
.tg-overlay-item>div:first-child{min-width:0}
.tg-overlay-item strong{display:block;font-size:13px;color:#eefce8;font-weight:950;line-height:1.35}
.tg-overlay-item small{display:block;color:#9db7a1;font-size:10px;line-height:1.55;margin-top:3px}
.tg-overlay-actions{display:flex;align-items:center;gap:7px;flex-shrink:0}
.tg-overlay-actions a,.tg-overlay-actions button{font-size:10px;font-weight:850;min-height:36px;padding:7px 12px;white-space:nowrap}
.tg-overlay-footnote{margin:13px 2px 1px!important;color:#a2bda2!important}
@media(max-width:670px){.tg-overlay-item{align-items:stretch;flex-direction:column}.tg-overlay-actions{flex-wrap:wrap;justify-content:flex-start}}
