.creator-youtube{display:flex;flex-wrap:wrap;gap:8px;align-items:end;margin:12px 0}.creator-youtube label{display:grid;gap:4px;min-width:0;font-size:12px}.creator-youtube label:first-child{flex:1 1 240px}.creator-youtube input{min-width:0;width:100%;box-sizing:border-box}.creator-youtube input[type=number]{width:110px}.creator-video-info{display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:12px;overflow-wrap:anywhere}.creator-video-info img{width:96px;height:54px;object-fit:cover}
@media(min-width:601px){.creator-youtube{flex-wrap:nowrap}.creator-youtube label:not(:first-child){flex:0 1 120px;width:120px}.creator-youtube input[type=number]{width:100%}.creator-youtube>button{flex-shrink:0}}
@media(max-width:600px){.creator-youtube label:first-child{flex-basis:100%}}
/* Round14: common external geometry; official player content is never overlaid. */
#play .arena{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:4px;align-items:stretch;overflow:hidden!important}
.candidate-shell{display:grid;grid-template-rows:54px minmax(0,1fr) 56px;min-width:0;min-height:0;height:100%;background:#080b12;border-radius:10px;overflow:hidden;position:relative}
.candidate-heading{display:flex;justify-content:flex-end;align-items:center;min-width:0;background:#0d1119e8;padding:6px 10px;box-sizing:border-box;z-index:1}
.candidate-title{color:#fff;text-align:right;font:700 clamp(12px,1.5vw,20px)/1.2 system-ui;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere;max-width:100%;background:#0005;border-radius:4px;padding:2px 4px}
.candidate-shell>.candidate-media,#play .candidate-shell>.candidate-media{position:relative;inset:auto;min-width:0;min-height:0;width:100%;height:100%;margin:0;overflow:hidden;display:block;background:#000;aspect-ratio:auto}
.candidate-media img.vs-photo,.candidate-media img.vs-backdrop{pointer-events:none}
.candidate-shell>.candidate-select,#play .candidate-shell>.candidate-select{position:relative;inset:auto;display:block;box-sizing:border-box;width:100%;height:100%;min-height:44px;border:0;border-radius:7px;padding:8px;background:linear-gradient(#268bff,#0062ed);color:#fff;font:800 clamp(14px,2.5vw,24px)/1.1 system-ui;cursor:pointer;aspect-ratio:auto;box-shadow:none;overflow:hidden}
.candidate-shell:has(>#b)>.candidate-select{background:linear-gradient(#ff4960,#ed1837)}
.candidate-shell>.candidate-select .name,#play .candidate-shell>.candidate-select .name{position:static;inset:auto;display:block;padding:0;min-height:0;background:none;color:inherit;font:inherit;text-align:center;text-shadow:none;transform:none;pointer-events:none}
.candidate-select:focus-visible{outline:3px solid #ffd16c!important;outline-offset:-4px}
.candidate-media .mixed-player{width:100%;height:100%;min-width:0;min-height:0;background:#000}
.mixed-player iframe{display:block;width:100%;height:100%;border:0}
.mixed-player-status{font:12px/1.4 system-ui;color:#eee;margin:0;padding:8px;overflow-wrap:anywhere;box-sizing:border-box}
.mixed-player-status:empty{display:none}
.candidate-media:has(.mixed-player-status:not(:empty)){display:grid!important;grid-template-rows:minmax(0,1fr) auto!important}
.candidate-shell[data-player-size=blocked]>.candidate-media{display:flex!important;align-items:flex-start;justify-content:center}
.candidate-shell[data-player-size=blocked] .mixed-player{display:none}
.giphy-stage{display:flex;flex-direction:column;height:100%;min-width:0;min-height:0;background:#000}
.giphy-frame{display:block;flex:1;width:100%;height:0;min-height:0;border:0}
.giphy-status,.giphy-stage>a{font:11px/1.3 system-ui;margin:4px 8px;color:#ddd;overflow-wrap:anywhere}
.giphy-stage>a{color:#9dcaff}
.creator-media-preview{min-width:0;flex:1;height:440px}
.candidate-champion{grid-template-rows:54px minmax(0,1fr)}
#end #winArt>.candidate-shell{width:100%;height:100%;box-sizing:border-box}
#end:has(.candidate-champion) .result-caption{position:relative}
#end #winName{white-space:normal;overflow:visible;overflow-wrap:anywhere;max-height:none;-webkit-line-clamp:unset}
@media(max-width:600px){.candidate-shell{grid-template-rows:54px minmax(0,1fr) 48px}.candidate-champion{grid-template-rows:54px minmax(0,1fr)}.candidate-heading{padding:4px}.candidate-title{font-size:12px}#play .arena{gap:2px}.creator-media-preview{height:400px}}

/* Keep winner controls and comments in their existing positions below the media. */
#end .result-photo:has(.candidate-champion){display:flex;flex-direction:column;height:auto;min-height:0;overflow:visible}
#end .result-photo:has(.candidate-champion) #winArt{position:relative;inset:auto;height:min(60svh,520px);min-height:260px;flex:none}
#end .result-photo:has(.candidate-champion) .result-caption{position:static;padding:18px 24px;background:#0b1017;pointer-events:none}

.candidate-media>iframe{display:block;width:100%;height:100%;border:0;min-width:0;min-height:0}
.candidate-shell>.candidate-select[hidden]{display:none!important}

/* Round32: desktop-only, viewport-fit portrait players; complete official frame. */
@media(min-width:901px){
 #play:has([data-playback=shorts]){overflow:visible;}
 #play .vs-stage:has([data-playback=shorts]){width:min(100%,1060px);margin-inline:auto;padding:0 4px 4px;box-sizing:border-box;}
 #play .arena:has([data-playback=shorts]){height:var(--shorts-arena-height,calc(100svh - 80px))!important;min-height:0;max-height:none;overflow:visible!important;}
 #play .arena:has([data-playback=shorts]) .candidate-shell{grid-template-rows:44px minmax(0,1fr) 48px;overflow:visible;}
 .candidate-shell[data-playback=shorts]>.candidate-media{display:grid!important;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto;justify-items:stretch;align-items:stretch;overflow:visible;}
 .candidate-shell[data-playback=shorts] .mixed-player{height:100%;width:auto;max-width:100%;aspect-ratio:9/16;justify-self:center;align-self:start;}
 #previewGame .match:has([data-playback=shorts]){align-items:stretch;}
 #previewGame .creator-media-preview:has([data-playback=shorts]){height:calc(100svh - 180px);min-height:320px;}
}

/* Round37: header controls only; media and card geometry unchanged. */
.shorts-sound-button{display:grid;place-items:center;flex:none;width:40px;height:40px;min-width:40px;padding:8px;border:1px solid #ffffff30;border-radius:50%;background:#151e2b;color:#fff;cursor:pointer;box-sizing:border-box}
.shorts-sound-button[hidden]{display:none!important}.shorts-sound-button svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.shorts-sound-button:focus-visible{outline:2px solid #ffd16c;outline-offset:2px}
#roundSelection[data-shorts-sound] .round-topbar{grid-template-columns:44px minmax(0,1fr) 40px}
#play[data-shorts-sound] .bar{grid-template-columns:44px minmax(0,1fr) auto 40px;box-sizing:border-box}
@media(min-width:901px){#play[data-shorts-sound]:has([data-playback=shorts]) .bar{width:min(calc(100% - 8px),1052px);margin-inline:auto;padding-left:0;padding-right:0}}

/* Round38: regular YouTube has a landscape frame; Shorts and mobile stay unchanged. */
@media(min-width:901px){
 #play .candidate-shell[data-kind=youtube]:not([data-playback=shorts])>.candidate-media{grid-template-columns:minmax(0,1fr)}
 #play .candidate-shell[data-kind=youtube]:not([data-playback=shorts]) .mixed-player{width:100%;height:auto;aspect-ratio:16/9;align-self:center;justify-self:stretch}
}

/* Round39: fill the existing GIPHY media slot; retain the complete official frame. */
.candidate-shell[data-kind=giphy]>.candidate-media{display:grid!important;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr)}
.candidate-shell[data-kind=giphy] .giphy-stage{width:100%;height:100%;box-sizing:border-box}
.candidate-shell[data-kind=giphy] .giphy-frame{flex:1 1 0;min-width:0;align-self:stretch}

/* Round40: SELECT-only GIPHY input and compact, non-overlay source/error footer. */
.giphy-frame{pointer-events:none}
.giphy-status[hidden]{display:none!important}
.giphy-stage>a{flex:none;font-size:11px;line-height:1.2;margin:2px 8px}
.giphy-status{flex:none;font-size:11px;line-height:1.3;margin:2px 8px}
.giphy-preview-source,.home-giphy-source{font-size:11px;line-height:1.3;margin-right:8px}

/* Round42: mobile catalogue only; battle/admin attribution remains available. */
@media(max-width:767px){#start .home-card .home-giphy-source{display:none!important}}

/* Round43: one compact estimate under the GIPHY candidate name, without new controls. */
.creator-candidate-input .giphy-size-estimate{flex-basis:100%;margin:4px 0;font:inherit;line-height:1.3;white-space:nowrap;overflow-x:auto;max-width:100%}

/* Round44: hide only app-rendered external GIPHY links; retain URLs and native iframe UI. */
#start .home-card .home-giphy-source,.candidate-shell .giphy-stage>a,.photo-editor-card .giphy-preview-source{display:none!important}

.member-workspace{position:fixed;inset:0;z-index:10000;overflow:auto;background:#121925}.member-workspace[hidden]{display:none}body.member-workspace-open{overflow:hidden}

/* Phase11: candidate-name alignment only; no frame/media/select geometry. */
body #play .candidate-shell:has(>#a)>.candidate-heading{justify-content:flex-start!important}
body #play .candidate-shell:has(>#b)>.candidate-heading{justify-content:flex-end!important}
body #play .candidate-shell:has(>#a) .candidate-title{text-align:left!important}
body #play .candidate-shell:has(>#b) .candidate-title{text-align:right!important}
#play #a:not(.candidate-select)>.name{text-align:left}
#play #b:not(.candidate-select)>.name{text-align:right}
