/* HULK cinema surface: the picture keeps its ratio, with controls inside it. */
.http-block{min-height:100dvh;display:grid;place-items:center;padding:24px;background:#080a0d}
.http-block main{max-width:450px;padding:32px;text-align:center;border:1px solid #62502d;border-radius:16px;background:#111419}
.http-block h1{font-size:24px;margin:20px 0 12px}
.http-block p{font-size:14px;line-height:1.9;color:#aab0b7;margin-block:16px}
#watchDialog{width:min(1240px,calc(100% - 48px),calc((100dvh - 48px) * 16 / 9));height:auto;max-height:calc(100dvh - 48px);border:1px solid #62502d;border-radius:18px;overflow:hidden;background:#030405;box-shadow:0 32px 100px #000a}
#watchDialog[open]{display:grid;place-items:center}
#watchDialog #watchPlayerHost{width:100%;height:auto;display:block;flex:none;overflow:visible}
#watchDialog .player-panel{height:auto;display:block;flex:none;border:0;border-radius:0}
#playerPanel{background:#030405;border:1px solid #393c40;border-radius:14px;overflow:hidden;isolation:isolate}
#playerPanel .video-stage{position:relative;width:100%;aspect-ratio:16/9;flex:none;min-height:0;background:radial-gradient(ellipse at 55% 30%,#28221355,transparent 70%),#050608}
#video{display:block;width:100%;height:100%;object-fit:contain}
#playerPanel .player-overlay{position:absolute;z-index:3;inset-inline:0;transition:opacity .22s ease,visibility .22s ease}
#playerPanel .player-topbar{top:0;display:flex;align-items:center;gap:12px;padding:14px 18px 28px;background:linear-gradient(#000b,#0006,transparent)}
#playerPanel .player-title{min-width:0;flex:1}
#playerPanel #playingTitle{font-size:17px;line-height:1.6;font-weight:500;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-shadow:0 1px 6px #000}
#playerPanel #sourceStatus{display:block;font-size:10px;line-height:1.5;letter-spacing:.03em;color:#c0b594;margin:0 0 2px}
#playerPanel .icon-button,#playerPanel .skip-button{display:inline-flex;align-items:center;justify-content:center;position:relative;min-width:44px;min-height:44px;padding:10px;border:0;border-radius:50%;background:transparent;color:#f6f4ef;flex:none}
#playerPanel .icon-button:hover,#playerPanel .skip-button:hover{color:var(--gold-light);background:#ffffff12}
#playerPanel .icon-button:focus-visible,#playerPanel .skip-button:focus-visible{outline:2px solid var(--gold-light);outline-offset:1px;box-shadow:none}
#playerPanel #stopPlayback{background:#0005}
#playerPanel .icon{width:24px;height:24px}
#playerPanel .live-badge{position:static;display:inline-flex;align-items:center;gap:6px;padding:5px 9px;background:#0006;border:1px solid #d5aa4255;font-size:11px;border-radius:20px;flex:none}
#playerPanel .live-badge>span{width:5px;height:5px;background:#e6ba51;box-shadow:none}
#playerPanel .video-controls{bottom:0;border:0;padding:28px 16px 10px;background:linear-gradient(transparent,#0009 40%,#000d);direction:ltr}
#playerPanel .transport-row{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:nowrap}
#playerPanel .transport-main,#playerPanel .transport-options{display:flex;align-items:center;gap:4px;flex-wrap:nowrap}
#playerPanel .seek-row{display:flex;align-items:center;gap:12px;margin-bottom:1px;font-size:11px;color:#ddd;line-height:1.4;font-variant-numeric:tabular-nums;direction:ltr}
#playerPanel .seek-row input{min-width:0;flex:1;width:100%;height:44px;min-height:44px}
#playerPanel input[type=range]{accent-color:var(--gold-light);cursor:pointer}
#playerPanel #volume{width:66px;height:44px;min-height:44px;margin-inline:2px 8px;direction:ltr}
#playerPanel .skip-button .icon{width:30px;height:30px}
#playerPanel .skip-button span{position:absolute;inset:17px 0 auto;font:9px/1 sans-serif;color:currentColor;text-align:center}
#skipForward .icon{transform:scaleX(-1)}
#playerPanel .center-play{position:absolute;z-index:2;top:50%;left:50%;transform:translate(-50%,-50%);width:68px;height:68px;display:grid;place-items:center;border:1px solid #d8b45288;border-radius:50%;color:#e5bf59;background:#080a0c88;backdrop-filter:blur(8px)}
#playerPanel .center-play .icon{width:30px;height:30px}
#playerPanel.is-playing .center-play,#playerPanel:has(.stage-message:not([hidden])) .center-play{display:none}
#playerPanel.controls-hidden .player-overlay{opacity:0;visibility:hidden;pointer-events:none}
#playerPanel .stage-message{position:absolute;z-index:2;inset:55px 18px 78px;display:flex;justify-content:center;gap:7px;padding:0;background:none;color:#efece4;text-align:center;pointer-events:none}
#playerPanel .stage-message[hidden]{display:none}
#playerPanel:has(.stage-message:not([hidden])) .seek-row{display:none}
#playerPanel .stage-message h3{margin:0;font-size:18px;line-height:1.6;font-weight:500}
#playerPanel .stage-message p{margin:0;font-size:12px;line-height:1.6;color:#a4a8ac;max-width:440px}
#playerPanel .stage-message .button{pointer-events:auto;min-height:44px;padding:7px 20px;font-size:13px;border-radius:10px;margin-top:3px;flex:none}
#playerPanel .stage-play{width:24px;height:24px;min-height:24px;margin:0 0 3px;border:0;background:none;border-radius:0}
#playerPanel .stage-play .spinner{display:block;width:22px;height:22px;border-width:2px}
#playerPanel.message-action .stage-play{display:none}
#playerSettings{position:absolute;z-index:5;bottom:70px;left:16px;width:min(290px,calc(100% - 32px));max-height:calc(100% - 78px);overflow:auto;padding:16px;background:#111419f5;border:1px solid #6b5730;border-radius:12px;box-shadow:0 12px 40px #0009;backdrop-filter:blur(16px);direction:rtl}
#playerSettings[hidden]{display:none}
#playerSettings h4{font-size:14px;font-weight:500;margin:0 0 12px;color:var(--gold-light)}
#playerSettings label{display:flex;align-items:center;justify-content:space-between;gap:14px;font-size:13px;margin-top:9px;color:#d2d4d6}
#playerSettings label[hidden]{display:none}
#playerSettings select{min-height:44px;width:140px;max-width:60%;border:1px solid #464a51;border-radius:9px;background:#20242b;color:#efece4;padding:5px 8px;font-size:13px}
#playerPanel:fullscreen,#watchDialog #playerPanel:fullscreen{width:100vw;height:100dvh;border:0;border-radius:0;background:#000}
#playerPanel:fullscreen .video-stage{height:100%;aspect-ratio:auto}
@media(max-width:700px){
  #watchDialog{width:100%;height:100dvh;max-height:100dvh;max-width:100%;margin:0;border:0;border-radius:0;background:#030405;box-shadow:none}
  #watchDialog #watchPlayerHost{height:auto;align-self:center}
  #playerPanel .player-topbar{gap:6px;padding:8px 10px 18px}
  #playerPanel #playingTitle{font-size:14px}
  #playerPanel #sourceStatus{font-size:9px}
  #playerPanel .video-controls{padding:20px 8px 5px}
  #playerPanel .transport-main,#playerPanel .transport-options{gap:0}
  #playerPanel .transport-row{gap:0}
  #playerPanel #volume{display:none}
  #playerPanel .seek-row{gap:8px;font-size:10px}
  #playerPanel .stage-message{inset:50px 12px 60px;gap:4px}
  #playerPanel .stage-message h3{font-size:15px}
  #playerPanel .stage-message p{font-size:11px;max-width:280px}
  #playerPanel .stage-message .button{min-height:44px;font-size:12px;margin-top:1px;padding:7px 16px}
  #playerPanel .stage-play{width:18px;height:18px;min-height:18px;margin-bottom:0}
  #playerPanel .stage-play .spinner{width:18px;height:18px}
  #playerPanel .center-play{width:54px;height:54px}
  #playerSettings{bottom:58px;left:10px;padding:12px;max-height:calc(100% - 66px)}
}
/* Error/help copy gets enough room on a small live surface; the actual video
   and the watching dialog keep their wide ratio. Controls remain reachable. */
@media(max-width:1100px) and (min-width:761px){#playerPanel .stage-message{inset:48px 12px 64px;gap:5px}#playerPanel .stage-message h3{font-size:16px}#playerPanel .stage-message p{font-size:12px}}
@media(max-width:450px){
  #playerPanel.message-action .video-stage:has(.stage-message:not([hidden])){min-height:245px;aspect-ratio:auto}
  #playerPanel .stage-message{inset:48px 12px 58px;gap:4px}
  #playerPanel .stage-message p{max-width:260px}
  #playerPanel.message-action .stage-message h3{font-size:14px}
  #playerPanel.message-action .stage-message{inset-block:48px 58px}
  #playerPanel .stage-play{display:none}
  #playerPanel .transport-row .icon-button,#playerPanel .skip-button{min-width:44px;padding:9px}
  #watchDialog .stage-message p{font-size:11px;max-width:250px}
  #watchDialog #playerPanel.message-action .stage-message h3{display:none}
}
@media(max-width:350px){#playerPanel .live-badge{display:none}#playerPanel .stage-message p{font-size:10px}}
@media(orientation:landscape) and (max-height:600px){#watchDialog{width:100%;height:100dvh;max-height:100dvh;margin:0;border:0;border-radius:0}#watchDialog #watchPlayerHost{width:min(100%,calc(100dvh * 16 / 9))}}
@media(prefers-reduced-motion:reduce){#playerPanel .player-overlay{transition:none}}
