.mwp-shell { display:none; }
@media (max-width:700px), (max-width:1000px) and (max-height:550px) and (orientation:landscape) and (pointer:coarse) {
    body.mwp-active { --bg:var(--brand-ink); --card:var(--brand-surface); --card-hover:var(--brand-raised); --text:var(--brand-text); --text2:var(--brand-muted); --border:var(--brand-edge); --gold:var(--brand-gold); --chat-bg:var(--brand-surface); --chat-messages-bg:var(--brand-surface); --chat-input-area-bg:var(--brand-surface); --chat-input-bg:var(--brand-raised); --chat-input-text:var(--brand-text); --chat-placeholder:var(--brand-muted); --chat-border:var(--brand-edge); background:var(--bg); color:var(--text); overflow:hidden; overscroll-behavior:none; }
    body.mwp-active > :not(.main-container):not(.modal-overlay):not(.toast):not(.sidebar-drawer):not(.sidebar-overlay):not(#loginGateOverlay):not(script):not(style):not(link) { display:none!important; }
    body.mwp-active .main-container { position:fixed; top:var(--mwp-top,0px); left:0; width:100%; max-width:none; height:var(--mwp-height,100dvh); display:flex!important; flex-direction:column; gap:0; margin:0!important; padding:0!important; overflow:hidden; }
    body.mwp-active .left-col { display:contents; }
    body.mwp-active .right-col, body.mwp-active .left-col > :not(.player-section) { display:none!important; }
    body.mwp-active .player-section { position:relative; flex:none; width:100%; margin:0; padding:0; border:0; border-radius:0; overflow:hidden; background:#000; }
    body.mwp-active .player-container { position:relative; width:100%; aspect-ratio:16/9; height:auto!important; padding:0!important; background:#000; }
    body.mwp-active #streamPlayer { position:absolute; inset:0; width:100%; height:100%; }
    body.mwp-active #streamPlayer :is(video,iframe) { width:100%!important; height:100%!important; aspect-ratio:auto; object-fit:contain; }
    body.mwp-active .player-bottom, body.mwp-active .dmp-mini-tools, body.mwp-active .dmp-mini-placeholder { display:none!important; }
    body.mwp-active :is(.dmp-room-back,.dmp-room-share) { position:absolute; top:max(8px,env(safe-area-inset-top)); display:grid; place-items:center; width:34px; height:34px; z-index:25; border:1px solid #ffffff30; border-radius:50%; color:white; background:#1119; }
    body.mwp-active .dmp-room-back { left:max(8px,env(safe-area-inset-left)); }
    body.mwp-active .dmp-room-share { right:max(8px,env(safe-area-inset-right)); }
    body.mwp-active .dmp-room-back svg { width:20px; height:20px; }
    body.mwp-active .dmp-controls { display:flex; position:absolute; inset:auto 0 0; z-index:24; align-items:center; justify-content:space-between; gap:8px; padding:26px max(10px,env(safe-area-inset-right)) 8px max(10px,env(safe-area-inset-left)); background:linear-gradient(transparent,#0008 40%,#000c); opacity:0; pointer-events:none; transition:opacity .18s; }
    body.mwp-active .player-section.mwp-controls-visible .dmp-controls, body.mwp-active .dmp-controls:focus-within { opacity:1; pointer-events:auto; }
    .mwp-active .dmp-controls > div { display:flex; align-items:center; gap:4px; min-width:0; }
    .mwp-active .dmp-controls button { display:grid; place-items:center; flex:none; width:40px; min-width:40px; height:40px; padding:9px; border:0; border-radius:50%; background:transparent; color:#fff; box-shadow:none; transition:background .15s,transform .15s; -webkit-tap-highlight-color:transparent; }
    .mwp-active .dmp-controls button svg { display:block; width:22px; height:22px; filter:drop-shadow(0 1px 2px #0008); }
    .mwp-active .dmp-controls [data-dmp-control="play"] { background:#ffffff16; }
    .mwp-active .dmp-controls button:active:not(:disabled) { background:#ffffff26; transform:scale(.92); }
    .mwp-active .dmp-controls button:disabled { opacity:.3; }
    .mwp-active .dmp-controls [aria-expanded="true"] { color:var(--brand-gold); background:color-mix(in srgb, var(--brand-gold) 9%, transparent); }
    .mwp-active .dmp-controls select { flex:0 1 auto; min-width:0; width:auto; max-width:64px; height:36px; padding:0 4px; border:1px solid #ffffff25; border-radius:8px; background:#18181899; color:#f8f5ed; font:600 11px/1 var(--reading-font,system-ui); }
    .mwp-active .dmp-controls .dmp-on-air { display:inline-flex; align-items:center; gap:5px; margin-left:3px; color:var(--brand-text); font:600 10px/1 var(--reading-font,system-ui); letter-spacing:.04em; white-space:nowrap; }
    .mwp-active .dmp-on-air i { width:5px; height:5px; border-radius:50%; background:#ff5575; box-shadow:0 0 7px #ff55754d; }
    .mwp-active .dmp-controls [aria-busy="true"] svg { animation:mwp-refresh .7s linear infinite; }
    .mwp-active .dmp-controls [data-dmp-control="chat"] { display:none; }
    body.mwp-active .mwp-shell { display:flex; flex-direction:column; flex:1 1 0; min-height:0; width:100%; overflow:hidden; }
    body.mwp-active .dmp-banner { display:grid; flex:none; width:calc(100% - 24px); aspect-ratio:auto; height:clamp(146px,38vw,160px); max-height:none; margin:12px 12px 0; border-radius:22px; }
    body.mwp-active .dmp-banner .dmp-hero, body.mwp-active .dmp-banner .dmp-poll { padding:10px 18px 21px; }
    body.mwp-active .dmp-banner .dmp-team strong { font-size:.65rem; }
    body.mwp-active .dmp-banner :is(.dmp-banner-prev,.dmp-banner-next) { display:none; }
    body.mwp-active .dmp-banner { touch-action:pan-y; }
    .mwp-tabs { display:flex; flex:none; padding:0 14px; gap:24px; border-bottom:1px solid var(--border); }
    .mwp-tabs button { min-height:44px; padding:10px 0; border:0; border-bottom:2px solid transparent; background:none; color:var(--text2); font:inherit; font-size:.75rem; }
    .mwp-tabs [aria-selected="true"] { border-bottom-color:var(--gold); color:var(--gold); }
    .mwp-content { display:flex; flex-direction:column; flex:1 1 0; min-height:0; overflow:hidden; }
    body.mwp-active .mwp-content > .dmp-details { display:none; min-height:0; height:100%; border:0; border-radius:0; background:var(--card); overflow:auto; overscroll-behavior:contain; }
    body.mwp-active .mwp-shell[data-tab="details"] .dmp-details { display:block; }
    body.mwp-active .mwp-shell[data-tab="details"] #chatSection { display:none!important; }
    body.mwp-active .dmp-tabs { position:sticky; top:0; z-index:2; background:var(--card); }
    body.mwp-active .dmp-tabs button { flex:1 0 auto; min-height:44px; padding:10px; font-size:.65rem; }
    body.mwp-active .dmp-panel { padding:16px 12px; min-height:0; }
    body.mwp-active .dmp-lineup-grid { gap:12px; }
    body.mwp-active .dmp-h2h > div { grid-template-columns:58px minmax(0,1fr) 44px minmax(0,1fr); gap:5px; font-size:.6rem; }
    body.mwp-active #chatSection { display:flex; flex-direction:column; flex:1 1 0; width:100%; min-height:0!important; height:auto!important; max-height:none!important; margin:0; border:0!important; border-radius:0; overflow:hidden; background:var(--card); box-shadow:none!important; }
    body.mwp-active #chatSection .chat-header { display:none; }
    body.mwp-active #chatMessages { display:flex; flex-direction:column; flex:1 1 0; height:auto!important; min-height:0; max-height:none!important; gap:14px; padding:30px 14px 12px; overflow:auto; overscroll-behavior:contain; background:transparent; mask-image:linear-gradient(to bottom,transparent,#000 36px); -webkit-mask-image:linear-gradient(to bottom,transparent,#000 36px); }
    body.mwp-active #chatMessages .chat-message { flex:none; }
    body.mwp-active #chatSection :is(#chatMessages,.chat-input-area) { font-family:var(--reading-font,system-ui); }
    body.mwp-active #chatSection .chat-avatar { width:28px; height:28px; min-width:28px; box-shadow:none; border:0; }
    body.mwp-active #chatSection .chat-username { color:var(--brand-muted); font-weight:600; }
    body.mwp-active #chatSection .chat-text { font-size:.85rem; line-height:1.5; overflow-wrap:anywhere; }
    body.mwp-active #chatSection .chat-input-area { flex:none; padding:8px 12px max(8px,env(safe-area-inset-bottom)); border:0; }
    body.mwp-active #chatSection .chat-input-row { display:flex; position:relative; align-items:center; gap:8px; }
    body.mwp-active #chatInput { flex:1 1 0; width:0; height:44px; min-height:44px; padding:10px 44px 10px 14px; border:0!important; border-radius:28px; background:var(--brand-raised)!important; font-size:16px; }
    body.mwp-active #chatSection .emoji-picker-wrap { position:absolute; right:56px; bottom:5px; width:34px; height:34px; z-index:3; }
    body.mwp-active #chatSection .emoji-picker-btn { width:34px; height:34px; padding:5px; border:0; border-radius:50%; color:#c5c5c5; background:none; box-shadow:none; }
    body.mwp-active #chatSection .emoji-picker-btn svg { width:24px; height:24px; }
    body.mwp-active #chatSection .emoji-picker-panel { left:auto; right:-50px; bottom:46px; width:min(280px,calc(100vw - 28px)); max-width:calc(100vw - 28px); }
    body.mwp-active #chatSection .chat-send { flex:none; display:grid; place-items:center; width:44px; height:44px; padding:9px; border:0; border-radius:50%; color:#ff2f5e; background:var(--brand-raised); box-shadow:none; }
    body.mwp-active #chatSection .chat-send svg { width:26px; height:26px; }
    body.mwp-active.mwp-keyboard .dmp-banner { display:none; }
    body.mwp-active.mwp-keyboard .player-container { aspect-ratio:auto; height:min(25vh,120px)!important; }
    body.mwp-active .player-container:fullscreen { aspect-ratio:auto; height:100%!important; }
    body.mwp-active :is(button,a,input,select):focus-visible { outline:2px solid var(--gold); outline-offset:-2px; }
}
@media (max-width:1000px) and (max-height:550px) and (orientation:landscape) and (pointer:coarse) {
    body.mwp-active .main-container { flex-direction:row; }
    body.mwp-active .player-section { flex:1 1 0; min-width:0; height:100%; }
    body.mwp-active .player-container { aspect-ratio:auto; height:100%!important; }
    body.mwp-active .mwp-shell { display:none; }
    body.mwp-active.mwp-chat-open .mwp-shell { display:flex; flex:0 0 280px; width:280px; height:100%; }
    body.mwp-active .mwp-shell .dmp-banner { display:none; }
    body.mwp-active .mwp-tabs { display:none; }
    body.mwp-active .dmp-controls [data-dmp-control="chat"] { display:grid; }
    body.mwp-active .player-container:fullscreen [data-dmp-control="chat"] { display:none; }
    body.mwp-active.mwp-keyboard .player-container { height:100%!important; }
}
@media (max-width:360px) {
    .mwp-active .dmp-controls { gap:4px; padding-inline:6px; }
    .mwp-active .dmp-controls > div { gap:2px; }
    .mwp-active .dmp-controls button { width:36px; min-width:36px; height:40px; padding:8px; }
    .mwp-active .dmp-controls select { max-width:48px; }
    .mwp-active .dmp-controls .dmp-on-air { font-size:9px; gap:4px; }
}
@keyframes mwp-refresh { to { transform:rotate(360deg); } }
@media (prefers-reduced-motion:reduce) { .mwp-active .dmp-controls, .mwp-active .dmp-controls button { transition:none; } .mwp-active .dmp-controls [aria-busy="true"] svg { animation:none; } }

/* The mobile tabs expose the same details and other-match list as desktop. */
body.mwp-active .mwp-tabs { grid-template-columns:repeat(3,minmax(0,1fr)); }
body.mwp-active .mwp-content > .dmp-others { display:none; }
body.mwp-active .mwp-shell[data-tab="other"] .mwp-content > :not(.dmp-others) { display:none!important; }
body.mwp-active .mwp-shell[data-tab="other"] .mwp-content > .dmp-others { display:block!important; height:100%; overflow:auto; }
body.mwp-active .mwp-tabs button { min-width:0; font-size:.65rem; }
@media (min-width:701px) and (max-width:1100px) {
 body.dmp-active .main-container { grid-template-columns:minmax(0,1fr) 280px; gap:12px; padding:12px!important; }
}
